/* ============================================================
   789 SHOP — standalone merch store (shop.789running.com)
   ------------------------------------------------------------
   Built from the Claude Design handoff (789 Shop.dc.html +
   789 Product.dc.html). Dark ink ground, paper product cards,
   CSS garment mockups, hard sticker shadows.
   ============================================================ */

@font-face {
  font-family: "Generation Mono";
  src: url("../assets/fonts/GenerationMono-Condensed.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --royal-50:  #EEF2FF;
  --royal-500: #2742EE;
  --royal-700: #1726AC;

  --yellow-500: #FFE500;

  --coral-500: #FF5436;

  --ink-900: #070A20;
  --ink-800: #131736;
  --ink-700: #232846;
  --ink-600: #3A3F60;
  --ink-500: #5B6080;
  --ink-100: #ECECF1;

  --paper:      #F4F1E8;
  --paper-dim:  #EAE6D8;
  --paper-warm: #FBF9F2;
  --white:      #FFFFFF;

  --font-display: "Generation Mono", "Arial Black", system-ui, sans-serif;
  --font-sans:    "Archivo", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  --dur: 200ms;
  --ease-out: cubic-bezier(0.22, 0.78, 0.27, 1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink-900);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }

::selection { background: var(--yellow-500); color: var(--ink-900); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--yellow-500);
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12px;
}
.eyebrow--yellow { color: var(--yellow-500); }

/* ============================================================
   HEADER — fixed glass over ink
   ============================================================ */
.shop-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(105%);
  -webkit-backdrop-filter: blur(16px) saturate(105%);
  background-color: #00000014;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 8px 30px -16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.shop-header__inner {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px var(--gutter);
}
.shop-header__nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.shop-header__back {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--white);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  padding: 8px 14px;
  transition: border-color .15s, color .15s;
}
.shop-header__back:hover { border-color: var(--yellow-500); color: var(--yellow-500); }
.shop-header__cart {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--ink-900);
  background: var(--yellow-500);
  border: 2px solid var(--ink-900);
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink-900);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.shop-header__cart:hover  { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink-900); }
.shop-header__cart:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink-900); }

.kk-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  height: 30px;
}
.kk-logo svg { display: block; height: 100%; width: auto; }
.kk-logo:hover { opacity: .82; }

/* ============================================================
   HERO
   ============================================================ */
.shop-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
}
.shop-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 42%;
  opacity: .5;
}
.shop-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,10,32,.7) 0%, rgba(7,10,32,.35) 45%, rgba(7,10,32,.85) 100%);
}
.shop-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 130px var(--gutter) clamp(40px, 5vw, 64px);
}
.shop-hero__headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  /* min() term keeps the widest nowrap line ("WEAR THE", ~10× the
     font size in this face) inside the gutters on any screen */
  font-size: min(clamp(48px, 9vw, 120px), calc((100vw - 90px) / 10.8));
  line-height: .8;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.shop-hero__headline-paper  { color: var(--paper); }
.shop-hero__headline-yellow { color: var(--yellow-500); }
.shop-hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  max-width: 44ch;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  margin: 18px 0 0;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.kk-mq {
  overflow: hidden;
  background: #101020;
  color: var(--paper-warm);
  border-top: 3px solid var(--ink-900);
  border-bottom: 3px solid var(--ink-900);
}
.kk-mq__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: kk-marquee var(--mq-dur, 20s) linear infinite;
}
.kk-mq__group { display: flex; align-items: center; flex: 0 0 auto; }
.kk-mq__item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.5rem;
  padding: .14em 0;
}
.kk-mq__sep { display: inline-flex; align-items: center; padding: 0 .7em; }
@keyframes kk-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SHOP SECTIONS & PRODUCT CARDS
   ============================================================ */
.shop-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) 0;
}
.shop-section--last { padding-bottom: clamp(48px, 6vw, 80px); }
.shop-section__heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 3px solid rgba(244, 241, 232, .2);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.shop-section__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--paper);
}
.shop-section__tag {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--yellow-500);
}
.shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.shopcard {
  width: 320px;
  max-width: 100%;
  background: var(--paper);
  border: 3px solid var(--ink-900);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink-900);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.shopcard:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink-900); }
.shopcard__tile {
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 38%, var(--paper) 0%, var(--paper-dim) 82%);
  border-bottom: 3px solid var(--ink-900);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}
.shopcard__chip {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-900);
  background: var(--paper);
  border: 2px solid var(--ink-900);
  border-radius: 6px;
  padding: 2px 7px;
}
.shopcard__body { padding: 16px 18px 18px; }
.shopcard__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.shopcard__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink-900);
}
.shopcard__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--royal-700);
}
.shopcard__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
}
.shopcard__sizes { display: flex; gap: 8px; margin-top: 14px; }
.shopcard__add {
  width: 100%;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 14px;
  padding: 12px;
  border: 3px solid var(--ink-900);
  border-radius: 10px;
  background: var(--yellow-500);
  color: var(--ink-900);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink-900);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.shopcard__add:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-900); }
.shopcard__add:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink-900); }

/* size chips — paper (card) context */
.sizechip {
  min-width: 40px;
  padding: 8px 10px;
  border: 2px solid var(--ink-900);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  background: var(--paper);
  color: var(--ink-900);
}
.sizechip.is-active { background: var(--ink-900); color: var(--paper); }

/* ============================================================
   GARMENT MOCKUPS (pure CSS, from the design prototype)
   ============================================================ */
.garment--tee,
.garment--sweat {
  position: relative;
  width: 82%;
  height: 84%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-top: 7%;
  filter: drop-shadow(0 2px 0 rgba(7,10,32,.16)) drop-shadow(0 14px 20px rgba(7,10,32,.24));
}
.garment--tee {
  clip-path: polygon(20% 13%, 37% 11%, 50% 20%, 63% 11%, 80% 13%, 100% 27%, 89% 45%, 80% 35%, 80% 100%, 20% 100%, 20% 35%, 11% 45%, 0% 27%);
}
.garment--sweat {
  clip-path: polygon(17% 15%, 37% 12%, 50% 21%, 63% 12%, 83% 15%, 100% 33%, 90% 57%, 80% 43%, 80% 100%, 20% 100%, 20% 43%, 10% 57%, 0% 33%);
}
.garment--cap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.garment__crown {
  position: relative;
  z-index: 2;
  width: 58%;
  height: 52%;
  margin-top: 10%;
  border-radius: 100% 100% 14% 14% / 100% 100% 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -9px 0 rgba(7,10,32,.14);
  filter: drop-shadow(0 10px 14px rgba(7,10,32,.28));
}
.garment__brim {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translateX(-34%);
  width: 54%;
  height: 15%;
  border-radius: 5px 52% 60% 8% / 5px 90% 92% 8px;
  filter: brightness(.9) drop-shadow(0 6px 8px rgba(7,10,32,.26));
}
.garment__print {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: .82;
  text-align: center;
  padding: 0 8%;
}
.garment__sub {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .24em;
  opacity: .72;
}

/* product-page mockup proportions (bigger stage) */
.product__tile .garment--tee,
.product__tile .garment--sweat { width: 78%; gap: 6px; filter: drop-shadow(0 3px 0 rgba(7,10,32,.16)) drop-shadow(0 18px 26px rgba(7,10,32,.26)); }
.product__tile .garment__crown { width: 54%; height: 50%; margin-top: 9%; box-shadow: inset 0 -11px 0 rgba(7,10,32,.14); filter: drop-shadow(0 12px 16px rgba(7,10,32,.3)); }
.product__tile .garment__brim { width: 50%; top: 56%; filter: brightness(.9) drop-shadow(0 8px 10px rgba(7,10,32,.28)); }
.product__tile .garment__sub { font-size: 11px; }
.product__tile .shopcard__chip { top: 16px; left: 16px; font-size: 11px; padding: 3px 9px; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product {
  max-width: 1140px;
  margin: 0 auto;
  padding: 110px var(--gutter) clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.product__mockup {
  flex: 1 1 440px;
  min-width: 0;
  border: 3px solid var(--ink-900);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .35);
  min-height: clamp(360px, 42vw, 540px);
}
.product__tile {
  height: 100%;
  min-height: clamp(360px, 42vw, 540px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 38%, var(--paper) 0%, var(--paper-dim) 82%);
  overflow: hidden;
}
.product__details {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product__name {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: min(clamp(40px, 6vw, 72px), calc((100vw - 44px) / 6.4));
  line-height: .82;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  color: var(--paper);
}
.product__price {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--yellow-500);
  margin: 16px 0 0;
}
.product__desc {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  margin: 16px 0 0;
  max-width: 42ch;
}
.product__sizes { margin-top: 24px; }
.product__sizes-label {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  margin-bottom: 9px;
}
.product__sizes-row { display: flex; gap: 10px; flex-wrap: wrap; }
.product__onesize {
  font-family: var(--font-mono);
  font-size: 12px;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}
/* size chips — ink (product page) context */
.sizechip--dark {
  min-width: 46px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 9px;
  font-size: 14px;
  background: transparent;
  color: var(--paper);
}
.sizechip--dark.is-active {
  border-color: var(--yellow-500);
  background: var(--yellow-500);
  color: var(--ink-900);
}
.product__buy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.product__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  padding: 6px 10px;
}
.product__qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--paper);
  border-radius: 7px;
  background: transparent;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.product__qty-count {
  font-family: var(--font-display);
  font-size: 24px;
  min-width: 22px;
  text-align: center;
  color: var(--paper);
}
.product__add {
  flex: 1 1 auto;
  min-width: 200px;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 16px;
  padding: 15px 26px;
  border: 3px solid var(--ink-900);
  border-radius: 11px;
  background: var(--yellow-500);
  color: var(--ink-900);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink-900);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.product__add:hover  { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink-900); }
.product__add:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink-900); }
.product__ship {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ============================================================
   MORE KIT
   ============================================================ */
.morekit { border-top: 3px solid rgba(244, 241, 232, .15); }
.morekit__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 52px) var(--gutter);
}
.morekit__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--paper);
  margin-bottom: 22px;
}
.morekit__row { display: flex; flex-wrap: wrap; gap: 16px; }
.morekit__card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink-900);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink-900);
  padding: 12px 16px 12px 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.morekit__card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink-900); }
.morekit__swatch {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink-900);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  line-height: .82;
  padding: 4px;
}
.morekit__meta { display: flex; flex-direction: column; gap: 2px; }
.morekit__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-900);
}
.morekit__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--royal-700);
}

/* ============================================================
   FOOTER
   ============================================================ */
.shop-footer {
  border-top: 3px solid rgba(244, 241, 232, .15);
  background: var(--ink-900);
  overflow: hidden;
}
.shop-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 44px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.shop-footer__info {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}
.shop-footer__brand {
  color: var(--yellow-500);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.shop-footer__back {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--paper);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  padding: 9px 16px;
  transition: border-color .15s, color .15s;
}
.shop-footer__back:hover { border-color: var(--yellow-500); color: var(--yellow-500); }

/* ============================================================
   CART DRAWER
   ============================================================ */
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--ink-900) 62%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: ovIn .2s ease-out;
  display: flex;
  justify-content: flex-end;
}
.cart[hidden] { display: none; }
.cart__panel {
  width: min(400px, 92vw);
  height: 100%;
  background: var(--paper-warm);
  border-left: 3px solid var(--ink-900);
  box-shadow: -12px 0 40px -18px rgba(0, 0, 0, .6);
  animation: drawerIn .32s cubic-bezier(.2, .9, .3, 1.05);
  display: flex;
  flex-direction: column;
}
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 3px solid var(--ink-900);
}
.cart__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 30px;
  color: var(--ink-900);
}
.cart__close {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink-900);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink-900);
  line-height: 1;
}
.cart__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cart__empty, .cart__done {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  text-align: center;
}
.cart__empty-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 34px;
  color: var(--royal-700);
}
.cart__empty-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-600);
}
.cart__done-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 40px;
  line-height: .86;
  color: var(--royal-700);
}
.cart__done-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-800);
  max-width: 28ch;
}
.cart__done-btn {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 26px;
  border: 3px solid var(--ink-900);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-900);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink-900);
}
.cart__lines {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}
.cart__line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(7, 10, 32, .14);
}
.cart__line-main { flex: 1; min-width: 0; }
.cart__line-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-900);
}
.cart__line-size {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}
.cart__line-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cart__step {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink-900);
  border-radius: 7px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-900);
  line-height: 1;
}
.cart__line-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
  min-width: 16px;
  text-align: center;
}
.cart__line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart__line-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
}
.cart__remove {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cart__foot {
  border-top: 3px solid var(--ink-900);
  padding: 18px 22px;
}
.cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.cart__subtotal-label {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--ink-700);
}
.cart__subtotal-amount {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink-900);
}
.cart__checkout {
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 16px;
  padding: 15px;
  border: 3px solid var(--ink-900);
  border-radius: 11px;
  background: var(--yellow-500);
  color: var(--ink-900);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink-900);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.cart__checkout:hover  { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink-900); }
.cart__checkout:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink-900); }

/* ============================================================
   TOAST
   ============================================================ */
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1200;
  background: var(--ink-900);
  border: 3px solid var(--yellow-500);
  border-radius: 12px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--paper);
  animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.05);
}
.toast [data-toast-count] { color: var(--yellow-500); }
.toast[hidden] { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .shopcard { width: 100%; }
  .shop-header__back { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .kk-mq__track { animation: none; }
}
