/* ══════════════════════════════════════════════════════════════════
 *  TryOn Eyewear — Shared Design System
 *  Premium e-commerce aesthetic inspired by Sunglass Express
 * ══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --gold:       #C29F72;
  --gold-light: #D4B896;
  --gold-dark:  #A8854E;
  --navy:       #1F2A44;
  --navy-light: #2D3A56;
  --bronze:     #603220;
  --cream:      #F4F3F0;
  --off-white:  #FAFAF8;
  --white:      #FFFFFF;
  --black:      #111111;
  --gray-100:   #F5F5F5;
  --gray-200:   #E8E8E8;
  --gray-300:   #D1D1D1;
  --gray-400:   #A0A0A0;
  --gray-500:   #6B6B6B;
  --gray-600:   #4A4A4A;
  --green-ok:   #22C55E;
  --red-err:    #EF4444;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Sizing */
  --nav-height:    76px;
  --accent-bar:    4px;
  --max-width:     1280px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-pill: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 50px rgba(0,0,0,0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ══════════════════════════════════════════════════════════════════
 *  TOP ACCENT BAR
 * ══════════════════════════════════════════════════════════════════ */
.accent-bar {
  height: var(--accent-bar);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

/* ══════════════════════════════════════════════════════════════════
 *  NAVBAR
 * ══════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #c19a6b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  max-width: 1440px;
  padding: 0 3.5rem;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  transition: opacity var(--duration) var(--ease);
  position: relative;
}
.nav-links a:hover { opacity: 0.75; }



.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-icons button, .nav-icons a {
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration) var(--ease);
}
.nav-icons button:hover, .nav-icons a:hover { opacity: 0.75; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ══════════════════════════════════════════════════════════════════
 *  HERO SECTION
 * ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0f1726 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 38, 0.4);
  z-index: 1;
}

.hero-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2744 0%, #0d1520 50%, #1f2a44 100%);
  z-index: 0;
}
.hero-video-placeholder::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,159,114,0.15) 0%, transparent 70%);
  animation: heroPulse 4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(194,159,114,0.4);
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration) var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194,159,114,0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31,42,68,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--gray-100);
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════════════════════
 *  SECTION UTILITIES
 * ══════════════════════════════════════════════════════════════════ */
.section {
  padding: 4.5rem 0;
}
.section-cream {
  background: var(--cream);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.section-header-left {
  display: flex;
  flex-direction: column;
}
.section-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b6736;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}
.section-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  transition: opacity var(--duration) var(--ease);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-link:hover { opacity: 0.75; }

/* ══════════════════════════════════════════════════════════════════
 *  PRODUCT CARDS
 * ══════════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--duration) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card-top {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.product-card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
}

.product-card-heart {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
  margin-left: auto;
}
.product-card-heart:hover {
  transform: scale(1.15);
  color: var(--red-err);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1rem;
  overflow: hidden;
}
.product-card-img img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-info {
  padding: 1rem 1.25rem 1.25rem;
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-card-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.product-card-price {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
 *  CATEGORY GRID
 * ══════════════════════════════════════════════════════════════════ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 4.8;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}
.category-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-card:hover .category-card-img {
  transform: scale(1.04);
}

.category-pill {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  background: rgba(242, 239, 234, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.category-pill-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.category-pill-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a5633;
}
.category-pill-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.category-pill-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.category-card:hover .category-pill-btn {
  transform: translateX(3px);
  background: var(--navy-light);
}

/* ══════════════════════════════════════════════════════════════════
 *  SHAPE PILLS
 * ══════════════════════════════════════════════════════════════════ */
.shape-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.shape-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.shape-pill:hover {
  border-color: var(--gold);
  background: rgba(194,159,114,0.08);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.shape-pill .shape-icon {
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════════════
 *  TESTIMONIAL
 * ══════════════════════════════════════════════════════════════════ */
.testimonial-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}
.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.testimonial-verified {
  font-size: 0.72rem;
  color: var(--green-ok);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ══════════════════════════════════════════════════════════════════
 *  QUIZ CTA BANNER
 * ══════════════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1726 100%);
  border-radius: var(--border-radius);
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--white);
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
}
.cta-banner p {
  color: rgba(255,255,255,0.65);
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════════════════════
 *  FOOTER
 * ══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--cream);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-bio {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: var(--gold-dark); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
}
.footer-social a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* ══════════════════════════════════════════════════════════════════
 *  RESPONSIVE
 * ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .product-grid { grid-template-columns: 1fr; }
}
