/* KHOKI — generated from tokens.json */
:root, [data-theme="dark"] {
  --bg: #0b0b0b;
  --surface-raised: #161616;
  --surface-sunken: #1f1f1f;
  --line: #2a2a2a;
  --line-strong: #6e6e6e;
  --ink: #f2f0eb;
  --ink-muted: #a29f99;
  --on-ink: #0b0b0b;
  --signal: #ff4433;
  --on-signal: #0b0b0b;
  --signal-soft: #3a0f0b;
  --success: #3fd08f;
  --warning: #ffb224;
  --shadow-drawer: 0 0 0 1px #2a2a2a;
}
[data-theme="light"] {
  --bg: #f4f2ee;
  --surface-raised: #ffffff;
  --surface-sunken: #e7e4de;
  --line: #dcd8d0;
  --line-strong: #8a857c;
  --ink: #0b0b0b;
  --ink-muted: #5b5852;
  --on-ink: #f4f2ee;
  --signal: #d0170b;
  --on-signal: #ffffff;
  --signal-soft: #fbe3e0;
  --success: #0d7a48;
  --warning: #8f5400;
  --shadow-drawer: 0 12px 40px rgba(11,11,11,0.18);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 64px;
  --space-8: 96px;
  --radius-0: 0px;
  --radius-xs: 2px;
  --radius-round: 50%;
  --slant: -12deg;
  --container: 1320px;
  --control-h: 48px;
  --control-h-sm: 36px;
  --font-display: "Dela Gothic One", "Onest", system-ui, sans-serif;
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}
.display-xl { font-family: var(--font-display); font-size: 72px; line-height: 68px; font-weight: 400; letter-spacing: -0.01em; }
.display-l { font-family: var(--font-display); font-size: 44px; line-height: 44px; font-weight: 400; }
.display-m { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 400; }
.heading { font-family: var(--font-sans); font-size: 20px; line-height: 26px; font-weight: 700; }
.body-l { font-family: var(--font-sans); font-size: 17px; line-height: 26px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; }
.body-strong { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 500; }
.label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; }
.caption { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; }
.price-l { font-family: var(--font-mono); font-size: 22px; line-height: 28px; font-weight: 500; }
.price { font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 500; }
@font-face { font-family: "Dela Gothic One"; src: url("/fonts/DelaGothicOne-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* KHOKI components. Every value comes from tokens.css. */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; -webkit-font-smoothing: antialiased; }
.kh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kh-icon { flex: none; display: block; }
:where(.kh-btn, .kh-iconbtn, .kh-size, .kh-swatch, .kh-stepper__btn, .kh-link, .kh-header__link, .kh-card a, .kh-input__el, .kh-pay__opt input):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Button */
.kh-btn { font: inherit; font-weight: 500; letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-h); padding: 0 var(--space-5); border: 2px solid var(--ink); border-radius: var(--radius-0); cursor: pointer; text-transform: uppercase; font-size: 14px; transition: background .15s, color .15s; }
.kh-btn--sm { height: var(--control-h-sm); padding: 0 var(--space-4); font-size: 13px; }
.kh-btn--lg { height: 56px; font-size: 15px; }
.kh-btn--full { width: 100%; }
.kh-btn--primary { background: var(--ink); color: var(--on-ink); }
.kh-btn--primary:hover:not(:disabled) { background: var(--bg); color: var(--ink); }
.kh-btn--secondary { background: transparent; color: var(--ink); }
.kh-btn--secondary:hover:not(:disabled) { background: var(--ink); color: var(--on-ink); }
.kh-btn--ghost { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 0 var(--space-2); }
.kh-btn:disabled { cursor: not-allowed; opacity: .45; }
.kh-btn.is-loading .kh-btn__label::after { content: ''; display: inline-block; width: 1ch; animation: kh-dots 1s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes kh-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Badge — the logo's slant */
.kh-badge { display: inline-block; transform: skewX(var(--slant)); padding: 2px var(--space-2); font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.kh-badge__text { display: inline-block; transform: skewX(calc(var(--slant) * -1)); }
.kh-badge--signal { background: var(--signal); color: var(--on-signal); }
.kh-badge--ink { background: var(--ink); color: var(--on-ink); }
.kh-badge--neutral { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.kh-badge--success { background: transparent; color: var(--success); box-shadow: inset 0 0 0 1.5px var(--success); }

/* Price */
.kh-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.kh-price--l { font-size: 22px; line-height: 28px; }
.kh-price.is-sale .kh-price__now { color: var(--signal); }
.kh-price__was { color: var(--ink-muted); font-size: 13px; font-weight: 500; }
.kh-price__pct { color: var(--signal); font-size: 13px; }

/* TeeImage placeholder */
.kh-tee { background: var(--surface-sunken); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 12%; box-sizing: border-box; }
.kh-tee svg { display: block; }
.kh-tee__black { fill: #0b0b0b; stroke: var(--line-strong); stroke-width: 1; }
.kh-tee__white { fill: #f2f0eb; stroke: var(--line-strong); stroke-width: 1; }
.kh-tee__seam { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.kh-tee__print-light { fill: #f2f0eb; font-family: var(--font-display); font-size: 22px; font-style: italic; }
.kh-tee__print-dark { fill: #0b0b0b; font-family: var(--font-display); font-size: 22px; font-style: italic; }

/* ProductCard */
.kh-card { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.kh-card__media { position: relative; display: block; background: var(--surface-sunken); overflow: hidden; aspect-ratio: 4 / 5; }
.kh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.kh-card__media > .kh-tee { height: 100%; transition: transform .4s; }
.kh-card__media:hover img, .kh-card__media:hover > .kh-tee { transform: scale(1.03); }
.kh-card__badge { position: absolute; top: var(--space-3); left: var(--space-3); }
.kh-card__body { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.kh-card__body > .kh-btn { margin-top: auto; }
.kh-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.kh-card__name { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.kh-card__name a { color: inherit; text-decoration: none; }
.kh-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kh-card__dots { display: flex; gap: var(--space-1); padding-top: 6px; }
.kh-card__dot { width: 10px; height: 10px; border-radius: var(--radius-round); box-shadow: 0 0 0 1px var(--line-strong); }
.kh-card__stock { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.kh-card.is-soldout .kh-card__media { opacity: .5; }

/* Legend / labels / messages */
.kh-legend { padding: 0; margin: 0 0 var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); display: block; }
.kh-legend__value { color: var(--ink); text-transform: none; letter-spacing: 0; }
.kh-link { color: var(--ink); font-size: 13px; line-height: 18px; text-decoration: underline; text-underline-offset: 3px; }
.kh-msg { display: flex; align-items: center; gap: var(--space-1); margin: var(--space-2) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.kh-msg--warning { color: var(--warning); }
fieldset.kh-swatches, fieldset.kh-sizes, fieldset.kh-pay { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ColorSwatch */
.kh-swatches__row { display: flex; gap: var(--space-2); }
.kh-swatch { width: 40px; height: 40px; padding: 3px; border-radius: var(--radius-round); border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; }
.kh-swatch.is-on { border: 2px solid var(--ink); padding: 2.5px; }
.kh-swatch__fill { display: block; width: 100%; height: 100%; border-radius: var(--radius-round); box-shadow: inset 0 0 0 1px var(--line-strong); }
.kh-swatch:disabled { opacity: .35; cursor: not-allowed; }

/* SizePicker */
.kh-sizes__head { display: flex; justify-content: space-between; align-items: baseline; }
.kh-sizes__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.kh-size { min-width: 56px; height: var(--control-h); padding: 0 var(--space-3); font-family: var(--font-mono); font-size: 15px; font-weight: 500; border: 1.5px solid var(--line-strong); border-radius: var(--radius-0); background: transparent; color: var(--ink); cursor: pointer; }
.kh-size:hover:not(:disabled) { border-color: var(--ink); }
.kh-size.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.kh-size.is-off { color: var(--ink-muted); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }

/* QuantityStepper */
.kh-stepper { display: inline-flex; align-items: center; height: var(--control-h-sm); border: 1.5px solid var(--line-strong); }
.kh-stepper__btn { width: var(--control-h-sm); height: 100%; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.kh-stepper__btn:disabled { color: var(--ink-muted); opacity: .5; cursor: not-allowed; }
.kh-stepper__val { min-width: 28px; text-align: center; font-family: var(--font-mono); font-weight: 500; }

/* Icon button */
.kh-iconbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }

/* CartLine */
.kh-line { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.kh-line__media { background: var(--surface-sunken); aspect-ratio: 4 / 5; overflow: hidden; }
.kh-line__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-line__media .kh-tee { padding: 10%; height: 100%; }
.kh-line__info { display: flex; flex-direction: column; min-width: 0; }
.kh-line__top { display: flex; justify-content: space-between; gap: var(--space-2); }
.kh-line__top .kh-iconbtn { margin: -8px -8px 0 0; width: 36px; height: 36px; color: var(--ink-muted); }
.kh-line__name { margin: 0; font-weight: 500; }
.kh-line__meta { margin: var(--space-1) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.kh-line__bottom { margin-top: auto; padding-top: var(--space-3); display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.kh-line__qty { font-family: var(--font-mono); color: var(--ink-muted); }

/* CheckoutSteps */
.kh-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); counter-reset: s; }
.kh-step { flex: 1; display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-2); border-top: 3px solid var(--line); color: var(--ink-muted); font-size: 13px; line-height: 18px; min-width: 0; }
.kh-step__num { font-family: var(--font-mono); font-weight: 500; display: inline-flex; }
.kh-step__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kh-step.is-done { border-color: var(--ink-muted); color: var(--ink); }
.kh-step.is-now { border-color: var(--ink); color: var(--ink); font-weight: 500; }

/* Field */
.kh-field { display: flex; flex-direction: column; }
.kh-input { display: flex; align-items: stretch; min-height: var(--control-h); border: 1.5px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--surface-raised); }
.kh-input:focus-within { border-color: var(--ink); }
.kh-field.is-error .kh-input { border-color: var(--warning); }
.kh-input__prefix { display: flex; align-items: center; padding: 0 0 0 var(--space-4); font-family: var(--font-mono); color: var(--ink-muted); }
.kh-input__el { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 0 var(--space-4); border-radius: var(--radius-xs); }
.kh-input__el::placeholder { color: var(--ink-muted); }
.kh-input--multi .kh-input__el { padding: var(--space-3) var(--space-4); min-height: 88px; resize: vertical; }
.kh-input__el:focus-visible { outline: none; }
.kh-input:has(.kh-input__el:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* PaymentOption */
.kh-pay { display: flex; flex-direction: column; gap: var(--space-2); }
.kh-pay__opt { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-strong); background: var(--surface-raised); cursor: pointer; }
.kh-pay__opt.is-on { border: 2px solid var(--ink); padding: calc(var(--space-3) - .5px) calc(var(--space-4) - .5px); }
.kh-pay__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kh-pay__opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.kh-pay__mark { flex: none; width: 18px; height: 18px; border-radius: var(--radius-round); border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.kh-pay__opt.is-on .kh-pay__mark { border-color: var(--ink); }
.kh-pay__opt.is-on .kh-pay__mark::after { content: ''; width: 10px; height: 10px; border-radius: var(--radius-round); background: var(--ink); }
.kh-pay__text { display: flex; flex-direction: column; flex: 1; }
.kh-pay__title { font-weight: 500; }
.kh-pay__note { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.kh-pay__tag { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

/* OrderSummary */
.kh-sum { background: var(--surface-raised); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); border: 1px solid var(--line); }
.kh-sum__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 26px; text-transform: uppercase; }
.kh-sum__free p { margin: 0 0 var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-1); }
.kh-sum__free b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.kh-bar { height: 4px; background: var(--line); }
.kh-bar span { display: block; height: 100%; background: var(--ink); }
.kh-sum__rows { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.kh-sum__row { display: flex; justify-content: space-between; gap: var(--space-3); }
.kh-sum__row dt { color: var(--ink-muted); }
.kh-sum__row dd { margin: 0; font-family: var(--font-mono); font-weight: 500; }
.kh-sum__row.is-discount dd { color: var(--signal); }
.kh-sum__row.is-total { border-top: 1px solid var(--line); padding-top: var(--space-3); margin-top: var(--space-1); }
.kh-sum__row.is-total dt { color: var(--ink); font-weight: 500; }
.kh-sum__row.is-total dd { font-size: 22px; line-height: 28px; }
.kh-sum__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* PromoStrip */
.kh-promo { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-4); background: var(--signal-soft); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.kh-promo__cut { width: 8px; height: 12px; background: var(--signal); transform: skewX(var(--slant)); }

/* Header */
.kh-header { display: flex; align-items: center; gap: var(--space-5); height: 64px; padding: 0 var(--space-4); background: var(--bg); border-bottom: 1px solid var(--line); }
.kh-header__menu { display: none; }
.kh-header__logo { display: block; line-height: 0; }
.kh-logo { height: 28px; width: auto; display: block; }
.kh-logo--black { display: none; }
[data-theme="light"] .kh-logo--white { display: none; }
[data-theme="light"] .kh-logo--black { display: block; }
.kh-header__nav { display: flex; gap: var(--space-5); flex: 1; }
.kh-header__link { color: var(--ink-muted); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: var(--space-1) 0; border-bottom: 2px solid transparent; }
.kh-header__link:hover, .kh-header__link.is-on { color: var(--ink); border-color: var(--ink); }
.kh-header__actions { display: flex; gap: var(--space-1); margin-left: auto; }
.kh-header__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--signal); color: var(--on-signal); font-family: var(--font-mono); font-size: 11px; line-height: 18px; font-weight: 500; text-align: center; }
@media (max-width: 720px) {
  .kh-header__nav { display: none; }
  .kh-header__menu { display: grid; margin-left: -8px; }
  .kh-header { gap: var(--space-2); }
}

