/* ============================================================
   ÓTICAS RELUX — Design System
   Dark default · light theme via [data-theme="light"]
   ============================================================ */

:root {
  /* easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);

  /* brand */
  --gold: #f5be00;
  --gold-bright: #ffd34d;
  --gold-deep: #c8920a;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --maxw: 1200px;
  --shell-pad: 6px;
}

/* ---------- DARK (default) ---------- */
[data-theme="dark"] {
  --bg: #060607;
  --bg-2: #0c0c0e;
  --ink: #f5f5f6;
  --ink-soft: #c8ccd2;
  --muted: #8b9099;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --hair: rgba(255, 255, 255, 0.10);
  --hair-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --inset-hi: inset 0 1px 1px rgba(255, 255, 255, 0.10);
  --glow: rgba(245, 190, 0, 0.22);
  --on-gold: #0a0a0a;
  --grain-op: 0.04;
}

/* ---------- LIGHT ---------- */
[data-theme="light"] {
  --bg: #f6f5f2;
  --bg-2: #ffffff;
  --ink: #14151a;
  --ink-soft: #33363d;
  --muted: #6a6f78;
  --surface: rgba(20, 21, 26, 0.025);
  --surface-2: rgba(20, 21, 26, 0.045);
  --hair: rgba(20, 21, 26, 0.10);
  --hair-soft: rgba(20, 21, 26, 0.06);
  --shadow: 0 30px 60px -34px rgba(40, 38, 30, 0.30);
  --inset-hi: inset 0 1px 1px rgba(255, 255, 255, 0.7);
  --glow: rgba(245, 190, 0, 0.30);
  --on-gold: #0a0a0a;
  --grain-op: 0.02;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s var(--ease-out), background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 14px; }

.btn-primary {
  background: var(--gold); color: var(--on-gold);
  box-shadow: 0 10px 30px -10px var(--glow), var(--inset-hi);
}
.btn-primary:hover { background: var(--gold-bright); }

.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--hair); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); }

/* button-in-button orb */
.btn-orb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  transition: transform 0.3s var(--ease-out);
}
.btn-orb svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-orb { transform: translateX(3px) translateY(-1px); }

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  display: flex; justify-content: center;
  padding: 18px 16px;
  transition: padding 0.4s var(--ease-out);
}
.nav {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  border: 1px solid var(--hair);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav-wrap.scrolled .nav { box-shadow: 0 18px 50px -24px rgba(0,0,0,0.55); }

.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-eye { flex: none; }
.brand-text { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; letter-spacing: 0.06em; font-size: 0.92rem; color: var(--gold); }
.brand-text b { color: var(--muted); font-weight: 600; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  color: var(--ink-soft); transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* discreet theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-grid; place-items: center; position: relative;
  background: var(--surface); border: 1px solid var(--hair); color: var(--ink-soft);
  cursor: pointer; overflow: hidden;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.theme-toggle svg { position: absolute; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.5s var(--ease-drawer), opacity 0.35s var(--ease-out); }
.theme-toggle .ico-moon { fill: currentColor; stroke: none; }
/* show moon in dark, sun in light */
[data-theme="dark"] .ico-sun  { transform: translateY(140%) rotate(40deg); opacity: 0; }
[data-theme="dark"] .ico-moon { transform: translateY(0) rotate(0); opacity: 1; }
[data-theme="light"] .ico-sun  { transform: translateY(0) rotate(0); opacity: 1; }
[data-theme="light"] .ico-moon { transform: translateY(-140%) rotate(-40deg); opacity: 0; }

.nav-cta { padding: 11px 8px 11px 18px; }

.hamburger { display: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease-drawer), opacity 0.3s var(--ease-out); }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { bottom: 15px; }
.hamburger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 110px 24px 40px; overflow-y: auto; gap: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out);
}
/* busca no topo do menu */
.mobile-menu .mobile-search { margin-bottom: 20px; width: 100%; }
/* links com menos espaço vertical */
.mobile-menu a { padding: 10px 12px; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; font-weight: 600; padding: 12px; color: var(--ink); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-drawer); }
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu .btn { font-size: 1rem; margin-top: 14px; transition-delay: 0.36s; }
.mm-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-drawer); transition-delay: 0.30s; }
.mobile-menu.open .mm-actions { opacity: 1; transform: translateY(0); }
.mm-theme { position: static; width: auto; height: auto; padding: 10px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.95rem; font-weight: 500; overflow: visible; }
.mm-theme svg { position: static; }
.mm-theme-label { font-family: inherit; font-size: 0.95rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 168px 0 70px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at center, var(--glow), transparent 62%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink-soft); padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hair);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.eyebrow.center { margin: 0 auto; }

.hero-title { font-size: clamp(2.7rem, 7vw, 5rem); margin: 22px 0 0; }
.hero-title .grad {
  background: linear-gradient(105deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--ink-soft); max-width: 30em; margin: 22px 0 0; }
.hero-lead b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats { display: flex; align-items: center; gap: 22px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats .div { width: 1px; height: 34px; background: var(--hair); }
.stat-n { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.stat-l { font-size: 0.78rem; color: var(--muted); }

/* hero visual — double bezel */
.visual-shell {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-xl);
  padding: var(--shell-pad); box-shadow: var(--shadow);
}
.visual-shell.tall { height: 100%; }
.visual-core {
  position: relative; border-radius: calc(var(--r-xl) - var(--shell-pad));
  background:
    radial-gradient(120% 90% at 70% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%),
    linear-gradient(160deg, var(--bg-2), var(--bg));
  box-shadow: var(--inset-hi);
  aspect-ratio: 5 / 5.2; overflow: hidden;
  display: grid; place-items: center;
}
.visual-core.center { aspect-ratio: 4 / 5; }
.hero-eye { width: 64%; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.4)); animation: floaty 7s var(--ease-inout) infinite; }
.hero-eye.lg { width: 72%; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.floating-card {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent); border: 1px solid var(--hair);
  backdrop-filter: blur(12px); box-shadow: var(--shadow); color: var(--ink-soft);
}
.floating-card strong { color: var(--gold); font-family: "Bricolage Grotesque", sans-serif; }
.fc-dot { width: 8px; height: 8px; border-radius: 999px; background: #34d399; box-shadow: 0 0 8px #34d399; }
.fc-1 { top: 12%; left: -6%; animation: floaty 6s var(--ease-inout) infinite; }
.fc-2 { bottom: 16%; right: -4%; animation: floaty 6.5s var(--ease-inout) 0.4s infinite; }
.fc-3 { bottom: 8%; left: 8%; color: var(--gold); animation: floaty 7.2s var(--ease-inout) 0.8s infinite; }
.fc-3 span { color: var(--muted); font-weight: 500; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); padding: 22px 0; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 38px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 9px; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }
.marquee-track span small { font-family: inherit; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--hair-soft); border-radius: 999px; padding: 3px 8px; line-height: 1; }
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--surface), transparent); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-top: 16px; }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- bento categories ---------- */
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 230px; gap: 16px; }
.cat-card {
  position: relative; border-radius: var(--r-lg); padding: var(--shell-pad);
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.bento > .cat-card:first-child { grid-row: span 2; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.cat-inner {
  position: relative; height: 100%; border-radius: calc(var(--r-lg) - var(--shell-pad));
  padding: 22px; overflow: hidden; box-shadow: var(--inset-hi);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
}
.cat-inner.row { flex-direction: row; align-items: center; gap: 16px; }
.cat-card[data-tone="sol"] .cat-inner { background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 14%, var(--bg-2)), var(--bg)); }
.cat-card[data-tone="grau"] .cat-inner { background: linear-gradient(150deg, color-mix(in srgb, #6f757e 12%, var(--bg-2)), var(--bg)); }
.cat-card[data-tone="filtro-azul"] .cat-inner { background: linear-gradient(150deg, color-mix(in srgb, #2472c8 12%, var(--bg-2)), var(--bg)); }
.cat-card[data-tone="fotossensivel"] .cat-inner { background: linear-gradient(150deg, color-mix(in srgb, #b97a2e 12%, var(--bg-2)), var(--bg)); }
.cat-card[data-tone="infantil"] .cat-inner { background: linear-gradient(150deg, color-mix(in srgb, #2e9bb9 12%, var(--bg-2)), var(--bg)); }
.cat-top { display: flex; align-items: center; justify-content: space-between; }
.cat-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--on-gold); background: var(--gold); padding: 5px 10px; border-radius: 999px; }
.cat-arrow { margin-left: auto; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hair); color: var(--ink); transition: transform 0.4s var(--ease-out), background 0.3s; }
.cat-arrow svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cat-card:hover .cat-arrow { transform: translate(3px, -3px); background: var(--gold); color: var(--on-gold); }
.cat-glasses { color: var(--ink); width: 78%; margin: auto 0; opacity: 0.95; transition: transform 0.6s var(--ease-out); }
.cat-glasses.sm { width: 56%; }
.cat-card:hover .cat-glasses { transform: scale(1.05); }
.cat-foot h3 { font-size: 1.4rem; }
.bento > .cat-card:first-child .cat-foot h3 { font-size: 1.9rem; }
.cat-foot p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  border-radius: var(--r-md); padding: var(--shell-pad);
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-5px); border-color: var(--gold); }
.product-media {
  position: relative; border-radius: calc(var(--r-md) - var(--shell-pad));
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--inset-hi); color: var(--ink);
  background: linear-gradient(150deg, var(--bg-2), var(--bg));
}
.product-media[data-tone="a"] { background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 16%, var(--bg-2)), var(--bg)); }
.product-media[data-tone="b"] { background: linear-gradient(150deg, color-mix(in srgb, #6f757e 14%, var(--bg-2)), var(--bg)); }
.product-media[data-tone="c"] { background: linear-gradient(150deg, color-mix(in srgb, #b9722e 12%, var(--bg-2)), var(--bg)); }
.product-media[data-tone="d"] { background: linear-gradient(150deg, color-mix(in srgb, #2e7db9 12%, var(--bg-2)), var(--bg)); }
.product-media svg { width: 80%; transition: transform 0.6s var(--ease-out); }
.product:hover .product-media svg { transform: scale(1.07) rotate(-1deg); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background: var(--gold); color: var(--on-gold); padding: 5px 9px; border-radius: 999px; }
.product-body { padding: 16px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.product-name { font-size: 1.08rem; margin: 4px 0 10px; }
.product-price { display: flex; align-items: baseline; gap: 9px; }
.product-price .old { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.product-price .now { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.installment { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.product .btn-block { margin-top: auto; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 28px 24px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--inset-hi);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.feature-ico svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 8px 0 0; }

/* ---------- about split ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.about-lead { color: var(--ink-soft); font-size: 1.08rem; margin: 20px 0 24px; max-width: 34em; }
.about-list { display: grid; gap: 12px; margin-bottom: 30px; }
.about-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.check { flex: none; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--on-gold); background: var(--gold); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { padding: 28px 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--inset-hi); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.quote blockquote { margin: 14px 0 18px; font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft); }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; }
.av { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; color: var(--on-gold); background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep)); }

/* ---------- final CTA ---------- */
.cta-shell { border-radius: var(--r-xl); padding: var(--shell-pad); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); }
.cta-core {
  position: relative; overflow: hidden; text-align: center;
  border-radius: calc(var(--r-xl) - var(--shell-pad)); padding: 72px 28px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg)); box-shadow: var(--inset-hi);
}
.cta-glow { position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 80%; height: 90%; background: radial-gradient(circle at center, var(--glow), transparent 60%); filter: blur(18px); pointer-events: none; }
.cta-title { position: relative; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 18px 0; }
.cta-sub { position: relative; color: var(--ink-soft); max-width: 34em; margin: 0 auto; font-size: 1.05rem; }
.cta-actions { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-info { position: relative; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--hair); }
.cta-info div { display: flex; flex-direction: column; gap: 3px; }
.cta-info b { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.cta-info span { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hair); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 30em; margin: 16px 0 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--hair); color: var(--ink-soft); transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out); }
.socials a svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hair-soft); color: var(--muted); font-size: 0.82rem; }

/* ============================================================
   REAL PRODUCT PHOTOS (with SVG fallback)
   ============================================================ */
/* when a photo is present, use a clean studio backdrop in both themes */
.product-media.has-photo,
.visual-core.has-photo { background: linear-gradient(160deg, #ffffff, #eceef1); }
.frame-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9%; z-index: 1;
  transition: transform 0.6s var(--ease-out);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.16));
}
.product:hover .frame-photo { transform: scale(1.06) rotate(-1deg); }
.pdp-media .frame-photo { padding: 11%; }
/* quando há foto, esconde o desenho (SVG) de fallback que fica atrás */
.product-media.has-photo > svg,
.visual-core.has-photo > svg,
.visual-core.has-photo .pdp-glasses { display: none; }
.badge { z-index: 3; }

/* category cards with photos: photo + scrim + white foot text */
.cat-card.has-photo .cat-inner { background: linear-gradient(160deg, #fbfbfc, #e6e8ec); justify-content: flex-end; }
.cat-card.has-photo .cat-glasses { display: none; }
.cat-card:not(.has-photo) .cat-scrim { display: none; }
/* posicionado por inset (top/bottom % = % da ALTURA), reservando a faixa
   inferior para o texto — funciona em cards largos e quadrados sem esmagar */
.cat-photo {
  position: absolute; top: 9%; left: 6%; right: 6%; bottom: 32%;
  width: auto; height: auto; object-fit: contain; object-position: center;
  z-index: 0;
  transition: transform 0.6s var(--ease-out);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.22));
}
/* no card grande (2x2) sobra mais espaço — solta a imagem um pouco mais */
.bento > .cat-card:first-child .cat-photo { bottom: 24%; top: 11%; }
.cat-card.has-photo:hover .cat-photo { transform: scale(1.05); }
.cat-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 6, 9, 0.88) 0%, rgba(6, 6, 9, 0.30) 38%, transparent 64%); }
.cat-card.has-photo .cat-tag { position: absolute; top: 16px; left: 16px; z-index: 3; }
.cat-card.has-photo .cat-arrow { position: absolute; top: 14px; right: 14px; z-index: 3; margin: 0; }
.cat-card.has-photo .cat-foot { position: relative; z-index: 3; }
.cat-card.has-photo .cat-foot h3 { color: #fff; }
.cat-card.has-photo .cat-foot p { color: rgba(255, 255, 255, 0.82); }

.cat-lens-overlay, .cat-shine { display: none; }

/* ============================================================
   PRODUCT DETAIL PAGE (PDP)
   ============================================================ */
.pdp { padding-top: 140px; }
.crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.crumb a { transition: color 0.2s; }
.crumb a:hover { color: var(--gold); }
.crumb span { color: var(--ink); }

.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.pdp-media .visual-core.center { aspect-ratio: 4 / 3.4; }
.pdp-glasses { width: 78%; color: var(--ink); transition: transform 0.6s var(--ease-out); }
.pdp-media .badge { z-index: 2; }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumb { flex: 1; aspect-ratio: 4 / 3; border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; padding: 8%; border: 1px solid var(--hair); background: linear-gradient(160deg, #ffffff, #eceef1); cursor: pointer; transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
/* fallback (sem foto): mantém fundo do tema e o desenho */
.thumb.is-svg { background: linear-gradient(160deg, var(--bg-2), var(--bg)); color: var(--ink); }
.thumb.is-svg svg { width: 70%; }

.pdp-info .product-brand { font-size: 0.78rem; }
.pdp-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 12px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.pdp-info .product-price { margin-bottom: 4px; }
.pdp-info .product-price .now { font-size: 2rem; }
.pdp-info .product-price .old { font-size: 1rem; }

.pdp-colors { margin: 24px 0; }
.pdp-colors .label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip:hover { border-color: var(--gold); }
.chip.active { border-color: var(--gold); background: var(--surface-2); color: var(--ink); }

.pdp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 24px; }
.pdp-perks { display: grid; gap: 12px; margin: 24px 0; padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--inset-hi); }
.pdp-perks li { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.92rem; }
.pdp-perks svg { flex: none; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pdp-desc { color: var(--ink-soft); line-height: 1.75; margin: 4px 0 26px; }
.pdp-specs h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); margin-bottom: 8px; }
.pdp-specs table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pdp-specs td { padding: 11px 0; border-bottom: 1px solid var(--hair-soft); }
.pdp-specs td:first-child { color: var(--muted); }
.pdp-specs td:last-child { text-align: right; color: var(--ink); font-weight: 500; }

@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 30px; }
  .pdp-media { max-width: 520px; }
}

/* floating whatsapp */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 45;
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: #25d366; color: #062b15; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease-out);
}
.wa-float svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { max-width: 420px; }
  .feature-grid, .products { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento > .cat-card:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 50px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-card { font-size: 0.72rem; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .hero-stats { gap: 16px; }

  /* ---- nav mobile: esconde favoritos e tema, mantém conta + carrinho + hamburger ---- */
  #favBtn, .theme-toggle { display: none; }
  .nav-actions { gap: 6px; }
  .nav { padding: 8px 10px 8px 14px; gap: 10px; }

  /* ---- toast: mais largo e sem pill em mobile ---- */
  .toast-wrap { left: 16px; right: 16px; transform: none; align-items: stretch; }
  .toast {
    border-radius: 18px;
    padding: 14px 14px 14px 18px;
    font-size: 0.88rem;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    align-items: flex-start;
  }
  .toast-action { white-space: nowrap; align-self: center; flex-shrink: 0; }
}
@media (max-width: 440px) {
  .products { grid-template-columns: 1fr; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-eye, .floating-card, .marquee-track { animation: none !important; }
  * { scroll-behavior: auto; }
}

/* hover gating for touch */
@media (hover: none) {
  .cat-card:hover, .product:hover, .feature:hover { transform: none; }
}

/* ============================================================
   SACOLA (CARRINHO) + FAVORITOS
   ============================================================ */
/* ícones na navbar com contador */
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--hair); color: var(--ink-soft); cursor: pointer; transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out); }
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.is-fav-page { color: var(--gold); border-color: var(--gold); }
.icon-btn.is-fav-page svg { fill: var(--gold); stroke: var(--gold); }
.icon-btn .count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 10px; font-weight: 700; line-height: 1; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg-2); }
.icon-btn .count.show { display: inline-flex; }

/* coração nos cards de produto */
.product { position: relative; }
.product-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.product-foot { padding: 0 12px 12px; }
.fav-btn { position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg-2) 68%, transparent); border: 1px solid var(--hair); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink-soft); cursor: pointer; transition: transform 0.2s var(--ease-out), color 0.2s, border-color 0.2s, background 0.2s; }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill 0.2s, stroke 0.2s, transform 0.2s var(--ease-out); }
.fav-btn:hover { transform: scale(1.08); color: var(--gold); border-color: var(--gold); }
.fav-btn:active svg { transform: scale(0.82); }
.fav-btn.is-fav { color: var(--gold); border-color: var(--gold); }
.fav-btn.is-fav svg { fill: var(--gold); stroke: var(--gold); }

/* coração grande na página de produto */
.fav-toggle { flex: none; width: 54px; height: 54px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--hair); color: var(--ink-soft); cursor: pointer; transition: transform 0.2s var(--ease-out), color 0.2s, border-color 0.2s; }
.fav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill 0.2s, stroke 0.2s, transform 0.2s var(--ease-out); }
.fav-toggle:hover { color: var(--gold); border-color: var(--gold); }
.fav-toggle:active svg { transform: scale(0.85); }
.fav-toggle.is-fav { color: var(--gold); border-color: var(--gold); }
.fav-toggle.is-fav svg { fill: var(--gold); stroke: var(--gold); }

/* drawers */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(420px, 92vw); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--hair); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.5); transform: translateX(100%); transition: transform 0.45s var(--ease-drawer); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--hair); }
.drawer-head h3 { font-size: 1.2rem; }
.drawer-count { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.drawer-close { width: 38px; height: 38px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.drawer-close:hover { border-color: var(--gold); color: var(--gold); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--hair); }
.drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer-subtotal strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.4rem; }
.drawer-note { font-size: 0.78rem; color: var(--muted); margin: 0 0 14px; }
.drawer-link { display: block; width: 100%; margin-top: 12px; background: none; border: none; color: var(--muted); font-size: 0.85rem; cursor: pointer; text-decoration: underline; font-family: inherit; }
.drawer-link:hover { color: var(--ink); }

/* item de sacola/favorito */
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--hair-soft); }
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.ci-thumb { width: 74px; height: 74px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #fff, #eceef1); display: grid; place-items: center; padding: 7%; border: 1px solid var(--hair); }
.ci-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ci-thumb svg { width: 82%; color: #2b2b2b; }
.ci-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ci-brand { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.ci-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.ci-price { color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--hair); border-radius: 999px; width: max-content; overflow: hidden; }
.qty button { width: 30px; height: 30px; background: var(--surface); border: none; color: var(--ink); font-size: 1.05rem; cursor: pointer; transition: background 0.2s; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.ci-remove { width: 30px; height: 30px; border-radius: 999px; background: transparent; border: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color 0.2s, background 0.2s; }
.ci-remove:hover { color: #ef4444; background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; margin-top: 8px; width: max-content; }
.ci-lens-tag { font-size: 0.72rem; color: var(--gold); font-weight: 600; }

/* estado vazio */
.drawer-empty { margin: auto 0; text-align: center; padding: 40px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.de-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--hair); color: var(--muted); margin-bottom: 10px; }
.drawer-empty h4 { font-size: 1.1rem; color: var(--ink); }
.drawer-empty p { font-size: 0.9rem; max-width: 24em; margin: 0 0 12px; }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--bg-2); border: 1px solid var(--hair); box-shadow: var(--shadow); border-radius: 999px; padding: 11px 13px 11px 20px; font-size: 0.9rem; font-weight: 500; color: var(--ink); opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.toast.in { opacity: 1; transform: translateY(0) scale(1); }
.toast-action { background: var(--gold); color: var(--on-gold); border: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
  .toast { transition: opacity 0.2s; transform: none; }
}

/* ============================================================
   BUSCA (navbar) + CATÁLOGO
   ============================================================ */
.nav-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); transition: border-color 0.2s, background 0.2s; }
.nav-search:focus-within { border-color: var(--gold); background: var(--bg-2); }
.nav-search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.nav-search input { flex: 1; min-width: 0; border: none; background: none; color: var(--ink); font-family: inherit; font-size: 0.92rem; outline: none; }
.nav-search input::placeholder { color: var(--muted); }
.mobile-search { width: min(90%, 360px); display: flex; margin-bottom: 12px; }
.mobile-search input { width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font-family: inherit; font-size: 1rem; outline: none; }
.mobile-search input:focus { border-color: var(--gold); }
@media (max-width: 760px) { .nav-search { display: none; } }

.catalog { padding-top: 130px; padding-bottom: 80px; }
.cat-head { margin-bottom: 22px; }
.cat-head .section-title { margin-top: 14px; }
.cat-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.cat-searchbar { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); transition: border-color 0.2s; }
.cat-searchbar:focus-within { border-color: var(--gold); }
.cat-searchbar svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.cat-searchbar input { flex: 1; min-width: 0; border: none; background: none; color: var(--ink); font-family: inherit; font-size: 0.98rem; outline: none; }
.cat-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.cat-sort select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 0.9rem; cursor: pointer; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-empty { text-align: center; padding: 64px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.cat-empty .de-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--hair); color: var(--muted); margin-bottom: 8px; }
.cat-empty h3 { font-size: 1.3rem; color: var(--ink); }
.cat-empty p { font-size: 0.95rem; }

/* ============================================================
   CONTA DO CLIENTE
   ============================================================ */
/* botão de conta na navbar */
.account-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; gap: 0; }
.account-btn.logged { width: auto; gap: 8px; padding: 0 14px 0 12px; border-color: var(--gold); color: var(--gold); }
.acct-name { font-size: 0.82rem; font-weight: 600; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn:not(.logged) .acct-name { display: none; }
@media (max-width: 760px) { .account-btn.logged { padding: 0; gap: 0; } .account-btn.logged .acct-name { display: none; } }

.account-wrap { padding-top: 132px; padding-bottom: 80px; }

/* login / cadastro */
.auth-card { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.auth-title { font-size: 1.7rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 5px; background: var(--surface-2); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 999px; border: none; background: none; color: var(--ink-soft); font-family: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.auth-tab.active { background: var(--bg-2); color: var(--ink); box-shadow: var(--inset-hi); }
.auth-error { display: none; background: color-mix(in srgb, #ef4444 12%, transparent); border: 1px solid color-mix(in srgb, #ef4444 40%, transparent); color: #ef4444; font-size: 0.85rem; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.auth-error.show { display: block; }
.auth-form .co-field:last-of-type { margin-bottom: 18px; }
.auth-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 18px; }

/* painel da conta */
.account-grid { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.acct-hero { display: flex; align-items: center; gap: 18px; padding: 26px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--inset-hi); }
.acct-avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--on-gold); background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep)); }
.acct-hero > div { flex: 1; min-width: 0; }
.acct-greeting { font-size: 1.5rem; margin: 6px 0 2px; }
.acct-email { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; min-width: 0; }
.acct-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--inset-hi); }
.acct-card h2 { font-size: 1.12rem; margin-bottom: 18px; }
.acct-saved { display: none; margin-left: 12px; color: #10b981; font-size: 0.85rem; font-weight: 600; }
.acct-saved.show { display: inline; }
.acct-empty { color: var(--muted); font-size: 0.92rem; }
.acct-empty a { color: var(--gold); }
.acct-links { text-align: center; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.order-row:last-child { border-bottom: none; }
.order-row strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 0.98rem; }
.order-row span { font-size: 0.8rem; color: var(--muted); }
.order-right { display: flex; align-items: center; gap: 14px; }
.order-status { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #10b981; background: color-mix(in srgb, #10b981 14%, transparent); padding: 4px 10px; border-radius: 999px; }
.order-right b { font-family: "Bricolage Grotesque", sans-serif; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout { padding-top: 132px; padding-bottom: 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.co-back { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.co-back:hover { color: var(--gold); }
.co-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 8px 0 22px; }
.co-form { display: flex; flex-direction: column; gap: 18px; }
.co-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--inset-hi); }
.co-card h2 { font-size: 1.12rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.co-step { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.co-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.co-field.full { grid-column: 1 / -1; }
.co-field label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.co-field input, .co-field select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
.co-field input::placeholder { color: var(--muted); }
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.co-field.invalid input, .co-field.invalid select { border-color: #ef4444; }
.co-err { font-size: 0.74rem; color: #ef4444; display: none; }
.co-field.invalid .co-err { display: block; }

/* opções (entrega/pagamento) */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--hair); border-radius: 16px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.opt:hover { border-color: var(--gold); }
.opt input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.opt.sel { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.opt .o-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); flex: none; }
.opt .o-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-title { font-weight: 600; }
.opt .o-sub { font-size: 0.8rem; color: var(--muted); }
.opt .o-tag { font-size: 0.7rem; font-weight: 700; color: var(--on-gold); background: var(--gold); padding: 3px 9px; border-radius: 999px; flex: none; }
.pay-panel { margin-top: 6px; padding: 16px; border: 1px dashed var(--hair); border-radius: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.pay-panel .co-row { margin-top: 4px; }

/* resumo */
.co-summary { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.co-summary h2 { font-size: 1.1rem; margin-bottom: 16px; }
.sum-items { display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow: auto; margin-bottom: 16px; }
.sum-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; }
.sum-thumb { width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(160deg, #fff, #eceef1); border: 1px solid var(--hair); display: grid; place-items: center; padding: 6%; }
.sum-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sum-info { min-width: 0; }
.sum-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.sum-qty { font-size: 0.75rem; color: var(--muted); }
.sum-line { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.sum-rows { border-top: 1px solid var(--hair); padding-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.sum-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink-soft); }
.sum-row .free, .sum-row.discount span:last-child { color: #10b981; font-weight: 600; }
.sum-row.total { font-size: 1.3rem; font-weight: 700; color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 2px; }
.co-trust { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; color: var(--muted); font-size: 0.72rem; }
.co-trust span { display: inline-flex; align-items: center; gap: 5px; }

/* sucesso */
.co-success { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 24px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); }
.co-success.open { display: grid; }
.cs-card { max-width: 520px; width: 100%; background: var(--bg-2); border: 1px solid var(--hair); border-radius: var(--r-xl); padding: 42px 34px; text-align: center; box-shadow: var(--shadow); }
.cs-check { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: color-mix(in srgb, #10b981 16%, transparent); color: #10b981; }
.cs-check svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cs-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.cs-card > p { color: var(--ink-soft); font-size: 0.95rem; }
.cs-order { font-family: "Bricolage Grotesque", sans-serif; color: var(--gold); font-weight: 700; letter-spacing: 0.05em; margin: 10px 0 4px; font-size: 1.05rem; }
.cs-pix { background: var(--surface); border: 1px dashed var(--hair); border-radius: 14px; padding: 14px 16px; margin: 18px 0; font-size: 0.82rem; color: var(--ink-soft); word-break: break-all; }
.cs-pix b { color: var(--ink); }
.cs-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* header slim do checkout */
.secure-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.secure-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ── Frete grátis banner ── */
.frete-gratis {
  display: flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,.1); color: #16a34a;
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: .88rem; font-weight: 600;
}
.frete-gratis svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .co-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MODAL DE SELEÇÃO DE LENTES
   ============================================================ */
.lens-modal {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(6, 6, 7, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.lens-modal.open { opacity: 1; pointer-events: all; }
.lens-modal-card {
  background: var(--bg-2); border: 1px solid var(--hair);
  border-radius: var(--r-xl); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.55);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
  position: relative;
}
.lens-modal.open .lens-modal-card { transform: none; }
.lens-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--hair); background: var(--surface);
  color: var(--ink); display: grid; place-items: center;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.lens-modal-close:hover { background: var(--surface-2); border-color: var(--gold); }
.lens-modal-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* step bar */
.lens-steps-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 18px 54px 0 22px; flex-wrap: wrap;
}
.lsb-dot {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); white-space: nowrap;
  transition: color 0.25s; padding: 4px 0;
}
.lsb-dot.active { color: var(--gold); }
.lsb-dot.done { color: var(--ink-soft); }
.lsb-sep { flex: 1; height: 1px; background: var(--hair); min-width: 8px; }

/* product preview bar */
.lens-product-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; margin-top: 14px;
  background: var(--surface); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  font-size: 0.86rem; gap: 12px;
}
.lpb-name { color: var(--ink-soft); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpb-name span { color: var(--muted); margin-right: 5px; }
.lpb-price { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.lpb-price strong { color: var(--gold); }

/* panels */
.lens-steps-wrap { flex: 1; }
.lens-panel { display: none; padding: 20px 22px 8px; }
.lens-panel.active { display: block; }
.lens-panel-title { font-size: 1.1rem; margin-bottom: 4px; }
.lens-panel-sub { font-size: 0.83rem; color: var(--muted); margin: 0 0 14px; }

/* option buttons */
.lens-opts { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.lens-opt {
  width: 100%; text-align: left; padding: 13px 15px;
  background: var(--surface); border: 1.5px solid var(--hair);
  border-radius: var(--r-md); cursor: pointer; color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  display: flex; flex-direction: column; gap: 3px;
  font-family: inherit;
}
.lens-opt:hover { border-color: var(--gold); background: var(--surface-2); }
.lens-opt.active {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}
.lo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lo-name { font-weight: 600; font-size: 0.94rem; }
.lo-badge { font-size: 0.76rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lo-badge.accent { color: var(--gold); }
.lo-desc { font-size: 0.8rem; color: var(--muted); }

/* toggle options (step 3) */
.lens-toggle { flex-direction: row; align-items: center; gap: 11px; }
.lo-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--hair); background: var(--bg);
  display: grid; place-items: center; flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.lo-check svg { opacity: 0; transition: opacity 0.2s; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lens-toggle.active .lo-check { border-color: var(--gold); background: var(--gold); }
.lens-toggle.active .lo-check svg { opacity: 1; stroke: var(--on-gold); }
.lo-body { flex: 1; min-width: 0; }

/* upload boxes */
.lens-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.upload-box {
  border: 2px dashed var(--hair); border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s; overflow: hidden;
}
.upload-box:hover { border-color: var(--gold); }
.upload-box.done { border-color: #22c55e; border-style: solid; }
.ub-label {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; padding: 18px 10px; cursor: pointer;
  text-align: center; font-size: 0.82rem; color: var(--ink-soft);
}
.ub-label svg { color: var(--muted); flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ub-label span { font-weight: 600; font-size: 0.85rem; }
.ub-label small { font-size: 0.72rem; color: var(--muted); }
.ub-status { padding: 4px 10px 8px; font-size: 0.76rem; text-align: center; }
.ub-ok { color: #22c55e; font-weight: 600; word-break: break-all; }

/* modal footer */
.lens-modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px; border-top: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 0 0 calc(var(--r-xl) - 1px) calc(var(--r-xl) - 1px);
  flex-shrink: 0;
}
.lens-total-wrap { display: flex; flex-direction: column; font-size: 0.76rem; color: var(--muted); gap: 1px; }
.lens-total-wrap strong { font-size: 1.08rem; color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; }
.lens-foot-actions { display: flex; gap: 8px; }
.lens-foot-actions .btn { padding: 11px 18px; font-size: 0.88rem; }

@media (max-width: 560px) {
  .lens-uploads { grid-template-columns: 1fr; }
  .lens-modal-card { max-height: 96vh; }
}

/* ============================================================
   CORREÇÕES MOBILE — layout responsivo
   ============================================================ */

/* --- bento: cards menores ficam mais legíveis em telas ≤480px --- */
@media (max-width: 480px) {
  .bento { grid-auto-rows: 180px; gap: 10px; }
  .bento > .cat-card:first-child { grid-auto-rows: auto; }
  .cat-foot h3 { font-size: 1.1rem; }
  .bento > .cat-card:first-child .cat-foot h3 { font-size: 1.4rem; }
  .cat-foot p { font-size: 0.8rem; margin: 4px 0 0; }
  .cat-inner { padding: 14px; }
  /* foto não sangra além do card */
  .cat-photo { top: 6%; bottom: 36%; left: 5%; right: 5%; }
  .bento > .cat-card:first-child .cat-photo { top: 8%; bottom: 26%; }
}

/* --- produto: specs e CTA não sangram sob o botão WA --- */
@media (max-width: 760px) {
  .pdp-specs { padding-right: 0; }
  .pdp-specs table { table-layout: fixed; width: 100%; }
  .pdp-specs td:first-child { width: 45%; }
  .pdp-specs td:last-child { width: 55%; text-align: right; word-break: break-word; padding-right: 70px; }
  /* afasta conteúdo do botão flutuante do WA */
  .pdp-body { padding-bottom: 88px; }
}

/* --- hero: floating cards não saem do viewport --- */
@media (max-width: 480px) {
  .fc-1 { left: -2px !important; }
  .fc-2 { right: -2px !important; }
  .floating-card { font-size: 0.68rem; padding: 8px 12px; gap: 8px; }
}

/* --- feature grid: espaçamento correto em 1 coluna --- */
@media (max-width: 760px) {
  .feature-grid { gap: 12px; }
  .feature { padding: 20px; }
  .feature-ico { width: 44px; height: 44px; margin-bottom: 14px; }
}

/* --- checkout: campos não saem do viewport em telas muito pequenas --- */
@media (max-width: 400px) {
  .co-form, .co-summary { padding: 0; }
  .co-card { padding: 18px 14px; }
  .checkout { padding-top: 100px; }
}

/* --- evita scroll horizontal global em qualquer página --- */
html { overflow-x: hidden; }

/* --- catalogo: chips de filtro sem overflow --- */
@media (max-width: 560px) {
  .cat-chips { gap: 6px; }
  .cat-chip { font-size: 0.8rem; padding: 7px 12px; }
  .cat-toolbar { gap: 10px; }
  .cat-sort select { font-size: 0.82rem; padding: 9px 10px; }
}
