:root {
  --bg: #f3f0e8;
  --paper: #faf8f3;
  --ink: #1a1915;
  --muted: #85817a;
  --line: #dcd7cb;
  --accent: #d97757;
  --display: 'Archivo Black', Impact, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* width of one garment on the rack */
  --w: clamp(124px, min(12.5vw, 25vh), 190px);
  /* y position of the floor line; set from the rack's feet by scene.js */
  --floor: 76vh;
  --ease-out: cubic-bezier(.2, .85, .25, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.5 var(--mono);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.fx { position: absolute; width: 0; height: 0; }

/* ---------- header ---------- */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 24px;
}
.link {
  justify-self: start;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.top-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.currency { position: relative; }
.currency::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  pointer-events: none;
}
.currency select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 14px 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: 700 11px var(--mono);
  letter-spacing: .1em;
  cursor: pointer;
}
#cart-btn.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* terminal-prompt wordmark */
.logo {
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: .7ch;
  padding: 8px 14px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--ink);
  font: 700 clamp(14px, 1.7vw, 18px) var(--mono);
  text-decoration: none;
}
.logo-prompt { color: var(--accent); }
.caret { margin-left: -.5ch; color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- rack ---------- */
.rack-wrap {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 11vh;
}
.top, .rack-wrap, .ticker { position: relative; z-index: 1; }
.rack {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 24px 0 22px;
  scrollbar-width: none;
}
.rack::-webkit-scrollbar { display: none; }
.track {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: max-content;
  margin: 0 auto;
  padding: 0 calc(var(--w) * .45) calc(var(--w) * .42);
}
.rail {
  position: absolute;
  top: calc(var(--w) * .03 - 2.5px);
  left: calc(var(--w) * .1);
  right: calc(var(--w) * .1);
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(#e2e2e2, #8f8f8f 60%, #6a6a6a);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .15);
}
/* freestanding rolling rack */
.stand {
  position: absolute;
  top: calc(var(--w) * .03);
  bottom: 0;
  left: calc(var(--w) * .1);
  right: calc(var(--w) * .1);
  pointer-events: none;
}
.post {
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 5px;
  background: linear-gradient(90deg, #6f6f6f, #d6d6d6 45%, #6a6a6a);
}
.post.l { left: -2px; }
.post.r { right: -2px; }
.foot {
  position: absolute;
  bottom: 11px;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(#cfcfcf, #6f6f6f);
}
.foot.l { left: -32px; }
.foot.r { right: -32px; }
.foot::before, .foot::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b2b2b;
}
.foot::before { left: 2px; }
.foot::after { right: 2px; }
/* soft contact shadow, thrown toward the viewer by the window light */
.stand::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -14px;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(60, 40, 20, .3), transparent 70%);
  filter: blur(4px);
}

.item {
  position: relative;
  flex: none;
  width: var(--w);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* only the painted garment is clickable, so overlapping neighbours don't steal clicks */
  pointer-events: none;
  transform: translateX(var(--push, 0px));
  transition: transform .45s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
/* hung side-on, so neighbours pack in close */
.item + .item { margin-left: calc(var(--w) * -.55); }
.item.peek { z-index: 5; }
.item svg :is(path, .hit) { pointer-events: visiblePainted; }
.sway {
  display: block;
  transform: rotate(var(--sway, 0deg));
  transform-origin: 50% 0.5%;
  will-change: transform;
}
.item-inner {
  display: block;
  transform-origin: 50% 1%;
  animation: hang .9s cubic-bezier(.2, .9, .25, 1.15) both;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes hang { from { opacity: 0; transform: translateY(-34px) rotate(12deg); } }
/* the hem trails behind the swing */
.lag {
  position: relative;
  display: block;
  transform: skewX(var(--lag, 0deg));
  transform-origin: 50% 0;
}
.item svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .13));
}
/* turning to face you: the profile squeezes away, then the front opens out */
.turn-side, .turn-front { display: block; }
.turn-side { transition: transform .3s .14s var(--ease-out); }
.turn-front {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transition: transform .16s ease-in;
}
.peek .turn-side { transform: scaleX(0); transition: transform .16s ease-in; }
.peek .turn-front { transform: none; transition: transform .34s .14s var(--ease-out); }
.item:focus-visible { outline: none; }
.item:focus-visible .item-inner { outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: 10px; }
.item.lifted { visibility: hidden; }

.rack-caption {
  align-self: center;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(250, 248, 243, .7);
  min-height: 1.5em;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- status line ---------- */
.ticker {
  background: rgba(250, 248, 243, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
}
.t-sep { margin: 0 2.2ch; color: var(--accent); font-size: 8px; vertical-align: 2px; }
.ticker-inner { display: inline-block; animation: marquee 45s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- office scene ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 55% 45%, rgba(255, 244, 222, .7), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='28'><path d='M0 .5H64M0 14.5H64M.5 0V14M32.5 14V28' stroke='rgba(90,70,50,.07)' fill='none'/></svg>"),
    #ebe5d9;
}
.window {
  position: absolute;
  top: 10vh;
  left: 9vw;
  right: 9vw;
  height: calc(var(--floor) - 16vh);
  overflow: hidden;
  border: 10px solid #2a2a27;
  border-radius: 2px;
  box-shadow: 0 0 0 7px #e2dbcd, 0 24px 50px -24px rgba(0, 0, 0, .45);
}
.view { position: absolute; inset: 0; width: 100%; height: 100%; }
.fog { animation: fog 60s ease-in-out infinite alternate; }
@keyframes fog { to { transform: translateX(-120px); } }
.mullions {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.mullions span { box-shadow: inset 0 0 0 2.5px #2a2a27; }
/* faint reflections on the glass */
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 37%, transparent 45%, transparent 62%, rgba(255, 255, 255, .09) 67%, transparent 72%);
}
.sill {
  position: absolute;
  top: calc(var(--floor) - 6vh + 10px);
  left: calc(9vw - 18px);
  right: calc(9vw - 18px);
  height: 9px;
  border-radius: 2px;
  background: #f3eee5;
  box-shadow: 0 8px 12px -6px rgba(0, 0, 0, .25);
}
.pendant {
  position: absolute;
  top: 0;
  width: 2px;
  height: 7vh;
  background: #2a2a27;
}
.pendant::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -5px;
  width: 12px;
  height: 8px;
  border-radius: 2px 2px 0 0;
  background: #2a2a27;
}
.pendant::after {
  content: "";
  position: absolute;
  top: calc(100% + 7px);
  left: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffaf0, #f4dca8 60%, #ddb978);
  box-shadow: 0 0 34px 12px rgba(255, 214, 150, .35);
}
.floor {
  position: absolute;
  top: var(--floor);
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(#d2b48a, #b8936a 70%, #a9845c);
}
/* baseboard */
.floor::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(#f4f0e8, #e4ddd0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}
.planks { position: absolute; inset: 0; width: 100%; height: 100%; }
/* sunlight through the window, with the mullion shadows */
.sunpatch {
  position: absolute;
  top: 0;
  left: 14vw;
  width: 66vw;
  height: 100%;
  transform: skewX(26deg);
  transform-origin: top;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 7px), rgba(110, 80, 45, .22) calc(25% - 7px) 25%),
    repeating-linear-gradient(180deg, transparent 0 calc(33.3% - 9px), rgba(110, 80, 45, .18) calc(33.3% - 9px) 33.3%),
    linear-gradient(rgba(255, 238, 205, .55), rgba(255, 238, 205, .12));
  filter: blur(3px);
  mix-blend-mode: screen;
}
.plant {
  position: absolute;
  left: max(1vw, calc(50vw - 2.8 * var(--w) - 22vh));
  top: calc(var(--floor) - 40vh);
  height: 42vh;
  width: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .15));
}
.stool {
  position: absolute;
  right: max(1vw, calc(50vw - 2.8 * var(--w) - 18vh));
  top: calc(var(--floor) - 27vh);
  height: 28vh;
  width: auto;
}
.steam { animation: steam 3.2s ease-in-out infinite; }
.steam.s2 { animation-delay: -1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-8px); } }

/* light shafts in the air, drawn over the rack */
.beams { position: fixed; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.beams span {
  position: absolute;
  top: 6vh;
  width: 10vw;
  height: calc(var(--floor) + 8vh);
  transform: skewX(24deg);
  transform-origin: top;
  background: linear-gradient(rgba(255, 240, 212, 0), rgba(255, 240, 212, .2) 35%, rgba(255, 240, 212, 0));
  filter: blur(14px);
  mix-blend-mode: screen;
  animation: shimmer 9s ease-in-out infinite alternate;
}
.beams span:nth-child(1) { left: 30vw; }
.beams span:nth-child(2) { left: 50vw; width: 6vw; animation-delay: -3s; }
.beams span:nth-child(3) { left: 66vw; width: 12vw; animation-delay: -6s; }
@keyframes shimmer { from { opacity: .55; } to { opacity: 1; } }

/* ---------- stage (zoomed item) ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
}
.stage[hidden] { display: none; }
.stage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(243, 240, 232, .55);
  -webkit-backdrop-filter: blur(10px) saturate(.8);
  backdrop-filter: blur(10px) saturate(.8);
  animation: fade .45s ease both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.stage-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.stage-center > * { pointer-events: auto; }
.stage-garment {
  position: relative;
  width: min(300px, 46vh, 60vw);
  transform-origin: 0 0;
}
.swing {
  position: relative;
  transform-origin: 54.5% 1%;
  perspective: 1400px;
}
.flipper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 200 / 260;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3, .7, .2, 1);
}
.flipper:focus-visible { outline-offset: 8px; border-radius: 12px; }
.flipper.is-back { transform: rotateY(180deg); }
.face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.face.back { transform: rotateY(180deg); }
.face svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .16));
}

/* colour swing tags */
.tags {
  position: absolute;
  top: 8%;
  left: calc(100% + 18px);
  display: flex;
  gap: 6px;
  padding-top: 2px;
  animation: fade .4s .5s both;
}
/* little bar the tags hang from */
.tags::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  right: -3px;
  height: 2px;
  border-radius: 1px;
  background: #6b6760;
}
.tag {
  --len: 16px;
  width: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 0;
  animation: tagswing 2.8s ease-in-out infinite;
  animation-delay: calc(var(--d) * -.7s);
}
.tag::before {
  content: "";
  display: block;
  width: 1px;
  height: var(--len);
  margin: 0 auto;
  background: #555;
  transition: height .3s var(--ease-out);
}
.tag-card {
  position: relative;
  display: block;
  width: 18px;
  height: 30px;
  border-radius: 2px;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, .25);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .15);
}
.tag-card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.tag[aria-pressed="true"] { --len: 26px; }
.tag[aria-pressed="true"] .tag-card { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.tag:hover { animation-duration: .8s; }
.tag:focus-visible { outline: none; }
.tag:focus-visible .tag-card { outline: 2px dashed var(--ink); outline-offset: 3px; }
@keyframes tagswing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.stage-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  animation: rise .5s .25s var(--ease-out) both;
}
#stage-title {
  margin: 0;
  padding: 0 16px;
  font: 700 clamp(16px, 1.9vw, 20px) var(--mono);
  letter-spacing: -.01em;
}
.stage-sub {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.toggle {
  display: inline-flex;
  padding: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.toggle button {
  padding: 4px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.pill {
  padding: 6px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pill:hover { background: var(--ink); color: var(--bg); }

.nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: rgba(251, 250, 246, .6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  animation: fade .4s .3s both;
  transition: background .2s, color .2s;
}
.nav:hover { background: var(--ink); color: var(--bg); }
.prev { left: clamp(10px, 4vw, 56px); }
.next { right: clamp(10px, 4vw, 56px); }
.stage-back { position: absolute; top: 20px; left: 24px; z-index: 2; animation: fade .4s .3s both; }

.stage.leaving .stage-backdrop { animation: fadeout .5s ease both; }
.stage.leaving :is(.stage-meta, .tags, .nav, .stage-back) { animation: fadeout .2s ease both; }

/* ---------- side panels ---------- */
.panel { position: fixed; inset: 0; z-index: 30; }
.panel[hidden] { display: none; }
.panel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, .28);
  opacity: 0;
  transition: opacity .35s;
}
.panel.open .panel-scrim { opacity: 1; }
.panel-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  border-left: 1.5px solid var(--ink);
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
}
.panel.open .panel-sheet { transform: none; }
.x {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.details-sheet {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow-y: auto;
}
.d-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 24px 24px;
  background: #e7e4dc;
}
.d-main { width: min(78%, 400px); }
.d-main svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .16)); }
.d-thumbs { display: flex; gap: 8px; }
.thumb {
  width: 56px;
  padding: 4px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb svg { display: block; width: 100%; height: auto; }

.d-info { padding: 56px 32px 40px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
#d-title { margin: 0; font: 700 clamp(20px, 2.3vw, 26px)/1.15 var(--mono); letter-spacing: -.01em; text-wrap: balance; }
.d-price { margin: 10px 0 26px; font-size: 16px; font-weight: 700; }
.d-info h3 { margin: 18px 0 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.opt[aria-pressed="true"] .dot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.opt:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.opt:disabled:hover { border-color: var(--line); }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.opt-grid.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.buy {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.buy:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.buy:disabled { opacity: .35; cursor: not-allowed; }
.d-desc { margin: 24px 0 10px; color: #3d3b36; }
.d-notes { margin: 0; padding-left: 16px; color: var(--muted); font-size: 11px; }

/* cart */
.cart-sheet { width: min(420px, 100%); display: flex; flex-direction: column; }
.cart-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font: 700 18px var(--mono); }
.cart-list { flex: 1; overflow-y: auto; margin: 0; padding: 8px 24px; list-style: none; }
.cart-list .empty { padding: 40px 0; color: var(--muted); text-align: center; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-img svg { display: block; width: 100%; height: auto; }
.line-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.line-info span { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.qty span { color: var(--ink); font-size: 12px; }
.line-price { font-weight: 700; }
.cart-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.cart-foot .row { display: flex; justify-content: space-between; font-weight: 700; }
.fine { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.cart-foot .buy { margin-top: 16px; }

/* about */
.about {
  width: min(440px, calc(100vw - 32px));
  padding: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.about::backdrop { background: rgba(18, 18, 18, .3); }
.about h2 { margin: 0 0 10px; font: 700 18px var(--mono); }
.about p { margin: 0; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 56px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .stool { display: none; }
}

@media (max-width: 760px) {
  .top { padding: 14px 16px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .logo { justify-self: center; padding: 6px 10px; }
  .top-right { gap: 10px; }
  .stage-garment { width: min(300px, 46vh, 54vw); }
  .tags { left: calc(100% + 8px); }
  .window { left: 4vw; right: 4vw; top: 9vh; }
  .sill { left: calc(4vw - 14px); right: calc(4vw - 14px); }
  .stool, .plant, .pendant { display: none; }
  .stage-back { top: 14px; left: 16px; }
  .nav { top: auto; bottom: 24px; margin-top: 0; }
  .prev { left: 16px; }
  .next { right: 16px; }
  .details-sheet { grid-template-columns: 1fr; }
  .d-media { padding-top: 56px; }
  .d-main { width: min(62%, 300px); }
  .d-info { padding: 24px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
