/* ==========================================================================
   AMBRA — styles
   Order: tokens · base · layout · components · home · shop · product ·
   checkout · dialogs & drawers · companion · responsive · reduced motion
   Fonts are loaded from assets/fonts/fonts.css (linked in each page head).
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --paper: #F4EDE2;
  --paper-2: #FBF7F0;
  --paper-3: #EBE1D1;
  --ink: #2A1B14;
  --ink-2: #5B4A40;
  --ink-3: #6B5E53;
  --line: #D6C8B4;
  --line-2: #E6DCCB;
  --espresso: #2A1B14;
  --green: #1E3F3B;
  --amber: #D98A2B;
  --amber-2: #E9A54D;
  --amber-ink: #8F5414;
  --danger: #A33A2A;
  --ok: #2F6B4F;

  --shadow-1: 0 1px 2px rgba(42, 27, 20, .06), 0 10px 26px rgba(42, 27, 20, .08);
  --shadow-2: 0 2px 6px rgba(42, 27, 20, .1), 0 28px 64px rgba(42, 27, 20, .2);

  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --f-ui: 'Vazirmatn', Tahoma, system-ui, -apple-system, sans-serif;
  --f-display: 'Markazi Text', 'Vazirmatn', Tahoma, serif;
  --f-latin: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 48px);
  --header-h: 72px;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* paper grain over the whole page (CSS only, no image request) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .075;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .165 0 0 0 0 .106 0 0 0 0 .078 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--amber-2); color: var(--espresso); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 700; }
h2 { font-size: clamp(2.7rem, 4.8vw, 4.5rem); line-height: 1; }
h3, h4 { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: .22em; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
dl, dd { margin: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; right: 10px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--espresso); color: var(--paper); text-decoration: none; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }
.ico { width: 22px; height: 22px; flex: none; }
.tone-bg { background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb)); }

/* ---------- 3. typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1rem;
  font-size: .84rem; font-weight: 700; color: var(--amber-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.latin { font-family: var(--f-latin); font-style: italic; font-weight: 400; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 46ch; }
.lead-sm { color: var(--ink-2); font-size: .98rem; }
.note { font-size: .86rem; color: var(--ink-3); }
.muted { color: var(--ink-2); }

/* ---------- 4. layout ---------- */
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(76px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head h2 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .96; }
.sec-head p { color: var(--ink-2); justify-self: start; max-width: 40ch; margin: 0; }
.sec-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sec-head--center p { justify-self: center; }

/* reveal on scroll (only when JS runs) */
html.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out), filter .9s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- 5. buttons, links, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .98rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .ico--fwd { transform: translateX(-4px); }
.btn--primary, .btn--dark { background: var(--espresso); color: var(--paper); }
.btn--primary:hover, .btn--dark:hover { background: #41291e; box-shadow: var(--shadow-1); }
.btn--amber { background: var(--amber); color: var(--espresso); }
.btn--amber:hover { background: var(--amber-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--espresso); }
.btn--light:hover { background: #fff; }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(244, 237, 226, .5); }
.btn--outline-light:hover { background: var(--paper); color: var(--espresso); border-color: var(--paper); }
.btn--sm { min-height: 40px; padding: .48em 1em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .8em 1.8em; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--ink); }
.link { font-weight: 700; color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 100% 100%; background-repeat: no-repeat; transition: background-size .45s var(--ease); }
.link:hover { background-size: 100% 1.5px; background-position: 0 100%; }
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .42em .95em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-2); font-size: .88rem; color: var(--ink);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip--x { padding-inline-end: .35em; }
.chip--x button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--paper-3); display: grid; place-items: center; font-size: 1rem; line-height: 1; }
.chip--x button:hover { background: var(--ink); color: var(--paper); }
.tag { display: inline-flex; padding: .18em .7em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--paper-3); color: var(--ink-2); }
.stars { display: inline-flex; gap: 2px; color: var(--amber-ink); }
.stars .ico { width: 15px; height: 15px; }
.stars .off { opacity: .25; }

/* ---------- 6. forms ---------- */
.form { display: block; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field > label, .field > .lbl { font-size: .92rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6em .95em; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper-2); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 138, 43, .3); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field input[dir="ltr"] { text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-msg { margin: .1rem 0 0; font-size: .85rem; line-height: 1.6; color: var(--ink-2); }
.field-msg.is-error { color: var(--danger); font-weight: 600; }
.field-msg.is-good { color: var(--ok); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--espresso); flex: none; }
.check a { color: var(--ink); font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative; display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-2); cursor: pointer;
  font-size: .92rem; user-select: none; transition: background-color .2s, border-color .2s, color .2s;
}
.opt:hover { border-color: var(--ink); }
.opt input, .face-opt input, .lens-opt input, .ship-opt input, .size-opt input, .view-btn input, .swatch input, .cmp input {
  position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none;
}
.opt:has(input:checked), .size-opt:has(input:checked), .ship-opt:has(input:checked), .face-opt:has(input:checked) {
  background: var(--espresso); color: var(--paper); border-color: var(--espresso);
}
.opt:has(input:focus-visible), .size-opt:has(input:focus-visible), .ship-opt:has(input:focus-visible), .face-opt:has(input:focus-visible), .lens-opt:has(input:focus-visible), .swatch:has(input:focus-visible) {
  outline: 3px solid var(--amber); outline-offset: 3px;
}
.opt:has(input:disabled) { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.opt .count { font-size: .8rem; opacity: .7; }
.swatch { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.swatch__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(42, 27, 20, .18), 0 2px 6px rgba(42, 27, 20, .12); transition: transform .25s var(--ease); }
.swatch:hover .swatch__dot { transform: scale(1.08); }
.swatch:has(input:checked) .swatch__dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

/* ---------- 7. header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s; }
.is-scrolled .site-header { background: rgba(244, 237, 226, .88); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); box-shadow: 0 1px 0 var(--line); }
.hdr { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 42px; height: 24px; color: var(--amber); }
.logo__txt { display: grid; line-height: 1; }
.logo__fa { font-family: var(--f-display); font-weight: 700; font-size: 2.1rem; line-height: .9; }
.logo__en { font-family: var(--f-latin); font-style: italic; font-size: .98rem; color: var(--ink-2); margin-top: 2px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a {
  padding: .45em .9em; border-radius: 999px; font-size: .95rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(42, 27, 20, .06); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-3); }
.hdr__actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; border: 0; background: transparent; color: var(--ink); transition: background-color .2s;
}
.icon-btn:hover { background: rgba(42, 27, 20, .08); }
.icon-btn .ico { width: 24px; height: 24px; }
.badge {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--amber); color: var(--espresso); font-size: 12px; font-weight: 800;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--paper);
}
.badge[hidden] { display: none; }
.menu-btn { display: none; }
.hdr__cta { margin-inline-start: 6px; }
.is-hit { animation: hit .6s var(--ease-out); }
@keyframes hit { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* ---------- 8. footer ---------- */
.site-footer { background: var(--paper-3); border-top: 1px solid var(--line); padding-block: 64px 88px; margin-top: 0; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.ft-brand p { color: var(--ink-2); max-width: 34ch; margin-top: 14px; }
.ft-title { font-size: .95rem; font-weight: 700; margin: 0 0 12px; }
.ft-list { list-style: none; display: grid; gap: 8px; }
.ft-list a, .ft-list button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; font-size: .95rem; text-align: start; }
.ft-list a:hover, .ft-list button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.ft-news { display: flex; gap: 8px; margin-top: 10px; }
.ft-news input {
  flex: 1; min-width: 0; min-height: 46px; padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-2);
  direction: ltr; text-align: left;
}
.ft-news input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 138, 43, .3); }
.ft-news input[aria-invalid="true"] { border-color: var(--danger); }
.ft-news .field-msg { margin-top: 8px; }
.ft-news-wrap { position: relative; }
.ft-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .88rem; color: var(--ink-2); }
.ft-bottom a { color: var(--ink); font-weight: 700; }
.demo-note { margin-top: 26px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 14px 18px; font-size: .9rem; color: var(--ink-2); }

/* ---------- 9. home: hero ---------- */
.hero { position: relative; padding-block: clamp(24px, 4vw, 56px) clamp(56px, 8vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(4.8rem, 10.6vw, 10.6rem); line-height: .86; margin: 0 0 .32em; word-spacing: -.14em; }
.hero__title .l { display: block; }
.hero__title .l2 { padding-inline-start: .85em; }
.hero__title em { position: relative; z-index: 0; font-style: normal; color: var(--amber-ink); white-space: nowrap; }
.hero__title em::after { content: ""; position: absolute; inset-inline: -.06em; bottom: .3em; height: .34em; background: rgba(217, 138, 43, .28); z-index: -1; border-radius: 6px; }
.hero__title .l { animation: focusIn 1.5s var(--ease-out) both; }
.hero__title .l2 { animation-delay: .18s; }
@keyframes focusIn { from { opacity: 0; filter: blur(12px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
.hero__eyebrow { animation: fadeUp 1s var(--ease-out) .05s both; }
.hero__lead { animation: fadeUp 1s var(--ease-out) .45s both; }
.hero__ctas { animation: fadeUp 1s var(--ease-out) .6s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero__meta li { display: grid; gap: 2px; }
.hero__meta strong { font-family: var(--f-display); font-size: 2.8rem; line-height: .95; font-weight: 700; }
.hero__meta span { font-size: .86rem; color: var(--ink-2); }
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; max-width: 560px; justify-self: end;
  aspect-ratio: 4 / 5; border-radius: 260px 260px 36px 36px;
  background: radial-gradient(70% 58% at 50% 40%, #fffaf2 0%, #f3e8d6 52%, #e2cfb3 100%);
  box-shadow: inset 0 0 0 1px rgba(42, 27, 20, .08), var(--shadow-2);
}
.hero__stage::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(42, 27, 20, .14); pointer-events: none; z-index: 2; }
.hero__stage::after {
  content: ""; position: absolute; left: 50%; top: 44%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(217, 138, 43, .3), rgba(217, 138, 43, 0) 70%); z-index: -1;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.hero__ghost { position: absolute; inset-inline-start: 6%; top: 3%; font-family: var(--f-display); font-size: clamp(12rem, 26vw, 22rem); line-height: 1; color: rgba(42, 27, 20, .055); user-select: none; z-index: 0; }
.hero__anchor { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; }
.hero__hint {
  position: absolute; inset-inline-start: 22px; bottom: 22px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: .5em 1em; border-radius: 999px; background: rgba(251, 247, 240, .9); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2);
}
.hero__hint .arrow { width: 16px; height: 16px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero__tag {
  position: absolute; left: 50%; top: 9%; transform: translateX(-50%); white-space: nowrap; z-index: 3; padding: .5em 1em; border-radius: 999px;
  background: var(--espresso); color: var(--paper); font-size: .84rem; font-weight: 600;
}

/* marquee + eye chart */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper-2); }
.marquee__track { display: flex; align-items: center; width: max-content; padding-block: .3em; animation: marquee 46s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 1.4rem; padding-inline: .7rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.05; white-space: nowrap; }
.marquee__item .ico { width: 1.25em; height: .72em; color: var(--amber); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.snellen { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: .25em .7em; padding: clamp(40px, 6vw, 70px) 0 0; font-family: var(--f-latin); color: var(--ink); line-height: 1; }
.snellen span:nth-child(1) { font-size: 3.6rem; } .snellen span:nth-child(2) { font-size: 3rem; } .snellen span:nth-child(3) { font-size: 2.45rem; }
.snellen span:nth-child(4) { font-size: 2rem; } .snellen span:nth-child(5) { font-size: 1.6rem; } .snellen span:nth-child(6) { font-size: 1.3rem; }
.snellen span:nth-child(7) { font-size: 1.05rem; } .snellen span:nth-child(8) { font-size: .86rem; }
.snellen__cap { width: 100%; text-align: center; font-size: .86rem; color: var(--ink-2); font-family: var(--f-ui); margin-top: 6px; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 56px); border-block: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r-lg); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; }
.trust__item + .trust__item { border-inline-start: 1px solid var(--line-2); }
.trust__item .ico { width: 30px; height: 30px; color: var(--amber-ink); margin-top: 2px; }
.trust__item b { display: block; font-size: 1rem; line-height: 1.5; }
.trust__item span { font-size: .88rem; color: var(--ink-2); line-height: 1.7; }

/* story + blueprint */
.story { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.story__art { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 36px); color: var(--ink-2); }
.story__art figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .86rem; color: var(--ink-2); }
.blueprint { width: 100%; height: auto; color: var(--ink); }
.blueprint text, .bp-label { font-family: var(--f-ui); font-size: 13px; font-weight: 600; fill: var(--ink); }
.story__text h2 { font-size: clamp(3rem, 6vw, 5.4rem); line-height: .96; margin-bottom: 1.2rem; }
.story__text p { color: var(--ink-2); max-width: 52ch; }
.story__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--f-display); font-size: clamp(3.2rem, 5.6vw, 4.8rem); line-height: .9; font-weight: 700; }
.stat span { font-size: .88rem; color: var(--ink-2); line-height: 1.6; display: block; margin-top: 6px; }
.story__note { font-size: .84rem; color: var(--ink-3); margin-top: 18px; }

/* picks */
.picks { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(16px, 2.4vw, 28px); }
.picks > :first-child { grid-row: span 2; }
.picks .pcard__stage { aspect-ratio: 5 / 4; }
.picks > :first-child .pcard__stage { aspect-ratio: 4 / 5.2; }
.pick-note { margin-top: auto; padding: 24px 26px; border-radius: 22px; background: var(--espresso); color: var(--paper); display: grid; gap: 10px; }
.pick-note .eyebrow { color: var(--amber-2); margin: 0; }
.pick-note h3 { color: var(--paper); font-family: var(--f-display); font-size: 2.3rem; line-height: 1; }
.pick-note p { margin: 0; color: rgba(244, 237, 226, .86); font-size: .95rem; line-height: 1.85; }

/* product card */
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard__stage {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb));
  box-shadow: inset 0 0 0 1px rgba(42, 27, 20, .05);
}
.pcard__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-120%); transition: transform 1.1s var(--ease);
}
.pcard__link { position: absolute; inset: 0; display: block; }
.pcard__svg, .pcard__link .glasses {
  position: absolute; left: 50%; top: 50%; width: 80%; height: auto; transform: translate(-50%, -52%);
  transition: transform .8s var(--ease-out); filter: drop-shadow(0 12px 14px rgba(42, 27, 20, .12));
}
.pcard__disc { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: var(--espresso); color: var(--paper); font-size: .8rem; font-weight: 700; }
.wish-btn {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(42, 27, 20, .12); background: rgba(251, 247, 240, .92); color: var(--ink);
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn.is-on { color: var(--danger); background: #fff; }
.wish-btn.is-on .ico path { fill: currentColor; }
.wish-btn .ico { width: 21px; height: 21px; }
.pcard__body { padding: 16px 4px 0; display: grid; gap: 4px; }
.pcard__brand { margin: 0; font-size: .78rem; font-weight: 700; color: var(--amber-ink); }
.pcard__name { font-size: 1.22rem; line-height: 1.35; margin-top: 2px; }
.pcard__name a { color: var(--ink); text-decoration: none; }
.pcard__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pcard__model { font-family: var(--f-latin); font-style: italic; font-weight: 400; color: var(--ink-3); font-size: .98rem; margin-inline-start: 2px; }
.pcard__meta { margin: 0; font-size: .86rem; color: var(--ink-2); }
.pcard__price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; font-size: .95rem; }
.pcard__price strong { font-size: 1.14rem; font-weight: 800; }
.pcard__price small { color: var(--ink-2); }
.pcard__price s { color: var(--ink-3); font-size: .88rem; margin-inline-start: 4px; }
.pcard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cmp { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); cursor: pointer; margin-top: 6px; }
.cmp input { position: static; width: 18px; height: 18px; opacity: 1; pointer-events: auto; accent-color: var(--espresso); margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .pcard__stage::before { transform: translateX(120%); }
  .pcard:hover .pcard__svg, .pcard:hover .pcard__link .glasses { transform: translate(-50%, -56%) rotate(-2.5deg) scale(1.03); }
}

/* shape explorer */
.shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shape-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  min-height: 176px; padding: 16px 12px 14px; border-radius: 24px; background: var(--paper-2); border: 1px solid var(--line-2);
  text-decoration: none; color: var(--ink); text-align: center; transition: transform .45s var(--ease-out), border-color .3s, box-shadow .3s;
}
.shape-tile:nth-child(3n+2) { margin-top: 30px; }
.shape-tile .glasses { width: 76%; height: auto; transition: transform .7s var(--ease-out); }
.shape-tile b { font-size: 1.02rem; }
.shape-tile small { font-size: .8rem; color: var(--ink-2); }
.shape-tile:hover, .shape-tile:focus-visible { transform: translateY(-5px); border-color: var(--ink); box-shadow: var(--shadow-1); }
.shape-tile:hover .glasses { transform: rotate(-3deg) scale(1.06); }
.shape-tile:focus-visible { border-radius: 24px; }

/* frame finder */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.finder__panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 40px); }
.step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1.04rem; }
.step legend .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--espresso); color: var(--paper); font-size: .86rem; flex: none; }
.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.face-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 18px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: .84rem; text-align: center; transition: border-color .2s, background-color .2s, color .2s;
}
.face-opt:hover { border-color: var(--ink); }
.face-opt svg { width: 40px; height: 48px; color: currentColor; }
.face-opt:has(input:checked) svg { color: var(--paper); }
.face-opt:has(input:checked) { color: var(--paper); }
.face-opt:has(input:checked) svg * { fill: rgba(233, 165, 77, .55); }
.face-opt svg * { fill: rgba(42, 27, 20, .08); stroke: currentColor; stroke-width: 2.4; }
.budget-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hits { display: grid; gap: 14px; align-content: start; }
.hit {
  display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: 24px;
  background: var(--paper-2); border: 1px solid var(--line-2); transition: border-color .25s, transform .3s var(--ease-out);
}
.hit:hover { border-color: var(--ink); transform: translateX(-4px); }
.hit h3 a { color: var(--ink); text-decoration: none; }
.hit h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hit__stage { position: relative; border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.hit__stage .glasses { width: 100%; height: auto; }
.hit__rank { position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--espresso); color: var(--paper); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.hit h3 { font-size: 1.12rem; margin-bottom: 4px; }
.hit p { margin: 0 0 8px; font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
.hit__why { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hit__why .tag { background: rgba(217, 138, 43, .16); color: var(--ink); }
.hit__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hit__row strong { font-size: 1.05rem; }
.finder__empty { padding: 26px; border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--ink-2); }

/* lens lab (dark) */
.lab { position: relative; isolation: isolate; overflow: hidden; background: var(--green); color: var(--paper); }
.lab::before { content: ""; position: absolute; inset: -30% -10%; z-index: -1; background: radial-gradient(38% 34% at 74% 22%, rgba(233, 165, 77, .2), transparent 72%), radial-gradient(40% 40% at 10% 100%, rgba(244, 237, 226, .08), transparent 70%); }
.lab h2 { color: var(--paper); font-size: clamp(2.9rem, 5.2vw, 4.9rem); line-height: .98; margin-bottom: 1.1rem; }
.lab .eyebrow { color: var(--amber-2); }
.lab .lead, .lab p { color: rgba(244, 237, 226, .8); }
.lab__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.lab__stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 50%; display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(circle at 50% 42%, rgba(244, 237, 226, .16), rgba(244, 237, 226, .03) 58%, rgba(244, 237, 226, 0) 72%);
  border: 1px solid rgba(244, 237, 226, .12);
}
.lab__stage::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(244, 237, 226, .18); }
.lab__stage .glasses { width: 86%; height: auto; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .35)); }
.lab__stage .lens-fill { transition: fill .7s var(--ease), fill-opacity .7s var(--ease); }
.lab__readout { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; font-size: .95rem; color: rgba(244, 237, 226, .85); }
.lab__readout b { color: var(--paper); }
.lens-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.lens-list legend { padding: 0; margin-bottom: 12px; font-weight: 700; color: var(--paper); }
.lens-opt {
  position: relative; display: grid; gap: 4px; padding: 14px 16px; border-radius: 20px; cursor: pointer;
  border: 1px solid rgba(244, 237, 226, .22); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.lens-opt:hover { border-color: rgba(244, 237, 226, .6); transform: translateY(-2px); }
.lens-opt:has(input:checked) { background: var(--paper); color: var(--espresso); border-color: var(--paper); }
.lens-opt:has(input:focus-visible) { outline: 3px solid var(--amber-2); outline-offset: 3px; }
.lens-opt .lens-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); margin-bottom: 4px; }
.lens-opt b { font-size: 1.02rem; }
.lens-opt small { font-size: .82rem; opacity: .82; line-height: 1.6; }
.lens-opt .price { font-size: .8rem; font-weight: 700; color: var(--amber-2); }
.lens-opt:has(input:checked) .price { color: var(--amber-ink); }
.lens-note { margin-top: 18px; font-size: .9rem; color: rgba(244, 237, 226, .72); }

/* reviews */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.score { display: flex; align-items: center; gap: 18px; }
.score strong { font-family: var(--f-display); font-size: clamp(4.4rem, 8vw, 6.4rem); line-height: .8; font-weight: 700; }
.score p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.rv-controls { display: flex; gap: 8px; }
.rv-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
.rv { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); }
.rv:nth-child(even) { background: var(--paper-3); }
.rv blockquote { margin: 0; font-size: 1.02rem; line-height: 1.95; }
.rv__who { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); flex-wrap: wrap; }
.rv__who b { color: var(--ink); }
.rv__prod { font-size: .84rem; color: var(--amber-ink); font-weight: 700; text-decoration: none; }
.rv__prod:hover { text-decoration: underline; }

/* appointment band */
.band { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(34px, 6vw, 84px); border-radius: var(--r-xl); background: var(--espresso); color: var(--paper); }
.band::before { content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 480px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(233, 165, 77, .28); box-shadow: 0 0 0 60px rgba(233, 165, 77, .04), 0 0 0 120px rgba(233, 165, 77, .03); z-index: -1; }
.band h2 { color: var(--paper); font-size: clamp(3rem, 6vw, 5.4rem); line-height: .96; }
.band p { color: rgba(244, 237, 226, .8); max-width: 50ch; }
.band .eyebrow { color: var(--amber-2); }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band__list { list-style: none; display: grid; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: rgba(244, 237, 226, .06); border: 1px solid rgba(244, 237, 226, .14); }
.band__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: rgba(244, 237, 226, .9); }
.band__list .ico { color: var(--amber-2); margin-top: 4px; width: 20px; height: 20px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 4px; cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; font-weight: 400; transition: transform .4s var(--ease-out), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.faq details > div { padding: 0 4px 24px; color: var(--ink-2); max-width: 62ch; }
.faq details[open] > div { animation: fadeUp .5s var(--ease-out) both; }

/* final cta */
.final { text-align: center; padding-block: clamp(90px, 13vw, 170px); position: relative; overflow: hidden; }
.final h2 { font-size: clamp(3.8rem, 10vw, 9.4rem); line-height: .9; }
.final h2 em { font-style: normal; color: var(--amber-ink); }
.final p { color: var(--ink-2); margin: 20px auto 34px; max-width: 42ch; }
.final__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.final__ring { position: absolute; left: 50%; top: 50%; width: min(720px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(42, 27, 20, .08); pointer-events: none; }
.final__ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(42, 27, 20, .1); }

/* ---------- 10. shop ---------- */
.page-head { padding-block: clamp(34px, 6vw, 72px) clamp(20px, 3vw, 36px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: end; }
.page-head h1 { font-size: clamp(3.6rem, 8.4vw, 7.4rem); line-height: .88; }
.page-head p { color: var(--ink-2); max-width: 52ch; margin: 14px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0 0 18px; font-size: .88rem; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "‹"; margin-inline: 8px; color: var(--ink-3); font-size: 1.1rem; line-height: 1; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.psearch { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-2); transition: border-color .2s, box-shadow .2s; }
.psearch:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 138, 43, .25); }
.psearch .ico { color: var(--ink-2); }
.psearch input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; font-size: 1rem; outline: none; }
.psearch input::placeholder { color: var(--ink-3); }
.psearch input::-webkit-search-cancel-button { display: none; }
.shop { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 130px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 32px); overflow: auto; padding: 22px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); scrollbar-width: thin; }
.filters__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.filters__head h2 { font-family: var(--f-ui); font-size: 1.1rem; font-weight: 700; }
.filters__close { display: none; }
.fgroup { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.fgroup legend { padding: 0; margin-bottom: 10px; font-size: .95rem; font-weight: 700; }
.fgroup .opts { gap: 6px; }
.fgroup--rows .opts { display: grid; gap: 6px; }
.fgroup--rows .opt { justify-content: space-between; border-radius: 14px; }
.fgroup--rows .opt input { position: absolute; }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .95rem; cursor: pointer; padding-top: 4px; }
.toggle-line input { width: 42px; height: 24px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background-color .25s; flex: none; }
.toggle-line input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper-2); transition: transform .3s var(--ease-out); }
.toggle-line input:checked { background: var(--espresso); }
.toggle-line input:checked::after { transform: translateX(-18px); }
[dir="rtl"] .toggle-line input:checked::after { transform: translateX(-18px); }
.toggle-line input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar__count { font-size: .94rem; color: var(--ink-2); }
.toolbar__count b { color: var(--ink); }
.filters-toggle { display: none; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.sort select { min-height: 42px; padding: .4em 2.2em .4em .9em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-2); color: var(--ink); font-weight: 600; }
.sort select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 138, 43, .25); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; margin-bottom: 20px; }
.active-filters:empty { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 30px 20px; }
.grid .pcard { animation: cardIn .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; }
.more p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.empty-shop { grid-column: 1 / -1; text-align: center; padding: 64px 22px; border-radius: var(--r-lg); border: 1px dashed var(--line); background: var(--paper-2); }
.empty-shop h2 { font-family: var(--f-display); font-size: 3rem; margin-bottom: 10px; }
.empty-shop p { color: var(--ink-2); margin-bottom: 22px; }
.filters-scrim { display: none; }
.compare-bar {
  position: fixed; bottom: 16px; left: 50%; z-index: 62; width: min(640px, calc(100vw - 24px)); transform: translate(-50%, 180%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--espresso); color: var(--paper); box-shadow: var(--shadow-2); transition: transform .6s var(--ease-out);
}
.compare-bar.is-on { transform: translate(-50%, 0); }
.compare-bar:not(.is-on) { visibility: hidden; transition: transform .6s var(--ease-out), visibility 0s linear .6s; }
.compare-bar__items { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; font-size: .9rem; }
.compare-bar__items span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 10px; border-radius: 999px; background: rgba(244, 237, 226, .14); }
.compare-bar .btn { flex: none; }
.compare-bar .link-btn { color: rgba(244, 237, 226, .8); flex: none; }
.compare-bar .link-btn:hover { color: var(--paper); }
body.has-compare .tip-pill { opacity: 0; pointer-events: none; }

/* ---------- 11. product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 84px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; aspect-ratio: 5 / 4;
  border-radius: var(--r-xl); background: radial-gradient(90% 80% at 50% 28%, var(--tone-a, #fbf7f0), var(--tone-b, #e7d6bb));
  box-shadow: inset 0 0 0 1px rgba(42, 27, 20, .05);
}
.pdp__stage::after { content: ""; position: absolute; inset: 14px; border-radius: calc(var(--r-xl) - 14px); border: 1px solid rgba(42, 27, 20, .08); pointer-events: none; }
.pdp__art { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.pdp__art .glasses { width: 80%; height: auto; transition: opacity .35s var(--ease); }
.pdp__art .face-svg { width: auto; height: 100%; max-height: 100%; }
.pdp__stage.is-face { aspect-ratio: 4 / 5; }
.pdp__stage.is-fading > * { opacity: 0; }
.pdp__stage-tag { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(251, 247, 240, .85); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.pdp__stage-note { position: absolute; bottom: 16px; inset-inline: 16px; z-index: 2; font-size: .82rem; color: var(--ink-2); text-align: center; }
.pdp__stage .lens-fill { transition: fill .6s var(--ease), fill-opacity .6s var(--ease); }
.views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.view-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-2); font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.view-btn:hover { border-color: var(--ink); }
.view-btn[aria-pressed="true"] { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.view-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.faceSel { margin-top: 14px; border: 0; padding: 0; min-width: 0; }
.faceSel legend { font-size: .9rem; font-weight: 700; margin-bottom: 8px; padding: 0; }
.pdp__info { padding-top: 4px; }
.pdp__brand { margin: 0 0 6px; font-size: .86rem; font-weight: 700; color: var(--amber-ink); }
.pdp__name { font-family: var(--f-display); font-size: clamp(3.4rem, 6.4vw, 5.6rem); line-height: .88; margin-bottom: 4px; }
.pdp__model { font-family: var(--f-latin); font-style: italic; font-size: 1.32rem; color: var(--ink-2); margin-bottom: 14px; }
.pdp__rating { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); flex-wrap: wrap; }
.pdp__rating a { color: var(--ink); font-weight: 700; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 20px 0 6px; }
.pdp__price strong { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.pdp__price small { font-size: .95rem; color: var(--ink-2); }
.pdp__price s { font-size: 1.04rem; color: var(--ink-3); }
.pdp__stock { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ok); margin: 0 0 6px; }
.pdp__stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(47, 107, 79, .15); }
.pdp__stock.is-low { color: var(--amber-ink); }
.pdp__stock.is-low::before { box-shadow: 0 0 0 4px rgba(217, 138, 43, .2); }
.pdp__stock.is-out { color: var(--danger); }
.pdp__stock.is-out::before { box-shadow: none; }
.pdp__desc { color: var(--ink-2); margin: 16px 0 0; max-width: 56ch; }
.pdp__opt { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.pdp__opt legend { padding: 0; margin-bottom: 10px; font-size: .96rem; font-weight: 700; }
.pdp__opt legend span { font-weight: 500; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.lens-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lens-chips .opt small { font-size: .78rem; opacity: .75; }
.size-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.size-opt { position: relative; display: grid; gap: 2px; justify-items: center; padding: 12px 8px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper-2); cursor: pointer; text-align: center; transition: all .2s; }
.size-opt:hover { border-color: var(--ink); }
.size-opt b { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; }
.size-opt small { font-size: .78rem; color: var(--ink-2); }
.size-opt:has(input:checked) small { color: var(--line-2); }
.size-opt:has(input:checked) { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.size-opt:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.size-hint { font-size: .86rem; color: var(--ink-2); margin: 10px 0 0; }
.rx { margin-top: 26px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); padding: 0 20px; }
.rx summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 700; }
.rx summary::-webkit-details-marker { display: none; }
.rx summary small { display: block; font-weight: 400; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.rx summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s var(--ease-out); }
.rx[open] summary::after { transform: rotate(45deg); }
.rx__body { padding: 0 0 20px; }
.rx__body > p { font-size: .9rem; color: var(--ink-2); }
.rx-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.rx-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.rx-table th, .rx-table td { padding: 8px 6px; text-align: start; font-size: .9rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.rx-table th { font-weight: 700; color: var(--ink-2); font-size: .84rem; }
.rx-table input { width: 100%; min-height: 42px; padding: .4em .6em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
.rx-table input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 138, 43, .25); }
.rx-table input[aria-invalid="true"] { border-color: var(--danger); }
.rx-table th[scope="row"] { width: 22%; }
.rx-note { font-size: .84rem; color: var(--ink-2); margin: 0 0 10px; }
.buy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 28px; }
.qty-lg { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-2); padding: 3px; }
.qty-lg button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; }
.qty-lg button:hover { background: var(--paper-3); }
.qty-lg output { min-width: 2.4em; text-align: center; font-weight: 700; font-size: 1.04rem; }
.buy .btn--lg { width: 100%; }
.wish-lg { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper-2); display: grid; place-items: center; color: var(--ink); transition: all .2s; }
.wish-lg:hover { border-color: var(--ink); }
.wish-lg.is-on { color: var(--danger); border-color: var(--danger); }
.wish-lg.is-on .ico path { fill: currentColor; }
.buy-msg { font-size: .9rem; color: var(--ink-2); margin: 12px 0 0; min-height: 1.5em; }
.assure { list-style: none; display: grid; gap: 10px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.assure li { display: flex; gap: 12px; align-items: center; font-size: .94rem; color: var(--ink-2); }
.assure .ico { color: var(--amber-ink); }
.assure button { background: none; border: 0; padding: 0; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: inherit; }
.tabs { padding-block: clamp(30px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.tablist { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 14px 18px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.tabpanel { padding: 30px 0 0; animation: fadeUp .5s var(--ease-out) both; }
.tabpanel[hidden] { display: none; }
.tabpanel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.tabpanel h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tabpanel p, .tabpanel li { color: var(--ink-2); max-width: 62ch; }
.tabpanel ul.checks { list-style: none; display: grid; gap: 10px; margin: 16px 0 0; }
.tabpanel ul.checks li { display: flex; gap: 10px; align-items: flex-start; }
.tabpanel ul.checks .ico { width: 18px; height: 18px; color: var(--amber-ink); margin-top: 6px; }
.spec-dl { border-top: 1px solid var(--line); }
.spec-dl div { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.spec-dl dt { color: var(--ink-2); font-size: .92rem; }
.spec-dl dd { font-weight: 600; color: var(--ink); }
.reviews-panel .rv-list { display: grid; gap: 16px; }
.reviews-panel .rv { background: var(--paper-2); }
.reviews-panel .summary-line { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.reviews-panel .summary-line strong { font-family: var(--f-display); font-size: 3.4rem; line-height: .9; }
.related { padding-block: clamp(50px, 8vw, 100px); border-top: 1px solid var(--line); }
.related__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.related__head h2 { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: .95; }
.rel-controls { display: flex; gap: 8px; }
.rel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rel-track > * { scroll-snap-align: start; }
.buybar {
  position: fixed; inset: auto 0 0 0; z-index: 58; display: none; align-items: center; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.buybar.is-on { transform: none; }
.buybar__price { display: grid; line-height: 1.3; min-width: 0; }
.buybar__price small { font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price strong { font-size: 1.05rem; }
.buybar .btn { margin-inline-start: auto; }

/* ---------- 12. checkout ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(50px, 7vw, 100px); }
.co-steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 26px; padding: 0; font-size: .9rem; color: var(--ink-2); }
.co-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); }
.co-steps li[aria-current="step"] { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.co-steps .n { font-weight: 800; }
.co-form { display: grid; gap: 18px; }
.co-form fieldset { margin: 0; min-width: 0; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--paper-2); }
.co-form legend { padding: 0 6px; font-family: var(--f-display); font-size: 2.2rem; line-height: 1.1; font-weight: 700; }
.co-form legend + p { margin: 0 0 16px; color: var(--ink-2); font-size: .92rem; }
.ship-opts { display: grid; gap: 10px; }
.ship-opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; transition: all .2s; }
.ship-opt:hover { border-color: var(--ink); }
.ship-opt:has(input:checked) { background: var(--paper-2); border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); color: var(--ink); }
.ship-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-2); display: grid; place-items: center; }
.ship-opt:has(input:checked) .radio { border-color: var(--espresso); }
.ship-opt:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--espresso); }
.ship-opt b { display: block; font-size: .98rem; }
.ship-opt small { color: var(--ink-2); font-size: .84rem; }
.ship-opt .price { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.ship-opt:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.ship-opt input, .pay-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; transition: all .2s; }
.pay-opt b { font-size: .98rem; }
.pay-opt small { font-size: .84rem; color: var(--ink-2); line-height: 1.6; }
.pay-opt:hover { border-color: var(--ink); }
.pay-opt:has(input:checked) { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.pay-opt:has(input:checked) small { color: rgba(244, 237, 226, .8); }
.pay-opt:has(input:focus-visible), .co-form :focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.co-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.co-actions .btn { min-width: 240px; }
.co-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--espresso); color: var(--paper); }
.co-summary h2 { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--paper); margin-bottom: 18px; }
.co-lines { list-style: none; display: grid; gap: 14px; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid rgba(244, 237, 226, .18); }
.co-line { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.co-line__thumb { width: 62px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb)); }
.co-line__thumb .glasses { width: 92%; height: auto; }
.co-line b { display: block; font-size: .96rem; line-height: 1.4; }
.co-line small { font-size: .8rem; color: rgba(244, 237, 226, .72); display: block; line-height: 1.6; }
.co-line span { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.co-sum { display: grid; gap: 10px; margin: 0; }
.co-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: rgba(244, 237, 226, .85); }
.co-sum dd { margin: 0; font-weight: 700; color: var(--paper); white-space: nowrap; }
.co-sum .is-good dd { color: var(--amber-2); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(244, 237, 226, .18); }
.co-total strong { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.co-total span { font-size: .9rem; color: rgba(244, 237, 226, .78); }
.co-coupon { display: flex; gap: 8px; margin-top: 18px; }
.co-coupon input { flex: 1; min-width: 0; min-height: 44px; padding: .4em .9em; border-radius: 999px; border: 1.5px solid rgba(244, 237, 226, .3); background: rgba(244, 237, 226, .08); color: var(--paper); direction: ltr; text-align: left; }
.co-coupon input::placeholder { color: rgba(244, 237, 226, .55); }
.co-coupon input:focus { outline: none; border-color: var(--amber-2); }
.co-coupon .btn { min-height: 44px; background: var(--paper); color: var(--espresso); }
.co-coupon + .field-msg { color: rgba(244, 237, 226, .85); }
.co-coupon + .field-msg.is-error { color: #ffb4a3; }
.co-coupon + .field-msg.is-good { color: #9fdcbf; }
.co-summary .sum__note { font-size: .84rem; color: rgba(244, 237, 226, .72); margin-top: 12px; }
.co-done { padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px); border-radius: var(--r-xl); background: var(--paper-2); border: 1px solid var(--line); text-align: center; display: grid; justify-items: center; gap: 14px; }
.co-done__mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: var(--amber-2); }
.co-done__mark .ico { width: 40px; height: 40px; }
.co-done h2 { font-size: clamp(3rem, 6vw, 5rem); line-height: .95; }
.co-done p { color: var(--ink-2); max-width: 46ch; margin: 0; }
.co-done code { font-family: var(--f-latin); font-size: 1.6rem; letter-spacing: .04em; padding: .2em .6em; border-radius: 12px; background: var(--paper-3); direction: ltr; display: inline-block; }
.co-empty { text-align: center; padding: clamp(50px, 8vw, 110px) 20px; border-radius: var(--r-xl); background: var(--paper-2); border: 1px dashed var(--line); }
.co-empty h1 { font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: .95; margin-bottom: 14px; }
.co-empty p { color: var(--ink-2); margin-bottom: 26px; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(244, 237, 226, .35); border-top-color: currentColor; animation: spin .8s linear infinite; vertical-align: -4px; margin-inline-start: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 13. dialogs, drawers, toasts ---------- */
dialog.dlg {
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(560px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: visible;
}
dialog.dlg::backdrop { background: rgba(42, 27, 20, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.dlg[open] { animation: dlgIn .45s var(--ease-out); }
dialog.dlg[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dlg__inner { position: relative; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-xl); background: var(--paper-2); box-shadow: var(--shadow-2); overflow: hidden; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex: none; }
.dlg__title { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.dlg__body { overflow: auto; min-height: 0; flex: 1; padding-inline-end: 2px; overscroll-behavior: contain; }
dialog.dlg.dlg--wide { width: min(1000px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
.dlg--book .dlg__inner, .dlg--info .dlg__inner { max-height: calc(100dvh - 24px); }
.dlg--info .dlg__body h3 { font-size: 1.14rem; margin-bottom: 8px; }
.dlg__body ul:not(.cart-list):not(.wish-list):not(.contact-list):not(.search-results):not(.menu-list) { margin: 0 0 14px; padding-inline-start: 1.2rem; color: var(--ink-2); }
.dlg__body ul li { margin-bottom: 6px; }
.dlg__body p { color: var(--ink-2); }
.dlg__body .lead-sm { margin-bottom: 18px; }
.dlg__body .contact-list { list-style: none; display: grid; gap: 14px; margin: 0 0 18px; padding: 0; }
.contact-list li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.contact-list span:first-child { font-size: .84rem; color: var(--ink-3); }
.contact-list a { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.dlg--info .blueprint { margin-bottom: 16px; background: var(--paper); border-radius: var(--r-lg); padding: 8px; border: 1px solid var(--line-2); }

/* menu (full screen on mobile) */
dialog.dlg--menu { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
.dlg--menu .dlg__inner { height: 100dvh; max-height: 100dvh; border-radius: 0; box-shadow: none; padding: 16px var(--gut) 28px; }
.menu-list { list-style: none; display: grid; gap: 4px; margin: 10px 0 30px; }
.menu-list a { display: block; padding: 10px 0; font-family: var(--f-display); font-size: 3.1rem; line-height: 1.05; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.menu-list a:hover, .menu-list a[aria-current="page"] { color: var(--amber-ink); }

/* search */
dialog.dlg--search { margin-top: 9vh; margin-bottom: auto; width: min(760px, calc(100vw - 24px)); }
.dlg--search .dlg__inner { padding: clamp(18px, 3vw, 28px); }
.search-form { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.search-form .ico { color: var(--ink-2); width: 26px; height: 26px; }
.search-form input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: transparent; font-size: 1.22rem; outline: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form input::placeholder { color: var(--ink-3); }
.search-form:focus-within { border-color: var(--amber-ink); }
.search-hint { margin-top: 18px; }
.search-hint p { margin: 0 0 10px; font-size: .9rem; color: var(--ink-2); }
.search-hint .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-results { list-style: none; margin: 14px 0 0; display: grid; gap: 4px; max-height: 52dvh; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 18px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus-visible { background: var(--paper); }
.search-thumb { flex: none; width: 76px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb)); }
.search-thumb .glasses { width: 92%; height: auto; }
.search-text b { display: block; font-size: 1rem; }
.search-text small { color: var(--ink-2); font-size: .84rem; }
.search-empty { padding: 16px 8px; color: var(--ink-2); }
.search-all a { justify-content: center; font-weight: 700; color: var(--ink); border: 1px solid var(--line); margin-top: 6px; }
.search-foot { margin: 16px 0 0; font-size: .8rem; color: var(--ink-3); }

/* drawers (cart, wishlist) */
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; }
dialog.drawer[open] { animation: drawerIn .5s var(--ease-out); }
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: none; } }
dialog.drawer .dlg__inner { height: 100dvh; max-height: 100dvh; border-radius: 0; box-shadow: var(--shadow-2); padding: clamp(18px, 3vw, 26px); }
dialog.drawer .dlg__body { display: flex; flex-direction: column; }
.drawer__foot { flex: none; position: sticky; bottom: -2px; margin-top: auto; padding: 16px 0 6px; background: var(--paper-2); border-top: 1px solid var(--line); }
.cart-list, .wish-list { list-style: none; display: grid; gap: 14px; margin: 0; }
.cart-item { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.cart-item__thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; padding: 8px; background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb)); }
.cart-item__thumb .glasses { width: 100%; height: auto; }
.cart-item__brand { margin: 0; font-size: .76rem; font-weight: 700; color: var(--amber-ink); }
.cart-item__name { font-size: 1.04rem; line-height: 1.4; margin: 2px 0 4px; }
.cart-item__name a { color: var(--ink); text-decoration: none; }
.cart-item__name a:hover { text-decoration: underline; }
.cart-item__opts { margin: 0 0 10px; font-size: .84rem; line-height: 1.7; color: var(--ink-2); }
.cart-item__row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.cart-item__price { margin: 0 auto 0 0; font-weight: 800; font-size: .98rem; }
[dir="rtl"] .cart-item__price { margin: 0 0 0 auto; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; background: var(--paper); }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font-size: 1.2rem; line-height: 1; }
.qty button:hover { background: var(--paper-3); }
.qty output { min-width: 2em; text-align: center; font-weight: 700; }
.wish-item { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.wish-item__thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; padding: 8px; background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb)); }
.wish-item__thumb .glasses { width: 100%; height: auto; }
.wish-item h3 { font-size: 1.04rem; margin: 2px 0 4px; }
.wish-item h3 a { color: var(--ink); text-decoration: none; }
.wish-item h3 a:hover { text-decoration: underline; }
.wish-item__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.wish-item .cart-item__price { margin: 0; }
.sum { display: grid; gap: 8px; margin: 0 0 10px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.sum dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sum .is-good dd, .sum .is-good dt { color: var(--ok); }
.sum__note { font-size: .84rem; color: var(--ink-2); margin: 0 0 14px; }
.coupon { margin-bottom: 14px; }
.coupon label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.coupon__row { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; min-height: 44px; padding: .4em .95em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); direction: ltr; text-align: left; }
.coupon input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217, 138, 43, .25); }
.empty { text-align: center; padding: 40px 14px; display: grid; justify-items: center; gap: 10px; }
.empty__title { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--ink); margin: 0; }
.empty p { color: var(--ink-2); margin: 0 0 8px; }
.toasts { position: fixed; top: calc(var(--header-h) + 10px); left: 0; right: 0; z-index: 100; display: grid; justify-items: center; gap: 8px; padding-inline: 16px; pointer-events: none; }
.toast { max-width: 100%; padding: 12px 18px; border-radius: 999px; background: var(--espresso); color: var(--paper); font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .5s var(--ease-out); }
.toast.is-in { opacity: 1; transform: none; }
.toast--warn { background: #5b2b1e; }

/* quick view */
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.qv__stage { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-lg); padding: 14px; background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb)); }
.qv__stage .glasses { width: 100%; height: auto; }
.qv__info h3 { font-family: var(--f-display); font-size: 2.8rem; line-height: .95; margin-bottom: 6px; }
.qv__info .brand { font-size: .84rem; font-weight: 700; color: var(--amber-ink); margin: 0 0 4px; }
.qv__info .meta { font-size: .9rem; color: var(--ink-2); margin: 0 0 10px; }
.qv__info .pdp__opt { margin-top: 18px; }
.qv__info .pdp__opt legend { font-size: .9rem; }
.qv__price { font-size: 1.3rem; font-weight: 800; margin: 12px 0 0; }
.qv__price s { font-size: .95rem; color: var(--ink-3); font-weight: 500; margin-inline-start: 6px; }
.qv__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.qv__actions .btn { flex: 1; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; text-align: start; }
.cmp-table thead th { font-size: .95rem; }
.cmp-table thead img, .cmp-table .cmp-stage { width: 100%; border-radius: 16px; aspect-ratio: 5/3; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 20%, var(--tone-a, #fdf8ef), var(--tone-b, #e7d6bb)); }
.cmp-table .cmp-stage .glasses { width: 80%; height: auto; }
.cmp-table tbody th { width: 26%; color: var(--ink-2); font-weight: 600; }
.cmp-table td .btn { margin-top: 6px; }
.cmp-table thead th a { color: var(--ink); text-decoration: none; font-weight: 700; }
.cmp-table thead th a:hover { text-decoration: underline; }
.cmp-remove { font-size: .82rem; }

/* ---------- 14. companion & tip pill ---------- */
.companion {
  position: fixed; left: 0; top: 0; z-index: 66; width: 150px; height: 75px;
  pointer-events: none; will-change: transform; transform-origin: 50% 50%; --inv: 1;
}
.companion__body { width: 100%; height: 100%; }
.companion-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 12px rgba(42, 27, 20, .22)); }
.companion-svg .pupil { transition: transform .18s ease-out; }
.companion-svg .lid { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 0; transition: transform .09s linear; }
.companion.is-blink .lid, .companion.is-sleep .lid { transform: scaleY(1); }
.companion.is-sleep .companion-svg { filter: drop-shadow(0 4px 6px rgba(42, 27, 20, .18)) saturate(.7); }
.companion__body.is-pop { animation: pop .5s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.92); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
.companion__body.is-spin { animation: spinOnce .9s var(--ease-out); }
@keyframes spinOnce { to { transform: rotate(360deg); } }
.companion__bubble {
  position: absolute; left: calc(50% + var(--nudge, 0px)); bottom: calc(100% + 8px); width: max-content; max-width: 230px;
  padding: 9px 13px; border-radius: 16px; background: var(--paper-2); color: var(--ink); font-size: 13px; line-height: 1.6; font-weight: 600;
  box-shadow: var(--shadow-1); border: 1px solid var(--line); text-align: start; opacity: 0;
  transform: translate(-50%, 6px) scale(calc(var(--inv) * .96)); transform-origin: 50% 100%; transition: opacity .3s var(--ease), transform .4s var(--ease-out);
}
.companion__bubble::after { content: ""; position: absolute; left: calc(50% - var(--nudge, 0px)); bottom: -6px; width: 12px; height: 12px; background: var(--paper-2); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.companion.has-say .companion__bubble { opacity: 1; transform: translate(-50%, 0) scale(calc(var(--inv) * 1)); }
.companion__zzz { position: absolute; top: -10px; right: -6px; font-family: var(--f-latin); font-style: italic; font-size: 18px; color: var(--ink-2); opacity: 0; transition: opacity .4s; }
.companion.is-sleep .companion__zzz { opacity: 1; animation: zzz 2.6s var(--ease) infinite; }
@keyframes zzz { 0% { transform: translateY(0); } 60% { transform: translateY(-8px); opacity: .6; } 100% { transform: translateY(0); opacity: 1; } }
.tip-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 64; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 14px;
  border-radius: 999px; border: 0; background: var(--espresso); color: var(--paper); font-size: .88rem; font-weight: 700; box-shadow: var(--shadow-2);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out);
}
.tip-pill:hover { transform: translateY(-2px); }
.tip-pill .ico { width: 18px; height: 18px; color: var(--amber-2); }
body.has-buybar .tip-pill { bottom: 86px; }

/* ---------- 15. responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding-inline: .7em; }
  .hdr__cta { display: none; }
}
@media (max-width: 1080px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; inset: auto 0 0 0; z-index: 81; max-height: 84dvh; border-radius: 28px 28px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(106%); visibility: hidden; transition: transform .55s var(--ease-out), visibility 0s linear .55s; box-shadow: var(--shadow-2);
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }
  .filters__close { display: inline-grid; }
  .filters-toggle { display: inline-flex; }
  .filters-scrim { position: fixed; inset: 0; z-index: 80; display: block; background: rgba(42, 27, 20, .45); opacity: 0; pointer-events: none; transition: opacity .4s; border: 0; }
  .filters-scrim.is-on { opacity: 1; pointer-events: auto; }
  .pdp, .co, .qv { grid-template-columns: minmax(0, 1fr); }
  .pdp__gallery { position: relative; top: auto; }
  .co-summary { position: relative; top: auto; }
  .lab__grid, .finder, .story, .faq, .band { grid-template-columns: minmax(0, 1fr); }
  .band { gap: 28px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { justify-self: center; max-width: 480px; }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .picks > :first-child { grid-row: auto; }
  .picks > :first-child .pcard__stage { aspect-ratio: 5 / 4; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head p { justify-self: start; }
  .page-head__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tabpanel__grid { grid-template-columns: minmax(0, 1fr); }
  .lens-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr { gap: 8px; }
  .logo__en { display: none; }
  .hdr__actions { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .buybar { display: flex; }
  .shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(3) { border-inline-start: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .story__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rv-track { grid-auto-columns: minmax(260px, 340px); }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; }
  .section { padding-block: clamp(60px, 16vw, 90px); }
  .hero__title { font-size: clamp(4.4rem, 22vw, 6rem); }
  .hero__stage { aspect-ratio: 4 / 5; max-height: none; border-radius: 180px 180px 28px 28px; }
  .hero__hint { font-size: .8rem; }
  .hero__meta strong { font-size: 2.2rem; }
  .hero__meta { gap: 12px 22px; }
  .marquee__item { font-size: 2.2rem; gap: 1rem; }
  .trust__item { padding: 18px 14px; }
  .trust__item span { font-size: .82rem; }
  .shapes { gap: 10px; }
  .shape-tile { min-height: 150px; padding: 12px 8px; border-radius: 20px; }
  .shape-tile:nth-child(3n+2) { margin-top: 18px; }
  .shape-tile b { font-size: .92rem; }
  .shape-tile small { font-size: .74rem; }
  .faces { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .face-opt { font-size: .76rem; padding: 10px 2px 8px; }
  .face-opt svg { width: 30px; height: 36px; }
  .hit { grid-template-columns: 96px minmax(0, 1fr); padding: 10px; gap: 12px; }
  .hit:hover { transform: none; }
  .field-row, .rx-choices { grid-template-columns: minmax(0, 1fr); }
  .lens-list { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .pcard__body { padding-inline: 2px; }
  .pcard__name { font-size: 1.04rem; }
  .pcard__meta { font-size: .8rem; }
  .pcard__actions .btn { width: 100%; }
  .pcard__actions { flex-direction: column; gap: 6px; }
  .pcard__actions .btn { min-height: 40px; }
  .wish-btn { width: 36px; height: 36px; top: 8px; inset-inline-end: 8px; }
  .wish-btn .ico { width: 18px; height: 18px; }
  .pcard__disc { top: 10px; inset-inline-start: 10px; font-size: .74rem; padding: 3px 9px; }
  .picks { gap: 22px; }
  .rv-track { grid-auto-columns: minmax(78vw, 320px); }
  .score strong { font-size: 4.4rem; }
  .band { border-radius: 26px; }
  .band::before { width: 320px; }
  .faq summary { font-size: 1rem; }
  .final h2 { font-size: clamp(3.6rem, 19vw, 5.2rem); }
  .page-head h1 { font-size: clamp(3.2rem, 17vw, 4.8rem); }
  .toolbar { gap: 10px; }
  .sort select { font-size: .9rem; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ft-bottom { flex-direction: column; }
  .tip-pill { bottom: 12px; left: 12px; padding: 9px 13px 9px 11px; font-size: .82rem; }
  .compare-bar { bottom: 10px; }
  .pdp__name { font-size: clamp(3.2rem, 17vw, 4.4rem); }
  .pdp__stage { aspect-ratio: 4 / 3; }
  .pdp__stage.is-face { aspect-ratio: 4 / 4.6; }
  .size-opts { gap: 8px; }
  .buy { grid-template-columns: auto minmax(0, 1fr); }
  .buy .btn--lg { grid-column: 1 / -1; order: 3; }
  .wish-lg { order: 2; }
  .spec-dl div { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); }
  dialog.dlg { width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
  dialog.dlg--search { margin-top: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; }
  dialog.dlg--search .dlg__inner { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  dialog.drawer { width: 100vw; }
  .dlg__title { font-size: 2.1rem; }
  .qv { gap: 18px; }
  .qv__info h3 { font-size: 2.3rem; }
  .co-form legend { font-size: 1.9rem; }
  .co-actions .btn { min-width: 0; width: 100%; }
  .pay-opts { grid-template-columns: minmax(0, 1fr); }
  .shop { padding-bottom: 110px; }
  .companion { width: 120px; height: 60px; }
}
@media (max-width: 360px) {
  :root { --gut: 14px; }
  .hero__title { font-size: 4.2rem; }
  .logo__fa { font-size: 1.8rem; }
  .icon-btn { width: 42px; height: 42px; }
  .grid { gap: 22px 10px; }
  .faces { gap: 4px; }
  .face-opt { font-size: .7rem; }
  .face-opt svg { width: 26px; height: 32px; }
  .size-opt b { font-size: 1.6rem; }
  .pdp__price strong { font-size: 1.6rem; }
  .tip-pill span { display: none; }
  .tip-pill { padding: 10px; }
}

/* ---------- 16. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  .hero__title .l, .hero__eyebrow, .hero__lead, .hero__ctas { opacity: 1; transform: none; filter: none; }
  .companion.is-sleep .companion__zzz { animation: none; }
  .pcard:hover .pcard__svg, .pcard:hover .pcard__link .glasses { transform: translate(-50%, -52%); }
  .shape-tile:hover { transform: none; }
  .shape-tile:hover .glasses { transform: none; }
  .hit:hover { transform: none; }
}
