/* Shomizino / Version C: apple-design
   Principles applied: response on press, 1:1 drag on sheets with velocity handoff + momentum projection,
   critically damped springs by default, translucent chrome over scrolling content, size-specific tracking,
   specific labels, wayfinding (tab bar answers "where am I"), light + dark materials.
   Palette: paper white / graphite, navy as the only accent. Shape: capsule buttons, 20px tiles, 12px controls. */

:root {
  --bg: #fbfbfd;
  --bg-2: #f2f2f5;
  --tile: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #5f5f66;
  --fg-3: #86868d;
  --sep: rgba(0, 0, 0, .1);
  --accent: #23407a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(35, 64, 122, .09);
  --chrome: rgba(251, 251, 253, .72);
  --chrome-edge: rgba(0, 0, 0, .08);
  --scrim: rgba(0, 0, 0, .32);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  --err: #c0362c;
  --ok: #1f7a43;
  --warm: #a9501b;

  --f: "Vazirmatn", system-ui, -apple-system, "SF Arabic", Tahoma, sans-serif;
  --r-tile: 20px; --r-ctl: 12px;
  --gut: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gut-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  --max: 1200px;
  --spring: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 52px;
  --tab-h: 58px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #111113; --tile: #161618; --fg: #f5f5f7; --fg-2: #a1a1a8; --fg-3: #7c7c84; --sep: rgba(255, 255, 255, .12);
    --accent: #8fb0ff; --accent-ink: #0a1730; --accent-soft: rgba(143, 176, 255, .12); --chrome: rgba(22, 22, 24, .72); --chrome-edge: rgba(255, 255, 255, .08);
    --scrim: rgba(0, 0, 0, .55); --shadow: 0 0 0 1px rgba(255, 255, 255, .06); --err: #ff8a80; --ok: #7bd99a; --warm: #f5a061; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #111113; --tile: #161618; --fg: #f5f5f7; --fg-2: #a1a1a8; --fg-3: #7c7c84; --sep: rgba(255, 255, 255, .12);
  --accent: #8fb0ff; --accent-ink: #0a1730; --accent-soft: rgba(143, 176, 255, .12); --chrome: rgba(22, 22, 24, .72); --chrome-edge: rgba(255, 255, 255, .08);
  --scrim: rgba(0, 0, 0, .55); --shadow: 0 0 0 1px rgba(255, 255, 255, .06); --err: #ff8a80; --ok: #7bd99a; --warm: #f5a061; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 20px); }
html.lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.75 var(--f); letter-spacing: 0; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body { padding-bottom: 0; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { letter-spacing: -.02em; line-height: 1.2; }
h2 { letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.latin { direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
.muted { color: var(--fg-2); }
.small { font-size: .875rem; letter-spacing: .005em; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.block { padding-block: clamp(48px, 8vw, 96px); }
.stack { display: grid; gap: .75rem; }
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--accent); }

/* buttons: feedback lives on press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1rem; white-space: nowrap; transition: transform .1s ease-out, filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn--line { background: var(--accent-soft); color: var(--accent); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; }
.link-u { color: var(--accent); font-weight: 500; }
.link-u:hover { text-decoration: underline; text-underline-offset: 4px; }
.chev-link { color: var(--accent); display: inline-flex; align-items: center; gap: 2px; font-weight: 500; }
.chev-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; position: relative; transition: transform .1s ease-out, background .2s; }
.icon-btn:active { transform: scale(.92); background: var(--bg-2); }
.count { position: absolute; top: 5px; inset-inline-start: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; line-height: 17px; font-weight: 700; text-align: center; }
.count:empty { display: none; }

/* translucent top bar */
.gnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--chrome); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); transition: box-shadow .3s; }
.gnav.scrolled { box-shadow: 0 1px 0 var(--chrome-edge); }
.gnav .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gnav .logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.gnav nav { display: none; gap: 4px; }
.gnav nav a { font-size: .85rem; color: var(--fg-2); padding: 6px 12px; border-radius: 999px; transition: color .2s; }
.gnav nav a:hover, .gnav nav a[aria-current="page"] { color: var(--fg); }
.gnav-end { display: flex; align-items: center; }
.gnav-end .desk { display: none; }
@media (min-width: 900px) { .gnav nav { display: flex; } .gnav-end .desk { display: inline-grid; } }
@media (prefers-reduced-transparency: reduce) { .gnav, .tabbar, .sheet-chrome { background: var(--bg); backdrop-filter: none; } }

/* bottom tab bar (mobile wayfinding) */
.tabbar { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); background: var(--chrome); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -1px 0 var(--chrome-edge); display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
.tabbar a, .tabbar button { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--fg-3); position: relative; transition: transform .1s ease-out; }
.tabbar a:active, .tabbar button:active { transform: scale(.92); }
.tabbar [aria-current="page"] { color: var(--accent); }
.tabbar .count { top: 4px; inset-inline-start: calc(50% - 22px); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* layers: sheets, side panels, dialogs */
.layer { position: fixed; inset: 0; z-index: 80; }
.layer .scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .35s ease; }
.layer.open .scrim { opacity: 1; }
.panel { position: absolute; background: var(--tile); display: flex; flex-direction: column; will-change: transform; }
.panel--sheet, .panel--end { inset-inline: 0; bottom: 0; max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px)); border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .5s var(--spring); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .12); }
.layer.open .panel--sheet, .layer.open .panel--end { transform: none; }
.grabber { width: 100%; padding: 8px 0 2px; display: grid; place-items: center; cursor: grab; touch-action: none; flex: none; }
.grabber::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--sep); }
@media (min-width: 900px) {
  .panel--end, .panel--sheet.side { inset-inline: auto 0; inset-block: 0; max-height: none; width: 420px; border-radius: 0; transform: translateX(-100%); padding-bottom: 0; }
  .panel--end .grabber, .panel--sheet.side .grabber { display: none; }
}
.panel--center { top: 50%; left: 50%; width: min(560px, calc(100% - 32px)); max-height: 86dvh; border-radius: 22px; transform: translate(-50%, -50%) scale(.94); opacity: 0; transition: transform .45s var(--spring), opacity .25s; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.layer.open .panel--center { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 8px 10px; }
.panel-head h2 { font-size: 1.25rem; }
.panel-body { flex: 1; overflow: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.panel-foot { padding: 14px 20px 18px; display: grid; gap: 10px; box-shadow: 0 -1px 0 var(--sep); }
.mnav { display: grid; }
.mnav a { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; padding: 8px 0; }
.mnav-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mnav-sub a { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-size: .9rem; }
.close-x { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--fg-2); }
.close-x:active { transform: scale(.92); }

/* home tiles */
.tile-hero { text-align: center; padding-top: clamp(28px, 6vw, 56px); display: grid; gap: 10px; justify-items: center; overflow: hidden; }
.tile-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: -.025em; line-height: 1.12; max-width: 16ch; }
.tile-hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--fg-2); max-width: 30ch; }
.tile-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.tile-hero figure { margin: 28px 0 0; width: 100%; max-width: 980px; aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; }
.tile-hero figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.duo { display: grid; gap: 12px; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.ptile { border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-align: center; transition: transform .1s ease-out; }
.ptile:active { transform: scale(.99); }
.ptile .pt-copy { padding: 32px 24px 8px; display: grid; gap: 6px; justify-items: center; }
.ptile h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.ptile .pt-media { aspect-ratio: 4 / 3; overflow: hidden; margin: 16px; border-radius: 14px; }
.ptile .pt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--spring); }
.ptile:hover .pt-media img { transform: scale(1.03); }
.ptile .links { display: flex; gap: 20px; justify-content: center; }

.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.row-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.row-head .muted { margin-top: 4px; }
.scroller-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gut-r) 24px var(--gut); scroll-padding-inline: var(--gut); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 760px) { .rail { grid-auto-columns: 300px; } }
.rail-btns { display: none; gap: 10px; }
.rail-btns button { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--fg-2); }
.rail-btns button:active { transform: scale(.92); }
.rail-btns button:disabled { opacity: .35; }
@media (min-width: 900px) { .rail-btns { display: flex; } }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat { padding: 22px 20px; border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.feat svg { color: var(--accent); }
.feat b { font-size: 1.05rem; }
.feat span { color: var(--fg-2); font-size: .9rem; line-height: 1.6; }

.store-tile { border-radius: var(--r-tile); overflow: hidden; background: var(--tile); box-shadow: var(--shadow); display: grid; }
.store-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.store-tile .st-copy { padding: clamp(24px, 4vw, 48px); display: grid; gap: 12px; align-content: center; }
.store-tile h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
@media (min-width: 900px) { .store-tile { grid-template-columns: 1.1fr 1fr; } .store-tile img { height: 100%; aspect-ratio: auto; } }

/* product card */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card { position: relative; display: grid; gap: 6px; padding: 10px 10px 16px; border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); min-width: 0; transition: transform .1s ease-out; align-content: start; }
.card:active { transform: scale(.985); }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--bg-2); margin-bottom: 8px; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s var(--spring); }
.card-media img + img { opacity: 0; }
@media (hover: hover) { .card:hover .card-media img + img { opacity: 1; } }
.card-tag { font-size: .78rem; font-weight: 600; color: var(--warm); padding-inline: 4px; }
.card-wish { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; background: var(--chrome); backdrop-filter: blur(12px); width: 36px; height: 36px; }
.card-wish[aria-pressed="true"] svg { fill: #d1344b; stroke: #d1344b; }
.card-title { font-size: 1rem; font-weight: 600; padding-inline: 4px; line-height: 1.5; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; padding-inline: 4px; font-size: .9rem; color: var(--fg-2); }
.card-swatches { display: flex; gap: 4px; align-items: center; }
.price { white-space: nowrap; }
.price del { color: var(--fg-3); font-size: .85em; margin-inline-start: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* page head */
.page-head { padding-block: 28px 20px; display: grid; gap: 6px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.crumbs { display: flex; gap: 6px; font-size: .8rem; color: var(--fg-3); flex-wrap: wrap; }
.crumbs a { color: var(--accent); }

/* segmented control */
.segment { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-2); overflow-x: auto; scrollbar-width: none; position: relative; }
.segment::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--fg-2); position: relative; z-index: 1; transition: color .2s; white-space: nowrap; }
.chip[aria-pressed="true"] { color: var(--fg); background: var(--tile); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.shop-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); z-index: 20; background: var(--chrome); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); padding-block: 10px; }
.shop-bar .wrap { display: flex; gap: 10px; align-items: center; }
.shop-bar .segment { flex: 1; min-width: 0; }
.shop-tools { display: flex; gap: 8px; flex: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .88rem; font-weight: 600; }
.select { position: relative; }
.select select { appearance: none; border: 0; border-radius: 999px; background: var(--bg-2); padding: 8px 14px 8px 32px; font-size: .88rem; min-height: 38px; }
.select svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--fg-2); }
.result-line { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 14px; font-size: .88rem; color: var(--fg-2); }
.fgroup { padding: 16px 0; box-shadow: 0 1px 0 var(--sep); }
.fgroup h3 { font-size: .95rem; margin-bottom: 12px; }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { min-width: 52px; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--bg-2); font-size: .9rem; font-weight: 500; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, transform .1s; }
.size-opt:active { transform: scale(.96); }
.size-opt[aria-pressed="true"], .size-opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); background: var(--accent-soft); }
.size-opt:disabled { opacity: .35; text-decoration: line-through; }
.color-list { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); font-size: .85rem; box-shadow: inset 0 0 0 1.5px transparent; }
.color-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.range { width: 100%; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.empty { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 64px 20px; border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); }
.empty h2 { font-size: 1.4rem; }

/* product page */
.pdp { display: grid; gap: 24px; padding-bottom: 64px; }
.gallery-box { position: relative; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-tile); background: var(--bg-2); }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: center; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.gal-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--sep); transition: background .2s, transform .2s; }
.gal-dots button[aria-current="true"] { background: var(--fg); transform: scale(1.1); }
.pinfo { display: grid; gap: 22px; align-content: start; }
.pinfo h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .95rem; font-weight: 600; margin-bottom: 10px; }
.opt-label b { font-weight: 500; color: var(--fg-2); }
.swatches { display: flex; gap: 12px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); transition: transform .1s; }
.swatch:active { transform: scale(.9); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.buy-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.qty { display: inline-flex; align-items: center; height: 48px; border-radius: 999px; background: var(--bg-2); padding-inline: 4px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.qty button:active { background: var(--accent-soft); transform: scale(.92); }
.qty output { min-width: 24px; text-align: center; font-weight: 600; }
.wish-lg { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.wish-lg:active { transform: scale(.92); }
.wish-lg[aria-pressed="true"] svg { fill: #d1344b; stroke: #d1344b; }
.perks { list-style: none; margin: 0; padding: 16px; border-radius: 16px; background: var(--bg-2); display: grid; gap: 12px; font-size: .9rem; }
.perks li { display: flex; gap: 12px; align-items: center; }
.perks svg { color: var(--accent); flex: none; }
.stock-note { font-size: .9rem; color: var(--warm); font-weight: 500; }
.acc { border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); }
.acc > div + div { box-shadow: 0 -1px 0 var(--sep); }
.acc button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-weight: 600; text-align: start; }
.acc button svg { color: var(--fg-3); transition: transform .4s var(--spring); }
.acc button[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-panel { padding: 0 18px 18px; color: var(--fg-2); font-size: .95rem; display: grid; gap: 8px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
  .gallery-box { position: sticky; top: calc(var(--nav-h) + 20px); }
}
.sticky-buy { position: fixed; z-index: 44; inset-inline: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 10px var(--gut-r) 10px var(--gut); background: var(--chrome); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -1px 0 var(--chrome-edge); display: flex; align-items: center; gap: 12px; transform: translateY(100%); opacity: 0; transition: transform .45s var(--spring), opacity .2s; }
.sticky-buy.show { transform: none; opacity: 1; }
.sticky-buy .btn { margin-inline-start: auto; min-height: 42px; }
@media (min-width: 900px) { .sticky-buy { display: none; } }
.size-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.size-table th, .size-table td { padding: 10px 8px; text-align: center; box-shadow: 0 1px 0 var(--sep); }

/* cart / checkout */
.two-col { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1fr 380px; gap: 40px; align-items: start; } .two-col .summary { position: sticky; top: calc(var(--nav-h) + 20px); } }
#lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px; border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); }
.line img { width: 92px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.line-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.line-attrs { color: var(--fg-2); font-size: .88rem; }
.line-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.line .qty { height: 40px; }
.line .qty button { width: 34px; height: 34px; }
.rm { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--err); font-weight: 500; }
.summary { border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 12px; }
.summary h2 { font-size: 1.3rem; }
.sum-row { display: flex; justify-content: space-between; font-size: .95rem; }
.sum-row span:first-child { color: var(--fg-2); }
.sum-row.total { font-size: 1.15rem; font-weight: 700; padding-top: 12px; box-shadow: 0 -1px 0 var(--sep); }
.sum-row.total span:first-child { color: var(--fg); }
.free-ship { font-size: .88rem; color: var(--fg-2); }
.free-ship .bar { height: 6px; border-radius: 3px; background: var(--bg-2); margin-top: 8px; position: relative; overflow: hidden; }
.free-ship .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 3px; background: var(--accent); transition: width .7s var(--spring); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 44px; border-radius: var(--r-ctl); border: 0; background: var(--bg-2); padding: 0 14px; direction: ltr; text-align: right; text-transform: uppercase; }
.coupon .btn { min-height: 44px; }
.mini-lines { display: grid; gap: 12px; }
.mini-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; font-size: .92rem; }
.mini-line img { width: 54px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.secure { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .8rem; color: var(--fg-3); }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .legend { font-size: .9rem; font-weight: 600; }
.hint { font-size: .8rem; color: var(--fg-3); }
.input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--sep); background: var(--tile); color: var(--fg); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; font-size: 1rem; }
.field textarea { min-height: 110px; resize: vertical; }
.input::placeholder, textarea::placeholder { color: var(--fg-3); }
.input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ltr { direction: ltr; text-align: right; }
.has-err .input, .has-err select, .has-err textarea { border-color: var(--err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 14%, transparent); }
.field-err { color: var(--err); font-size: .82rem; }
.field-err:empty { display: none; }
.opt-list { display: grid; border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); overflow: hidden; }
.opt-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; transition: background .15s; }
.opt-card + .opt-card { box-shadow: 0 -1px 0 var(--sep); }
.opt-card:active { background: var(--bg-2); }
.opt-card:has(input:checked) { background: var(--accent-soft); }
.opt-card input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.opt-card small { display: block; color: var(--fg-2); font-size: .82rem; }
.opt-card.is-off { opacity: .4; pointer-events: none; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps button { width: 100%; display: grid; gap: 8px; text-align: start; font-size: .82rem; color: var(--fg-3); font-weight: 500; }
.steps button::before { content: ""; height: 4px; border-radius: 2px; background: var(--bg-2); transition: background .4s; }
.steps .is-done button::before, .steps .is-current button::before { background: var(--accent); }
.steps .is-current button { color: var(--fg); font-weight: 700; }
.steps .is-done button { color: var(--accent); }
.co-step { display: grid; gap: 22px; }
.co-step h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.co-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.review { display: grid; border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); overflow: hidden; }
.review > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 18px; font-size: .92rem; }
.review > div + div { box-shadow: 0 -1px 0 var(--sep); }
.review button { color: var(--accent); font-size: .88rem; font-weight: 500; }
.sum-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 18px; border-radius: 16px; background: var(--bg-2); font-size: .92rem; color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.sum-toggle b { color: var(--fg); }
@media (min-width: 1000px) { .sum-toggle { display: none; } #co-summary[hidden] { display: grid !important; } }
.done { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 48px 20px; border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); }
.done .seal { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop .6s var(--spring); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* about */
.about-top { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 40px 32px; }
.about-top h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 15ch; }
.about-top p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--fg-2); max-width: 38ch; }
.about-img { border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 21 / 10; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.big-quote { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.45; max-width: 26ch; margin-inline: auto; text-align: center; }
.big-quote em { font-style: normal; color: var(--fg-3); }
.prose { display: grid; gap: 1rem; max-width: 60ch; margin-inline: auto; color: var(--fg-2); font-size: 1.05rem; }

/* contact */
.contact { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; } }
.channels { display: grid; border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); overflow: hidden; }
.channel { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.channel + .channel { box-shadow: 0 -1px 0 var(--sep); }
.channel > span:first-child { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.channel small { display: block; font-size: .8rem; color: var(--fg-3); }
.channel .val { font-weight: 600; }
.mini-btn { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.mini-btn:active { transform: scale(.95); }
.visit-media { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; }
.form-panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); }
.form-done { padding: 28px; border-radius: var(--r-tile); background: var(--tile); box-shadow: var(--shadow); display: grid; gap: 6px; text-align: center; }

/* account */
.acct { display: grid; gap: 20px; padding-bottom: 64px; }
@media (min-width: 1000px) { .acct { grid-template-columns: 250px 1fr; gap: 36px; align-items: start; } }
.acct-nav { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-2); overflow-x: auto; scrollbar-width: none; }
.acct-nav a { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--fg-2); }
.acct-nav a[aria-current="page"] { background: var(--tile); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (min-width: 1000px) { .acct-nav { flex-direction: column; padding: 8px; border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); position: sticky; top: calc(var(--nav-h) + 20px); } .acct-nav a { padding: 11px 12px; } .acct-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); box-shadow: none; } .acct-nav a svg { color: var(--accent); } }
.acct-pane { display: grid; gap: 20px; min-width: 0; }
.acct-pane h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat-row div { padding: 16px; border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); display: grid; }
.stat-row b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat-row span { font-size: .82rem; color: var(--fg-2); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.orders { display: grid; border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); overflow: hidden; }
.order { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 14px 16px; }
.order + .order { box-shadow: 0 -1px 0 var(--sep); }
@media (min-width: 760px) { .order { grid-template-columns: auto 1fr auto auto; } }
.order-thumbs { display: flex; gap: 4px; }
.order-thumbs img { width: 40px; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; }
.order-meta { display: grid; font-size: .9rem; }
.status { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status.processing { background: var(--accent-soft); color: var(--accent); }
.status.shipped { background: color-mix(in srgb, var(--warm) 14%, transparent); color: var(--warm); }
.status.completed { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.status.cancelled { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.addr-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.addr { padding: 18px; border-radius: 16px; background: var(--tile); box-shadow: var(--shadow); display: grid; gap: 6px; font-size: .92rem; }
.addr.def { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.addr header { display: flex; justify-content: space-between; }
.login { max-width: 420px; margin: 0 auto 64px; display: grid; gap: 18px; text-align: center; }
.login h1 { font-size: 2rem; }
.login .field { text-align: start; }
.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.otp input { width: 50px; height: 58px; border-radius: 12px; border: 1px solid var(--sep); background: var(--tile); text-align: center; font-size: 1.4rem; font-weight: 600; }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* footer */
.ftr { background: var(--bg-2); margin-top: 48px; padding-block: 36px 28px; font-size: .82rem; color: var(--fg-2); }
.ftr-grid { display: grid; gap: 4px; }
.ftr details { box-shadow: 0 1px 0 var(--sep); }
.ftr summary { list-style: none; padding: 12px 0; font-weight: 600; color: var(--fg); display: flex; justify-content: space-between; cursor: pointer; }
.ftr summary::-webkit-details-marker { display: none; }
.ftr ul { list-style: none; margin: 0; padding: 0 0 14px; display: grid; gap: 8px; }
.ftr ul a:hover { text-decoration: underline; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } .ftr details { box-shadow: none; } .ftr summary { pointer-events: none; padding-top: 0; } .ftr summary svg { display: none; } }
.ftr-club { margin-bottom: 20px; padding-bottom: 20px; box-shadow: 0 1px 0 var(--sep); display: grid; gap: 10px; }
.club-form { display: flex; gap: 8px; max-width: 420px; }
.club-form input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; border: 1px solid var(--sep); background: var(--tile); padding: 0 12px; direction: ltr; text-align: right; }
.club-form button { padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ftr-base { margin-top: 24px; padding-top: 16px; box-shadow: 0 -1px 0 var(--sep); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px) scale(.96); opacity: 0; pointer-events: none; background: var(--chrome); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); color: var(--fg); padding: 12px 18px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18), inset 0 0 0 .5px var(--chrome-edge); display: flex; gap: 16px; align-items: center; font-size: .92rem; font-weight: 500; max-width: calc(100% - 24px); transition: transform .5s var(--spring), opacity .25s; }
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.toast-act { color: var(--accent); font-weight: 700; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

.pre-reveal { opacity: 0; transform: translateY(24px) scale(.98); }
.revealed { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--spring); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .panel--sheet, .panel--end, .panel--center { transition: opacity .2s ease !important; }
}
@media (prefers-contrast: more) { :root { --sep: rgba(0, 0, 0, .35); --chrome: var(--bg); } }

@media (min-width: 900px) { .mob-only { display: none !important; } }

/* overflow guards */
.card, .summary, .pinfo, .co-step, .acct-pane { grid-template-columns: minmax(0, 1fr); }
.two-col > *, .cart-layout > *, .co > *, .summary > *, .pdp > * { min-width: 0; }
.price { white-space: normal; }
.price del { white-space: nowrap; display: inline-block; }
.coupon input, .club-form input { width: 0; }
.field > * { min-width: 0; }
