/* «Изнанка» — concept clothing store. Tokens first; dark theme follows the system. */
:root {
  --bg: #ececea;          /* same grey as the studio sweep behind the garments */
  --surface: #f7f7f5;
  --tile: #e2e2df;
  --ink: #141414;
  --ink-2: #5a5a57;
  --line: #cfcfcb;
  --acc: #2c37d8;         /* ultramarine: links, focus, selection, badges */
  --acc-soft: #dfe1fb;
  --on-acc: #ffffff;
  --warn: #b3261e;
  --wire: #85898d;
  --metal: linear-gradient(180deg, #fbfbfb 0%, #d4d6d8 30%, #9a9ea2 58%, #c3c6c8 82%, #eeeff0 100%);
  --metal-v: linear-gradient(90deg, #f3f3f3 0%, #c5c8ca 40%, #8f9397 70%, #d7d9da 100%);
  --shadow: 0 18px 40px -18px rgb(30 30 26 / 0.28);
  --r-s: 10px;
  --r: 16px;
  --r-l: 22px;
  --pad: clamp(16px, 3vw, 40px);
  --bar-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --f: 'Onest', system-ui, sans-serif;
  --f-logo: 'Unbounded', var(--f);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --surface: #1b1b1a; --tile: #1f1f1e; --ink: #ecece8; --ink-2: #a3a39e; --line: #31312f;
    --acc: #8e96ff; --acc-soft: #24264a; --on-acc: #0e0f2a; --warn: #ff8a80; --wire: #8d9195;
    --metal: linear-gradient(180deg, #8d9093 0%, #5d6063 35%, #2f3133 62%, #4a4d50 85%, #6b6e71 100%);
    --metal-v: linear-gradient(90deg, #7b7e81 0%, #505356 45%, #2c2e30 75%, #5a5d60 100%);
    --shadow: 0 18px 40px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font: 400 16px/1.5 var(--f); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
input, select { caret-color: var(--acc); }
svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 99px; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 99px; font-weight: 500; white-space: nowrap; transition: transform 0.2s var(--ease), background-color 0.2s, opacity 0.2s; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: color-mix(in oklab, var(--ink) 86%, var(--acc)); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.is-busy { position: relative; }
.ib { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; transition: background-color 0.2s, transform 0.2s var(--ease); }
.ib:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.ib:active { transform: scale(0.94); }
.ib--line { box-shadow: inset 0 0 0 1px var(--line); }
.ib:disabled { opacity: 0.3; pointer-events: none; }
.ib.is-bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--acc); color: var(--on-acc); font: 600 11px/18px var(--f); text-align: center; font-variant-numeric: tabular-nums; }
.fav[aria-pressed='true'] { color: var(--acc); }
.link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; font-size: 14px; }
.link:hover { color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 15px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: 0.2s; }
.chip sup { font-size: 10px; top: -0.5em; color: inherit; opacity: 0.7; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-selected='true'] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip--sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 calc(var(--pad) - 10px); background: var(--bg); transition: box-shadow 0.3s; }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.bar__l, .bar__r { display: flex; align-items: center; gap: 2px; }
.bar__r { justify-content: flex-end; }
.nav { display: flex; gap: 26px; margin-left: 10px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.bar__menu { display: none; }
.logo { padding: 8px 0; font: 700 22px/1 var(--f-logo); letter-spacing: -0.02em; text-decoration: none; }
.logo--sm { font-size: 16px; }
.menu { position: fixed; z-index: 29; inset: var(--bar-h) 0 auto; display: grid; padding: 8px var(--pad) 24px; background: var(--bg); box-shadow: 0 1px 0 var(--line), var(--shadow); }
.menu a, .menu button { padding: 14px 0; font-size: 22px; font-weight: 600; text-decoration: none; text-align: left; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .nav { display: none; }
  .bar__menu { display: inline-grid; }
  .logo { font-size: 19px; }
}

/* ---------- hero: the rail ---------- */
.hero { min-height: calc(100svh - var(--bar-h)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding-bottom: 28px; }
.hero__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--pad) 0; }
.hero__h { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.hero__h span { color: var(--ink-2); font-weight: 400; }
.hero__h span::before { content: ''; display: inline-block; width: 1px; height: 13px; margin: 0 12px; background: var(--line); vertical-align: -1px; }

.rail { position: relative; isolation: isolate; height: var(--rail-h, 520px); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.rail.is-drag { cursor: grabbing; }
.rail:focus-visible { outline-offset: -4px; border-radius: var(--r); }
.rail__bar { position: absolute; top: 26px; left: 14px; right: 14px; height: max(8px, calc(11px * var(--s, 1))); transform: translateY(-50%); border-radius: 99px; background: var(--metal); box-shadow: 0 3px 4px -1px rgb(0 0 0 / 0.16); }
.rail__end { position: absolute; left: -6px; top: 50%; width: 12px; height: 34px; transform: translateY(-50%); border-radius: 4px; background: var(--metal-v); box-shadow: 0 2px 4px rgb(0 0 0 / 0.18); }
.rail__end::after { content: ''; position: absolute; left: 50%; width: 4px; height: 4px; top: 6px; margin-left: -2px; border-radius: 50%; background: rgb(0 0 0 / 0.28); box-shadow: 0 18px 0 rgb(0 0 0 / 0.28); }
.rail__end--r { left: auto; right: -6px; }
.rail__track { position: absolute; left: 50%; top: 26px; }
.rail__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.rail.is-3d .rail__gl { opacity: 1; }
.rail.is-3d .rail__bar, .rail.is-3d .rail__track { display: none; }
.rail.is-over { cursor: pointer; }
.rail.is-drag { cursor: grabbing; }
.hang { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.hang__s { display: block; position: relative; transform-origin: 0 0; }
.hook { position: absolute; left: -10px; top: -10px; width: 20px; height: auto; max-width: none; overflow: visible; }
.gm { position: absolute; left: 0; }
.gm__l { position: absolute; top: 0; max-width: none; pointer-events: auto; -webkit-user-drag: none; }
.hang .gm { filter: drop-shadow(0 22px 26px rgb(20 20 16 / 0.14)); }
@media (prefers-color-scheme: dark) { .hang .gm { filter: drop-shadow(0 22px 28px rgb(0 0 0 / 0.5)); } }

.pick { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 4px var(--pad) 0; text-align: center; }
.pick__name { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pick__name em { display: inline-block; vertical-align: 0.45em; margin-left: 4px; padding: 3px 8px; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font: 600 11px/1.2 var(--f); letter-spacing: 0.02em; font-style: normal; }
.pick__meta { display: flex; gap: 14px; color: var(--ink-2); font-size: 15px; }
.pick__meta span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick__nav { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.pick__count { min-width: 64px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.pick__cta { display: flex; gap: 8px; margin-top: 10px; }
.pick__cta .ib--line { width: 48px; height: 48px; }
.pick__hint { margin-top: 10px; font-size: 13px; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 760px) {
  .hero__head { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__h { font-size: 14px; }
  .hero__head .chips { margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
  .pick__hint { display: none; }
}

/* ---------- perks strip ---------- */
.perks { list-style: none; margin: 0; display: flex; justify-content: space-between; gap: 28px; padding: 16px var(--pad); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; overflow-x: auto; scrollbar-width: none; }
.perks::-webkit-scrollbar { display: none; }
.perks li { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.perks svg { width: 20px; height: 20px; opacity: 0.75; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) var(--pad); }
.h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 58ch; }

/* catalog */
.shop__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.shop__tools { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.sel { position: relative; flex: none; }
.sel select { appearance: none; height: 36px; padding: 0 36px 0 15px; border: 0; border-radius: 99px; background: none; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; cursor: pointer; }
.sel select option { background: var(--surface); color: var(--ink); }
.sel svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .shop__tools { flex-direction: column; align-items: stretch; width: 100%; }
  .shop__tools .chips { margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
  .sel { align-self: flex-start; }
}
.grid__empty { padding: 48px 0; color: var(--ink-2); }
.card { position: relative; min-width: 0; }
.card__img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--tile); overflow: hidden; }
.card__rail { display: block; position: absolute; left: 0; right: 0; top: 22px; height: 6px; background: var(--metal); opacity: 0.85; }
.card__hang { display: block; position: absolute; left: 50%; top: 25px; }
.card .hang__s { transform: scale(var(--gs, 0.4)); }
.card .gm { filter: drop-shadow(0 14px 16px rgb(20 20 16 / 0.12)); transition: transform 0.6s var(--ease); }
.card__img:hover .gm { transform: translateY(-3px); }
.card .gm__l { transition: opacity 0.45s var(--ease); }
.card .gm__back { opacity: 0; }
.card.is-back .gm__back { opacity: 1; }
.card.is-back .gm__front { opacity: 0; }
.card__tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 600; }
.card__fav { position: absolute; top: 34px; right: 8px; }
.card__quick { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: 0.3s var(--ease); }
.card__quick button { flex: 1; height: 34px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.card__quick button:hover { background: var(--ink); color: var(--bg); }
.card__quick button:disabled { color: var(--ink-2); opacity: 0.5; text-decoration: line-through; pointer-events: none; }
.card:hover .card__quick, .card__quick:focus-within { opacity: 1; transform: none; }
.card:hover .card__tag { opacity: 0; }
@media (hover: none) { .card__quick { display: none; } }
.card__txt { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 4px 0; }
.card__name { font-weight: 600; min-width: 0; }
.card__name span { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.card__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__col { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.card__col em { font-style: normal; color: var(--acc); }
@media (max-width: 760px) { .card__txt { grid-template-columns: 1fr; } .card__name { font-size: 15px; } }

/* inside / fabrics */
.inside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; background: var(--surface); }
.inside__text { display: grid; gap: 22px; position: sticky; top: calc(var(--bar-h) + 32px); }
.facts { display: grid; gap: 18px; margin-top: 8px; }
.facts div { display: grid; grid-template-columns: 14px 1fr; column-gap: 14px; }
.facts div::before { content: ''; grid-row: span 2; width: 14px; height: 14px; margin-top: 5px; border: 1.5px dashed var(--ink-2); border-radius: 3px; }
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink-2); }
.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.swatches li { display: grid; gap: 4px; }
.swatches li:first-child { grid-column: 1 / -1; }
.swatches img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.swatches li:first-child img { aspect-ratio: 2 / 1; }
.swatches span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .inside { grid-template-columns: 1fr; } .inside__text { position: static; } }

/* help / faq */
.help__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); margin-top: 36px; }
.help__lead { display: grid; gap: 20px; align-content: start; font-size: 18px; }
.help__lead .btn { justify-self: start; }
.faq details, .acc details { border-bottom: 1px solid var(--line); }
.faq summary, .acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.faq summary::after, .acc summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after, .acc details[open] summary::after { transform: rotate(45deg); }
.faq details p, .acc details > :not(summary) { padding-bottom: 18px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 860px) { .help__grid { grid-template-columns: 1fr; } }

/* footer */
.foot { padding: 56px var(--pad) 32px; background: var(--ink); color: var(--bg); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 18%, transparent); }
.sub { display: grid; gap: 14px; max-width: 520px; }
.sub label { display: grid; gap: 4px; }
.sub label b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sub label span, .foot p { color: color-mix(in oklab, var(--bg) 66%, var(--ink)); }
.sub__row { display: flex; gap: 8px; }
.sub input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 99px; border: 0; background: color-mix(in oklab, var(--bg) 10%, var(--ink)); color: var(--bg); }
.sub input::placeholder { color: color-mix(in oklab, var(--bg) 72%, var(--ink)); }
.sub .btn--ink { background: var(--bg); color: var(--ink); }
.sub__msg { min-height: 1.5em; font-size: 14px; }
.sub__msg.is-warn { color: #ffb4ab; }
.foot__nav { display: grid; align-content: start; gap: 10px; justify-items: start; }
.foot__nav a, .foot__nav button { text-decoration: none; font-size: 15px; padding: 2px 0; }
.foot__nav a:hover, .foot__nav button:hover { text-decoration: underline; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding-top: 24px; font-size: 14px; }
.foot__note { flex-basis: 100%; max-width: 80ch; font-size: 13px; }
.foot :focus-visible { outline-color: var(--bg); }
@media (max-width: 760px) { .foot__top { grid-template-columns: 1fr; } .sub__row { flex-direction: column; } .sub input { flex: none; } }

/* ---------- dialogs: shared ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--bg); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(10 10 8 / 0.42); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dlg 0.42s var(--ease); }
  dialog[open]::backdrop { animation: fade 0.3s; }
}
@keyframes dlg { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

/* product */
.pdp { width: 100%; height: 100%; margin: 0; }
.pdp__in { position: relative; height: 100%; overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pdp__x { position: fixed; top: 12px; right: 12px; z-index: 3; background: var(--surface); box-shadow: var(--shadow); }
.pdp__stage { position: sticky; top: 0; height: 100dvh; background: var(--tile); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.pdp__stage.is-drag { cursor: grabbing; }
.pdp__rail { position: absolute; left: 0; right: 0; top: 54px; height: 10px; transform: translateY(-50%); background: var(--metal); box-shadow: 0 3px 4px -1px rgb(0 0 0 / 0.16); }
.pdp__hang { position: absolute; left: 50%; top: 54px; }
.pdp__gl { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.pdp__stage.is-3d .pdp__rail, .pdp__stage.is-3d .pdp__hang { display: none; }
.pdp__hang .hang__s { transform: scale(var(--ps, 1)); }
.pdp__hang .gm { filter: drop-shadow(0 26px 30px rgb(20 20 16 / 0.16)); }
.views { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; padding: 4px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); }
.views button { height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.views button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.pdp__drag { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.pdp__drag svg { width: 16px; height: 16px; }
.pdp__info { padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px) 48px; display: grid; gap: 10px; align-content: start; max-width: 620px; }
.pdp__type { color: var(--ink-2); font-size: 15px; }
.pdp__name { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.pdp__price { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp__color { color: var(--ink-2); }
.sizes { border: 0; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.sizes legend { display: flex; justify-content: space-between; width: 100%; font-weight: 600; margin-bottom: 10px; }
.sizes__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sizes.is-shake .sizes__row { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sz { position: relative; display: grid; }
.sz input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.sz span { display: grid; place-items: center; height: 50px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; transition: 0.15s; }
.sz:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.sz input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.sz input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.sz.is-out span { color: var(--ink-2); background: linear-gradient(to top right, transparent calc(50% - 0.75px), var(--line) 50%, transparent calc(50% + 0.75px)); }
.sz.is-out input:checked + span { background: var(--ink-2); color: var(--bg); }
.sz i { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 99px; background: var(--acc); color: var(--on-acc); font: 600 10px/15px var(--f); font-style: normal; pointer-events: none; }
.sizes__note { min-height: 1.5em; font-size: 14px; color: var(--ink-2); }
.sizes__note.is-warn { color: var(--warn); }
.pdp__buy { display: flex; gap: 8px; margin-top: 4px; }
.pdp__buy .btn { flex: 1; min-height: 54px; }
.pdp__buy .ib { width: 54px; height: 54px; flex: none; }
.pdp__ship { display: flex; gap: 10px; align-items: start; margin: 6px 0 14px; font-size: 14px; color: var(--ink-2); }
.pdp__ship svg { width: 20px; height: 20px; margin-top: 1px; }
.acc { border-top: 1px solid var(--line); }
.acc summary { font-size: 16px; }
.acc p + p { margin-top: 8px; }
@media (max-width: 860px) {
  .pdp__in { grid-template-columns: 1fr; display: block; }
  .pdp__stage { position: relative; height: 64svh; min-height: 400px; }
  .pdp__drag { display: none; }
  .pdp__info { max-width: none; }
}

/* tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.tbl caption { text-align: left; color: var(--ink-2); font-size: 13px; padding-bottom: 8px; }
.tbl th, .tbl td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th[scope='row'] { text-align: left; font-weight: 500; color: var(--ink-2); padding-left: 0; }
.tbl thead th { font-weight: 600; }
.tbl--sm { font-size: 14px; color: var(--ink); }

/* size guide modal */
.modal { width: min(560px, calc(100% - 24px)); margin: auto; border-radius: var(--r-l); background: var(--surface); }
.modal__in { display: grid; gap: 20px; padding: 24px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.finder { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--bg); }
.finder__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finder__out { min-height: 3em; }
.finder__out b { font-size: 20px; color: var(--acc); }
.seg { display: flex; padding: 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.seg label { position: relative; flex: 1; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 36px; border-radius: 99px; font-size: 14px; font-weight: 500; text-align: center; padding: 0 6px; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

/* fields */
.fld { position: relative; display: grid; gap: 6px; }
.fld > span { font-size: 14px; font-weight: 500; }
.fld input { height: 50px; padding: 0 16px; border: 0; border-radius: var(--r-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.15s; min-width: 0; }
.finder .fld input { background: var(--surface); }
.fld input:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.fld input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.fld input::placeholder { color: var(--ink-2); opacity: 0.85; }
.fld .err { font-style: normal; font-size: 13px; color: var(--warn); min-height: 0; }
.fld.is-err input { box-shadow: inset 0 0 0 2px var(--warn); }

/* search */
.search { width: min(680px, calc(100% - 24px)); margin: 72px auto auto; border-radius: var(--r-l); background: var(--surface); }
.search__in { display: grid; gap: 14px; padding: 12px 12px 18px; }
.search__row { display: flex; align-items: center; gap: 10px; padding-left: 12px; border-bottom: 1px solid var(--line); }
.search__row input { flex: 1; min-width: 0; height: 56px; border: 0; background: none; font-size: 19px; outline: none; }
.search__row input::-webkit-search-cancel-button { display: none; }
.search__pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 8px; font-size: 14px; color: var(--ink-2); }
.search__pop span { margin-right: 4px; }
.search__res { list-style: none; padding: 0; display: grid; }
.search__res button { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 8px; border-radius: var(--r-s); text-align: left; }
.search__res button:hover, .search__res button:focus-visible { background: var(--bg); }
.search__res img { width: 56px; height: 64px; object-fit: contain; }
.search__res span { display: grid; font-size: 14px; color: var(--ink-2); }
.search__res b { font-size: 16px; color: var(--ink); }
.search__res em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.search__empty { padding: 8px; color: var(--ink-2); }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(10 10 8 / 0.42); opacity: 0; transition: opacity 0.3s; }
.scrim.is-on { opacity: 1; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); box-shadow: var(--shadow); transform: translateX(104%); transition: transform 0.42s var(--ease); }
.drawer.is-on { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__tabs { display: flex; gap: 18px; }
.drawer__tabs button { height: 44px; font-size: 17px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; }
.drawer__tabs button[aria-selected='true'] { color: var(--ink); border-color: var(--ink); }
.drawer__tabs b { font-weight: 500; color: var(--acc); font-variant-numeric: tabular-nums; }
.drawer__body { overflow: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.drawer__foot:empty { display: none; }
.lines { list-style: none; padding: 0; }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 84px; height: 104px; object-fit: contain; padding: 6px; border-radius: var(--r-s); background: var(--tile); }
.line__t { display: grid; gap: 2px; align-content: start; min-width: 0; }
.line__t > span { font-size: 14px; color: var(--ink-2); }
.line__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.line__p { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink) !important; }
.line__del { justify-self: start; margin-top: 4px; font-size: 13px; min-height: 24px; }
.mini-sel select { height: 34px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; }
.qty button:hover { background: var(--bg); }
.qty button:disabled { opacity: 0.3; pointer-events: none; }
.qty svg { width: 15px; height: 15px; }
.qty output { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.free { position: relative; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.free i { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--acc) calc(var(--k) * 100%), var(--line) 0); }
.free.is-done { color: var(--acc); font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.empty { display: grid; justify-items: center; gap: 16px; padding: 64px 12px; text-align: center; }
.empty svg { width: 44px; height: 44px; color: var(--ink-2); }
.empty p { display: grid; gap: 4px; color: var(--ink-2); max-width: 30ch; }
.empty b { color: var(--ink); font-size: 18px; }

/* checkout */
.co { width: 100%; height: 100%; margin: 0; }
.co__in { height: 100%; overflow: auto; overscroll-behavior: contain; }
.co__head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar-h); padding: 0 calc(var(--pad) - 10px); background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.co__head h2 { font-size: 17px; font-weight: 600; }
.co__head .logo { justify-self: end; padding-right: 10px; }
.co__form { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 5vw, 72px); max-width: 1180px; margin: 0 auto; padding: 32px var(--pad) 64px; }
.co__step { grid-column: 1; display: grid; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.co__step:last-of-type { border-bottom: 0; }
.co__step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.co__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld--wide { grid-column: 1 / -1; }
.city { position: relative; }
.city__list { position: absolute; z-index: 3; top: 100%; left: 0; right: 0; margin-top: 4px; list-style: none; padding: 6px; border-radius: var(--r-s); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.city__list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.city__list li:hover, .city__list li[aria-selected='true'] { background: var(--bg); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: grid; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.opt__b { display: grid; gap: 2px; align-content: start; padding: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); transition: 0.15s; min-height: 100%; }
.opt__b svg { margin-bottom: 8px; }
.opt__b small { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.opt__b em { font-style: normal; font-weight: 600; font-size: 14px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.opt:hover .opt__b { box-shadow: inset 0 0 0 1px var(--ink-2); }
.opt input:checked + .opt__b { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }
.opt input:focus-visible + .opt__b { outline: 2px solid var(--acc); outline-offset: 2px; }
.co__sum { grid-column: 2; grid-row: 1 / span 3; align-self: start; position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 16px; margin-top: 28px; padding: 24px; border-radius: var(--r-l); background: var(--surface); }
.co__sum h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; }
.co__sum h3 span { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.sum__list { list-style: none; padding: 0; display: grid; gap: 10px; max-height: 280px; overflow: auto; }
.sum__list li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.sum__list img { width: 48px; height: 58px; object-fit: contain; padding: 4px; border-radius: 8px; background: var(--tile); }
.sum__list span { display: grid; font-size: 13px; color: var(--ink-2); }
.sum__list b { font-size: 15px; color: var(--ink); font-weight: 600; }
.sum__list em { font-style: normal; font-variant-numeric: tabular-nums; }
.sum__dl { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum__dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum__dl dt { color: var(--ink-2); }
.sum__dl dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum__total { padding-top: 8px; font-size: 20px !important; font-weight: 700; }
.sum__total dt { color: var(--ink) !important; }
@media (max-width: 900px) {
  .co__form { grid-template-columns: 1fr; padding-top: 8px; }
  .co__sum { grid-column: 1; grid-row: auto; position: static; margin-top: 8px; }
  .opts { grid-template-columns: 1fr; }
  .opt__b { grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: center; }
  .opt__b svg { grid-row: span 2; margin: 0; }
  .opt__b em { grid-row: 1 / span 2; grid-column: 3; margin: 0; }
}
@media (max-width: 560px) { .co__grid { grid-template-columns: 1fr; } .co__head h2 { font-size: 15px; } .co__head .logo { display: none; } }
.ok { max-width: 640px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad); display: grid; gap: 28px; }
.ok__head { display: grid; gap: 10px; }
.ok__tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: var(--on-acc); }
.ok__tick svg { width: 28px; height: 28px; }
.ok__no { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ok h3 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.ok__head p:last-child { color: var(--ink-2); }
.steps { list-style: none; padding: 0; display: grid; }
.steps li { position: relative; display: grid; padding: 0 0 22px 32px; }
.steps li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); background: var(--bg); }
.steps li::after { content: ''; position: absolute; left: 9.5px; top: 21px; bottom: 2px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.is-done::before { background: var(--acc); box-shadow: none; }
.steps span { color: var(--ink-2); font-size: 14px; }
.ok .btn { justify-self: start; }

/* toast */
.toast { position: fixed; z-index: 60; left: 0; right: 0; margin-inline: auto; width: fit-content; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 16px; max-width: calc(100% - 24px); padding: 12px 12px 12px 20px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); transform: translateY(140%); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; pointer-events: none; }
.toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.toast button { height: 32px; padding: 0 14px; border-radius: 99px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.toast:empty { display: none; }
dialog .toast { bottom: auto; top: max(14px, env(safe-area-inset-top)); transform: translateY(-160%); }
dialog .toast.is-on { transform: none; }
@media (max-width: 860px) { dialog .toast { max-width: calc(100% - 84px); margin-left: 12px; } }
