@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/orbitron-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Oxanium"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/oxanium-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #07090c;
  --panel: #0d1014;
  --panel-2: #151a20;
  --tile: #2a303a;
  --hair: rgba(255, 255, 255, 0.14);
  --hair-2: rgba(255, 255, 255, 0.26);
  --ink: #f2f5f7;
  --ink-2: #d5dbe1;
  --muted: #aeb6bf;
  --signal: #2bf551;
  --signal-2: #6dff89;
  --on-signal: #05070a;
  --focus: var(--signal);

  --radius: 6px;
  --radius-s: 3px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);

  --font: Oxanium, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: Orbitron, Oxanium, 'Arial Black', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.3, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 0.9375rem/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
h1, h2, p, ul, fieldset, legend { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: square; stroke-linejoin: miter; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 20;
  padding: 10px 14px; border-radius: var(--radius-s);
  background: var(--signal); color: var(--on-signal); font-weight: 700; font-size: 0.875rem; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; outline-color: var(--ink); }

/* shared HUD surfaces */
.panel, .nav, .card, .popover, .back, .arrow {
  background: var(--panel);
  border: 1px solid var(--hair);
}

/* ------------------------------------------------------------ stage */
.app {
  position: relative;
  height: 100svh;
  height: 100dvh;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none; user-select: none; -webkit-user-select: none;
}

/* ------------------------------------------------------------ top HUD */
.hud { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 3; }

.back {
  position: absolute; left: 16px; top: 14px;
  width: 56px; height: 56px; border-radius: var(--radius);
  display: grid; place-items: center; color: var(--ink);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-fast), color var(--t-fast);
}
.back svg { width: 22px; height: 22px; stroke-width: 1.75; }
.back:hover { border-color: var(--signal); color: var(--signal); }
.back.is-hidden { opacity: 0; transform: translateX(-8px); pointer-events: none; }

.brand {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  display: grid; justify-items: center;
  color: var(--ink); pointer-events: none; white-space: nowrap;
  transition: opacity var(--t-med) var(--ease);
}
/* facing the rail, the wall logo is the brand: the header copy steps back so the two never stack */
.app[data-station='clothing']:not(.is-detail):not(.is-compact) .brand { opacity: 0; }
/* sized by height so a longer or shorter brand name keeps the same letter size */
.brand__logo { height: 29px; width: auto; margin-top: 8px; fill: currentColor; stroke: none; }
.brand__logo .logo__mark { fill: var(--signal); }
.brand__tag {
  margin-top: 9px; padding-left: 0.4em;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--muted);
}

.bag {
  position: absolute; right: 22px; top: 16px;
  width: 44px; height: 44px; border-radius: var(--radius);
  display: grid; place-items: center; color: var(--ink);
  border: 1px solid transparent;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.bag svg { width: 16px; height: 18px; stroke-width: 1.5; }
.bag:hover, .bag[aria-expanded='true'] { background: var(--panel); border-color: var(--hair-2); }
.bag__count {
  position: absolute; right: 1px; top: 1px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 2px;
  background: var(--signal); color: var(--on-signal);
  font: 700 0.75rem/18px var(--font-mono); text-align: center;
}

/* station dots, right edge (decorative echo of the menu) */
.dots {
  position: absolute; z-index: 2; right: 20px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 12px; justify-items: center; pointer-events: none;
  padding: 10px 5px; background: rgba(7, 9, 12, 0.72); border: 1px solid var(--hair); border-radius: var(--radius-s);
  transition: opacity var(--t-med) var(--ease);
}
.dots i {
  width: 13px; height: 13px; border-radius: 50%; border: 1px solid transparent;
  display: grid; place-items: center;
  transition: border-color var(--t-med) var(--ease);
}
.dots i::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: background-color var(--t-med) var(--ease); }
.app[data-station='store'] .dots i:nth-child(1),
.app[data-station='clothing'] .dots i:nth-child(2),
.app[data-station='caps'] .dots i:nth-child(3),
.app[data-station='bags'] .dots i:nth-child(4),
.app[data-station='shoes'] .dots i:nth-child(5) { border-color: var(--ink); }
.app[data-station='store'] .dots i:nth-child(1)::before,
.app[data-station='clothing'] .dots i:nth-child(2)::before,
.app[data-station='caps'] .dots i:nth-child(3)::before,
.app[data-station='bags'] .dots i:nth-child(4)::before,
.app[data-station='shoes'] .dots i:nth-child(5)::before { background: var(--signal); }
.is-detail .dots, .is-compact .dots, .no-webgl .dots { opacity: 0; }

/* ------------------------------------------------------------ product label */
.tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  padding: 4px 10px;
  background: rgba(7, 9, 12, 0.86); border: 1px solid var(--hair); border-radius: var(--radius-s);
  pointer-events: none; white-space: nowrap; opacity: 0;
  transition: opacity var(--t-fast) linear;
  will-change: transform;
}
.tag__name { font: 600 0.8125rem/18px var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.tag__price { padding-left: 9px; border-left: 1px solid var(--hair-2); font: 500 0.75rem/14px var(--font-mono); letter-spacing: 0.04em; color: var(--muted); }
.is-detail .tag { opacity: 0 !important; }

/* ------------------------------------------------------------ product list (keyboard and no-WebGL) */
.shelf {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
}
.sr-product { display: block; font-size: 0.875rem; }
.sr-product img { display: none; }

/* selection box: locks onto the product under the pointer or the keyboard focus */
.focus-box {
  position: absolute; z-index: 2; pointer-events: none;
  border: 1px solid var(--signal);
  box-shadow: 0 0 0 1px rgba(5, 7, 10, 0.55), inset 0 0 0 1px rgba(5, 7, 10, 0.4);
}
.focus-box.is-kbd { border-width: 2px; box-shadow: 0 0 0 2px rgba(5, 7, 10, 0.75), inset 0 0 0 1px rgba(5, 7, 10, 0.55); }
.focus-box i {
  position: absolute; width: 7px; height: 7px; margin: -4px 0 0 -4px;
  background: var(--bg); border: 1px solid var(--signal);
}
.focus-box i:nth-child(1) { left: 0; top: 0; }
.focus-box i:nth-child(2) { left: 50%; top: 0; }
.focus-box i:nth-child(3) { left: 100%; top: 0; }
.focus-box i:nth-child(4) { left: 100%; top: 50%; }
.focus-box i:nth-child(5) { left: 100%; top: 100%; }
.focus-box i:nth-child(6) { left: 50%; top: 100%; }
.focus-box i:nth-child(7) { left: 0; top: 100%; }
.focus-box i:nth-child(8) { left: 0; top: 50%; }
.focus-box__code {
  position: absolute; left: -1px; bottom: calc(100% + 8px);
  padding: 0 6px; height: 18px; border-radius: 2px;
  background: var(--signal); color: var(--on-signal);
  font: 700 0.75rem/18px var(--font-mono); letter-spacing: 0.06em; white-space: nowrap;
}
.is-detail .focus-box { display: none; }

/* ------------------------------------------------------------ product view */
.arrows { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.arrow {
  position: absolute; top: var(--ay, 50%); width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: var(--radius-s); color: var(--ink);
  display: grid; place-items: center; pointer-events: auto;
  opacity: 0; transition: opacity var(--t-med) var(--ease), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.arrow--prev { left: var(--ax0, 20%); }
.arrow--next { left: var(--ax1, 45%); }
.arrow svg { width: 12px; height: 12px; stroke-width: 1.6; }
.arrow:hover { border-color: var(--signal); color: var(--signal); }
.arrow:active { transform: scale(0.94); }
.is-detail-in .arrow { opacity: 1; }

.card {
  position: absolute; z-index: 4;
  left: calc(50% + 10.35vw); top: 45.5%;
  width: 321px; padding: 20px 24px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(calc(-50% + 12px));
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
/* signal tick on the top-left corner, the only ornament on the panel */
.card::before {
  content: ''; position: absolute; left: -1px; top: -1px; width: 22px; height: 22px;
  border-left: 2px solid var(--signal); border-top: 2px solid var(--signal);
  border-top-left-radius: var(--radius); pointer-events: none;
}
.is-detail-in .card { opacity: 1; transform: translateY(-50%); }

.card__close {
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: var(--radius-s);
  display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.card__close svg { width: 11px; height: 11px; stroke-width: 1.5; }
.card__close:hover { border-color: var(--hair-2); color: var(--ink); }

.card__eyebrow { font: 500 0.75rem/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-right: 36px; }
.card__title { margin-top: 9px; font: 700 1.0625rem/23px var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; text-wrap: balance; }
.card__title:focus-visible { outline: none; }
.card__price { margin-top: 9px; font: 600 1rem/22px var(--font-mono); }
.card__meta { margin-top: 2px; font: 400 0.8125rem/18px var(--font); color: var(--muted); }
.card__label { font: 500 0.75rem/16px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.sizes { margin-top: 17px; min-width: 0; padding-top: 15px; border-top: 1px solid var(--hair); }
.sizes__row { margin-top: 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.sizes__row--single { grid-auto-columns: max-content; }
.size { position: relative; display: block; cursor: pointer; }
.size input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.size span {
  display: grid; place-items: center; height: 34px; padding: 0 6px; border-radius: var(--radius-s);
  border: 1px solid var(--hair);
  font: 500 0.8125rem/1 var(--font-mono); color: var(--ink-2);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.sizes__row--single .size span { padding: 0 18px; }
.size:hover span { border-color: var(--hair-2); color: var(--ink); }
.size input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--on-signal); font-weight: 700; }
.size input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.qty { margin-top: 15px; height: 34px; display: flex; align-items: center; justify-content: space-between; }
.qty__ctl { display: flex; align-items: center; gap: 4px; }
.qty__btn { width: 30px; height: 30px; border-radius: var(--radius-s); border: 1px solid var(--hair); display: grid; place-items: center; color: var(--ink); transition: border-color var(--t-fast), color var(--t-fast); }
.qty__btn svg { width: 12px; height: 12px; stroke-width: 1.5; }
.qty__btn:hover:not(:disabled) { border-color: var(--signal); color: var(--signal); }
.qty__btn:disabled { color: #7d8691; }
.qty__val { width: 26px; text-align: center; font: 600 0.875rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }

.btn-add {
  margin-top: 19px; width: 100%; height: 44px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--signal); color: var(--on-signal);
  font: 700 0.875rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-add:hover { background: var(--signal-2); }
.btn-add:active { transform: scale(0.985); }
.btn-add__check { width: 14px; height: 14px; stroke-width: 2; display: none; }
.btn-add.is-added { background: var(--ink); }
.btn-add.is-added .btn-add__check { display: block; }

.fly { position: absolute; z-index: 7; pointer-events: none; object-fit: contain; will-change: transform, opacity; }

/* ------------------------------------------------------------ popovers */
.popover {
  position: absolute; z-index: 6; width: 320px; max-width: calc(100% - 24px);
  padding: 18px 20px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.popover:focus-visible { outline: none; }
.popover--bag { right: 16px; top: 68px; max-height: calc(100% - 150px); overflow: auto; }
.popover--info { left: calc(50% + 229px - 320px); bottom: 76px; }
.popover__title { font: 700 0.875rem/22px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.popover__text { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.popover__note { margin-top: 12px; font: 400 0.75rem/17px var(--font-mono); color: var(--muted); }
.popover__foot {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.popover__foot strong { font: 600 1rem/1 var(--font-mono); letter-spacing: 0; color: var(--ink); }
.popover__foot .popover__note { flex-basis: 100%; margin-top: 10px; letter-spacing: 0; text-transform: none; }

.lines { margin-top: 12px; display: grid; gap: 12px; }
.lines:empty { display: none; }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; }
.line img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--radius-s); background: var(--tile); border: 1px solid var(--hair); padding: 4px; }
.line__text { display: grid; gap: 2px; min-width: 0; }
.line__text strong { font: 600 0.8125rem/17px var(--font); letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line__text span { font: 400 0.75rem/16px var(--font); color: var(--muted); }
.line__price { font: 600 0.8125rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.line__remove { width: 28px; height: 28px; border-radius: var(--radius-s); display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; }
.line__remove svg { width: 10px; height: 10px; stroke-width: 1.5; }
.line__remove:hover { border-color: var(--hair-2); color: var(--ink); }

.help { margin-top: 10px; display: grid; gap: 8px; font-size: 0.875rem; line-height: 20px; color: var(--ink-2); }
.help li { padding-left: 16px; position: relative; }
.help li::before { content: ''; position: absolute; left: 1px; top: 7px; width: 6px; height: 6px; background: var(--signal); }

/* ------------------------------------------------------------ bottom menu */
.nav {
  position: absolute; z-index: 3; left: 50%; bottom: 15px; transform: translateX(-50%);
  height: 48px; padding: 0 5px; width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  overflow-x: auto; scrollbar-width: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.nav::-webkit-scrollbar { display: none; }
.nav__track { position: relative; height: 100%; flex: none; }
.nav__items, .nav__active { display: flex; height: 100%; }
.nav__item, .nav__ghost {
  flex: none; height: 100%; padding: 0 17px;
  display: grid; place-items: center; white-space: nowrap;
  font: 600 0.8125rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.nav__item { transition: color var(--t-fast); border-radius: var(--radius-s); }
.nav__item:hover { color: var(--ink); }
.nav__item:focus-visible { outline-offset: -6px; }
/* each label reserves the width of its bold version, so the active block never shifts the layout */
.nav [data-label] { display: inline-grid; }
.nav [data-label]::after { content: attr(data-label); grid-area: 1 / 1; font-weight: 700; visibility: hidden; height: 0; overflow: hidden; }
.nav__active {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--signal);
  clip-path: inset(7px calc(var(--r, 100%) + 1px) 7px calc(var(--l, 0px) + 1px) round 3px);
  transition: clip-path 420ms var(--ease);
}
.nav__ghost { color: var(--on-signal); font-weight: 700; }
.nav__divider { flex: none; width: 1px; height: 18px; margin: 0 5px 0 6px; background: var(--hair-2); }
.nav__info { flex: none; width: 38px; height: 38px; border-radius: var(--radius-s); display: grid; place-items: center; color: var(--ink-2); border: 1px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.nav__info svg { width: 16px; height: 16px; stroke-width: 1.6; }
.nav__info circle { fill: currentColor; stroke: none; }
.nav__info:hover, .nav__info[aria-expanded='true'] { border-color: var(--signal); color: var(--signal); }

/* ------------------------------------------------------------ loader */
.loader {
  position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--bg);
}
.loader__label { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); padding-left: 0.3em; }
.loader__track { width: 148px; height: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.loader__bar { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; }

.noscript { position: fixed; inset: auto 16px 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--hair); color: var(--ink); font-size: 0.875rem; z-index: 30; }

/* ------------------------------------------------------------ compact (phones, portrait tablets) */
.is-compact .back { width: 48px; height: 48px; left: 12px; top: 12px; }
.is-compact .back svg { width: 20px; height: 20px; }
.is-compact .brand { top: 10px; }
.is-compact .brand__logo { height: 25px; }
.is-compact .bag { right: 10px; top: 14px; }
.is-compact .nav { padding: 0 5px; bottom: max(14px, env(safe-area-inset-bottom)); }
.is-compact .nav__item, .is-compact .nav__ghost { padding: 0 9px; letter-spacing: 0.04em; }
.is-compact .nav__divider { margin: 0 2px 0 3px; }
.is-compact .nav__info { width: 44px; height: 44px; }
/* the product sheet covers the menu on phones: hide it for real, so it also leaves the tab order */
.is-compact.is-detail .nav {
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.is-compact .card {
  left: 12px; right: 12px; top: auto; bottom: max(12px, env(safe-area-inset-bottom));
  width: auto; max-width: 420px; margin-inline: auto; max-height: calc(100% - 96px); overflow: auto;
  transform: translateY(16px);
}
.is-compact.is-detail-in .card { transform: none; }
.is-compact .popover--info { left: 12px; right: 12px; width: auto; bottom: 76px; }
.is-compact .popover--bag { right: 12px; top: 78px; }
/* phones: the five walls and the help button always fit without scrolling the menu */
@media (max-width: 400px) {
  .is-compact .nav__item, .is-compact .nav__ghost { padding: 0 6px; }
}
@media (max-width: 375px) {
  .is-compact .nav__item, .is-compact .nav__ghost { padding: 0 4px; letter-spacing: 0.02em; }
  .is-compact .nav__active { clip-path: inset(7px calc(var(--r, 100%) - 2px) 7px calc(var(--l, 0px) - 2px) round 3px); }
}
@media (max-width: 350px) {
  .is-compact .nav { padding: 0 3px; }
  .is-compact .nav__item, .is-compact .nav__ghost { padding: 0 3px; font-size: 0.75rem; letter-spacing: 0.02em; }
  .is-compact .nav__divider { margin: 0 1px; }
}
/* landscape phones: the sheet moves to the right of the product, the menu gets slimmer,
   and the wall logo stands in for the header logo so the two never stack */
.is-short .nav { height: 40px; bottom: max(6px, env(safe-area-inset-bottom)); }
.is-short .nav__active { clip-path: inset(4px calc(var(--r, 100%) + 1px) 4px calc(var(--l, 0px) + 1px) round 3px); }
.is-short .nav__info { height: 38px; }
.is-short .brand { top: 9px; transition: opacity var(--t-fast) linear; }
.is-short .brand__tag { display: none; }
.is-short .brand__logo { height: 21px; margin-top: 0; }
.is-short[data-station='clothing'] .brand, .is-short[data-station='store'] .brand, .is-short.is-detail .brand { opacity: 0; }
.is-short .card {
  left: auto; right: 64px; top: 50%; bottom: auto; width: 300px; max-width: none; margin: 0;
  padding: 14px 20px 16px; max-height: calc(100% - 16px);
  transform: translateY(calc(-50% + 12px));
}
.is-short .sizes { margin-top: 10px; padding-top: 10px; }
.is-short .qty { margin-top: 8px; }
.is-short .btn-add { margin-top: 10px; }
.is-short.is-detail-in .card { transform: translateY(-50%); }
.is-short .popover--info { bottom: 54px; left: auto; right: 64px; width: 320px; }
.is-short .popover--bag { top: 62px; max-height: calc(100% - 74px); }

@media (pointer: coarse) {
  .size span { height: 44px; }
  .qty { height: 44px; }
  .qty__btn { width: 44px; height: 44px; }
  .arrow { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .card__close { width: 44px; height: 44px; right: 6px; top: 6px; }
  .btn-add { height: 48px; }
  .nav__info { width: 44px; height: 44px; }
  .line__remove { width: 44px; height: 44px; margin: -8px; }
}

/* ------------------------------------------------------------ no WebGL: a plain, shoppable product list */
.no-webgl { height: auto; min-height: 100svh; overflow: visible; padding: 110px 20px 40px; }
.no-webgl .scene, .no-webgl .nav, .no-webgl .back, .no-webgl .tag, .no-webgl .bag, .no-webgl .dots { display: none; }
.no-webgl .shelf {
  position: static; width: auto; height: auto; overflow: visible; clip-path: none;
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.no-webgl .sr-product { display: grid; gap: 4px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--hair); }
.no-webgl .sr-product img { display: block; width: 100%; height: 120px; object-fit: contain; margin-bottom: 6px; padding: 8px; background: var(--tile); border-radius: var(--radius-s); }
.no-webgl .sr-product span:last-child { color: var(--muted); font-family: var(--font-mono); font-size: 0.8125rem; }
html:has(.no-webgl), html:has(.no-webgl) body { height: auto; overflow: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
