/* ============================================================================
   Xtravision Optician By Shyam Ajwani — SHARED STYLESHEET
   One styles.css for every page. Mobile-first. All tokens live in :root.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand — matched to Xtravision banner (navy + blue + red + gold) */
  --xv-ink:        #0F1B2D;
  --xv-deep:       #0C2340;
  --xv-primary:    #1C64B5;
  --xv-primary-dk: #144E8F;
  --xv-primary-sft:#EAF2FB;
  --xv-accent:     #F2B01E;
  --xv-accent-sft: #FDF1D2;
  --xv-sale:       #DA1E28;
  --xv-sale-sft:   #FBE7E8;

  /* Clinical trust */
  --xv-verify:     #1B8A5A;
  --xv-verify-sft: #E7F5EE;

  /* Neutrals */
  --xv-bg:         #FFFFFF;
  --xv-bg-alt:     #F6F8FA;
  --xv-line:       #E3E8EE;
  --xv-muted:      #6B7A8C;
  --xv-disabled:   #AEB9C6;

  /* Semantic */
  --xv-warn:       #C8721A;
  --xv-warn-sft:   #FBF0E2;
  --xv-error:      #C0392B;
  --xv-error-sft:  #FDECEA;

  /* Elevation — flat: hairlines instead of soft shadows; deep shadow reserved for true overlays */
  --xv-sh-sm: 0 1px 0 rgba(15,27,45,.05);
  --xv-sh-md: 0 2px 0 rgba(15,27,45,.05);
  --xv-sh-lg: 0 10px 30px rgba(15,27,45,.16);

  /* Radius — flat / rectangular */
  --xv-r-sm: 2px;
  --xv-r-md: 4px;
  --xv-r-lg: 6px;
  --xv-r-pill: 999px;

  /* Spacing (8pt) */
  --xv-s1: 4px;  --xv-s2: 8px;  --xv-s3: 12px; --xv-s4: 16px;
  --xv-s5: 24px; --xv-s6: 32px; --xv-s7: 48px; --xv-s8: 64px;

  /* Layout */
  --xv-max: 1240px;
  --xv-nav-h: 100px;
  --xv-tabbar-h: 64px;

  /* Type families */
  --xv-font-head: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --xv-font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --xv-font-num:  'IBM Plex Mono', ui-monospace, monospace;

  /* Type scale */
  --xv-t-hero: clamp(2rem, 6vw, 3.5rem);
  --xv-t-h1:   clamp(1.6rem, 4vw, 2.5rem);
  --xv-t-h2:   clamp(1.3rem, 3vw, 1.85rem);
  --xv-t-h3:   1.15rem;
  --xv-t-body: 1rem;
  --xv-t-sm:   0.875rem;
  --xv-t-xs:   0.75rem;

  --xv-ease: cubic-bezier(.4,0,.2,1);
}

/* ---------------------------------------------------------------------------
   2. RESET / BASE  (PWA-ready)
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--xv-font-body);
  font-size: var(--xv-t-body);
  line-height: 1.55;
  color: var(--xv-ink);
  background: var(--xv-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: contain;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--xv-primary); text-decoration: none; }
a:hover { color: var(--xv-primary-dk); }
h1, h2, h3, h4 { font-family: var(--xv-font-head); line-height: 1.15; font-weight: 700; color: var(--xv-ink); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--xv-primary) 55%, white); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--xv-accent-sft); }

/* App shell — persistent header + tabbar, swappable content */
.xv-app-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.xv-main { flex: 1; padding-bottom: calc(var(--xv-tabbar-h) + env(safe-area-inset-bottom)); }
/* Mobile app shell (bottom tab bar) persists until the desktop nav appears at 1024px */
@media (min-width: 1024px) {
  .xv-tabbar { display: none !important; }
  .xv-main { padding-bottom: 0; }
}

/* ---------------------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------------------- */
.xv-container { width: 100%; max-width: var(--xv-max); margin-inline: auto; padding-inline: var(--xv-s4); }
@media (min-width: 900px) { .xv-container { padding-inline: var(--xv-s6); } }
.xv-section { padding-block: var(--xv-s6); }
@media (min-width: 900px) { .xv-section { padding-block: var(--xv-s8); } }
.xv-section--alt { background: var(--xv-bg-alt); }
.xv-stack { display: flex; flex-direction: column; }
.xv-row { display: flex; align-items: center; }
.xv-gap-1 { gap: var(--xv-s1); } .xv-gap-2 { gap: var(--xv-s2); }
.xv-gap-3 { gap: var(--xv-s3); } .xv-gap-4 { gap: var(--xv-s4); }
.xv-gap-5 { gap: var(--xv-s5); } .xv-gap-6 { gap: var(--xv-s6); }

.xv-eyebrow { font-family: var(--xv-font-head); font-size: var(--xv-t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--xv-primary); }
.xv-h1 { font-size: var(--xv-t-h1); }
.xv-h2 { font-size: var(--xv-t-h2); }
.xv-h3 { font-size: var(--xv-t-h3); }
.xv-muted { color: var(--xv-muted); }
.xv-sm { font-size: var(--xv-t-sm); }
.xv-xs { font-size: var(--xv-t-xs); }
.xv-num { font-family: var(--xv-font-num); font-variant-numeric: tabular-nums; }
.xv-center { text-align: center; }
.xv-section__head { max-width: 640px; margin-bottom: var(--xv-s5); }
.xv-section__head.xv-center { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.xv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--xv-s2);
  min-height: 44px; padding: 0 var(--xv-s5);
  font-family: var(--xv-font-head); font-weight: 600; font-size: var(--xv-t-body);
  border-radius: var(--xv-r-sm); border: 1.5px solid transparent;
  transition: background .18s var(--xv-ease), color .18s var(--xv-ease), border-color .18s var(--xv-ease), transform .08s var(--xv-ease), box-shadow .18s var(--xv-ease);
  white-space: nowrap; text-align: center;
}
.xv-btn:active { transform: scale(.97); }
.xv-btn svg { width: 20px; height: 20px; flex: none; }
.xv-btn--primary { background: var(--xv-primary); color: #fff; }
.xv-btn--primary:hover { background: var(--xv-primary-dk); color: #fff; }
.xv-btn--accent { background: var(--xv-accent); color: var(--xv-ink); }
.xv-btn--accent:hover { background: color-mix(in srgb, var(--xv-accent) 85%, black); }
.xv-btn--ghost { background: var(--xv-bg); color: var(--xv-primary); border-color: var(--xv-line); }
.xv-btn--ghost:hover { border-color: var(--xv-primary); background: var(--xv-bg-alt); }
.xv-btn--dark { background: var(--xv-deep); color: #fff; }
.xv-btn--dark:hover { background: var(--xv-ink); color: #fff; }
.xv-btn--whatsapp { background: #25D366; color: #05391b; }
.xv-btn--whatsapp:hover { background: #1eb457; color: #05391b; }
.xv-btn--lg { min-height: 52px; padding: 0 var(--xv-s6); font-size: 1.06rem; }
.xv-btn--sm { min-height: 40px; padding: 0 var(--xv-s4); font-size: var(--xv-t-sm); }
.xv-btn--block { display: flex; width: 100%; }
.xv-btn:disabled, .xv-btn[aria-disabled="true"] { background: var(--xv-disabled); color: #fff; border-color: transparent; cursor: not-allowed; transform: none; }
.xv-btn--ghost:disabled { background: var(--xv-bg-alt); color: var(--xv-disabled); border-color: var(--xv-line); }

.xv-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--xv-r-pill);
  color: var(--xv-ink); position: relative; transition: background .15s var(--xv-ease);
}
.xv-iconbtn:hover { background: var(--xv-bg-alt); }
.xv-iconbtn svg { width: 24px; height: 24px; }

.xv-link-soft { color: var(--xv-primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.xv-link-soft svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------------
   5. BADGES / PILLS / CHIPS
   ------------------------------------------------------------------------- */
.xv-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--xv-r-sm); font-size: var(--xv-t-xs); font-weight: 700; font-family: var(--xv-font-head); letter-spacing: .02em; }
.xv-badge--new { background: var(--xv-ink); color: #fff; }
.xv-badge--accent { background: var(--xv-accent); color: var(--xv-ink); }
.xv-badge--verify { background: var(--xv-verify-sft); color: var(--xv-verify); }
.xv-badge--soft { background: var(--xv-bg-alt); color: var(--xv-muted); }
.xv-badge--off { background: var(--xv-error-sft); color: var(--xv-error); }

.xv-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--xv-s4); border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-sm); background: var(--xv-bg); font-size: var(--xv-t-sm); font-weight: 500; color: var(--xv-ink); transition: all .15s var(--xv-ease); }
.xv-pill:hover { border-color: var(--xv-primary); }
.xv-pill[aria-pressed="true"], .xv-pill.is-active { background: var(--xv-primary); border-color: var(--xv-primary); color: #fff; }

.xv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; background: var(--xv-accent-sft); border-radius: var(--xv-r-pill); font-size: var(--xv-t-sm); font-weight: 500; }
.xv-chip button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: var(--xv-muted); }
.xv-chip button:hover { background: rgba(0,0,0,.06); color: var(--xv-ink); }
.xv-chip svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------------
   6. HEADER (mobile-first, then desktop)
   ------------------------------------------------------------------------- */
@media (min-width: 1024px) { :root { --xv-nav-h: 156px; } }
.xv-header { position: sticky; top: 0; z-index: 60; background: var(--xv-bg); padding-top: env(safe-area-inset-top); transition: box-shadow .2s var(--xv-ease); }
.xv-header.is-scrolled { box-shadow: var(--xv-sh-lg); }
/* promo strip (desktop) */
.xv-promo { display: none; background: var(--xv-deep); color: #fff; }
@media (min-width: 1024px) { .xv-promo { display: block; } }
.xv-promo__inner { display: flex; align-items: center; justify-content: center; gap: var(--xv-s6); height: 34px; font-family: var(--xv-font-head); font-weight: 600; font-size: var(--xv-t-xs); letter-spacing: .03em; }
.xv-promo__item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); }
.xv-promo__item svg { width: 14px; height: 14px; color: var(--xv-accent); }
/* main bar (white) */
.xv-header__main { background: var(--xv-bg); border-bottom: 1px solid var(--xv-line); }
.xv-header__bar { display: flex; align-items: center; gap: var(--xv-s3); height: 60px; }
@media (min-width: 1024px) { .xv-header__bar { height: 74px; gap: var(--xv-s5); } }
/* prominent search bar (desktop) */
.xv-searchbar { display: none; }
@media (min-width: 1024px) {
  .xv-searchbar { display: flex; align-items: center; flex: 1; max-width: 560px; margin: 0 auto; border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-sm); background: var(--xv-bg-alt); overflow: hidden; transition: border-color .15s var(--xv-ease), background .15s var(--xv-ease); }
  .xv-searchbar:focus-within { border-color: var(--xv-primary); background: #fff; }
  .xv-searchbar__ic { display: grid; place-items: center; padding-left: 14px; color: var(--xv-muted); }
  .xv-searchbar__ic svg { width: 20px; height: 20px; }
  .xv-searchbar input { flex: 1; min-height: 46px; border: none; background: transparent; padding: 0 12px; font-size: 15px; color: var(--xv-ink); }
  .xv-searchbar input:focus { outline: none; }
  .xv-searchbar__btn { min-height: 46px; padding: 0 22px; background: var(--xv-primary); color: #fff; font-family: var(--xv-font-head); font-weight: 700; font-size: var(--xv-t-sm); }
  .xv-searchbar__btn:hover { background: var(--xv-primary-dk); }
}
.xv-searchtoggle { display: inline-flex; }
@media (min-width: 1024px) { .xv-searchtoggle { display: none; } }
.xv-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--xv-font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--xv-ink); }
.xv-logo:hover { color: var(--xv-ink); }
.xv-logo__mark { width: 34px; height: 34px; border-radius: var(--xv-r-sm); background: var(--xv-deep); color: #fff; display: grid; place-items: center; flex: none; }
.xv-logo__mark svg { width: 22px; height: 22px; }
.xv-logo small { display: block; font-family: var(--xv-font-body); font-weight: 500; font-size: 10px; letter-spacing: .04em; color: var(--xv-muted); text-transform: uppercase; }

/* desktop nav lives here, hidden on mobile */
.xv-header__nav { display: none; }
.xv-header__spacer { flex: 1; }
.xv-header__actions { display: flex; align-items: center; gap: var(--xv-s2); margin-left: auto; flex: none; }
@media (min-width: 1024px) { .xv-header__actions { gap: var(--xv-s4); } }
.xv-action { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; color: var(--xv-ink); }
.xv-action .xv-iconbtn { width: 40px; height: 34px; color: inherit; }
.xv-action__lbl { font-family: var(--xv-font-head); font-weight: 600; font-size: 11px; color: var(--xv-muted); }
.xv-action:hover, .xv-action:hover .xv-action__lbl { color: var(--xv-primary); }
.xv-hamburger { display: inline-flex; }

.xv-cartbtn__badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--xv-r-pill); background: var(--xv-accent); color: var(--xv-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; font-family: var(--xv-font-head); }
.xv-cartbtn__badge.is-bump { animation: xv-bump .4s var(--xv-ease); }
@keyframes xv-bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* trust strip */
.xv-trust-strip { display: none; }
/* category nav row (desktop, blue) */
.xv-header__catnav { display: none; background: var(--xv-primary); }
@media (min-width: 1024px) { .xv-header__catnav { display: block; } }
.xv-catnav__inner { display: flex; align-items: center; gap: 2px; height: 48px; }
.xv-catnav__spacer { flex: 1; }
.xv-catnav__link { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 var(--xv-s3); color: #fff; font-family: var(--xv-font-head); font-weight: 600; font-size: .9rem; transition: background .15s var(--xv-ease); }
.xv-catnav__link:hover { color: #fff; background: rgba(255,255,255,.12); }
.xv-catnav__link svg { width: 16px; height: 16px; color: var(--xv-accent); }

/* mobile search row (collapsible) */
.xv-header__search { display: none; padding: var(--xv-s2) var(--xv-s4) var(--xv-s3); }
.xv-header__search.is-open { display: block; }

/* Header actions: keep the extra desktop icons hidden until the wide nav appears */
.xv-header__actions .xv-hide-mobile { display: none; }
@media (min-width: 1024px) {
  .xv-hamburger { display: none; }
  .xv-header__actions .xv-hide-mobile { display: inline-flex; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .xv-navitem > button, .xv-navitem > a { padding: 0 10px; font-size: .9rem; }
}

/* nav items + mega menu */
.xv-navitem { position: relative; }
.xv-navitem > button, .xv-navitem > a { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 var(--xv-s3); border-radius: var(--xv-r-sm); font-family: var(--xv-font-head); font-weight: 600; font-size: .95rem; color: #fff; transition: color .18s var(--xv-ease); }
.xv-navitem > button::after, .xv-navitem > a::after { content: ""; position: absolute; left: var(--xv-s3); right: var(--xv-s3); bottom: 8px; height: 2px; border-radius: 2px; background: var(--xv-accent); transform: scaleX(0); transform-origin: left center; transition: transform .24s var(--xv-ease); }
.xv-navitem > button:hover, .xv-navitem > a:hover, .xv-navitem.is-open > button { color: #fff; }
.xv-navitem:hover > button::after, .xv-navitem:hover > a::after, .xv-navitem.is-open > button::after { transform: scaleX(1); }
.xv-navitem svg { width: 16px; height: 16px; transition: transform .22s var(--xv-ease); }
.xv-navitem.is-open svg.xv-caret { transform: rotate(180deg); }

.xv-mega { position: absolute; top: 100%; left: 0; width: min(720px, calc(100vw - 32px)); background: var(--xv-bg); border: 1px solid var(--xv-line); border-top: 3px solid var(--xv-primary); border-radius: 0 0 var(--xv-r-md) var(--xv-r-md); box-shadow: var(--xv-sh-lg); padding: var(--xv-s5) var(--xv-s5) var(--xv-s4); display: grid; grid-template-columns: 1fr 210px; gap: var(--xv-s5); z-index: 70; opacity: 0; visibility: hidden; transform: translateY(10px); transform-origin: top left; transition: opacity .2s var(--xv-ease), transform .24s var(--xv-ease), visibility .2s var(--xv-ease); pointer-events: none; }
.xv-mega.is-right { left: auto; right: 0; transform-origin: top right; }
.xv-mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* invisible hover bridge */
.xv-navitem.is-open .xv-mega { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.xv-mega__cols { display: flex; gap: var(--xv-s5); }
.xv-mega__cols > div { flex: 1; min-width: 0; }
.xv-mega h4 { font-size: var(--xv-t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--xv-muted); margin-bottom: var(--xv-s2); padding-bottom: 6px; border-bottom: 1px solid var(--xv-line); }
.xv-mega a { position: relative; display: block; padding: 6px 0 6px 0; font-weight: 500; color: var(--xv-ink); font-size: var(--xv-t-sm); transition: color .15s var(--xv-ease), padding-left .18s var(--xv-ease); }
.xv-mega a:hover { color: var(--xv-primary); padding-left: 8px; }
.xv-mega a::before { content: ""; position: absolute; left: -2px; top: 50%; width: 0; height: 0; border-radius: 50%; background: var(--xv-primary); transform: translateY(-50%); transition: width .18s var(--xv-ease), height .18s var(--xv-ease); }
.xv-mega a:hover::before { width: 4px; height: 4px; }
/* featured promo column */
.xv-mega__feat { border-radius: var(--xv-r-md); overflow: hidden; background: var(--xv-bg-alt); border: 1px solid var(--xv-line); display: flex; flex-direction: column; align-self: start; }
.xv-mega__feat .xv-ph { aspect-ratio: 4/3; }
.xv-mega__feat-body { padding: var(--xv-s3); display: flex; flex-direction: column; gap: 4px; }
.xv-mega__feat-tag { font-size: var(--xv-t-xs); font-weight: 700; color: var(--xv-accent); font-family: var(--xv-font-head); text-transform: uppercase; letter-spacing: .06em; }
.xv-mega__feat-body strong { font-family: var(--xv-font-head); font-size: var(--xv-t-sm); line-height: 1.25; }
.xv-mega__feat-body a { color: var(--xv-primary); font-weight: 700; font-size: var(--xv-t-sm); margin-top: 2px; }
.xv-mega__feat-body a::before { display: none; }
@media (prefers-reduced-motion: reduce) { .xv-mega { transition: opacity .12s; transform: none; } .xv-navitem.is-open .xv-mega { transform: none; } }

/* ---------------------------------------------------------------------------
   7. MOBILE DRAWER
   ------------------------------------------------------------------------- */
.xv-drawer-backdrop { position: fixed; inset: 0; background: rgba(15,27,45,.4); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .25s var(--xv-ease); }
.xv-drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.xv-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); background: var(--xv-bg); z-index: 95; transform: translateX(-100%); transition: transform .3s var(--xv-ease); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.xv-drawer.is-open { transform: translateX(0); }
.xv-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--xv-s4); border-bottom: 1px solid var(--xv-line); }
.xv-drawer__body { overflow-y: auto; padding: var(--xv-s3); flex: 1; }
.xv-drawer__link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 var(--xv-s3); border-radius: var(--xv-r-sm); font-family: var(--xv-font-head); font-weight: 600; color: var(--xv-ink); }
.xv-drawer__link:hover, .xv-drawer__link:active { background: var(--xv-bg-alt); color: var(--xv-primary); }
.xv-drawer__foot { padding: var(--xv-s4); border-top: 1px solid var(--xv-line); display: grid; gap: var(--xv-s2); }
.xv-drawer__link > svg { width: 18px; height: 18px; flex: none; color: var(--xv-disabled); transition: color .15s var(--xv-ease), transform .15s var(--xv-ease); }
.xv-drawer__link:hover > svg, .xv-drawer__link:active > svg { color: var(--xv-primary); transform: translateX(2px); }
.xv-drawer__link { gap: var(--xv-s3); }
.xv-drawer .xv-divider { margin: var(--xv-s2) 0; }
.xv-drawer__foot .xv-btn { min-height: 46px; }
@media (max-height: 640px) { .xv-drawer__foot { gap: 6px; padding: var(--xv-s3) var(--xv-s4); } .xv-drawer__foot .xv-btn { min-height: 44px; } .xv-drawer__lang .xv-lang--light button { height: 40px; } }

/* ---------------------------------------------------------------------------
   8. BOTTOM TAB BAR (mobile only)
   ------------------------------------------------------------------------- */
.xv-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--xv-bg); border-top: 1px solid var(--xv-line); box-shadow: 0 -2px 12px rgba(15,27,45,.05); padding-bottom: env(safe-area-inset-bottom); }
.xv-tabbar__inner { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--xv-tabbar-h); }
.xv-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; color: var(--xv-muted); font-size: 10.5px; font-weight: 600; font-family: var(--xv-font-head); position: relative; }
.xv-tab svg { width: 24px; height: 24px; }
.xv-tab.is-active { color: var(--xv-primary); }
.xv-tab.is-active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--xv-primary); }
.xv-tab__badge { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 3px; border-radius: var(--xv-r-pill); background: var(--xv-accent); color: var(--xv-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; }

/* ---------------------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------------------- */
.xv-footer { background: var(--xv-deep); color: #cdd7e2; padding-bottom: calc(var(--xv-tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .xv-footer { padding-bottom: 0; } }
.xv-footer a { color: #cdd7e2; text-decoration: none; }
.xv-footer a:hover { color: #fff; }
.xv-footer h4 { font-family: var(--xv-font-head); color: #fff; font-size: var(--xv-t-body); }
/* promise strip */
.xv-ft-promise { background: var(--xv-bg-alt); border-top: 1px solid var(--xv-line); color: var(--xv-ink); }
.xv-ft-promise__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--xv-s3); padding-block: var(--xv-s4); }
@media (min-width: 900px) { .xv-ft-promise__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--xv-s5); padding-block: var(--xv-s4); } }
.xv-ft-promise__item { display: flex; gap: var(--xv-s3); align-items: center; min-width: 0; }
.xv-ft-promise__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--xv-bg); border: 1px solid var(--xv-line); color: var(--xv-primary); }
.xv-ft-promise__ic svg { width: 19px; height: 19px; }
.xv-ft-promise__item strong { display: block; font-family: var(--xv-font-head); font-size: var(--xv-t-sm); line-height: 1.3; color: var(--xv-deep); }
.xv-ft-promise__item span { display: block; font-size: 12.5px; color: var(--xv-muted); line-height: 1.35; }
/* brand + subscribe */
.xv-ft-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--xv-s5); padding-block: var(--xv-s5); border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 900px) { .xv-ft-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--xv-s7); padding-block: var(--xv-s6) var(--xv-s5); } }
.xv-ft-brand > p { color: #9fb0c4; font-size: var(--xv-t-sm); margin-top: var(--xv-s2); max-width: 46ch; }
.xv-ft-contact { display: flex; flex-wrap: wrap; gap: 4px var(--xv-s5); margin-top: var(--xv-s3); }

.xv-ft-contact__item { display: flex; gap: 8px; align-items: center; min-height: 44px; min-width: 0; }
.xv-ft-contact__item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.xv-ft-contact__ic { display: grid; place-items: center; flex: none; color: #fff; }
.xv-ft-contact__ic svg { width: 18px; height: 18px; }
.xv-ft-contact__item > span:last-child { min-width: 0; }
.xv-ft-contact__item small { display: none; }
.xv-ft-contact__item strong { display: block; color: #fff; font-size: var(--xv-t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xv-ft-sub > p { color: #9fb0c4; font-size: var(--xv-t-sm); margin-top: 6px; }
.xv-ft-sub__form { display: flex; align-items: stretch; margin-top: var(--xv-s3); background: #fff; border-radius: var(--xv-r-md); padding: 4px; gap: 4px; }
.xv-ft-sub__cc { display: grid; place-items: center; padding: 0 4px 0 12px; color: var(--xv-muted); font-weight: 600; font-size: var(--xv-t-sm); }
.xv-ft-sub__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--xv-t-body); color: var(--xv-ink); padding: 0 6px; letter-spacing: .04em; }
.xv-ft-sub__form .xv-btn { flex: none; min-height: 44px; }
.xv-ft-sub__form:focus-within { box-shadow: 0 0 0 3px rgba(127,178,240,.5); }
.xv-ft-sub__fine { font-size: 12px !important; margin-top: 8px !important; }
.xv-ft-sub__fine a { text-decoration: underline; }
.xv-ft-sub__done { display: flex; gap: 10px; align-items: center; margin-top: var(--xv-s4); padding: 12px 14px; border-radius: var(--xv-r-md); background: rgba(63,209,139,.12); color: #bff0d8; font-size: var(--xv-t-sm); }
.xv-ft-sub__done svg { width: 18px; height: 18px; color: #3FD18B; flex: none; }
.xv-ft-social { display: flex; gap: 6px; margin-top: var(--xv-s3); }
.xv-ft-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: background .15s var(--xv-ease), border-color .15s var(--xv-ease); }
.xv-ft-social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.xv-ft-social svg { width: 18px; height: 18px; }
/* link columns */
.xv-footer__top { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: var(--xv-s3) var(--xv-s5); }
.xv-footer__col { border-bottom: 1px solid rgba(255,255,255,.1); }
.xv-footer__col > h4 { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; }
.xv-footer__col > h4 svg { width: 20px; height: 20px; transition: transform .2s var(--xv-ease); }
.xv-footer__col.is-open > h4 svg { transform: rotate(180deg); }
.xv-footer__links { display: grid; gap: 10px; overflow: hidden; max-height: 0; transition: max-height .3s var(--xv-ease), padding .3s var(--xv-ease); padding-bottom: 0; }
.xv-footer__col.is-open .xv-footer__links { max-height: 600px; padding-bottom: var(--xv-s4); }
.xv-footer__links a { font-size: var(--xv-t-sm); width: fit-content; }
.xv-ft-store__line { display: flex; gap: 8px; align-items: flex-start; font-size: var(--xv-t-sm); color: #cdd7e2; line-height: 1.45; }
.xv-ft-store__line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #9fb0c4; }
.xv-ft-store__cta { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 600; color: #fff !important; margin-top: 4px; }
.xv-ft-store__cta svg { width: 16px; height: 16px; transition: transform .15s var(--xv-ease); }
.xv-ft-store__cta:hover svg { transform: translateX(3px); }
/* popular searches */
.xv-ft-popular { padding-block: var(--xv-s5); border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; }
.xv-ft-popular h4 { font-size: var(--xv-t-sm); margin-bottom: 4px; }
.xv-ft-popular p { font-size: 13px; line-height: 1.8; color: #9fb0c4; }
.xv-ft-popular strong { color: #cdd7e2; font-weight: 600; margin-right: 4px; }
.xv-ft-popular a { color: #9fb0c4; white-space: nowrap; }
.xv-ft-popular a:hover { color: #fff; text-decoration: underline; }
.xv-ft-popular p > span { margin: 0 8px; opacity: .35; }
/* payments + language */
.xv-ft-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--xv-s4); padding-block: var(--xv-s4); border-top: 1px solid rgba(255,255,255,.1); }
.xv-ft-meta > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--xv-s3); }
.xv-ft-meta__k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #9fb0c4; font-weight: 600; }
.xv-footer__pay { display: flex; gap: 6px; flex-wrap: wrap; }
.xv-footer__pay span { white-space: nowrap; padding: 5px 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; font-weight: 600; font-size: 12px; color: #fff; }
.xv-lang--ft { gap: 4px; }
.xv-lang--ft button { height: 36px; min-width: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--xv-r-sm); font-size: 13px; color: #cdd7e2; }
.xv-lang--ft button[aria-pressed="true"] { background: #fff; color: var(--xv-deep); border-color: #fff; }
/* bottom */
.xv-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--xv-s4) var(--xv-s5); font-size: 12.5px; color: #9fb0c4; display: flex; flex-direction: column; gap: var(--xv-s3); }
.xv-ft-legal { display: grid; gap: 4px; line-height: 1.5; }
.xv-ft-legal > div:first-child { color: #cdd7e2; }
.xv-ft-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--xv-s2) var(--xv-s4); }
.xv-ft-bottom__links a, .xv-ft-bottom__links button { color: #cdd7e2; font: inherit; font-size: 13px; }
.xv-ft-bottom__links a:hover, .xv-ft-bottom__links button:hover { color: #fff; text-decoration: underline; }
.xv-ft-top { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 99px; }
.xv-ft-top:hover { text-decoration: none !important; background: rgba(255,255,255,.08); }
.xv-ft-top svg { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .xv-footer__top { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.25fr); gap: var(--xv-s5); padding-block: var(--xv-s5); }
  .xv-footer__col { border-bottom: none; }
  .xv-footer__col > h4 { cursor: default; min-height: 0; padding: 0 0 var(--xv-s4); }
  .xv-footer__col > h4 svg { display: none; }
  .xv-footer__links { max-height: none !important; padding-bottom: 0 !important; }
  .xv-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--xv-s6); }
  .xv-ft-bottom__links { flex: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .xv-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--xv-s6); }
}

/* ---------------------------------------------------------------------------
   10. DOCTOR-VERIFIED BADGE (signature component)
   ------------------------------------------------------------------------- */
.xv-verified { display: flex; gap: var(--xv-s3); align-items: flex-start; background: var(--xv-verify-sft); border: 1px solid color-mix(in srgb, var(--xv-verify) 22%, white); border-left: 4px solid var(--xv-verify); border-radius: var(--xv-r-md); padding: var(--xv-s4); }
.xv-verified__icon { width: 34px; height: 34px; flex: none; color: var(--xv-verify); }
.xv-verified strong { display: block; font-family: var(--xv-font-head); color: #0d6b45; font-size: var(--xv-t-body); }
.xv-verified span { display: block; color: #1c6b4d; font-size: var(--xv-t-sm); margin-top: 2px; }
.xv-verified--sm { padding: var(--xv-s3); }
.xv-verified--sm .xv-verified__icon { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------------
   11. PRODUCT CARD
   ------------------------------------------------------------------------- */
.xv-pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--xv-s3); }
@media (min-width: 640px) { .xv-pgrid { gap: var(--xv-s4); } }
@media (min-width: 900px) { .xv-pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .xv-pgrid { grid-template-columns: repeat(4, 1fr); } }

.xv-card { background: var(--xv-bg); border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s var(--xv-ease); }
@media (hover: hover) { .xv-card:hover { border-color: var(--xv-primary); } }
.xv-card__media { position: relative; aspect-ratio: 4/3; background: var(--xv-bg-alt); }
.xv-card__media img { width: 100%; height: 100%; object-fit: cover; }
.xv-card__flags { position: absolute; top: var(--xv-s2); left: var(--xv-s2); right: var(--xv-s2); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.xv-card__flags .xv-badge, .xv-card__heart { pointer-events: auto; }
.xv-card__heart { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--xv-sh-sm); display: grid; place-items: center; color: var(--xv-muted); transition: transform .15s var(--xv-ease); }
.xv-card__heart svg { width: 20px; height: 20px; }
.xv-card__heart.is-active { color: var(--xv-error); }
.xv-card__heart.is-active svg { fill: currentColor; }
.xv-card__heart:active { transform: scale(1.25); }
.xv-card__swatches { position: absolute; bottom: var(--xv-s2); left: var(--xv-s2); display: flex; gap: 6px; }
.xv-swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--xv-line); }
.xv-swatch.is-active { box-shadow: 0 0 0 2px var(--xv-primary); }
.xv-card__body { padding: var(--xv-s3); display: flex; flex-direction: column; gap: 2px; flex: 1; }
.xv-card__title { font-family: var(--xv-font-head); font-weight: 700; font-size: var(--xv-t-body); }
.xv-card__sub { font-size: var(--xv-t-sm); color: var(--xv-muted); }
.xv-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.xv-card__price .now { font-family: var(--xv-font-head); font-weight: 800; font-size: 1.05rem; }
.xv-card__price .was { font-size: var(--xv-t-sm); color: var(--xv-muted); text-decoration: line-through; }
.xv-card__lens { font-size: var(--xv-t-xs); color: var(--xv-primary); font-weight: 600; }
.xv-card__rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--xv-t-sm); color: var(--xv-muted); margin-top: 2px; }
.xv-card__rating svg { width: 15px; height: 15px; color: var(--xv-accent); fill: var(--xv-accent); }
.xv-card__foot { margin-top: var(--xv-s3); }

/* ---------------------------------------------------------------------------
   12. CAROUSEL (scroll-snap, momentum)
   ------------------------------------------------------------------------- */
.xv-carousel { position: relative; }
.xv-carousel__track { display: flex; gap: var(--xv-s3); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: var(--xv-s2); }
.xv-carousel__track::-webkit-scrollbar { display: none; }
.xv-carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }
.xv-carousel--cards .xv-carousel__track > * { width: 78%; max-width: 300px; }
@media (min-width: 640px) { .xv-carousel--cards .xv-carousel__track > * { width: 46%; } }
@media (min-width: 900px) { .xv-carousel--cards .xv-carousel__track > * { width: 30%; } }
@media (min-width: 1200px) { .xv-carousel--cards .xv-carousel__track > * { width: 23%; } }
.xv-carousel__arrow { display: none; position: absolute; top: 40%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: var(--xv-bg); box-shadow: var(--xv-sh-md); color: var(--xv-ink); align-items: center; justify-content: center; }
.xv-carousel__arrow--prev { left: -12px; } .xv-carousel__arrow--next { right: -12px; }
.xv-carousel__arrow:disabled { opacity: .35; cursor: default; }
@media (min-width: 900px) { .xv-carousel__arrow { display: flex; } }
.xv-carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--xv-s3); }
.xv-carousel__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--xv-line); transition: all .2s var(--xv-ease); }
.xv-carousel__dots button.is-active { background: var(--xv-primary); width: 22px; border-radius: var(--xv-r-pill); }
@media (min-width: 900px) { .xv-carousel__dots { display: none; } }

/* ---------------------------------------------------------------------------
   13. BOTTOM SHEET  (+ desktop modal variant)
   ------------------------------------------------------------------------- */
.xv-sheet-backdrop { position: fixed; inset: 0; background: rgba(15,27,45,.45); z-index: 100; opacity: 0; visibility: hidden; transition: opacity .28s var(--xv-ease); }
.xv-sheet-backdrop.is-open { opacity: 1; visibility: visible; }
.xv-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; background: var(--xv-bg); border-radius: var(--xv-r-lg) var(--xv-r-lg) 0 0; box-shadow: var(--xv-sh-lg); transform: translateY(100%); transition: transform .32s var(--xv-ease); display: flex; flex-direction: column; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
.xv-sheet.is-open { transform: translateY(0); }
.xv-sheet.is-dragging { transition: none; }
.xv-sheet__handle { padding: var(--xv-s2) 0 0; display: flex; justify-content: center; cursor: grab; touch-action: none; }
.xv-sheet__handle::before { content: ""; width: 40px; height: 5px; border-radius: var(--xv-r-pill); background: var(--xv-line); }
.xv-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--xv-s3) var(--xv-s4) var(--xv-s2); }
.xv-sheet__head h3 { font-size: var(--xv-t-h3); }
.xv-sheet__body { overflow-y: auto; padding: var(--xv-s2) var(--xv-s4) var(--xv-s4); flex: 1; }
.xv-sheet__foot { padding: var(--xv-s3) var(--xv-s4); border-top: 1px solid var(--xv-line); display: flex; gap: var(--xv-s3); background: var(--xv-bg); }
.xv-sheet__foot .xv-btn { flex: 1; }

@media (min-width: 900px) {
  .xv-sheet--modal { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%) scale(.96); width: min(560px, 92vw); max-height: 88vh; border-radius: var(--xv-r-lg); opacity: 0; }
  .xv-sheet--modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .xv-sheet--modal .xv-sheet__handle { display: none; }
  .xv-sheet--modal.is-dragging { transition: none; }
}

/* ---------------------------------------------------------------------------
   14. FORMS / INPUTS / DROPDOWNS
   ------------------------------------------------------------------------- */
.xv-field { display: flex; flex-direction: column; gap: 6px; }
.xv-label { font-weight: 600; font-size: var(--xv-t-sm); font-family: var(--xv-font-head); display: inline-flex; align-items: center; gap: 6px; }
.xv-label .req { color: var(--xv-error); }
.xv-input, .xv-select, .xv-textarea {
  width: 100%; min-height: 48px; padding: 0 var(--xv-s4);
  font-size: 16px; /* prevents iOS zoom */
  background: var(--xv-bg); border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-sm);
  color: var(--xv-ink); transition: border-color .15s var(--xv-ease), box-shadow .15s var(--xv-ease);
}
.xv-textarea { min-height: 96px; padding: var(--xv-s3) var(--xv-s4); line-height: 1.5; resize: vertical; }
.xv-input:focus, .xv-select:focus, .xv-textarea:focus { outline: none; border-color: var(--xv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xv-primary) 18%, transparent); }
.xv-input::placeholder { color: var(--xv-disabled); }
.xv-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7A8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  font-family: var(--xv-font-num); font-variant-numeric: tabular-nums;
}
.xv-select:disabled { background-color: var(--xv-bg-alt); color: var(--xv-disabled); cursor: not-allowed; }
.xv-input--num { font-family: var(--xv-font-num); font-variant-numeric: tabular-nums; }
.xv-input.is-invalid, .xv-select.is-invalid { border-color: var(--xv-error); }
.xv-field__hint { font-size: var(--xv-t-xs); color: var(--xv-muted); }
.xv-field__error { font-size: var(--xv-t-xs); color: var(--xv-error); display: flex; align-items: center; gap: 4px; }
.xv-field__error svg { width: 14px; height: 14px; }

.xv-checkbox, .xv-radio { display: flex; align-items: flex-start; gap: var(--xv-s3); min-height: 44px; padding: var(--xv-s2) 0; cursor: pointer; }
.xv-checkbox input, .xv-radio input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--xv-primary); flex: none; }

/* segmented control */
.xv-seg { display: inline-flex; background: var(--xv-bg-alt); border: 1px solid var(--xv-line); border-radius: var(--xv-r-pill); padding: 4px; gap: 4px; }
.xv-seg button { min-height: 40px; padding: 0 var(--xv-s4); border-radius: var(--xv-r-pill); font-weight: 600; font-size: var(--xv-t-sm); color: var(--xv-muted); }
.xv-seg button.is-active { background: var(--xv-bg); color: var(--xv-ink); box-shadow: var(--xv-sh-sm); }

/* Rx table */
.xv-rxtable { border-collapse: separate; border-spacing: var(--xv-s2); }
.xv-rxtable th { font-size: var(--xv-t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--xv-muted); font-weight: 700; text-align: center; padding-bottom: 2px; }
.xv-rxtable th[scope="row"], .xv-rxtable td.xv-rxtable__eye { text-align: left; font-weight: 700; font-family: var(--xv-font-head); white-space: nowrap; text-transform: none; letter-spacing: 0; color: var(--xv-ink); }
.xv-rxtable .xv-select, .xv-rxtable .xv-input { width: 92px; min-width: 92px; padding-inline: 10px; text-align: center; }
.xv-rxtable__lbl-short { display: none; }
@media (max-width: 639px) {
  /* full table (label+SPH+CYL+AXIS+ADD) needs 500px+ at desktop sizing; shrink it to fit a 360-390px phone instead of relying on hidden horizontal scroll */
  .xv-rxtable { border-spacing: var(--xv-s1); }
  .xv-rxtable .xv-select, .xv-rxtable .xv-input { width: 64px; min-width: 64px; padding-inline: 4px; }
  .xv-rxtable__lbl-full { display: none; }
  .xv-rxtable__lbl-short { display: inline; }
}

/* ---------------------------------------------------------------------------
   15. NOTICES / ALERTS
   ------------------------------------------------------------------------- */
.xv-note { display: flex; gap: var(--xv-s3); align-items: flex-start; padding: var(--xv-s3) var(--xv-s4); border-radius: var(--xv-r-md); font-size: var(--xv-t-sm); }
.xv-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.xv-note strong { font-family: var(--xv-font-head); }
.xv-note--info { background: color-mix(in srgb, var(--xv-primary) 8%, white); color: var(--xv-primary-dk); }
.xv-note--info svg { color: var(--xv-primary); }
.xv-note--warn { background: var(--xv-warn-sft); color: var(--xv-warn); }
.xv-note--warn svg { color: var(--xv-warn); }
.xv-note--accent { background: var(--xv-accent-sft); color: #8a5a12; }
.xv-note--accent svg { color: var(--xv-accent); }
.xv-note--error { background: var(--xv-error-sft); color: var(--xv-error); }
.xv-note--error svg { color: var(--xv-error); }

/* ---------------------------------------------------------------------------
   16. SKELETON LOADERS  (never spinners)
   ------------------------------------------------------------------------- */
.xv-skel { background: linear-gradient(100deg, var(--xv-bg-alt) 30%, #eef2f6 50%, var(--xv-bg-alt) 70%); background-size: 200% 100%; animation: xv-shimmer 1.3s var(--xv-ease) infinite; border-radius: var(--xv-r-sm); }
@keyframes xv-shimmer { to { background-position: -200% 0; } }
.xv-skel-card { border: 1px solid var(--xv-line); border-radius: var(--xv-r-md); overflow: hidden; }
.xv-skel-card .xv-skel--media { aspect-ratio: 4/3; border-radius: 0; }
.xv-skel-card__body { padding: var(--xv-s3); display: grid; gap: 8px; }
.xv-skel--line { height: 12px; } .xv-skel--line.sm { width: 60%; } .xv-skel--line.lg { height: 18px; width: 80%; }

/* ---------------------------------------------------------------------------
   17. TOASTS
   ------------------------------------------------------------------------- */
.xv-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--xv-tabbar-h) + env(safe-area-inset-bottom) + 12px); z-index: 200; display: flex; flex-direction: column; gap: var(--xv-s2); width: min(94vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .xv-toasts { left: auto; right: 20px; transform: none; bottom: auto; top: 20px; } }
.xv-toast { pointer-events: auto; display: flex; align-items: center; gap: var(--xv-s3); background: var(--xv-ink); color: #fff; padding: var(--xv-s3) var(--xv-s4); border-radius: var(--xv-r-md); box-shadow: var(--xv-sh-lg); font-size: var(--xv-t-sm); transform: translateY(20px); opacity: 0; transition: all .28s var(--xv-ease); }
.xv-toast.is-in { transform: translateY(0); opacity: 1; }
.xv-toast svg { width: 20px; height: 20px; flex: none; }
.xv-toast--success svg { color: #4ADE80; }
.xv-toast__action { margin-left: auto; color: var(--xv-accent); font-weight: 700; font-family: var(--xv-font-head); white-space: nowrap; }

/* ---------------------------------------------------------------------------
   18. PLACEHOLDER (marks spots needing real client assets)
   ------------------------------------------------------------------------- */
.xv-ph { position: relative; display: grid; place-items: center; background-color: var(--xv-bg-alt);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 9px, rgba(107,122,140,.09) 9px, rgba(107,122,140,.09) 10px);
  color: var(--xv-muted); text-align: center; overflow: hidden; }
.xv-ph__label { font-family: var(--xv-font-num); font-size: var(--xv-t-xs); letter-spacing: .02em; padding: 6px 10px; background: rgba(255,255,255,.82); border-radius: var(--xv-r-pill); border: 1px dashed var(--xv-disabled); max-width: 88%; }
.xv-ph--frame { aspect-ratio: 4/3; }
/* eyeglass-themed frame placeholder: faint glasses silhouette + label pinned low */
.xv-ph--frame::before { content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 58%; max-width: 168px; aspect-ratio: 120/44; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44' viewBox='0 0 120 44' fill='none' stroke='%236B7A8C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='9' width='45' height='28' rx='13'/%3E%3Crect x='70' y='9' width='45' height='28' rx='13'/%3E%3Cpath d='M50 18c4-3 16-3 20 0'/%3E%3Cpath d='M5 15c-3-1-4-3-3.5-6'/%3E%3Cpath d='M115 15c3-1 4-3 3.5-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.xv-ph--frame .xv-ph__label { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); }

/* ---------------------------------------------------------------------------
   19. MISC UTILITIES
   ------------------------------------------------------------------------- */
.xv-divider { height: 1px; background: var(--xv-line); border: none; margin-block: var(--xv-s4); }
.xv-scroll-lock { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.xv-hide-desktop { display: initial; } .xv-hide-mobile { display: none; }
@media (min-width: 900px) { .xv-hide-desktop { display: none; } .xv-hide-mobile { display: initial; } }
.xv-hstack-scroll { display: flex; gap: var(--xv-s3); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.xv-hstack-scroll::-webkit-scrollbar { display: none; }
.xv-hstack-scroll > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------------------------------------------------------------------------
   20. LENS WIZARD  (full-screen mobile / centred modal desktop)
   ------------------------------------------------------------------------- */
.xv-wiz-page { background: var(--xv-bg-alt); min-height: 100dvh; }
@media (min-width: 900px) { .xv-wiz-page { display: grid; place-items: center; padding: var(--xv-s5); } }

.xv-wiz { position: fixed; inset: 0; z-index: 40; background: var(--xv-bg); display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .xv-wiz { position: relative; inset: auto; width: min(760px, 100%); max-height: min(900px, 94dvh); height: auto; border-radius: var(--xv-r-lg); box-shadow: var(--xv-sh-lg); overflow: hidden; }
}

.xv-wiz__top { flex: none; padding: calc(env(safe-area-inset-top) + var(--xv-s3)) var(--xv-s4) var(--xv-s3); border-bottom: 1px solid var(--xv-line); background: var(--xv-bg); }
@media (min-width: 900px) { .xv-wiz__top { padding-top: var(--xv-s4); } }
.xv-wiz__topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--xv-s2); }
.xv-wiz__title { font-family: var(--xv-font-head); font-weight: 700; font-size: var(--xv-t-h3); }
.xv-wiz__progress { display: flex; align-items: center; gap: var(--xv-s3); margin-top: var(--xv-s3); }
.xv-wiz__dots { display: flex; align-items: center; gap: 6px; flex: 1; }
.xv-wiz__dot { flex: 1; height: 5px; border-radius: var(--xv-r-pill); background: var(--xv-line); transition: background .25s var(--xv-ease); }
.xv-wiz__dot.is-done { background: var(--xv-verify); }
.xv-wiz__dot.is-active { background: var(--xv-primary); }
.xv-wiz__count { font-size: var(--xv-t-xs); font-weight: 700; color: var(--xv-muted); white-space: nowrap; font-family: var(--xv-font-head); }

.xv-wiz__body { flex: 1; overflow-y: auto; padding: var(--xv-s5) var(--xv-s4); -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .xv-wiz__body { padding: var(--xv-s6); } }
.xv-wiz__step-h { margin-bottom: var(--xv-s4); }
.xv-wiz__step-h h2 { font-size: var(--xv-t-h2); }
.xv-wiz__step-h p { color: var(--xv-muted); margin-top: 4px; }

.xv-wiz__foot { flex: none; border-top: 1px solid var(--xv-line); background: var(--xv-bg); padding: var(--xv-s3) var(--xv-s4) calc(var(--xv-s3) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: var(--xv-s4); }
@media (min-width: 900px) { .xv-wiz__foot { padding-bottom: var(--xv-s3); } }
.xv-wiz__totals { flex: 1; min-width: 0; }
.xv-wiz__frame-name { font-size: var(--xv-t-xs); color: var(--xv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xv-wiz__total { font-family: var(--xv-font-head); font-weight: 800; font-size: 1.15rem; }
.xv-wiz__total small { font-weight: 600; font-size: var(--xv-t-xs); color: var(--xv-muted); }
.xv-wiz__foot .xv-btn { flex: none; min-width: 150px; }

/* option cards (steps 1 & 2) */
.xv-optlist { display: grid; gap: var(--xv-s3); }
@media (min-width: 640px) { .xv-optlist--2 { grid-template-columns: 1fr 1fr; } }
.xv-optcard { display: flex; align-items: flex-start; gap: var(--xv-s3); width: 100%; text-align: left; padding: var(--xv-s4); border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-md); background: var(--xv-bg); transition: border-color .15s var(--xv-ease), box-shadow .15s var(--xv-ease), background .15s var(--xv-ease); }
.xv-optcard:hover { border-color: var(--xv-primary); }
.xv-optcard.is-sel { border-color: var(--xv-primary); background: color-mix(in srgb, var(--xv-primary) 5%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xv-primary) 16%, transparent); }
.xv-optcard__ic { width: 44px; height: 44px; flex: none; border-radius: var(--xv-r-sm); background: var(--xv-bg-alt); color: var(--xv-primary); display: grid; place-items: center; }
.xv-optcard.is-sel .xv-optcard__ic { background: var(--xv-primary); color: #fff; }
.xv-optcard__ic svg { width: 24px; height: 24px; }
.xv-optcard__t { display: block; font-family: var(--xv-font-head); font-weight: 700; }
.xv-optcard__d { display: block; font-size: var(--xv-t-sm); color: var(--xv-muted); }
.xv-optcard__check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--xv-line); flex: none; display: grid; place-items: center; color: #fff; }
.xv-optcard.is-sel .xv-optcard__check { background: var(--xv-primary); border-color: var(--xv-primary); }
.xv-optcard__check svg { width: 14px; height: 14px; opacity: 0; }
.xv-optcard.is-sel .xv-optcard__check svg { opacity: 1; }

/* lens tier cards (step 4) */
.xv-lenslist { display: grid; gap: var(--xv-s3); }
.xv-lenscard { position: relative; text-align: left; width: 100%; padding: var(--xv-s4); border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-md); background: var(--xv-bg); transition: border-color .15s var(--xv-ease), box-shadow .15s var(--xv-ease); }
.xv-lenscard:hover { border-color: var(--xv-primary); }
.xv-lenscard.is-sel { border-color: var(--xv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xv-primary) 16%, transparent); }
.xv-lenscard--rec { border-color: var(--xv-accent); }
.xv-lenscard--rec.is-sel { box-shadow: 0 0 0 3px color-mix(in srgb, var(--xv-accent) 30%, transparent); }
.xv-lenscard__ribbon { display: inline-flex; align-items: center; gap: 4px; background: var(--xv-accent); color: var(--xv-ink); font-family: var(--xv-font-head); font-weight: 700; font-size: var(--xv-t-xs); padding: 3px 10px; border-radius: var(--xv-r-pill); margin-bottom: var(--xv-s2); }
.xv-lenscard__ribbon svg { width: 13px; height: 13px; fill: currentColor; }
.xv-lenscard__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--xv-s3); }
.xv-lenscard__name { font-family: var(--xv-font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.xv-lenscard__price { font-family: var(--xv-font-head); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.xv-lenscard__spec { font-size: var(--xv-t-sm); color: var(--xv-primary); font-weight: 600; margin-top: 2px; }
.xv-lenscard__desc { font-size: var(--xv-t-sm); color: var(--xv-muted); margin-top: 4px; }

/* add-on rows (step 5) */
.xv-addon { display: flex; align-items: center; gap: var(--xv-s3); padding: var(--xv-s3) 0; border-bottom: 1px solid var(--xv-line); min-height: 60px; }
.xv-addon__main { flex: 1; }
.xv-addon__t { font-family: var(--xv-font-head); font-weight: 600; }
.xv-addon__d { font-size: var(--xv-t-xs); color: var(--xv-muted); }
.xv-addon__price { font-family: var(--xv-font-num); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xv-addon.is-disabled { opacity: .55; }
.xv-addon.is-locked .xv-switch { pointer-events: none; }

/* toggle switch */
.xv-switch { position: relative; width: 48px; height: 28px; flex: none; }
.xv-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.xv-switch__track { position: absolute; inset: 0; border-radius: var(--xv-r-pill); background: var(--xv-disabled); transition: background .2s var(--xv-ease); }
.xv-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--xv-sh-sm); transition: transform .2s var(--xv-ease); }
.xv-switch input:checked + .xv-switch__track { background: var(--xv-primary); }
.xv-switch input:checked + .xv-switch__track::after { transform: translateX(20px); }
.xv-switch input:disabled { cursor: not-allowed; }

/* review (step 6) */
.xv-review-line { display: flex; gap: var(--xv-s3); padding: 10px 0; border-bottom: 1px dashed var(--xv-line); font-size: var(--xv-t-sm); }
.xv-review-line__label { width: 64px; flex: none; color: var(--xv-muted); font-weight: 600; }
.xv-review-line__val { flex: 1; }
.xv-review-line__price { font-family: var(--xv-font-num); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.xv-review-tot { display: flex; justify-content: space-between; padding: 6px 0; }
.xv-review-tot--grand { font-family: var(--xv-font-head); font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--xv-ink); margin-top: 6px; padding-top: 12px; }
.xv-review-tot--disc { color: var(--xv-verify); }
.xv-rxsummary { background: var(--xv-bg-alt); border-radius: var(--xv-r-md); padding: var(--xv-s4); }
.xv-rxsummary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--xv-s4); font-family: var(--xv-font-num); font-variant-numeric: tabular-nums; font-size: var(--xv-t-sm); }
.xv-rxsummary dt { font-weight: 700; color: var(--xv-muted); }

/* success (step 7) */
.xv-wiz-done { text-align: center; padding: var(--xv-s6) var(--xv-s2); display: flex; flex-direction: column; align-items: center; gap: var(--xv-s3); }
.xv-wiz-done__badge { width: 84px; height: 84px; border-radius: 50%; background: var(--xv-verify-sft); color: var(--xv-verify); display: grid; place-items: center; }
.xv-wiz-done__badge svg { width: 46px; height: 46px; }
@media (prefers-reduced-motion: no-preference) { .xv-wiz-done__badge { animation: xv-pop .45s var(--xv-ease); } @keyframes xv-pop { 0%{transform:scale(.5);opacity:0} 60%{transform:scale(1.12)} 100%{transform:scale(1)} } }

.xv-tooltip-btn { width: 20px; height: 20px; border-radius: 50%; background: var(--xv-bg-alt); color: var(--xv-muted); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; border: 1px solid var(--xv-line); }
.xv-tooltip-btn:hover { background: var(--xv-primary); color: #fff; border-color: var(--xv-primary); }

/* reveal-on-scroll (added by JS; no-JS shows content normally) */
.xv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--xv-ease), transform .55s var(--xv-ease); will-change: opacity, transform; }
.xv-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .xv-reveal { opacity: 1; transform: none; transition: none; } }

/* ---- frame art + Framer-style motion (added) ---- */
.xv-card__art { position: absolute; inset: 0; }
.xv-frameart { width: 100%; height: 100%; }
.xv-frameart__g { transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.34,1.55,.4,1); }
.hm-cat__ic--art { padding: 0; overflow: hidden; }
.hm-cat__ic--art .xv-frameart { width: 100%; height: 100%; }
@media (hover: hover) {
  .xv-card { transition: border-color .18s var(--xv-ease), transform .4s cubic-bezier(.34,1.4,.5,1), box-shadow .4s var(--xv-ease); }
  .xv-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12,35,64,.14); border-color: var(--xv-primary); }
  .xv-card:hover .xv-frameart__g { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
}
.xv-card--enter { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.34,1.4,.5,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.xv-card--enter.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .xv-card--enter, .xv-card--enter.is-in { opacity: 1; transform: none; transition: none; } }

/* page enter transition */
@media (prefers-reduced-motion: no-preference) {
  .xv-main { animation: xv-page-in .32s var(--xv-ease); }
  @keyframes xv-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------------
   21. BOOKING (Book Eye Test) + generic step flow chrome
   ------------------------------------------------------------------------- */
.xv-flow { border: 1px solid var(--xv-line); border-radius: var(--xv-r-lg); background: var(--xv-bg); box-shadow: var(--xv-sh-sm); overflow: hidden; }
.xv-flow__top { padding: var(--xv-s4); border-bottom: 1px solid var(--xv-line); }
.xv-flow__steps { display: flex; align-items: center; gap: 6px; margin-top: var(--xv-s3); }
.xv-flow__dot { flex: 1; height: 5px; border-radius: var(--xv-r-pill); background: var(--xv-line); }
.xv-flow__dot.is-done { background: var(--xv-verify); }
.xv-flow__dot.is-active { background: var(--xv-primary); }
.xv-flow__body { padding: var(--xv-s5) var(--xv-s4); }
@media (min-width: 640px) { .xv-flow__body { padding: var(--xv-s6); } }
.xv-flow__foot { display: flex; align-items: center; gap: var(--xv-s3); padding: var(--xv-s3) var(--xv-s4); border-top: 1px solid var(--xv-line); background: var(--xv-bg-alt); }
.xv-flow__foot .xv-btn:last-child { margin-left: auto; }

.bk-datestrip { display: flex; gap: var(--xv-s2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.bk-datestrip::-webkit-scrollbar { display: none; }
.bk-date { flex: 0 0 auto; width: 66px; min-height: 72px; scroll-snap-align: start; border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-md); background: var(--xv-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: all .15s var(--xv-ease); }
.bk-date small { font-size: 11px; color: var(--xv-muted); text-transform: uppercase; font-weight: 700; }
.bk-date strong { font-family: var(--xv-font-head); font-size: 1.2rem; }
.bk-date span { font-size: 10px; color: var(--xv-muted); }
.bk-date.is-active { background: var(--xv-primary); border-color: var(--xv-primary); }
.bk-date.is-active small, .bk-date.is-active strong, .bk-date.is-active span { color: #fff; }
.bk-date.is-off { opacity: .4; pointer-events: none; }
.bk-slotgroup { margin-top: var(--xv-s4); }
.bk-slotgroup h4 { font-size: var(--xv-t-sm); color: var(--xv-muted); margin-bottom: var(--xv-s2); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--xv-s2); }
.bk-slot { min-height: 44px; border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-sm); background: var(--xv-bg); font-weight: 600; font-size: var(--xv-t-sm); font-variant-numeric: tabular-nums; transition: all .15s var(--xv-ease); }
.bk-slot:hover { border-color: var(--xv-primary); }
.bk-slot.is-active { background: var(--xv-primary); border-color: var(--xv-primary); color: #fff; }
.bk-slot.is-full { opacity: .4; pointer-events: none; text-decoration: line-through; }
.bk-price-tag { font-family: var(--xv-font-head); font-weight: 800; }
.bk-free { color: var(--xv-verify); }
.bk-steplist { display: grid; gap: var(--xv-s4); counter-reset: bk; }
.bk-steplist li { list-style: none; display: flex; gap: var(--xv-s3); }
.bk-steplist li::before { counter-increment: bk; content: counter(bk); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--xv-primary); color: #fff; font-family: var(--xv-font-head); font-weight: 700; display: grid; place-items: center; }
.bk-steplist h4 { font-size: var(--xv-t-body); }
.bk-steplist p { font-size: var(--xv-t-sm); color: var(--xv-muted); }

/* ---------------------------------------------------------------------------
   22. FILTERS (Shop)
   ------------------------------------------------------------------------- */
.fl-facet { padding: var(--xv-s4) 0; border-bottom: 1px solid var(--xv-line); }
.fl-facet:last-child { border-bottom: none; }
.fl-facet h4 { font-size: var(--xv-t-sm); font-family: var(--xv-font-head); margin-bottom: var(--xv-s3); display: flex; align-items: center; gap: 6px; }
.fl-facet h4 svg { width: 15px; height: 15px; color: var(--xv-verify); }
.fl-facet--clinical { background: var(--xv-verify-sft); margin-inline: calc(-1 * var(--xv-s4)); padding-inline: var(--xv-s4); border-radius: var(--xv-r-sm); border-bottom: none; }
.fl-pills { display: flex; flex-wrap: wrap; gap: var(--xv-s2); }
.fl-list { display: grid; gap: 2px; }
.fl-check { display: flex; align-items: center; gap: var(--xv-s3); min-height: 40px; padding: 0 4px; cursor: pointer; font-size: var(--xv-t-sm); border-radius: var(--xv-r-sm); }
.fl-check:hover { background: var(--xv-bg-alt); }
.fl-check input { width: 20px; height: 20px; accent-color: var(--xv-primary); flex: none; }
.fl-check span:nth-child(2) { flex: 1; }
.fl-count { color: var(--xv-muted); font-size: var(--xv-t-xs); font-variant-numeric: tabular-nums; }
.fl-check.is-empty { opacity: .45; }
.fl-swatches { display: flex; flex-wrap: wrap; gap: var(--xv-s3); }
.fl-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--xv-line); }
.fl-sw.is-active { box-shadow: 0 0 0 2.5px var(--xv-primary); }
.fl-sw:disabled { opacity: .35; cursor: not-allowed; }
/* shop layout */
.sh-layout { display: grid; gap: var(--xv-s5); align-items: start; }
@media (min-width: 900px) { .sh-layout { grid-template-columns: 264px 1fr; gap: var(--xv-s6); } }
.sh-rail { display: none; }
@media (min-width: 900px) { .sh-rail { display: block; position: sticky; top: calc(var(--xv-nav-h) + 44px); max-height: calc(100dvh - var(--xv-nav-h) - 60px); overflow-y: auto; border: 1px solid var(--xv-line); border-radius: var(--xv-r-md); padding: 0 var(--xv-s4); background: var(--xv-bg); } }
.sh-toolbar { display: flex; align-items: center; gap: var(--xv-s2); justify-content: space-between; margin-bottom: var(--xv-s3); }
.sh-mobilebar { display: flex; gap: var(--xv-s2); position: sticky; top: var(--xv-nav-h); z-index: 30; background: var(--xv-bg); padding: var(--xv-s2) 0; }
@media (min-width: 900px) { .sh-mobilebar { display: none; } }
.sh-mobilebar .xv-btn { flex: 1; }
.sh-count { font-family: var(--xv-font-head); font-weight: 700; }
.sh-count[data-count].is-bump { animation: xv-bump .4s var(--xv-ease); display: inline-block; }
.sh-sort { min-height: 44px; }
@media (min-width: 900px) { .sh-sort { min-height: 40px; } }
/* wider shop canvas + larger cards */
.xv-container--wide { max-width: 1480px; }
@media (min-width: 900px) { .sh-layout--wide { grid-template-columns: 280px 1fr; gap: var(--xv-s7); } }
.sh-grid { grid-template-columns: repeat(2, 1fr); gap: var(--xv-s4); }
@media (min-width: 1100px) { .sh-grid { grid-template-columns: repeat(3, 1fr); gap: var(--xv-s5); } }
.sh-grid .xv-card__media { aspect-ratio: 5/4; }
.sh-grid .xv-card__body { padding: var(--xv-s4); }
.sh-grid .xv-card__title { font-size: 1.1rem; }
.sh-grid .xv-card__price .now { font-size: 1.2rem; }

/* ---------------------------------------------------------------------------
   23. VIRTUAL TRY-ON
   ------------------------------------------------------------------------- */
.to-stage-wrap { position: relative; background: #0b1622; border-radius: var(--xv-r-lg); overflow: hidden; }
@media (min-width: 900px) { .to-stage-wrap { border-radius: var(--xv-r-lg); } }
.to-stage { position: relative; aspect-ratio: 3/4; max-height: 62dvh; margin: 0 auto; display: grid; place-items: center; }
@media (min-width: 900px) { .to-stage { aspect-ratio: 16/10; max-height: 68dvh; } }
.to-stage video, .to-stage img.to-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.to-face { position: relative; width: 46%; max-width: 220px; aspect-ratio: 3/4; }
.to-face .xv-ph { position: absolute; inset: 0; border-radius: 44% 44% 46% 46%/ 40% 40% 60% 60%; background-color: #16263a; }
.to-face .xv-ph__label { background: rgba(255,255,255,.14); color: #cdd7e2; border-color: rgba(255,255,255,.3); }
.to-frame-overlay { position: absolute; top: 34%; left: 50%; transform: translate(-50%,-50%); width: 82%; color: #fff; opacity: .92; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.to-frame-overlay svg { width: 100%; height: auto; }
.to-shape-badge { position: absolute; top: var(--xv-s3); left: var(--xv-s3); background: rgba(11,22,34,.75); color: #fff; padding: 8px 14px; border-radius: var(--xv-r-md); font-size: var(--xv-t-sm); backdrop-filter: blur(6px); }
.to-shape-badge strong { font-family: var(--xv-font-head); display: block; }
.to-shape-badge .ok { color: #4ADE80; font-size: var(--xv-t-xs); display: inline-flex; align-items: center; gap: 4px; }
.to-cam-actions { position: absolute; bottom: var(--xv-s3); right: var(--xv-s3); display: flex; gap: var(--xv-s2); }
.to-cam-actions button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--xv-ink); display: grid; place-items: center; box-shadow: var(--xv-sh-md); }
.to-cam-actions svg { width: 22px; height: 22px; }
.to-bottom { background: var(--xv-bg); border-top: 1px solid var(--xv-line); padding: var(--xv-s3) var(--xv-s4); }
.to-carousel { display: flex; gap: var(--xv-s2); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.to-carousel::-webkit-scrollbar { display: none; }
.to-thumb { flex: 0 0 auto; width: 72px; scroll-snap-align: start; border: 2px solid transparent; border-radius: var(--xv-r-sm); padding: 0; overflow: hidden; }
.to-thumb.is-active { border-color: var(--xv-primary); }
.to-thumb .xv-ph { aspect-ratio: 4/3; }
.to-thumb .xv-ph__label { font-size: 8px; padding: 1px 4px; }
.to-selbar { display: flex; align-items: center; gap: var(--xv-s3); margin-top: var(--xv-s3); }
.to-selbar__name { flex: 1; }
.to-selbar__name strong { font-family: var(--xv-font-head); }
.to-entry { text-align: center; padding: var(--xv-s7) var(--xv-s4); color: #fff; }
.to-entry h2 { color: #fff; }
.to-entry p { color: #cdd7e2; max-width: 40ch; margin: 8px auto var(--xv-s5); }
.to-entry__btns { display: flex; flex-wrap: wrap; gap: var(--xv-s3); justify-content: center; }
.to-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--xv-s2); }
.to-compare-grid .xv-ph { aspect-ratio: 1; border-radius: var(--xv-r-sm); }

/* ---------------------------------------------------------------------------
   24. SUPPORT PAGES (shared template)
   ------------------------------------------------------------------------- */
.sp-layout { display: grid; gap: var(--xv-s5); align-items: start; }
@media (min-width: 900px) { .sp-layout { grid-template-columns: 240px 1fr; gap: var(--xv-s6); } }
.sp-nav { border: 1px solid var(--xv-line); border-radius: var(--xv-r-md); overflow: hidden; background: var(--xv-bg); }
@media (min-width: 900px) { .sp-nav { position: sticky; top: calc(var(--xv-nav-h) + 20px); } }
.sp-nav__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--xv-s4); font-family: var(--xv-font-head); font-weight: 700; }
.sp-nav__toggle svg { width: 20px; height: 20px; transition: transform .2s var(--xv-ease); }
.sp-nav.is-open .sp-nav__toggle svg { transform: rotate(180deg); }
.sp-nav__list { display: grid; }
@media (max-width: 899px) { .sp-nav__list { max-height: 0; overflow: hidden; transition: max-height .3s var(--xv-ease); } .sp-nav.is-open .sp-nav__list { max-height: 600px; } }
@media (min-width: 900px) { .sp-nav__toggle { cursor: default; } .sp-nav__toggle svg { display: none; } }
.sp-navlink { display: block; padding: 11px var(--xv-s4); font-size: var(--xv-t-sm); font-weight: 600; font-family: var(--xv-font-head); color: var(--xv-ink); border-left: 3px solid transparent; }
.sp-navlink:hover { background: var(--xv-bg-alt); }
.sp-navlink.is-active { color: var(--xv-primary); border-left-color: var(--xv-primary); background: color-mix(in srgb, var(--xv-primary) 6%, white); }
.sp-content { max-width: 760px; }
.sp-content h1 { font-size: var(--xv-t-h1); margin-bottom: var(--xv-s2); }
.sp-content h2 { font-size: var(--xv-t-h2); margin: var(--xv-s5) 0 var(--xv-s3); }
.sp-content h3 { font-size: var(--xv-t-h3); margin: var(--xv-s4) 0 var(--xv-s2); }
.sp-content p, .sp-content li { margin-bottom: var(--xv-s3); }
.sp-content ul { padding-left: var(--xv-s5); }
.sp-lead { color: var(--xv-muted); font-size: 1.05rem; margin-bottom: var(--xv-s5); }
.sp-search { position: relative; margin-bottom: var(--xv-s4); }
.sp-search input { padding-left: 44px; }
.sp-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--xv-muted); }
.sp-faq { border: 1px solid var(--xv-line); border-radius: var(--xv-r-md); overflow: hidden; margin-bottom: var(--xv-s2); }
.sp-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--xv-s3); width: 100%; padding: var(--xv-s4); text-align: left; font-family: var(--xv-font-head); font-weight: 600; }
.sp-faq__q svg { width: 20px; height: 20px; flex: none; transition: transform .2s var(--xv-ease); }
.sp-faq.is-open .sp-faq__q svg { transform: rotate(180deg); }
.sp-faq__a { max-height: 0; overflow: hidden; transition: max-height .25s var(--xv-ease); }
.sp-faq.is-open .sp-faq__a { max-height: 500px; }
.sp-faq__a p { padding: 0 var(--xv-s4) var(--xv-s4); margin: 0; color: var(--xv-muted); font-size: var(--xv-t-sm); }
.sp-help { margin-top: var(--xv-s6); padding: var(--xv-s5); border-radius: var(--xv-r-lg); background: var(--xv-bg-alt); text-align: center; }
.sg-measure-form { display: grid; gap: var(--xv-s3); grid-template-columns: 1fr 1fr 1fr; margin: var(--xv-s4) 0; }
.sg-result { padding: var(--xv-s4); border-radius: var(--xv-r-md); background: var(--xv-verify-sft); color: #0d6b45; font-weight: 600; }
.rxg-table { width: 100%; border-collapse: collapse; font-size: var(--xv-t-sm); margin: var(--xv-s4) 0; }
.rxg-table th, .rxg-table td { border: 1px solid var(--xv-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.rxg-table th { background: var(--xv-bg-alt); font-family: var(--xv-font-head); }
.rxg-table .term { font-family: var(--xv-font-num); font-weight: 700; }

/* ---- pan-India: location, language, local-only content ---- */
html:not(.xv-local) [data-local-only] { display: none !important; }
html.xv-local [data-national-only] { display: none !important; }
html[lang="hi"] { --xv-font-body: 'IBM Plex Sans', 'IBM Plex Sans Devanagari', system-ui, sans-serif; --xv-font-head: 'Archivo', 'IBM Plex Sans Devanagari', system-ui, sans-serif; }
html[lang="gu"] { --xv-font-body: 'IBM Plex Sans', 'Hind Vadodara', system-ui, sans-serif; --xv-font-head: 'Archivo', 'Hind Vadodara', system-ui, sans-serif; }
.xv-promo__inner { justify-content: space-between; }
.xv-promo__trust { display: flex; align-items: center; gap: var(--xv-s6); }
.xv-lang { display: inline-flex; align-items: center; gap: 2px; }
.xv-lang button { height: 24px; padding: 0 9px; border-radius: var(--xv-r-sm); color: rgba(255,255,255,.82); font-family: var(--xv-font-head); font-weight: 600; font-size: 12px; line-height: 1; }
.xv-lang button:hover { color: #fff; }
.xv-lang button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: #fff; }
.xv-lang--light { gap: 6px; }
.xv-lang--light button { height: 44px; min-width: 56px; padding: 0 14px; color: var(--xv-ink); border: 1.5px solid var(--xv-line); font-size: 15px; }
.xv-lang--light button:hover { color: var(--xv-primary); border-color: var(--xv-primary); }
.xv-lang--light button[aria-pressed="true"] { background: var(--xv-deep); border-color: var(--xv-deep); color: #fff; }
.xv-drawer__lang { display: flex; align-items: center; justify-content: space-between; gap: var(--xv-s3); padding-bottom: var(--xv-s2); }
.xv-loc { display: none; align-items: center; gap: 8px; flex: none; min-height: 46px; padding: 4px 12px 4px 8px; border-radius: var(--xv-r-sm); color: var(--xv-ink); text-align: left; transition: background .15s var(--xv-ease); }
.xv-loc:hover { background: var(--xv-bg-alt); }
.xv-loc > svg { width: 22px; height: 22px; color: var(--xv-primary); flex: none; }
.xv-loc__k { display: block; font-size: 12px; line-height: 1.2; color: var(--xv-muted); }
.xv-loc__v { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--xv-font-head); font-weight: 700; font-size: 14px; line-height: 1.25; }
@media (min-width: 1024px) { .xv-loc { display: inline-flex; } }
.xv-locbar { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 var(--xv-s4); background: var(--xv-primary-sft); border-bottom: 1px solid var(--xv-line); color: var(--xv-deep); font-size: 13px; text-align: left; }
.xv-locbar > svg { width: 16px; height: 16px; color: var(--xv-primary); flex: none; }
.xv-locbar strong { font-family: var(--xv-font-head); }
.xv-locbar [data-loc="bar"] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xv-locbar__chev { display: grid; color: var(--xv-muted); }
.xv-locbar__chev svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .xv-locbar { display: none; } }
.xv-action--wa .xv-iconbtn { color: #1B8A5A; }
.xv-locsheet__row { display: flex; gap: var(--xv-s2); }
.xv-locsheet__row .xv-input { flex: 1; min-width: 0; letter-spacing: .12em; }
.xv-locsheet__res { display: grid; gap: 10px; margin-top: var(--xv-s4); }
.xv-locsheet__head { font-family: var(--xv-font-head); font-weight: 700; font-size: var(--xv-t-body); padding-bottom: 4px; border-bottom: 1px solid var(--xv-line); }
.xv-locsheet__item { display: flex; gap: 10px; align-items: flex-start; font-size: var(--xv-t-sm); }
.xv-locsheet__item > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--xv-verify); }
.xv-locsheet__item strong { display: block; font-family: var(--xv-font-head); }
.xv-locsheet__item span { display: block; color: var(--xv-muted); }
.xv-locsheet__item.is-no strong { color: var(--xv-muted); font-weight: 600; }
.xv-locsheet__item.is-no > svg { color: var(--xv-disabled); }
.xv-perks { display: grid; gap: var(--xv-s4); align-items: center; padding: var(--xv-s5); border: 1.5px solid var(--xv-line); border-radius: var(--xv-r-md); background: var(--xv-bg-alt); }
@media (min-width: 900px) { .xv-perks { grid-template-columns: 1fr auto; padding: var(--xv-s5) var(--xv-s6); } }
.xv-perks h2 { font-size: var(--xv-t-h3); }
.xv-perks__list { display: flex; flex-wrap: wrap; gap: var(--xv-s2) var(--xv-s5); margin-top: 10px; font-size: var(--xv-t-sm); color: var(--xv-deep); }
.xv-perks__list span { display: inline-flex; align-items: center; gap: 6px; }
.xv-perks__list svg { width: 16px; height: 16px; color: var(--xv-verify); }

/* ---- consent banner (DPDP) ---- */
[hidden] { display: none !important; }
.xv-consent { position: fixed; z-index: 120; left: var(--xv-s3); right: var(--xv-s3); bottom: calc(var(--xv-tabbar-h) + env(safe-area-inset-bottom) + var(--xv-s3)); display: flex; flex-direction: column; gap: var(--xv-s3); padding: var(--xv-s4); background: var(--xv-bg); border: 1px solid var(--xv-line); border-radius: var(--xv-r-md); box-shadow: var(--xv-sh-lg); max-width: 560px; font-size: var(--xv-t-sm); }
@media (min-width: 1024px) { .xv-consent { left: var(--xv-s5); bottom: var(--xv-s5); flex-direction: row; align-items: center; max-width: 720px; } }
.xv-consent strong { font-family: var(--xv-font-head); display: block; margin-bottom: 2px; }
.xv-consent p { color: var(--xv-muted); }
.xv-consent__btns { display: flex; gap: var(--xv-s2); flex: none; }
.xv-consent__btns .xv-btn { flex: 1; }
/* clear the product/cart sticky buy bar instead of covering it; 70px = that bar's own height (44px button + 2x12px padding + border) */
body:has(.ct-sticky:not([hidden])) .xv-consent,
body:has(.pd-sticky.is-visible) .xv-consent {
  bottom: calc(var(--xv-tabbar-h) + env(safe-area-inset-bottom) + 70px + var(--xv-s3));
}
@media (min-width: 900px) { body:has(.pd-sticky.is-visible) .xv-consent { bottom: calc(var(--xv-tabbar-h) + env(safe-area-inset-bottom) + var(--xv-s3)); } }
@media (min-width: 960px) { body:has(.ct-sticky:not([hidden])) .xv-consent { bottom: calc(var(--xv-tabbar-h) + env(safe-area-inset-bottom) + var(--xv-s3)); } }
@media (min-width: 1024px) {
  body:has(.ct-sticky:not([hidden])) .xv-consent,
  body:has(.pd-sticky.is-visible) .xv-consent { bottom: var(--xv-s5); }
}
