/* Self-hosted fonts (no external requests) */
@font-face{font-family:"Onest";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/onest-cyrillic-400.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Onest";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/onest-latin-400.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Onest";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/onest-cyrillic-500.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Onest";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/onest-latin-500.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Onest";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/onest-cyrillic-600.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Onest";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/onest-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/jbm-cyrillic-400.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/jbm-latin-400.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/jbm-cyrillic-500.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/jbm-latin-500.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ==========================================================================
   Kupimotok — prototype design system
   Strict catalogue: hairline grid, mono spec labels, colour comes from yarn.
   ========================================================================== */

:root {
  --bg: #f3f3f0;
  --paper: #ffffff;
  --tile: #ebeae6;
  --ink: #111111;
  --ink-2: #45453f;
  --mute: #85857e;
  --line: #d9d9d2;
  --line-2: #c4c4bc;
  --signal: #e5432a;          /* sale / discount / active marker only */
  --ok: #2f7d4f;

  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 2.4vw, 32px);
  --max: 1680px;
  --header-h: 72px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .2s;
  --t: .45s;
  --t-slow: 1.1s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Type ---------- */
.display {
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 132px);
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h1 { font-weight: 500; font-size: clamp(36px, 4.8vw, 84px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(30px, 3.6vw, 60px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.h3 { font-weight: 500; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.small { font-size: 14px; color: var(--ink-2); }
.label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.label--ink { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section { padding: clamp(80px, 11vw, 168px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--bg); }
.section--ink .label { color: #8d8d86; }
.section--ink .lead { color: #b9b9b2; }

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section--ink .sec-head { border-top-color: #3a3a36; }
.sec-head__idx { grid-column: 1 / span 2; align-self: start; }
.sec-head__title { grid-column: 3 / span 6; }
.sec-head__aside { grid-column: 9 / span 4; justify-self: end; text-align: right; }
@media (max-width: 900px) {
  .sec-head { row-gap: 14px; }
  .sec-head__idx, .sec-head__title, .sec-head__aside { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: var(--h);
  padding: 0 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform var(--t) var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform var(--t) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light::before { background: transparent; box-shadow: inset 0 0 0 1px var(--bg); }
.btn--light:hover { color: var(--bg); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }

.link-u {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform var(--t) var(--ease);
}
.link-u:hover::after { transform-origin: left; animation: underline .7s var(--ease); }
@keyframes underline { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  height: 36px;
  background: var(--ink);
  color: #d8d8d1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  z-index: 60;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.topbar__msgs { position: relative; height: 100%; flex: 1; overflow: hidden; }
.topbar__msg {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  transform: translateY(100%); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.topbar__msg.is-on { transform: translateY(0); opacity: 1; }
.topbar__msg.is-off { transform: translateY(-100%); opacity: 0; }
.topbar__msg b { color: #fff; font-weight: 500; }
.topbar__right { display: flex; gap: 22px; white-space: nowrap; }
.topbar__right a:hover { color: #fff; }
@media (max-width: 760px) { .topbar__right { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(243, 243, 240, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s, background .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 22px; letter-spacing: -.04em; }
.logo__mark { display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 2px; }
.logo__mark i { display: block; background: var(--ink); transition: background-color .9s var(--ease); }
.logo__dom { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .02em; color: var(--mute); margin-left: -8px; align-self: flex-end; margin-bottom: 3px; }

.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a, .nav button { position: relative; padding: 6px 0; color: var(--ink-2); transition: color var(--t-fast); display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover, .nav button:hover, .nav .is-current { color: var(--ink); }
.nav .is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.nav .chev { width: 10px; height: 10px; transition: transform var(--t) var(--ease); }
.nav button[aria-expanded="true"] .chev { transform: rotate(180deg); }

.header__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tool {
  height: 42px; min-width: 42px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; transition: border-color var(--t-fast);
}
.tool:hover { border-color: var(--line-2); }
.tool--phone { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tool--cart { background: var(--ink); color: var(--bg); padding: 0 16px; }
.tool--cart:hover { border-color: var(--ink); }
.cart-count {
  font-family: var(--mono); font-size: 12px; min-width: 18px; text-align: center;
  display: inline-block;
}
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: translateY(0); } 30% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.burger { display: none; }

@media (max-width: 1100px) {
  .nav, .tool--phone { display: none; }
  .burger { display: inline-flex; }
  .mega { display: none; }
  .header__inner { gap: 16px; }
}

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.mega.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.mega__inner { padding-top: 36px; padding-bottom: 44px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); }
.mega__col { grid-column: span 3; }
.mega__col .label { margin-bottom: 18px; display: block; }
.mega__col li a {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px;
  border-bottom: 1px solid transparent; transition: border-color var(--t-fast), padding var(--t) var(--ease);
}
.mega__col li a:hover { border-bottom-color: var(--ink); padding-left: 6px; }
.mega__col li a span:last-child { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.mega .mega__col > * { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease); }
.mega.is-open .mega__col > * { opacity: 1; transform: none; }
.mega.is-open .mega__col:nth-child(2) > * { transition-delay: .05s; }
.mega.is-open .mega__col:nth-child(3) > * { transition-delay: .1s; }
.mega.is-open .mega__col:nth-child(4) > * { transition-delay: .15s; }

/* ---------- Mobile menu ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.mmenu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.mmenu__top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.mmenu nav { margin-top: 48px; display: flex; flex-direction: column; }
.mmenu nav a { font-size: 40px; font-weight: 500; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid #2c2c29; }
.mmenu__foot { margin-top: auto; display: grid; gap: 6px; color: #b5b5ae; font-size: 15px; }

/* ---------- Reveal primitives ---------- */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: block; transform: translateY(105%); }
.is-ready .split-line > span { transition: transform 1.1s var(--ease); transform: none; }
.rv { opacity: 0; transform: translateY(24px); }
.rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rv-clip { clip-path: inset(100% 0 0 0); }
.rv-clip.in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease); }
.rv-line { transform: scaleX(0); transform-origin: left; }
.rv-line.in { transform: scaleX(1); transition: transform 1.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .split-line > span, .rv, .rv-clip, .rv-line { transform: none !important; opacity: 1 !important; clip-path: none !important; }
}

/* ---------- Page transition ---------- */
.pt {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  display: grid; place-items: center;
}
.pt__panel { position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; }
.pt__word { position: relative; color: var(--bg); font-weight: 600; font-size: 22px; letter-spacing: -.04em; opacity: 0; display: flex; align-items: center; gap: 12px; }
.pt__word .logo__mark i { background: var(--bg); }
.pt.is-leaving .pt__panel { transform: scaleY(1); transition: transform .55s var(--ease-in-out); }
.pt.is-leaving .pt__word { opacity: 1; transition: opacity .3s .25s; }
.pt.is-entering .pt__panel { transform: scaleY(1); transform-origin: top; }
.pt.is-entering .pt__word { opacity: 1; }
.pt.is-entered .pt__panel { transform: scaleY(0); transform-origin: top; transition: transform .75s var(--ease-in-out); }
.pt.is-entered .pt__word { opacity: 0; transition: opacity .2s; }
.pt.is-done { visibility: hidden; }

/* ---------- Product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pgrid > * { background: var(--bg); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px)  { .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 18px; transition: background var(--t-fast); }
.card:hover { background: var(--paper); }
.card__mw { position: relative; overflow: hidden; }
.card__media {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tile);
  transition: background var(--t);
}
.card:hover .card__media { background: #f1f0ec; }
.card__media img {
  position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .9s var(--ease), opacity .5s;
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media img.card__alt { opacity: 0; object-fit: cover; inset: 0; width: 100%; height: 100%; mix-blend-mode: normal; transform: scale(1.08); }
.card__media.show-alt img.card__alt { opacity: 1; transform: scale(1); }
.card__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1;
  padding: 6px 7px 5px; background: var(--paper); color: var(--ink);
}
.badge--sale { background: var(--signal); color: #fff; }
.badge--pack { background: var(--ink); color: var(--bg); }
.card__add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  height: 44px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transform: translateY(calc(100% + 12px)); transition: transform .55s var(--ease);
}
.card:hover .card__add, .card:focus-within .card__add { transform: none; }
.card__add:hover { background: #2a2a27; }
.card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; gap: 4px 12px; padding-top: 14px; }
.card__brand { grid-column: 1 / -1; }
.card__name { font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.card__ru { font-size: 13px; color: var(--mute); grid-column: 1; }
.card__price { grid-column: 2; grid-row: 2 / span 2; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; font-size: 17px; white-space: nowrap; }
.card__price s { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.card__spec { grid-column: 1 / -1; margin-top: 10px; display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: .02em; flex-wrap: wrap; }
.card__dots { grid-column: 1 / -1; display: flex; overflow: hidden; min-width: 0; gap: 4px; margin-top: 12px; align-items: center; min-height: 14px; }
.card__dots i { width: 14px; height: 14px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .3s var(--ease); }
.card__dots i:hover { transform: scale(1.35); }
.card__dots span { font-family: var(--mono); font-size: 11px; color: var(--mute); margin-left: auto; padding-left: 8px; white-space: nowrap; }
@media (max-width: 760px) {
  .card { padding: 10px 10px 14px; }
  .card__body { grid-template-columns: minmax(0, 1fr); }
  .card__dots i:nth-child(n+6) { display: none; }
  .card__spec span:nth-child(3) { display: none; }
  .card__price { grid-column: 1; grid-row: auto; text-align: left; margin-top: 6px; }
  .card__price s { display: inline; margin-left: 6px; }
  .card__add { transform: none; height: 38px; font-size: 13px; position: static; margin-top: 8px; width: 100%; }
  .card__name { font-size: 15px; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cart drawer ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 95; background: rgba(17,17,17,.38); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.drawer-bg.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(480px, 100vw); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .7s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__ship { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ship-bar { height: 3px; background: var(--line); margin-top: 12px; position: relative; overflow: hidden; }
.ship-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .8s var(--ease); }
.ship-bar.is-full i { background: var(--ok); }
.drawer__list { flex: 1; overflow: auto; padding: 4px 24px; overscroll-behavior: contain; }
.citem { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; animation: citem .6s var(--ease); }
@keyframes citem { from { opacity: 0; transform: translateX(16px); } }
.citem__img { width: 76px; height: 76px; background: var(--tile); position: relative; }
.citem__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6px; }
.citem__img i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border: 2px solid var(--paper); }
.citem__name { font-weight: 500; letter-spacing: -.01em; }
.citem__meta { font-family: var(--mono); font-size: 11px; color: var(--mute); margin-top: 4px; letter-spacing: .02em; }
.citem__price { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.citem__rm { font-size: 12px; color: var(--mute); margin-top: 8px; display: block; margin-left: auto; }
.citem__rm:hover { color: var(--ink); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); height: 34px; margin-top: 10px; }
.stepper button { width: 32px; height: 100%; display: grid; place-items: center; transition: background var(--t-fast); }
.stepper button:hover { background: var(--bg); }
.stepper output, .stepper input { width: 34px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; border: 0; background: none; }
.drawer__empty { padding: 60px 0; text-align: center; color: var(--mute); }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total strong { font-size: 28px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, calc(100% + 48px)); visibility: hidden; background: var(--ink); color: var(--bg);
  padding: 12px 14px 12px 12px; display: flex; align-items: center; gap: 14px; font-size: 14px;
  transition: transform .6s var(--ease), visibility 0s .6s; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.toast img { width: 40px; height: 40px; object-fit: contain; background: var(--bg); padding: 2px; mix-blend-mode: normal; }
.toast button { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding-left: 14px; border-left: 1px solid #3a3a36; margin-left: 6px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(17,17,17,.5); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__box { position: relative; background: var(--paper); width: min(560px, 100%); padding: 36px; transform: translateY(30px); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9c9c2; padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); row-gap: 40px; }
.footer__lead { grid-column: 1 / span 5; color: #fff; }
.footer__col { grid-column: span 2; display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer__col .label { margin-bottom: 10px; color: #7d7d76; }
.footer__col--wide { grid-column: span 3; }
.footer__word {
  margin-top: clamp(56px, 8vw, 120px);
  font-size: clamp(64px, 18.5vw, 340px); font-weight: 600; letter-spacing: -.065em; line-height: .78;
  color: #fff; white-space: nowrap; display: flex; align-items: flex-end;
  transform: translateY(8%);
}
.footer__word span { display: inline-block; }
.footer__dev { color: #b9b9b1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #55554f; }
.footer__dev:hover { color: #fff; text-decoration-color: currentColor; }
.footer__legal { border-top: 1px solid #2c2c29; padding-top: 20px; padding-bottom: 84px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 12px; color: #7d7d76; position: relative; z-index: 2; background: var(--ink); }
@media (max-width: 1000px) {
  .footer__lead { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
}

/* ---------- Forms & chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); font-size: 14px; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.chip.is-on small { color: #a9a9a2; }

.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 15px; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 16px; height: 16px; border: 1px solid var(--line-2); flex: none; position: relative; transition: background var(--t-fast), border-color var(--t-fast); }
.check__box::after { content: ""; position: absolute; inset: 3px; background: var(--bg); transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box::after { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.check em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--mute); margin-left: auto; }
.check:hover .check__box { border-color: var(--ink); }

.field { display: grid; gap: 8px; }
.field input, .field select, .input {
  height: 48px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 14px; width: 100%;
  transition: border-color var(--t-fast); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field input:focus, .input:focus { outline: none; border-color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; padding: 22px 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-m { }
@media (max-width: 760px) { .hide-m { display: none !important; } }

/* Mobile header: three equal light icons, cart count as a small badge */
@media (max-width: 760px) {
  .header__tools { gap: 2px; margin-right: -10px; }
  .tool { height: 44px; min-width: 44px; padding: 0; border: 0; }
  .tool--cart { background: transparent; color: var(--ink); padding: 0; position: relative; }
  .tool--cart .cart-count {
    position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--ink); color: var(--bg); font-size: 10px; line-height: 16px; border-radius: 8px;
  }
  .tool--cart .cart-count:empty, .tool--cart .cart-count[data-zero] { display: none; }
  .logo { font-size: 20px; }
}

/* ==========================================================================
   Shape system — soft geometry (overrides the original square grid)
   ========================================================================== */
:root { --r-xs: 6px; --r-s: 12px; --r-m: 18px; --r-l: 26px; --r-pill: 999px; }

.btn, .btn::before, .tool, .chip, .tag, .badge, .stepper, .opt, .card__add, .tool--cart { border-radius: var(--r-pill); }
.btn { padding: 0 28px; }
.stepper { overflow: hidden; }
.input, .field input, .field select { border-radius: var(--r-s); }
.check__box { border-radius: var(--r-xs); }
.check__box::after { border-radius: 3px; }

/* Logo mark: four skeins instead of four squares */
.logo__mark i { border-radius: 50%; }
.logo__mark { gap: 1px; }

/* Mega menu & overlays */
.mega { border-radius: 0 0 var(--r-l) var(--r-l); }
.drawer { border-radius: var(--r-l) 0 0 var(--r-l); overflow: hidden; }
.ship-bar, .ship-bar i { border-radius: var(--r-pill); }
.citem__img { border-radius: var(--r-s); overflow: hidden; }
.toast { border-radius: var(--r-m); }
.toast img { border-radius: var(--r-s); }
.modal__box { border-radius: var(--r-l); }
@media (max-width: 520px) { .drawer { border-radius: 0; } }

/* Product cards: separate soft tiles instead of a hairline table */
.pgrid { gap: 12px; background: none; border: 0; }
.pgrid > * { background: var(--paper); }
.card { border-radius: var(--r-l); padding: 10px 10px 18px; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.card:hover { box-shadow: 0 18px 40px -22px rgba(17,17,17,.28); transform: translateY(-3px); }
.card__mw { border-radius: var(--r-m); }
.card__media { border-radius: var(--r-m); background: #f0efeb; }
.card:hover .card__media { background: #ecebe6; }
.card__body { padding: 14px 6px 0; }
.card__dots i { border-radius: 50%; }
.card__add { left: 12px; right: 12px; bottom: 12px; }
@media (max-width: 760px) {
  .pgrid { gap: 8px; }
  .card { border-radius: var(--r-m); padding: 6px 6px 14px; }
  .card__mw, .card__media { border-radius: 14px; }
  .card__body { padding: 12px 4px 0; }
  .card__add { margin-top: 6px; }
  .card:hover { transform: none; }
}

/* Mobile cart count badge stays round */
@media (max-width: 760px) { .tool--cart .cart-count { border-radius: var(--r-pill); } }

/* Phones: no promo strip — it fights the status bar; delivery info lives in cart & delivery block */
@media (max-width: 760px) { .topbar { display: none; } }

/* Card: second photo + indicator */
.card__media img.card__alt--prod { inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.card__media.show-alt img:not(.card__alt) { opacity: 0; }
.card__pics { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.card__pics i { width: 14px; height: 3px; border-radius: 2px; background: rgba(17,17,17,.18); transition: background .3s; }
.card__pics i:first-child { background: rgba(17,17,17,.7); }
.card__media.show-alt .card__pics i:first-child { background: rgba(17,17,17,.18); }
.card__media.show-alt .card__pics i:nth-child(2) { background: rgba(17,17,17,.7); }
.card__pics { transition: bottom .55s var(--ease); }
.card:hover .card__pics { bottom: 66px; }
@media (max-width: 760px) { .card:hover .card__pics { bottom: 8px; } }
