:root {
  --ink: #1b1714;
  --ink-2: #4a423b;
  --ink-3: #7a7067;
  --cream: #f3ede4;
  --glass: rgba(250, 246, 240, 0.52);
  --glass-strong: rgba(250, 246, 240, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --shadow: 0 10px 40px rgba(60, 42, 25, 0.14), 0 2px 8px rgba(60, 42, 25, 0.08);
  --shadow-soft: 0 6px 24px rgba(60, 42, 25, 0.12);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --card-w: clamp(150px, 12.2vw, 212px);
  --card-h: calc(var(--card-w) * 1.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* ---------- Photo ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; --st: max(16px, env(safe-area-inset-top));
  /* what shows if the photo doesn't reach an edge: wall above the horizon (--hz), floor below it */
  background: linear-gradient(180deg, #d8c5b4 0, #d8c5b4 var(--hz, 80%), #c4ad99 var(--hz, 80%), #c6af9b calc(var(--hz, 80%) + 12vh), #cbb5a1 calc(var(--hz, 80%) + 28vh), #d1bca8 calc(var(--hz, 80%) + 42vh), #d6c3b0 100%);
}
/* skatepark: sky-blue tint above, darker concrete below so the fade into the floor isn't visible */
.stage[data-scene="skatepark"] {
  background: linear-gradient(180deg, #bfd3e8 0, #cddbe9 calc(var(--hz, 80%) * .45), #dde3ea calc(var(--hz, 80%) * .9), #d7c7b5 var(--hz, 80%), #d2bca7 calc(var(--hz, 80%) + 6vh), #d0b9a4 calc(var(--hz, 80%) + 30vh), #c3ab96 calc(var(--hz, 80%) + 46vh), #b39c87 100%);
}
/* hollywood: hazy sky above; below, the asphalt's average color (#aa8870, measured on the photo's bottom rows) */
.stage[data-scene="hollywood"] {
  background: linear-gradient(180deg, #9eacbd 0, #d3cac4 calc(var(--hz, 80%) * .9), #aa8a73 var(--hz, 80%), #aa8870 calc(var(--hz, 80%) + 10vh), #a8866e 100%);
}
.stage[data-scene="hollywood"]::before { opacity: .22; } /* lighter grain: the asphalt in the photo is fine-textured */
/* the photo's own light backing would show as a pale band when its bottom fades out: no backing in skatepark or hollywood */
.stage[data-scene="skatepark"] .photo, .stage[data-scene="hollywood"] .photo { background: transparent; }
/* skatepark: soften the photo's bottom edge only at the left and right (never over the model or his shoes),
   by blending the floor texture into the flat floor fill */
.stage[data-scene="skatepark"]::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(208,185,164,0) calc(var(--pb, 100%) - 190px), rgba(208,185,164,.55) calc(var(--pb, 100%) - 90px), rgba(208,185,164,.92) calc(var(--pb, 100%) - 12px), rgba(208,185,164,.92) 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 12%, rgba(0,0,0,.55) 24%, transparent 36%, transparent 64%, rgba(0,0,0,.55) 76%, #000 88%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 12%, rgba(0,0,0,.55) 24%, transparent 36%, transparent 64%, rgba(0,0,0,.55) 76%, #000 88%, #000 100%);
}
/* concrete grain on the floor that continues below the photo */
.stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--hz, 80%); bottom: 0; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .27 0 0 0 0 .21 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000 15%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.2) 70%, transparent 95%); mask-image: linear-gradient(#000 15%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.2) 70%, transparent 95%);
}
/* app.js sizes and places the photo so the whole model fits in the free space (frame()).
   Where it doesn't reach the screen edge it fades out (--fT, --fB) into the wall and floor above. */
.photo {
  position: absolute; inset: 0; background: linear-gradient(180deg, #efe7dc, #e6dccf);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--fT, 0px), #000 calc(100% - var(--fB, 0px)), rgba(0,0,0,.82) calc(100% - var(--fB, 0px) * .7), rgba(0,0,0,.5) calc(100% - var(--fB, 0px) * .45), rgba(0,0,0,.2) calc(100% - var(--fB, 0px) * .2), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 var(--fT, 0px), #000 calc(100% - var(--fB, 0px)), rgba(0,0,0,.82) calc(100% - var(--fB, 0px) * .7), rgba(0,0,0,.5) calc(100% - var(--fB, 0px) * .45), rgba(0,0,0,.2) calc(100% - var(--fB, 0px) * .2), transparent 100%);
}
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 4%;
  opacity: 0;
}
.layer.is-current { opacity: 1; z-index: 1; }
.layer.is-first { animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* while the first photo loads: a soft breathing background */
.photo.is-loading {
  background: linear-gradient(110deg, #efe7dc 30%, #f7f2ea 50%, #efe7dc 70%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
/* look change: the new photo fades in over the old one */
.layer.is-next { opacity: 0; z-index: 2; }
.layer.is-revealing { transition: opacity .55s ease; opacity: 1; }
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background:
    linear-gradient(180deg, rgba(243,237,228,.5) 0, rgba(243,237,228,.22) 36px, rgba(243,237,228,0) 72px),
    linear-gradient(0deg, rgba(238,226,212,.4) 0%, rgba(238,226,212,0) 22%);
}
/* hollywood: a sky-colored wash over the palms on both sides (more sky, less tree), a grey-blue
   haze along the top, and at the bottom the sides melt into the asphalt color. It lives inside .photo, so % = photo coordinates: the model is at 40–60%
   (app.js IMG / modelHalf) and that column is left completely untouched so the face stays clean. */
.stage[data-scene="hollywood"] .photo::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(158,172,189,.8) 0, rgba(166,179,195,.5) 5%, rgba(176,188,202,.2) 10%, rgba(176,188,202,0) 15%),
    linear-gradient(180deg, rgba(214,222,233,.62) 0, rgba(214,222,233,.5) 18%, rgba(214,222,233,.3) 34%, rgba(214,222,233,.1) 46%, rgba(214,222,233,0) 56%),
    linear-gradient(0deg, rgba(170,136,112,.9) 0, rgba(170,136,112,.65) 5%, rgba(170,136,112,.32) 12%, rgba(170,136,112,.1) 19%, rgba(170,136,112,0) 26%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 31%, rgba(0,0,0,.4) 36%, transparent 39.5%, transparent 60.5%, rgba(0,0,0,.4) 64%, #000 69%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 31%, rgba(0,0,0,.4) 36%, transparent 39.5%, transparent 60.5%, rgba(0,0,0,.4) 64%, #000 69%, #000 100%);
}
/* hollywood: no cream wash at all (it fell over the head and the shoes); the photo's own wash above does the blending */
.stage[data-scene="hollywood"] .vignette { background: none; }

/* compare: base on the left, look on the right. The divider can be dragged (--split). */
.photo.is-compare { cursor: ew-resize; touch-action: none; }
.photo.is-compare .layer.is-current { clip-path: inset(0 0 0 var(--split, 50%)); }
.photo.is-compare::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--base-url) 50% 4% / cover no-repeat;
}
.compare-line { display: none; }
.photo.is-compare .compare-line {
  display: block; position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--split, 50%); width: 1px;
  background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(0,0,0,.15);
}
.compare-tag {
  position: absolute; top: 70%; transform: translateY(-50%); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-edge);
}
.compare-tag:first-child { right: 64px; }
.compare-tag:nth-child(2) { left: 64px; }
.compare-knob {
  position: absolute; top: 70%; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; display: grid; place-items: center; cursor: ew-resize;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.compare-knob svg { width: 20px; height: 20px; }
.compare-knob:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 28px;
}
.brand { display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--ink); justify-self: start; }
.brand-logo { display: block; height: 18px; width: auto; fill: currentColor; stroke: none; }
.brand-sub { font-size: 10px; font-weight: 500; letter-spacing: .5em; color: var(--ink-2); }
.tabs { display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
.tab {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fbf7f1; }
/* scene (context) button next to the bag; opens a small menu */
.scene-wrap { position: absolute; z-index: 21; top: 22px; right: 82px; }
.scene-wrap[hidden] { display: none; }
.scene-btn { height: 46px; padding: 0 14px 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.scene-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene-btn .scene-ic { display: none; }
.scene-menu {
  position: absolute; top: calc(100% + 8px); right: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 5px; border-radius: 20px; min-width: 130px;
}
.scene-menu[hidden] { display: none; }
.scene { padding: 9px 14px; border-radius: 15px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left; transition: background .3s var(--ease), color .3s var(--ease); }
.scene:hover { color: var(--ink); }
.scene[aria-pressed="true"] { background: var(--ink); color: #fbf7f1; }
.tab-ic { display: none; width: 21px; height: 21px; }
.bag {
  justify-self: end; position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
}
.bag svg { width: 21px; height: 21px; }
.bag-count {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600;
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.bag-count.is-bump { transform: scale(1.3); }

/* ---------- Rail ---------- */
.rail {
  position: absolute; z-index: 20; left: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 999px;
}
.rail-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); transition: background .25s, color .25s;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover, .rail-btn[aria-pressed="true"] { background: rgba(255,255,255,.8); color: var(--ink); }
.rail-try, .rail-try:hover { background: var(--ink); color: #fbf7f1; box-shadow: 0 6px 18px rgba(27,23,20,.28); }
.rail-btn[aria-pressed="true"] svg { fill: rgba(27,23,20,.12); }
#railSave[aria-pressed="true"] svg { fill: #c4553a; stroke: #c4553a; }
.rail-btn::after {
  content: attr(data-tip); position: absolute; left: 54px; top: 50%; transform: translateY(-50%) translateX(-4px);
  white-space: nowrap; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.rail-btn:hover::after, .rail-btn:focus-visible::after { opacity: 1; transform: translateY(-50%); }
.rail-btn[aria-disabled="true"] { color: var(--ink-3); opacity: .45; cursor: default; }
.rail-btn[aria-disabled="true"]:hover { background: none; }
/* the heart pops when an item gets saved */
#railSave.is-pop svg { animation: heartPop .45s var(--ease); }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- 3D carousel ---------- */
.carousel {
  position: absolute; z-index: 10; left: 0; right: 0; top: 50%; height: 0;
  perspective: 1400px; perspective-origin: 50% 50%;
}
.card {
  position: absolute; left: 50%; top: 0; width: var(--card-w); height: var(--card-h);
  margin-left: calc(var(--card-w) / -2); margin-top: calc(var(--card-h) / -2 - 2vh);
  border-radius: var(--radius); padding: 14px 14px 12px;
  display: flex; flex-direction: column; text-align: left;
  transition: transform .75s var(--ease), opacity .75s var(--ease), filter .75s var(--ease);
  will-change: transform, opacity, filter;
}
.card-img { flex: 1; min-height: 0; position: relative; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(40,28,18,.18)); }
.card-name { font-size: 12.5px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* saved items carry a small heart in the corner */
.card-saved {
  position: absolute; top: 9px; right: 9px; z-index: 1; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.85); color: #c4553a;
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--ease);
}
.card-saved svg { width: 14px; height: 14px; fill: #c4553a; stroke: #c4553a; }
.card.is-saved .card-saved { opacity: 1; transform: scale(1); }
/* category change: cards move one after another, from the center outwards */
.carousel.is-switching .card { transition-delay: calc(var(--k, 0) * 45ms); }

/* ---------- Arrows ---------- */
/* plain chevrons under the side cards, at knee height (app.js places them: placeArrows()) */
.arrow {
  position: absolute; z-index: 20; top: 72%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2); transition: color .2s, transform .25s var(--ease);
}
.arrow svg { width: 28px; height: 28px; stroke-width: 1.4; }
.arrow:hover { color: var(--ink); }
.arrow-left:hover { transform: translateX(-3px); }
.arrow-right:hover { transform: translateX(3px); }
.arrow-left { left: 30%; }
.arrow-right { left: 70%; }

/* ---------- Try it on ---------- */
.tryon {
  position: absolute; z-index: 20; right: calc(82px + var(--scene-w, 110px) + 10px); top: 22px; /* top-right, next to the scene button and the bag */
  display: flex; flex-direction: row; align-items: center; gap: 10px;
}
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: #fbf7f1; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px rgba(27,23,20,.25); transition: transform .2s, background .2s;
}
.btn-dark:hover { transform: translateY(-1px); background: #000; }
.btn-dark:active { transform: translateY(0) scale(.98); }
.btn-dark svg { width: 18px; height: 18px; }
.who { display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 999px; }
.who[hidden] { display: none; }
.who-opt {
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px; transition: background .3s, color .3s;
}
.who-opt img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-left: -8px; border: 1.5px solid #fff; }
.who-opt.is-on { background: var(--ink); color: #fff; }
.who-change { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.who-change:hover { background: rgba(255,255,255,.8); color: var(--ink); }
.who-change svg { width: 18px; height: 18px; }
.who-remove:hover { background: rgba(196,85,58,.1); color: #c4553a; }

.status {
  position: absolute; z-index: 25; left: 50%; top: 92px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap; width: max-content; max-width: calc(100vw - 32px);
}
.status span { white-space: pre-line; line-height: 1.35; }
.status[hidden] { display: none; }
.ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.ring-bg { stroke: rgba(27,23,20,.12); stroke-width: 3; }
.ring-fg { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .25s linear; }

.toast {
  /* sits just above the dock (size selector + button) so it never covers the face; --dock-top is set by app.js */
  position: absolute; z-index: 30; left: 50%; top: auto; bottom: calc(var(--dock-top, 100px) + 12px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 16px;
  background: #2a1f1a; color: #fff; font-size: 13px; line-height: 1.45; box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }
.toast.is-error { background: #7a2418; }
.toast-act {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.16); color: #fff; transition: background .2s;
}
.toast-act:hover { background: rgba(255,255,255,.28); }
.toast-act:focus-visible { outline-color: #fff; }

/* ---------- Dock ---------- */
.dock {
  position: absolute; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; padding: 8px; border-radius: 24px;
  max-width: calc(100vw - 56px);
}
.dock-main {
  display: flex; align-items: center; gap: 14px; min-width: 0; flex: 0 1 auto; text-align: left;
  padding: 2px 10px 2px 2px; margin: -2px; border-radius: 18px; transition: background .2s;
}
.dock-main:hover { background: rgba(255,255,255,.45); }
.dock-thumb { flex: none; width: 46px; height: 46px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,.65); padding: 4px; }
.dock-info { display: flex; flex-direction: column; min-width: 0; }
.dock-kicker { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dock-name { display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: 15px; min-width: 0; }
.dock-name > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-name svg { flex: none; width: 15px; height: 15px; color: var(--ink-3); transition: transform .2s; }
.dock-main:hover .dock-name svg { transform: translateX(2px); color: var(--ink); }
.dock-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-price { flex: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.sizes {
  display: flex; gap: 4px; flex-wrap: nowrap; min-width: 0; padding: 2px; margin: -2px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.sizes::-webkit-scrollbar { display: none; }
/* more sizes than fit: they scroll and fade out at the edge */
.sizes.is-clipped { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.size {
  flex: 0 0 auto; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 500;
  border: 0; background: rgba(255,255,255,.5); transition: background .2s, color .2s;
}
.size:hover { background: rgba(255,255,255,.9); }
.size[aria-checked="true"] { background: var(--ink); color: #fff; }
/* no size chosen yet: the sizes get highlighted instead of showing an alert */
.sizes.needs .size { animation: needSize 1.1s ease; }
@keyframes needSize {
  0%, 100% { background: rgba(255,255,255,.5); color: var(--ink); }
  20%, 60% { background: rgba(196,85,58,.18); color: #c4553a; }
}
.add-btn { white-space: nowrap; flex: none; border-radius: 16px; }
/* no size chosen yet: the button looks secondary, so it reads as a step and not as the final action */
.add-btn.is-idle { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: none; }
.add-btn.is-idle:hover { background: rgba(255,255,255,.85); }
.lbl-short { display: none; }
.carousel.no-anim .card { transition: none; }


/* ---------- Panels: bag, saved and product sheet ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(27,23,20,.3); }
.drawer {
  position: fixed; z-index: 41; top: 16px; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px));
  border-radius: 26px; display: flex; flex-direction: column; background: rgba(250, 246, 240, .94);
}
.drawer[hidden], .drawer-scrim[hidden], .seg[hidden], .drawer-title[hidden], .toast-act[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 16px 8px 16px; }
.drawer-title { margin: 0; padding-left: 6px; font-size: 17px; letter-spacing: .02em; min-width: 0; }
.drawer-close { flex: none; display: grid; place-items: center; padding: 0; width: 36px; height: 36px; border-radius: 50%; }
.drawer-close svg { width: 18px; height: 18px; stroke-width: 1.8; }
.drawer-close:hover { background: rgba(255,255,255,.8); }
.seg { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.45); }
.seg-opt {
  height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s;
}
.seg-opt[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-n { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
.seg-n:empty { display: none; }
.drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 8px 14px; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px; border-bottom: 1px solid rgba(27,23,20,.08); }
.drawer-list img { flex: none; width: 56px; height: 56px; object-fit: contain; background: rgba(255,255,255,.7); border-radius: 12px; padding: 4px; }
.drawer-list .li-info { flex: 1; min-width: 0; font-size: 13px; }
.drawer-list .li-info b { display: block; font-weight: 600; }
.drawer-list .li-info span { display: block; color: var(--ink-3); }
.drawer-list .li-info .qty { margin-top: 10px; }
.drawer-list .li-rm, .drawer-list .li-go { align-self: center; }
.drawer-list .li-rm { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-3); transition: background .15s, color .15s; }
.drawer-list .li-rm svg { width: 18px; height: 18px; }
.drawer-list .li-rm:hover { background: rgba(196,85,58,.1); color: #c4553a; }
.drawer-list .li-heart { color: #c4553a; }
.drawer-list .li-heart svg { fill: #c4553a; }
.drawer-list .li-go { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.7); border: 1px solid rgba(27,23,20,.12); transition: background .2s; }
.drawer-list .li-go:hover { background: #fff; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid rgba(27,23,20,.14); border-radius: 999px; background: rgba(255,255,255,.5); }
.qty-b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1; color: var(--ink); }
.qty-b:hover:not(:disabled) { background: rgba(255,255,255,.9); }
.qty-b:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-empty { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; padding: 36px 14px; text-align: center; }
.drawer-empty p { margin: 0 0 16px; }
.drawer-foot { padding: 0 22px; }
.drawer-foot:not(:empty) { padding: 16px 22px 22px; border-top: 1px solid rgba(27,23,20,.08); }
.drawer-total { display: flex; justify-content: space-between; font-size: 15px; }
.checkout-btn { width: 100%; margin-top: 14px; }
.drawer-note { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.done { text-align: center; padding: 48px 12px 12px; }
.done-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.done-ic svg { width: 28px; height: 28px; stroke-width: 2; }
.done h3 { margin: 0 0 8px; font-size: 19px; }
.done p { margin: 0 0 6px; font-size: 14px; }
.done .muted { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; margin-top: 12px; }

/* how I built this */
.about { width: min(440px, calc(100vw - 32px)); }
.about-lead { margin: 4px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.about-tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.about-tags li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(27,23,20,.1); font-size: 12px; }
.about-tags span { color: var(--ink-3); }
.about-tags b { font-weight: 600; color: var(--ink); }
.about-steps { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: s; }
.about-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 9px 2px; border-bottom: 1px solid rgba(27,23,20,.08); font-size: 13px; }
.about-steps li::before { content: counter(s); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.about-steps b { font-weight: 600; }
.about-steps span { color: var(--ink-3); line-height: 1.45; }
.about-prompt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.about-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; margin-bottom: 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.7); border: 1px solid rgba(27,23,20,.12); transition: background .2s; }
.about-copy:hover { background: #fff; }
.about-copy svg { width: 15px; height: 15px; }
.about-prompt { margin: 0; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.6); font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }

.about-recs-h { margin-top: 26px; }
.about-recs { margin-top: 10px; }
.about-recs code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255,255,255,.7); padding: 1px 5px; border-radius: 5px; }

/* product sheet */
.sheet-hero { height: 210px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.55); }
.sheet-hero img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(40,28,18,.18)); }
.sheet-sub { margin: 14px 2px 0; font-size: 13.5px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.chip { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(27,23,20,.1); }
.sheet-h { margin: 22px 2px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sheet-list { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.sheet-list li { margin-bottom: 4px; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sheet-table th, .sheet-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(27,23,20,.08); font-weight: 500; }
.sheet-table thead th { font-size: 11.5px; color: var(--ink-3); }
.sheet-table tr.is-mine { background: rgba(255,255,255,.75); }
.sheet-table tr.is-mine th, .sheet-table tr.is-mine td { font-weight: 700; }
.sheet-note { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }

/* ---------- Medium screens ---------- */
@media (max-width: 1100px) {
  /* slightly smaller cards so two fit on each side of the model */
  :root { --card-w: clamp(112px, 13vw, 150px); }
  .dock { gap: 12px; }
  .dock-meta { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --card-w: 102px; --card-h: 110px; --radius: 15px; }
  /* the two side rails are centered in the free space: between the top row and the cards */
  .stage, .tabs { --mid: calc(50% + (var(--st) + 50px - max(16px, env(safe-area-inset-bottom)) - 236px) / 2); }
  .topbar { grid-template-columns: 1fr auto; padding: max(16px, env(safe-area-inset-top)) 16px 16px; }
  .scene-wrap { top: max(16px, env(safe-area-inset-top)); right: 62px; }
  /* mobile: only an icon, the same size as the bag, so it never covers the model's head */
  .scene-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .scene-btn .scene-label, .scene-btn .scene-chev { display: none; }
  .scene-btn .scene-ic { display: block; width: 19px; height: 19px; }
  .bag { width: 40px; height: 40px; }
  .bag svg { width: 19px; height: 19px; }
  /* categories: a column of icons on the left, like the actions rail on the right */
  .tabs {
    position: fixed; left: 12px; top: max(calc(var(--st) + 52px), calc(var(--mid) - 98px));
    flex-direction: column; padding: 3px; gap: 2px;
  }
  .tab { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
  .tab-ic { display: block; width: 18px; height: 18px; }
  .tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .arrow { display: none; }
  /* save, compare and share move to a column on the right, below the bag */
  .rail { left: auto; right: 12px; top: max(calc(var(--st) + 52px), calc(var(--mid) - 60px)); transform: none; padding: 3px; gap: 2px; }
  .rail-btn { width: 36px; height: 36px; }
  .rail-btn svg { width: 18px; height: 18px; }
  .rail-btn::after { display: none; }
  .compare-tag { top: 44%; }
  .compare-knob { top: 44%; }
  .carousel { top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 164px); perspective: 900px; }
  .card { padding: 7px 7px 6px; margin-top: calc(var(--card-h) / -2); }
  .card-name { font-size: 10px; margin-top: 3px; }
  .card-price { font-size: 9.5px; margin-top: 1px; }
  .card-saved { top: 6px; right: 6px; width: 20px; height: 20px; }
  .card-saved svg { width: 12px; height: 12px; }
  .dock {
    left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; max-width: none;
    gap: 10px; padding: 7px; border-radius: 20px;
  }
  .dock-thumb { width: 40px; height: 40px; border-radius: 13px; }
  .dock-kicker { font-size: 9.5px; }
  .dock-name { font-size: 13px; }
  .dock-meta { font-size: 11.5px; }
  .dock { flex-wrap: wrap; row-gap: 6px; justify-content: flex-start; }
  .dock-main { flex: 1; }
  .dock-price { font-size: 13px; }
  .add-btn { height: 38px; padding: 0 14px; font-size: 12.5px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .sizes { order: 5; width: 100%; max-width: none; gap: 3px; }
  .size { height: 30px; min-width: 38px; padding: 0 6px; border-radius: 8px; font-size: 11.5px; }
  /* sizes centered in their row (auto margins keep it scrollable when they don't fit) */
  .size:first-child { margin-left: auto; }
  .size:last-child { margin-right: auto; }
  /* "Try it on" sits in the top row, between the logo and the bag */
  .tryon { display: contents; }
  /* once there's a photo, Model / You becomes a single round button with your face in the same spot:
     tap it to see yourself, tap again to go back to the model. The small camera changes the photo. */
  .who {
    position: fixed; z-index: 20; top: var(--st); left: 140px; transform: none;
    padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .who-opt[data-who="model"] { display: none; }
  .who-opt[data-who="me"] { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: none; justify-content: center; }
  .who-opt[data-who="me"] span { display: none; }
  .who-opt[data-who="me"] img { width: 40px; height: 40px; margin: 0; border: 2px solid #fff; box-shadow: var(--shadow-soft); transition: box-shadow .25s; }
  .who-opt[data-who="me"].is-on img { box-shadow: 0 0 0 2px var(--ink), var(--shadow-soft); }
  .who-change {
    position: absolute; right: -6px; bottom: -4px; width: 20px; height: 20px;
    background: var(--ink); color: #fff; border: 2px solid var(--cream);
  }
  .who-change::before { content: ""; position: absolute; inset: -4px -8px; } /* bigger touch area (without overlapping the other badge) */
  .who-change svg { width: 11px; height: 11px; stroke-width: 2; }
  .who-change:hover { background: var(--ink); color: #fff; }
  /* the X to remove the photo: top corner of the face (the camera is in the bottom one) */
  .who-remove { top: -4px; bottom: auto; }
  .who-remove svg { width: 10px; height: 10px; stroke-width: 2.4; }
  .status { top: calc(var(--st) + 52px); width: max-content; max-width: calc(100vw - 120px); }
  .toast { width: max-content; max-width: calc(100vw - 32px); }
  .vignette { background: linear-gradient(0deg, rgba(243,237,228,.7) 0%, rgba(243,237,228,.45) 14%, rgba(243,237,228,.18) 28%, rgba(243,237,228,0) 42%), linear-gradient(180deg, rgba(243,237,228,.5) 0, rgba(243,237,228,.22) calc(var(--st) + 24px), rgba(243,237,228,0) calc(var(--st) + 54px)); }
  .qty-b { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .layer.is-revealing { transition-duration: .01s; }
  .carousel.is-switching .card { transition-delay: 0s; }
  #railSave.is-pop svg { animation: none; }
  .photo.is-loading, .layer.is-first, .sizes.needs .size { animation: none; }
  .sizes.needs .size { background: rgba(196,85,58,.18); color: #c4553a; }
}

/* Photo source menu (touch): selfie or upload */
.photo-menu {
  position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 4px; padding: 6px; min-width: 200px;
  border-radius: 18px; box-shadow: var(--shadow);
}
.photo-menu[hidden] { display: none; }
.photo-menu button {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0;
  padding: 14px 16px; border-radius: 12px; text-align: left; cursor: pointer;
}
.photo-menu button:active { background: rgba(0,0,0,.08); }
.carousel { cursor: grab; }

/* ---------- Favorite outfits (drawer tab) ---------- */
.outfit-grid { list-style: none; margin: 0; padding: 8px 4px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.outfit-grid li { position: relative; }
.outfit { display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.6); text-align: left; }
.outfit img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; transition: transform .4s var(--ease); }
.outfit:hover img { transform: scale(1.04); }
.outfit-cap { display: block; padding: 7px 10px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outfit-rm { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); }
.outfit-rm svg { width: 15px; height: 15px; fill: #c4553a; stroke: #c4553a; }

/* ---------- Sale prices ---------- */
.is-sale { color: #b23a26; font-weight: 600; }
.is-sale .was { color: var(--ink-3); font-weight: 400; font-size: .85em; }
.is-sale .off { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #b23a26; color: #fff; font-size: .78em; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }

/* ---------- Checkout (simulated payment gateway) ---------- */
.steps { list-style: none; display: flex; gap: 6px; margin: 6px 0 16px; padding: 0; counter-reset: st; }
.steps li { flex: 1; font-size: 11px; color: var(--ink-3); text-align: center; padding-top: 8px; border-top: 3px solid rgba(27,23,20,.1); counter-increment: st; }
.steps li.is-done { color: var(--ink-2); border-top-color: var(--ink-2); }
.steps li.is-now { color: var(--ink); font-weight: 600; border-top-color: var(--ink); }
.co-form { display: grid; gap: 10px; }
.co-field { display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); }
.co-field input, .co-promo input {
  height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(27,23,20,.14);
  background: rgba(255,255,255,.75); font: inherit; font-size: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.co-field input:focus, .co-promo input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,23,20,.08); }
.co-field input:read-only { background: rgba(255,255,255,.45); color: var(--ink-2); }
.co-field input.is-bad, .co-promo input.is-bad { border-color: #b23a26; box-shadow: 0 0 0 3px rgba(178,58,38,.12); }
.co-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-label { margin: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.co-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; border: 1px solid rgba(27,23,20,.12); background: rgba(255,255,255,.55); cursor: pointer; transition: border-color .2s, background .2s; }
.co-opt:has(input:checked) { border-color: var(--ink); background: rgba(255,255,255,.9); }
.co-opt input { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.co-opt-txt { flex: 1; display: grid; font-size: 13.5px; }
.co-opt-txt small { color: var(--ink-3); font-size: 12px; }
.co-opt-price { font-size: 13.5px; font-weight: 600; }
.co-hint { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.co-summary { position: relative; display: grid; gap: 10px; padding: 14px 60px 14px 14px; border-radius: 14px; background: rgba(255,255,255,.55); font-size: 13px; }
.co-summary small { display: block; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.co-edit { position: absolute; top: 12px; right: 12px; font-size: 12.5px; text-decoration: underline; color: var(--ink-2); }
.co-card { display: grid; gap: 10px; margin: 2px 0 10px; }
.pay-card {
  aspect-ratio: 1.586; max-width: 320px; width: 100%; margin: 4px auto 6px; padding: 18px 20px; border-radius: 18px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 140% at 0% 0%, #5a4636 0%, #2a1f1a 55%, #120d0a 100%);
  box-shadow: 0 18px 34px rgba(42,31,26,.35), inset 0 1px 0 rgba(255,255,255,.12);
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) rotateX(18deg); } }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #e8cf8f, #b8964f); }
.pc-brand { font-weight: 800; font-style: italic; letter-spacing: .04em; font-size: 18px; }
.pc-num { font-size: 19px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.pc-bot { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.pc-bot small { display: block; font-size: 9px; opacity: .6; margin-bottom: 2px; }
.co-promo { display: flex; gap: 8px; }
.co-promo input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-promo-btn { padding: 0 16px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1px solid rgba(27,23,20,.14); font-weight: 600; font-size: 13px; }
.co-totals { display: grid; gap: 6px; font-size: 13.5px; }
.co-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.co-row.is-disc { color: #2f7a45; }
.co-row.is-total { color: var(--ink); font-size: 16px; font-weight: 700; padding-top: 8px; margin-top: 2px; border-top: 1px solid rgba(27,23,20,.08); }
.co-back { display: block; margin: 12px auto 0; font-size: 13px; color: var(--ink-2); }
.co-back:hover { color: var(--ink); }
.checkout-btn.is-busy { opacity: .85; cursor: progress; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-no { font-weight: 600; letter-spacing: .04em; }
.done-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.done-strip img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.7); padding: 4px; }
.done-ic { animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* checkout v2: everything fits the drawer width, compact and softer inputs */
.co-form, .co-card, .co-two, .co-field, .co-opt, .co-promo { min-width: 0; max-width: 100%; box-sizing: border-box; }
.co-form { gap: 8px; }
.co-two { gap: 8px; }
.steps { margin: 0 0 12px; }
.co-field { gap: 0; position: relative; font-size: 0; }
.co-field > span {
  position: absolute; left: 13px; top: 7px; font-size: 10.5px; letter-spacing: .02em; color: var(--ink-3); pointer-events: none;
}
.co-field input, .co-promo input {
  width: 100%; min-width: 0; box-sizing: border-box; height: 48px; padding: 18px 13px 4px;
  border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.62);
  font-size: 14px; box-shadow: none;
}
.co-promo input { padding: 0 13px; height: 44px; }
.co-field input:hover, .co-promo input:hover { background: rgba(255,255,255,.8); }
.co-field input:focus, .co-promo input:focus { background: #fff; border-color: rgba(27,23,20,.22); box-shadow: 0 2px 10px rgba(42,31,26,.08); }
.co-field input:read-only { background: rgba(255,255,255,.4); }
.co-label { margin: 10px 0 4px; }
.co-opt { padding: 10px 12px; margin-bottom: 6px; border-color: transparent; background: rgba(255,255,255,.5); }
.co-opt:has(input:checked) { border-color: rgba(27,23,20,.5); background: #fff; }
.co-opt-txt { min-width: 0; }

/* checkout v3: clean, underline-only fields with the label as placeholder */
.co-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-field input, .co-promo input,
.co-field input:hover, .co-promo input:hover {
  height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid rgba(27,23,20,.18); border-radius: 0;
  background: transparent; box-shadow: none; font-size: 14.5px;
}
.co-field input::placeholder, .co-promo input::placeholder { color: var(--ink-3); }
.co-field input:focus, .co-promo input:focus { background: transparent; box-shadow: none; border-color: transparent; border-bottom: 1.5px solid var(--ink); }
.co-field input:read-only { background: transparent; color: var(--ink-2); }
.co-field input.is-bad, .co-promo input.is-bad { box-shadow: none; border-bottom-color: #b23a26; }
.co-form, .co-two { gap: 4px 16px; }
.co-promo input { text-transform: none; }
.co-promo-btn { background: transparent; border: 0; text-decoration: underline; padding: 0 4px; }
.co-opt { background: transparent; border: 0; border-bottom: 1px solid rgba(27,23,20,.1); border-radius: 0; padding: 12px 2px; margin: 0; }
.co-opt:has(input:checked) { background: transparent; border-color: rgba(27,23,20,.1); }
.co-form, .co-two { gap: 14px 16px; }
.co-card { gap: 14px; }
.co-label { margin-top: 18px; }
.steps { margin: 16px 0 26px; }

/* payment card v2: cool iridescent blue/violet, with a soft light sweep */
.pay-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(120, 220, 255, .55) 0%, rgba(120, 220, 255, 0) 55%),
    radial-gradient(80% 110% at 0% 100%, rgba(255, 120, 200, .45) 0%, rgba(255, 120, 200, 0) 60%),
    linear-gradient(135deg, #1b2a6b 0%, #3b2a8f 45%, #0d1440 100%);
  box-shadow: 0 20px 40px rgba(27, 34, 107, .35), inset 0 1px 0 rgba(255,255,255,.25);
}
.pay-card::after {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  animation: cardShine 4.5s ease-in-out 0.6s infinite;
}
@keyframes cardShine { 0% { transform: translateX(-40%); } 55%, 100% { transform: translateX(40%); } }
.pc-chip { background: linear-gradient(135deg, #f1f3f8, #9aa3b8); }
.pc-top, .pc-num, .pc-bot { position: relative; z-index: 1; }
.pc-num { text-shadow: 0 1px 2px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .pay-card::after { animation: none; display: none; } }

/* order confirmation: centered in the space left under the steps */
.drawer-body:has(> .done) { display: flex; flex-direction: column; }
.drawer-body > .done { margin: auto 0; padding: 12px; }
/* shipping form: same, centered in the free space under the steps */
.drawer-body:has(> .co-form) { display: flex; flex-direction: column; }
.drawer-body > .co-form { margin: auto 0; padding-bottom: 12px; }

/* payment card v3: minimal neon yellow */
.pay-card {
  color: #111; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(140deg, #f4ff3a 0%, #e6f51c 55%, #d6ec12 100%);
  box-shadow: 0 18px 36px rgba(120, 130, 0, .25), inset 0 1px 0 rgba(255,255,255,.6);
}
.pay-card::after { background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); }
.pc-word { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.pc-contactless { font-weight: 700; font-size: 13px; letter-spacing: -2px; transform: rotate(0deg); opacity: .55; }
.pc-chip, .pc-num { display: none; }
.pc-bot { align-items: flex-end; text-transform: none; letter-spacing: 0; }
.pc-meta { display: grid; gap: 2px; font-size: 12.5px; font-weight: 600; }
.pc-meta span:last-child { opacity: .6; font-variant-numeric: tabular-nums; }
.pc-brand { font-size: 20px; color: #111; }
.pc-num { text-shadow: none; }
.pc-logo { height: 22px; width: auto; fill: #111; color: #111; }
.pc-logo * { fill: #111; }
.pc-mc { width: 44px; height: auto; flex: none; }
.pc-mc, .pc-mc * { stroke: none !important; stroke-width: 0 !important; }
.pc-mc { width: 44px; height: 28px; display: block; overflow: visible; }
.co-err { display: block; margin-top: 5px; font-size: 11.5px; color: #b23a26; } .co-err[hidden] { display: none; }
.co-lock { display: flex; align-items: center; gap: 6px; } .co-lock svg { width: 14px; height: 14px; flex: none; }

/* minimal radios: thin light ring, a small dot when selected */
.co-opt input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 16px; height: 16px; margin: 0; border-radius: 50%;
  border: 1px solid rgba(27,23,20,.22); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s;
}
.co-opt input[type="radio"]::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
  transform: scale(0); transition: transform .2s var(--ease);
}
.co-opt input[type="radio"]:checked { border-color: rgba(27,23,20,.45); }
.co-opt input[type="radio"]:checked::before { transform: scale(1); }
.co-opt input[type="radio"]:focus-visible { outline: 2px solid rgba(27,23,20,.3); outline-offset: 2px; }
.co-opt:not(:has(input:checked)) .co-opt-txt b { font-weight: 500; }

/* ---------- stock and best sellers (only on a few items) ---------- */
.card-tag {
  align-self: flex-start; margin-top: 5px; padding: 2px 7px; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.card-tag.is-low { background: #b23a26; }
/* sale items: plain red text, not a pill */
.card-tag.is-text { background: none; color: #b23a26; padding: 0; font-weight: 700; }
@media (max-width: 767px) { .card-tag { margin-top: 3px; padding: 1px 5px; font-size: 8px; border-radius: 5px; } }
/* sold-out size: crossed out and not selectable */
.size.is-out { position: relative; overflow: hidden; color: var(--ink-3); background: rgba(255,255,255,.25); cursor: not-allowed; opacity: .55; }
.size.is-out::before { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 1.5px; background: currentColor; transform: rotate(-35deg); }
.size.is-out:hover { background: rgba(255,255,255,.25); }
/* size with its own discount: small red dot */
.size.has-deal { position: relative; }
.size.has-deal::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #b23a26; }
.card-deal { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.card-deal .card-tag { margin-top: 0; }
.card-deal .off { padding: 1px 6px; border-radius: 6px; background: #b23a26; color: #fff; font-size: 10px; font-weight: 700; }
@media (max-width: 767px) { .card-deal { margin-top: 3px; gap: 4px; } .card-deal .off { font-size: 8px; padding: 1px 4px; border-radius: 5px; } }
