:root {
  --hdr: 68px;
  --bnav: 0px;
  --paper: #F4F2ED;
  --card: #FBFAF7;
  --tile: #EAE7E0;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --muted: #8A867E;
  --line: #DEDAD2;
  --accent: #FF5A2C;
  --accent-ink: #E2461A;
  --navy: #0B2346;
  --ok: #1E8A52;
  --warn: #D98A0B;
  --bad: #D2391B;
  --tortoise: radial-gradient(circle at 30% 30%, #3A1B0C 0 18%, transparent 19%), radial-gradient(circle at 70% 65%, #2A1207 0 16%, transparent 17%), radial-gradient(circle at 65% 25%, #C9813F 0 10%, transparent 11%), #7A4221;
  --display: 'Archivo', 'Noto Sans Myanmar', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Noto Sans Myanmar', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Noto Sans Myanmar', Georgia, serif;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 32em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Burmese script needs taller lines and no negative tracking. */
:lang(my) body { line-height: 1.85; }
:lang(my) h1, :lang(my) h2, :lang(my) h3, :lang(my) h4 { line-height: 1.45; letter-spacing: 0; font-weight: 700; }
:lang(my) h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
:lang(my) h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
:lang(my) .eyebrow { letter-spacing: .02em; text-transform: none; font-size: .82rem; }
:lang(my) em { font-family: var(--body); font-style: normal; font-weight: 700; color: var(--accent); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 780px; }
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 760px) { .section { padding-top: 88px; padding-bottom: 88px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
:lang(my) .btn { white-space: normal; text-align: center; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .85rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s; }
.icon-btn:hover { background: var(--tile); }
.icon-heart svg path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge[hidden] { display: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 90, 44, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 90, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 44, 0); } }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244, 242, 237, .85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.logo-star { width: 22px; height: 22px; color: var(--accent); transition: transform .8s var(--ease); }
.logo:hover .logo-star { transform: rotate(180deg); }
.logo-word { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 1.22rem; letter-spacing: -.03em; white-space: nowrap; }
.main-nav { display: flex; gap: 2px; margin: 0 auto; }
.main-nav a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: .92rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.main-nav a:hover { color: var(--ink); background: var(--tile); }
.main-nav a.active { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.lang-btn { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; margin-right: 6px; transition: border-color .2s; }
.lang-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; }
@media (min-width: 981px) { .header-actions { margin-left: 0; } }
@media (max-width: 980px) {
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .main-nav { position: absolute; top: var(--hdr); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a.active { box-shadow: none; background: none; }
  body.menu-open .main-nav { display: flex; }
  .logo-word { font-size: 1.1rem; }
}

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 6rem); line-height: .95; margin-bottom: 24px; }
.hero h1 em { display: block; font-size: 1.08em; line-height: 1; }
:lang(my) .hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.4; }
:lang(my) .hero h1 em { font-size: 1em; line-height: 1.4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; max-width: 620px; width: 100%; justify-self: center; }
.hero-visual::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.hero-star { position: absolute; top: 9%; right: 9%; width: 9%; color: var(--accent); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-frame { position: relative; width: 78%; transition: opacity .3s, transform .3s var(--ease); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .1)); }
.hero-frame.swap { opacity: 0; transform: translateY(6px) scale(.98); }
.hero-caption { position: absolute; bottom: 20%; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.hero-caption b { color: var(--ink); font-family: var(--display); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; padding-bottom: 40px; }
  .hero-visual { order: -1; width: min(100%, 440px); }
  .hero .btn-lg { flex: 1 1 auto; }
}

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.mq-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: mq 40s linear infinite; font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.mq-star { width: 14px; height: 14px; color: var(--accent); flex: none; }
@keyframes mq { to { transform: translateX(-33.333%); } }

/* shape strip */
.shapes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.shape-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 12px 18px; border-radius: 18px; background: var(--card); text-decoration: none; font-size: .9rem; transition: background .25s; }
.shape-tile svg { width: 100%; transition: transform .35s var(--ease); }
.shape-tile:hover { background: #fff; }
.shape-tile:hover svg { transform: scale(1.08); }
@media (max-width: 1100px) { .shapes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .shapes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; } .shape-tile { flex: 0 0 38%; scroll-snap-align: start; } }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 20px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }
.card { position: relative; display: flex; flex-direction: column; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card-pic { position: relative; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .86; background: var(--card); border-radius: var(--r); overflow: hidden; transition: background .3s; }
.card:hover .card-media { background: #fff; }
.card-frame { width: 78%; transition: transform .5s var(--ease); }
.card:hover .card-frame { transform: scale(1.06) rotate(-1.5deg); }
.card-body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 3px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-name { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; text-decoration: none; }
.card-price { font-size: .95rem; }
.card-meta { font-size: .82rem; color: var(--muted); }
.tag { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
:lang(my) .tag { text-transform: none; letter-spacing: 0; }
.heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.heart:hover { background: var(--paper); }
.heart:active { transform: scale(.85); }
.heart svg path { fill: none; stroke: var(--ink); stroke-width: 1.6; transition: fill .2s, stroke .2s; }
.heart.on svg path { fill: var(--accent); stroke: var(--accent); }
.card-try { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500; text-decoration: none; opacity: 0; transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; }
.card:hover .card-try, .card-try:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .card-try { opacity: 1; transform: none; left: auto; right: 10px; bottom: 10px; width: 36px; height: 36px; padding: 0; justify-content: center; } .card-try span { display: none; } }

.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 0; padding: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; position: relative; transition: transform .2s; }
.swatch:hover { transform: scale(1.15); }
.swatch.active::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); }
.swatches-lg { gap: 14px; }
.swatches-lg .swatch { width: 28px; height: 28px; }

/* try-on band */
.band { background: var(--ink); color: #fff; overflow: hidden; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.band h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; margin-bottom: 20px; }
:lang(my) .band h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.45; }
.band p { color: rgba(255, 255, 255, .7); font-size: 1.05rem; max-width: 30em; }
.eyebrow-light { color: rgba(255, 255, 255, .6); }
.band-private { font-size: .82rem; margin-top: 22px; color: rgba(255, 255, 255, .45) !important; }
.band-visual { position: relative; width: min(100%, 420px); margin: 0 auto; }
.face-art { width: 100%; overflow: visible; }
.face-outline { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 1.2; stroke-dasharray: 3 5; }
.face-dots circle { fill: rgba(255, 255, 255, .35); }
.scan-line { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); animation: scan 3.2s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(50px); } to { transform: translateY(300px); } }
.band-glasses { position: absolute; left: 8%; right: 8%; top: 31%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-1deg); } }
.band-chip { position: absolute; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; white-space: nowrap; }
.band-chip.c1 { left: 0; top: 8%; }
.band-chip.c2 { right: 0; bottom: 14%; }
.band-chip.c2::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; margin-right: 7px; vertical-align: 1px; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; } .band-visual { order: -1; width: min(80%, 340px); } }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); }
.value-n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 14px; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* page head + shop */
.page-head { padding-top: 40px; padding-bottom: 12px; }
.page-head h1 { margin-bottom: 6px; }
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-bottom: 80px; padding-top: 20px; align-items: start; }
.filters { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; scrollbar-width: thin; }
.filters summary { display: none; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.filters legend { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
:lang(my) .filters legend { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input { width: 100%; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); margin-bottom: 22px; outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--ink); }
.results-bar { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
select { max-width: 100%; padding: 9px 34px 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center / 10px; appearance: none; -webkit-appearance: none; cursor: pointer; }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; max-height: none; }
  .filters summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; background: var(--card); border-radius: 14px; cursor: pointer; list-style: none; font-weight: 600; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters summary::after { content: '+'; font-size: 1.2rem; }
  .filters details[open] summary { margin-bottom: 18px; }
  .filters details[open] summary::after { content: '−'; }
}
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line); border-radius: var(--r); }
.empty p { color: var(--muted); }

/* product page */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding-top: 20px; padding-bottom: 32px; align-items: start; }
.pdp-media { position: sticky; top: 88px; background: var(--card); border-radius: 28px; padding: 64px 40px 28px; }
.pdp-frame { max-width: 580px; margin: 32px auto 56px; }
.pdp-specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 20px; text-align: center; }
.pdp-specs b { display: block; font-family: var(--display); font-size: 1.25rem; }
.pdp-specs span { font-size: .76rem; color: var(--muted); }
.pdp-info .eyebrow { margin-bottom: 10px; }
.pdp-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdp-title h1 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.pdp-title .heart { position: static; background: var(--card); flex: none; width: 44px; height: 44px; }
.pdp-price { font-size: 1.3rem; margin: 6px 0 18px; }
.pdp-blurb { color: var(--ink-2); font-size: 1.02rem; }
.pdp-colors { margin: 26px 0 22px; }
.label { display: block; font-size: .9rem; margin-bottom: 12px; color: var(--muted); }
.label b { color: var(--ink); font-weight: 500; }
.try-cta { margin-bottom: 40px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-media { position: relative; top: 0; padding: 40px 16px 20px; border-radius: var(--r); }
  .pdp-frame { margin: 12px auto 32px; }
}

/* configurator */
.step { border: 0; padding: 0; margin: 0 0 32px; display: grid; gap: 8px; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.08rem; margin-bottom: 14px; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink); font-size: .78rem; font-weight: 600; font-family: var(--body); flex: none; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-body { display: block; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .2s, background .2s; }
.opt-body:hover { border-color: #bbb6ad; }
.opt-top { display: flex; justify-content: space-between; gap: 12px; }
.opt-top b { font-weight: 600; }
.opt-top span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.opt small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.opt input:checked + .opt-body { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + .opt-body .opt-top span { color: var(--ink); }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt input[type=checkbox] + .opt-body b::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 1px solid var(--muted); border-radius: 4px; margin-right: 9px; vertical-align: -2px; }
.opt input[type=checkbox]:checked + .opt-body b::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-6' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--tile); border-radius: 999px; padding: 4px; gap: 4px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 8px; border-radius: 999px; font-size: .88rem; transition: background .2s; }
.seg input:checked + span { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.rx-wrap { overflow-x: auto; margin-top: 6px; }
.rx { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rx th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 4px; font-size: .78rem; }
.rx tbody th { color: var(--ink); white-space: nowrap; }
.rx td { padding: 4px; }
.rx select, .rx input { width: 100%; min-width: 74px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--card); }
.rx select { padding-right: 26px; background-position: right 8px center; }
.pd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .9rem; font-weight: 500; margin-top: 6px; }
.select-lg { padding: 13px 40px 13px 16px; font-size: 1rem; }
.hint { font-size: .84rem; color: var(--muted); margin: 0; }
.hint-scan { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.hint-star { width: 13px; height: 13px; color: var(--accent); flex: none; margin-top: 4px; }
.form-error { color: var(--bad); font-weight: 500; font-size: .88rem; margin: 0; }
.buy-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; background: linear-gradient(to bottom, rgba(244, 242, 237, 0), var(--paper) 25%); }
.buy-bar .muted { display: block; }
.buy-total { font-family: var(--display); font-size: 1.7rem; letter-spacing: -.02em; }

/* quiz */
.quiz-step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.quiz-step legend { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.quiz { padding-bottom: 80px; padding-top: 16px; }
.scan-cta { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; }
.scan-cta span { flex: 1; color: rgba(255, 255, 255, .7); }
.scan-cta b { color: #fff; font-weight: 600; }

/* ---------- virtual try-on ---------- */
.tryon { padding-top: 32px; padding-bottom: 80px; }
.to-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.to-head .eyebrow { margin-bottom: 8px; }
.to-head h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 16em; }
:lang(my) .to-head h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.to-tabs { display: inline-flex; background: var(--tile); border-radius: 999px; padding: 4px; }
.to-tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: .9rem; transition: background .2s; white-space: nowrap; }
.to-tabs button.active { background: var(--ink); color: #fff; }
.to-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.to-stage { position: relative; aspect-ratio: 4 / 3; background: #0d0d0d; border-radius: 28px; overflow: hidden; isolation: isolate; }
.to-stage video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.to-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.to-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.to-stage.scanning .to-guide { opacity: 1; }
.guide-oval { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: .35; stroke-dasharray: 1 1.4; }
.guide-ring { fill: none; stroke: var(--accent); stroke-width: .8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear; }
.to-stage.scanning::after { content: ''; position: absolute; left: 30%; right: 30%; height: 2px; top: 18%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: stagescan 1.6s ease-in-out infinite alternate; }
@keyframes stagescan { to { top: 78%; } }
.to-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, #222, #0d0d0d 70%); }
.to-overlay[hidden] { display: none; }
.to-overlay p { max-width: 26em; color: rgba(255, 255, 255, .7); margin: 0; }
.to-overlay .btn-dark { background: #fff; color: var(--ink); }
.to-ov-star { width: 64px; height: 64px; animation: spin 20s linear infinite; }
.to-private { font-size: .8rem; color: rgba(255, 255, 255, .5) !important; }
.to-spinner { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.to-status { position: absolute; z-index: 2; top: 16px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .84rem; white-space: nowrap; }
.to-status[hidden], .to-fit[hidden] { display: none; }
.to-fit { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; max-width: calc(100% - 112px); padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .88rem; }
.to-fit small { color: var(--muted); font-size: .78rem; }
.to-fit .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.to-fit .dot.ok { background: var(--ok); } .to-fit .dot.warn { background: var(--warn); } .to-fit .dot.bad { background: var(--bad); }
.to-panel { background: var(--card); border-radius: 28px; padding: 24px; }
.to-wearing { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.to-wearing .eyebrow { margin-bottom: 2px; }
.to-wear-thumb { width: 96px; flex: none; background: var(--paper); border-radius: 14px; padding: 12px 8px; }
.to-wear-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.to-wear-name span { font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--muted); margin-left: 6px; }
.to-panel .swatches-lg { margin: 16px 0; }
.to-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.to-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-btn { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 13px; font-size: .84rem; cursor: pointer; transition: all .2s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.to-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.to-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 8px; border: 1px solid transparent; border-radius: 14px; background: var(--paper); cursor: pointer; font-size: .78rem; transition: border-color .2s, background .2s; }
.to-item:hover { background: #fff; }
.to-item.active { border-color: var(--ink); background: #fff; }
.to-scan-intro p { color: var(--ink-2); }
.to-scan-intro .btn { margin: 8px 0 14px; }
.to-scan-run { text-align: center; padding: 40px 0; }
.to-big { font-family: var(--display); font-weight: 900; font-size: 4rem; letter-spacing: -.04em; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.to-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.to-stats div { background: var(--paper); padding: 14px 16px; }
.to-stats span { display: block; font-size: .76rem; color: var(--muted); }
.to-stats b { font-family: var(--display); font-size: 1.25rem; }
.to-h { margin: 18px 0 10px; font-size: .95rem; }
.to-matches { display: grid; gap: 6px; margin-bottom: 20px; }
.to-match { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid transparent; border-radius: 14px; background: var(--paper); cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.to-match:hover { background: #fff; }
.to-match.active { border-color: var(--ink); background: #fff; }
.to-match-img { background: #fff; border-radius: 10px; padding: 6px; }
.to-match-name { font-family: var(--display); font-weight: 700; }
.to-match-name small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .78rem; }
.to-match-score { font-size: .78rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.to-panel > .btn-block { margin: 6px 0 12px; }
.to-shutter { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 64px; height: 64px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .15); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.to-shutter span { width: 46px; height: 46px; border-radius: 50%; background: #fff; transition: transform .15s; }
.to-shutter:active span { transform: scale(.86); }
.to-shutter[hidden], .to-swipe[hidden] { display: none; }
.to-stage.flash::before { content: ''; position: absolute; inset: 0; z-index: 4; background: #fff; pointer-events: none; animation: flash .45s ease-out forwards; }
@keyframes flash { to { opacity: 0; } }
.to-swipe { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 9px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .86rem; white-space: nowrap; pointer-events: none; animation: hint 3.2s ease both; }
.to-swipe::before, .to-swipe::after { content: '‹'; margin-right: 8px; opacity: .7; }
.to-swipe::after { content: '›'; margin: 0 0 0 8px; }
@keyframes hint { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Phones and small tablets: the camera fills the screen and the frame picker is a swipeable strip right under it,
   so customers keep seeing their face while they switch frames. */
@media (max-width: 960px) {
  .tryon { padding-top: 10px; padding-bottom: 28px; }
  .to-head { margin-bottom: 10px; }
  .to-head > div:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .to-tabs { width: 100%; }
  .to-tabs button { flex: 1; padding: 9px 10px; }
  .to-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .to-panel { min-width: 0; }
  .to-stage { aspect-ratio: auto; width: 100%; border-radius: var(--r); touch-action: pan-y;
    height: clamp(320px, calc(100vh - var(--hdr) - 214px), 150vw); height: clamp(320px, calc(100svh - var(--hdr) - 214px), 150vw); }
  .to-fit { left: 12px; bottom: 12px; padding: 8px 12px; font-size: .8rem; max-width: calc(100% - 100px); }
  .to-fit small { font-size: .72rem; }
  .to-shutter { right: 12px; bottom: 12px; }
  .to-status { top: 12px; }
  .to-panel { border-radius: var(--r); padding: 20px 16px; }
  .to-panel[data-mode="frame"] { display: flex; flex-direction: column; background: none; padding: 0; border-radius: 0; }
  .to-panel[data-mode="frame"] .to-cats { order: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
  .to-panel[data-mode="frame"] .to-list { order: 2; }
  .to-panel[data-mode="frame"] .to-wearing { order: 3; margin-top: 18px; }
  .to-panel[data-mode="frame"] .swatches-lg { order: 4; margin: 14px 0; }
  .to-panel[data-mode="frame"] .to-actions { order: 5; margin-bottom: 0; }
  .to-cats::-webkit-scrollbar, .to-list::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; }
  .to-list { position: relative; display: flex; gap: 8px; max-height: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; }
  .to-item { flex: 0 0 92px; min-width: 0; padding: 10px 6px 6px; font-size: .74rem; line-height: 1.4; scroll-snap-align: center; background: var(--card); }
  .to-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .to-item.active { box-shadow: inset 0 0 0 1px var(--ink); }
  .to-wear-thumb { width: 76px; padding: 10px 6px; background: var(--card); }
  .to-wear-name { font-size: 1.15rem; }
}
@media (max-width: 760px) {
  /* bleed the strip to the screen edges so it reads as scrollable */
  .to-panel[data-mode="frame"] .to-list, .to-panel[data-mode="frame"] .to-cats { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
}

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(17, 17, 17, .35); backdrop-filter: blur(2px); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 50; transform: translateX(100%); transition: transform .4s var(--ease), visibility .4s; display: flex; flex-direction: column; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.drawer .empty { margin: 8px 22px; }
.ship-meter { padding: 0 22px 18px; font-size: .86rem; border-bottom: 1px solid var(--line); }
.meter { height: 3px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.cart-items { list-style: none; margin: 0; padding: 0 22px; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.thumb { position: relative; display: grid; place-items: center; background: var(--card); border-radius: 14px; padding: 10px 8px; aspect-ratio: 4 / 3; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-top b { font-family: var(--display); font-weight: 800; }
.ci-body small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; margin: 3px 0 10px; }
.ci-actions { display: flex; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 28px; border: 0; background: none; cursor: pointer; }
.qty span { min-width: 20px; text-align: center; font-size: .86rem; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.cart-code { display: flex; gap: 8px; margin-bottom: 14px; }
.cart-code input { flex: 1; min-width: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-transform: uppercase; outline: none; }
.cart-code input:focus { border-color: var(--ink); }
.totals { margin: 0 0 16px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; font-size: .92rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .disc dd { color: var(--ok); }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.totals .grand dt { color: var(--ink); }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: 80px; padding-top: 12px; align-items: start; }
.checkout-form h2 { font-size: 1.15rem; margin: 32px 0 14px; }
.checkout-form h2:first-child { margin-top: 0; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.field i { font-style: normal; opacity: .7; }
.field input { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.ship-opts { display: grid; gap: 8px; }
.notice { background: #FFF0EA; border-radius: 14px; padding: 14px 18px; font-size: .88rem; color: #7A2B12; margin: 0 0 20px; }
.summary { background: var(--card); border-radius: 24px; padding: 26px; position: sticky; top: 88px; }
.summary h2 { font-size: 1.15rem; }
.summary-items { list-style: none; margin: 0 0 18px; padding: 0; }
.summary-items li { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-items .thumb { background: var(--paper); }
.summary-items b { font-family: var(--display); }
.summary-items small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.qty-dot { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .7rem; display: grid; place-items: center; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; gap: 28px; } .summary { position: static; order: -1; } }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; gap: 0; } }

.confirm { text-align: center; padding-top: 64px; padding-bottom: 80px; }
.confirm-star { width: 64px; height: 64px; margin: 0 auto 24px; color: var(--accent); animation: spin 20s linear infinite; }
.confirm .summary { text-align: left; margin: 32px 0; position: static; }
.ship-to { font-size: .88rem; color: var(--muted); margin: 18px 0 0; }
.ship-to b { color: var(--ink); }
.prose { padding-bottom: 80px; }
.prose h2 { margin-top: 40px; font-size: 1.3rem; }
.prose p { color: var(--ink-2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 32px; }
.footer-brand p { color: var(--ink-2); max-width: 26em; }
.site-footer h4 { font-family: var(--body); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
:lang(my) .site-footer h4 { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.site-footer a { display: block; text-decoration: none; padding: 4px 0; font-size: .92rem; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.newsletter { margin-top: 24px; max-width: 380px; }
.newsletter .eyebrow { margin-bottom: 10px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); outline: none; }
.nl-row input:focus { border-color: var(--ink); }
.footer-mark { display: flex; align-items: center; gap: .15em; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(3rem, 12.5vw, 11.5rem); letter-spacing: -.05em; line-height: .9; padding-top: 24px; padding-bottom: 8px; white-space: nowrap; }
.footer-star { width: .55em; height: .55em; color: var(--accent); flex: none; animation: spin 30s linear infinite; }
.footer-base { display: flex; justify-content: space-between; padding-top: 16px; padding-bottom: 28px; font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem; z-index: 60; transition: transform .35s var(--ease), visibility .35s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- phones ---------- */
.bnav { display: none; }
@media (max-width: 760px) {
  :root { --hdr: 56px; --bnav: calc(58px + env(safe-area-inset-bottom)); }
  body[data-view="tryon"], body[data-view="checkout"] { --bnav: 0px; }
  body { padding-bottom: var(--bnav); }
  .header-row { gap: 6px; }
  .header-actions .icon-heart { display: none; } /* "Saved" lives in the bottom bar */

  /* bottom tab bar */
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: var(--bnav); padding: 0 4px env(safe-area-inset-bottom); background: rgba(244, 242, 237, .94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); }
  body[data-view="tryon"] .bnav, body[data-view="checkout"] .bnav { display: none; }
  .bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; font-size: .68rem; line-height: 1.25; text-decoration: none; color: var(--muted); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .bnav a.active { color: var(--ink); font-weight: 600; }
  .bnav-ico { position: relative; display: grid; place-items: center; height: 26px; }
  .bnav .badge { top: -3px; right: -9px; }
  .bnav-tryon .bnav-ico { width: 48px; height: 28px; border-radius: 999px; background: var(--ink); color: #fff; }
  .bnav-tryon .bnav-ico::after { content: ''; position: absolute; top: 4px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .bnav-tryon.active { color: var(--ink); }
  .bnav-wishlist svg path { fill: none; stroke: currentColor; stroke-width: 1.6; }

  .toast { bottom: calc(var(--bnav) + 16px); }

  /* home */
  .hero-visual { width: min(84%, 360px); }
  .hero h1 { margin-bottom: 16px; }
  .hero-cta { margin-top: 20px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section-head { margin-bottom: 20px; }
  .band-grid { gap: 28px; }

  /* product page: the add-to-cart bar spans the screen and sits above the tab bar */
  .buy-bar { bottom: var(--bnav); margin: 0 -16px; padding: 12px 16px; background: var(--paper); border-top: 1px solid var(--line); }
  .buy-total { font-size: 1.4rem; }
  .pdp-specs b { font-size: 1.05rem; }

  /* footer */
  .footer-grid { padding-top: 44px; gap: 28px; }
}

/* iOS zooms into any field under 16px; keep fields at 16px on phones. */
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
}

/* prescription table: one row per eye, labels on top */
@media (max-width: 560px) {
  .rx-wrap { overflow: visible; }
  .rx, .rx thead, .rx tbody { display: block; }
  .rx tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rx.rx-add tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rx thead th:first-child { display: none; }
  .rx thead th { padding: 0 2px; }
  .rx tbody th { grid-column: 1 / -1; padding: 12px 0 0; font-weight: 600; }
  .rx td { padding: 0; }
  .rx select, .rx input { min-width: 0; padding: 11px 8px; }
  .rx select { padding-right: 22px; background-position: right 7px center; }
}

/* shop filters on phones: each group scrolls sideways instead of wrapping into a tall block */
@media (max-width: 900px) {
  .filters fieldset { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .filters fieldset::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .results-bar { margin-bottom: 14px; }
}

/* touch screens: bigger targets, no sticky hover effects */
@media (pointer: coarse) {
  .swatch::before { content: ''; position: absolute; inset: -8px; }
  .swatches { gap: 10px; }
  .qty button { width: 40px; height: 36px; }
  .heart { width: 40px; height: 40px; }
  .chip span, .chip-btn { padding: 8px 14px; }
  .site-footer a { padding: 8px 0; }
  .link { padding: 8px 0; }
}
@media (hover: none) {
  .card:hover .card-frame, .card:hover .card-photo { transform: none; }
  .card:hover .card-photo.alt { opacity: 0; }
  .card:hover .card-media { background: var(--card); }
}

.drawer-foot { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.drawer-head { padding-top: calc(20px + env(safe-area-inset-top)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- product photos (uploaded in the admin) ---------- */
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.card-photo.alt { opacity: 0; }
.card:hover .card-photo.alt { opacity: 1; }
.card:hover .card-photo { transform: scale(1.03); }
.thumb:has(img.photo), .to-wear-thumb:has(img.photo), .to-match-img:has(img.photo) { padding: 0; overflow: hidden; }
img.photo { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.to-item img.photo { border-radius: 10px; }
img.tryon-thumb { display: block; width: 100%; aspect-ratio: 2.4; object-fit: contain; }
.thumb-star { width: 40%; color: var(--accent); }
.pdp-media.has-photo { padding: 0; overflow: hidden; }
.pdp-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pdp-thumbs { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.pdp-thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 1.5px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--paper); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--ink); }
.pdp-media.has-photo .pdp-specs { margin: 16px 24px 0; padding-bottom: 22px; }
.pdp-media.has-photo .tag { z-index: 1; }
