/*
Theme Name: Lens N Frames
Theme URI: https://lensnframes.com
Author: Antigravity
Author URI: https://lensnframes.com
Description: Clean, high-precision custom WordPress theme reproducing the approved Lens N Frames luxury eyewear frontend.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: lens-n-frames
Tags: e-commerce, custom-colors, custom-menu, featured-images, responsive-layout, full-width-template
*/

/* ==========================================================================
   Lens N Frames — Frontend Visual Prototype Stylesheet
   Design Accuracy: 1440px Desktop Viewport Reference
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);

  /* Curated Color System strictly matching reference */
  --c-black: #111113;
  --c-charcoal: #18191c;
  --c-charcoal-light: #23252a;
  --c-white: #ffffff;
  --c-cream-bg: #f9f8f6;
  --c-pill-bg: #eeede8;
  --c-pill-hover: #e2e0d8;
  --c-border-light: #ebe9e4;
  --c-border-card: #e5e3dc;
  --c-text-primary: #121214;
  --c-text-muted: #737373;
  --c-text-faint: #9c9c9c;
  --c-accent-stars: #6f8270;

  /* Viewport Layout Tokens */
  --max-content-width: 1360px;
  --site-header-height: 96px;
  --card-radius-arch: 140px;
  --card-radius-bottom: 26px;
  --pill-radius: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --trans-fast: 0.25s var(--ease-smooth);
  --trans-base: 0.35s var(--ease-smooth);
  --trans-slow: 0.5s var(--ease-smooth);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--c-white);
  color: var(--c-text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

/* Page Container */
.page-container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Headings */
.section-heading {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-primary);
  margin-bottom: 36px;
}

.section-heading.centered {
  text-align: center;
}

.section-title-serif {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  padding: 24px 48px;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--trans-fast);
}

.header-logo:hover {
  opacity: 0.8;
}

.logo-mark {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Frosted Glass Navigation Pill */
.nav-pill {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: var(--pill-radius);
  padding: 8px 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color var(--trans-fast);
}

.nav-link:hover {
  color: #000;
  font-weight: 600;
}

.dropdown-chevron {
  transition: transform var(--trans-fast);
}

.dropdown-parent:hover .dropdown-chevron {
  transform: rotate(180deg);
}

/* Small, Simple Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--c-white);
  border: 1px solid var(--c-border-light);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(14px);
}

.dropdown-menu li a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-primary);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.dropdown-menu li a:hover {
  background: var(--c-cream-bg);
  color: var(--c-black);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--c-black);
  transition: transform var(--trans-fast), background var(--trans-fast);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.06);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--c-black);
  color: var(--c-white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  margin-bottom: 70px;
}

.hero-media-card {
  width: 100%;
  height: 82vh;
  min-height: 640px;
  max-height: 840px;
  overflow: hidden;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  background-color: #d8dedb;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

/* Overlapping Center Emblem */
.hero-emblem-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 20;
}

.hero-emblem {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--c-black);
  border: 5px solid var(--c-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--trans-base);
}

.hero-emblem:hover {
  transform: scale(1.05);
}

.hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Explore Collections Section (Full Width with Moderate Padding)
   ========================================================================== */
.explore-section {
  width: 100%;
  padding-top: 30px;
  padding-bottom: 90px;
  padding-left: clamp(24px, 3.5vw, 56px);
  padding-right: clamp(24px, 3.5vw, 56px);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.collection-capsule {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  aspect-ratio: 0.82;
  background-color: var(--c-cream-bg);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.collection-capsule:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.capsule-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.capsule-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.collection-capsule:hover .capsule-media img {
  transform: scale(1.05);
}

.capsule-badge {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(235, 232, 226, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 15px 36px;
  border-radius: var(--pill-radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: #151515;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: background var(--trans-fast), transform var(--trans-fast), color var(--trans-fast);
}

.collection-capsule:hover .capsule-badge {
  background: var(--c-white);
  color: var(--c-black);
  transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   New Arrivals & Best Sellers Shared Styles
   ========================================================================== */
.new-arrivals-section,
.best-sellers-section {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 90px;
  padding-left: clamp(24px, 3.5vw, 56px);
  padding-right: clamp(24px, 3.5vw, 56px);
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

/* Category Filter Pills */
.filter-group {
  display: flex;
  gap: 8px;
  background: transparent;
}

.filter-pill {
  padding: 8px 22px;
  border-radius: var(--pill-radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--c-pill-bg);
  color: var(--c-text-primary);
  transition: background-color var(--trans-fast), color var(--trans-fast), transform var(--trans-fast);
}

.filter-pill:hover {
  background-color: var(--c-pill-hover);
}

.filter-pill.active {
  background-color: var(--c-black);
  color: var(--c-white);
}

/* Carousel Viewport & Track */
.product-carousel-viewport {
  overflow: hidden;
  padding: 10px 4px 20px;
}

.product-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s var(--ease-smooth);
}

/* Product Card */
.product-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  border-radius: 44px;
  overflow: visible;
  background: transparent;
  transition: transform var(--trans-base), opacity var(--trans-base);
  opacity: 1;
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-arch-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  border-radius: 44px 44px 0 0;
  overflow: hidden;
  background-color: #e5e3dc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-card-body {
  margin-top: -52px;
  position: relative;
  z-index: 2;
  background: #27282b;
  color: var(--c-white);
  padding: 26px 24px 22px;
  border-radius: 44px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.product-name {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.price-sale {
  color: var(--c-white);
  font-weight: 700;
}

.price-mrp {
  color: #9c9c9c;
  text-decoration: line-through;
  font-size: 0.88rem;
}

.add-cart-btn {
  margin-top: 8px;
  align-self: center;
  padding: 12px 38px;
  border-radius: var(--pill-radius);
  background: #000000;
  color: var(--c-white);
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background var(--trans-fast), color var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
}

.add-cart-btn:hover {
  background: var(--c-white);
  color: var(--c-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Dots Row */
.carousel-dots-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #d1cfc9;
  cursor: pointer;
  transition: background-color var(--trans-fast), transform var(--trans-fast);
}

.dot.active {
  background-color: var(--c-black);
  transform: scale(1.25);
}

/* Slider Arrow Buttons */
.slider-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrow-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--c-border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-black);
  transition: background var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast);
}

.arrow-circle-btn:hover {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}

/* ==========================================================================
   Words on Street (Testimonials) Section
   ========================================================================== */
.testimonials-section {
  background-color: var(--c-cream-bg);
  padding: 90px 0;
  margin: 30px 0 70px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--c-white);
  padding: 40px 36px;
  border-radius: 16px;
  border: 1px solid var(--c-border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.025);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.star-rating {
  color: var(--c-accent-stars);
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.testimonial-quote {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #2b2b2b;
  flex-grow: 1;
}

.testimonial-by {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid #f2f0ea;
  padding-top: 16px;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text-primary);
}

.author-meta {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

/* ==========================================================================
   Featured Brand Section (OSCOTT)
   ========================================================================== */
.brand-feature-section {
  padding-top: 20px;
  padding-bottom: 70px;
}

.brand-feature-card {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.brand-feature-image {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Editorial / Promotional Banner (XTREMEX)
   ========================================================================== */
.editorial-section {
  padding-top: 10px;
  padding-bottom: 90px;
}

.editorial-banner-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  background: #000000;
}

.editorial-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--c-black);
  color: #c5c5c5;
  padding: 84px 0 44px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-icon {
  width: 44px;
  height: auto;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-white);
}

.footer-clinic-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--c-text-faint);
  text-transform: uppercase;
}

.footer-col-heading {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-white);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: #999999;
  transition: color var(--trans-fast);
}

.footer-links-list a:hover {
  color: var(--c-white);
}

/* Huge Architectural Brand Typography */
.footer-huge-typography {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 0 40px;
  text-align: center;
}

.footer-huge-typography span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #eae9e5;
  display: block;
}

/* Footer Bottom Legal Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  font-size: 0.8rem;
  color: #777777;
}

.legal-links {
  display: flex;
  gap: 28px;
}

.legal-links a {
  color: #777777;
  transition: color var(--trans-fast);
}

.legal-links a:hover {
  color: var(--c-white);
}

/* ==========================================================================
   Responsive Foundation
   ========================================================================== */
@media (max-width: 1200px) {
  .product-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 900px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  .nav-pill {
    display: none;
  }
  .product-card {
    flex: 0 0 calc(50% - 12px);
  }
}
