/* ==========================================================================
   SCOR — Nike-style design system
   Tokens lifted from DESIGN-nike.md
   ========================================================================== */

:root {
  /* Colors */
  --primary: #111111;
  --on-primary: #ffffff;
  --canvas: #ffffff;
  --soft-cloud: #f5f5f5;
  --ink: #111111;
  --charcoal: #39393b;
  --ash: #4b4b4d;
  --mute: #707072;
  --stone: #9e9ea0;
  --hairline: #cacacb;
  --hairline-soft: #e5e5e5;
  --sale: #d30005;
  --sale-deep: #780700;
  --success: #007d48;
  --info: #1151ff;

  /* Radius */
  --r-none: 0px;
  --r-sm: 18px;
  --r-md: 24px;
  --r-lg: 30px;
  --r-full: 9999px;

  /* Spacing (8px base) */
  --s-xxs: 2px;
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 18px;
  --s-xl: 24px;
  --s-xxl: 30px;
  --s-section: 48px;

  /* Type families (Cyrillic-capable substitutes per DESIGN-nike.md) */
  --font-display: "Oswald", "Inter", Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1440px;
  --utility-h: 36px;
  --nav-h: 60px;
  --chrome-h: calc(var(--utility-h) + var(--nav-h));
}

/* ----- Reset ----- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Utility bar
   ========================================================================== */
.utility-bar {
  background: var(--soft-cloud);
  color: var(--ink);
  height: 36px;
  font-size: 12px;
  font-weight: 500;
}
.utility-bar .container {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-xl);
}
.utility-bar a { color: var(--ink); }
.utility-bar a:hover { color: var(--mute); }

/* ==========================================================================
   Primary nav
   ========================================================================== */
.primary-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  box-shadow: inset 0 -1px 0 var(--hairline-soft);
}
.primary-nav .container {
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--s-xl);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
}
.nav-logo img {
  display: block;
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: var(--s-xl);
  margin-left: var(--s-md);
}
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover { border-bottom-color: var(--hairline); }
.nav-links a.active { border-bottom-color: var(--ink); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-md);
}
.search-pill {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  background: var(--soft-cloud);
  border-radius: var(--r-md);
  height: 40px;
  padding: 8px 16px;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s;
}
.search-pill:focus-within {
  background: var(--canvas);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--soft-cloud);
}
.search-pill svg { width: 18px; height: 18px; flex: none; }
.search-pill input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  width: 180px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: transparent;
  position: relative;
}
.icon-btn:hover { background: var(--soft-cloud); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.nav-burger { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: var(--r-lg);
  font-size: 16px;
  font-weight: 500;
  transition: transform .12s ease, opacity .12s ease, background .15s;
}
.btn:active { transform: scale(.96); opacity: .85; }
.btn-primary { background: var(--ink); color: var(--on-primary); }
.btn-primary:hover { background: #2b2b2b; }
.btn-secondary { background: var(--soft-cloud); color: var(--ink); }
.btn-secondary:hover { background: #e9e9e9; }
.btn-on-image {
  background: var(--canvas);
  color: var(--ink);
  height: 44px;
  padding: 0 24px;
}
.btn-on-image:hover { background: #f0f0f0; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }

/* ==========================================================================
   Campaign hero carousel
   ========================================================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--chrome-h));
  height: calc(100dvh - var(--chrome-h));
  background: var(--ink);
  overflow: hidden;
}
.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .5s ease;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  background: var(--ink);
}
.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero-slide img.hero-bg-mobile { display: none; }
@media (max-width: 760px) {
  .hero-slide img.hero-bg-desktop { display: none; }
  .hero-slide img.hero-bg-mobile { display: block; object-position: center; }
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px 52px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  pointer-events: none;
}
.hero-content a,
.hero-content .btn { pointer-events: auto; }
.hero-eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--s-md);
}
.hero-title {
  font-family: var(--font-display);
  color: var(--on-primary);
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--s-xl);
}
.hero-actions { display: flex; gap: var(--s-md); flex-wrap: wrap; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 50%);
  z-index: 1;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: auto;
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background .15s, transform .15s;
}
.hero-arrow:hover { background: var(--canvas); }
.hero-arrow:active { transform: translateY(-50%) scale(.92); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }

/* Dots */
.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  z-index: 4;
  pointer-events: auto;
  display: flex;
  gap: var(--s-sm);
  justify-content: center;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.5);
  transition: background .15s, width .2s;
}
.hero-dot.active { background: var(--canvas); width: 26px; border-radius: var(--r-lg); }

@media (max-width: 599px) {
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow-prev { left: 8px; }
  .hero-arrow-next { right: 8px; }
}
@media (max-height: 700px) {
  .hero-title { font-size: clamp(36px, 8vh, 72px); margin-bottom: 12px; }
  .hero-eyebrow { margin-bottom: 8px; }
  .hero-content { padding: 24px 32px 44px; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: var(--s-section) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-xl);
}
.section-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
}
.section-link {
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Product grid + cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-sm);
}
.product-card {
  background: var(--canvas);
  cursor: pointer;
}
.product-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.product-card .pc-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--soft-cloud);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-md);
}
.product-card .pc-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.product-card:hover .pc-image img { transform: scale(1.04); }

/* Wishlist heart on product cards */
.wish-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--canvas);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: transform .12s ease, background .15s;
}
.wish-btn:hover { background: var(--soft-cloud); }
.wish-btn:active { transform: scale(.9); }
.wish-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; transition: fill .15s, stroke .15s; }
.wish-btn.is-active svg { fill: var(--sale); stroke: var(--sale); }

/* Heart count badge in nav (mirrors cart-count) */
.wish-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.badge-promo {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.pc-meta { padding-top: var(--s-md); }
.swatch-row { display: flex; gap: 6px; margin-bottom: var(--s-sm); }
.swatch-dot {
  width: 12px; height: 12px;
  border-radius: var(--r-full);
  box-shadow: 0 0 0 1px var(--hairline) inset;
}
.pc-name { font-size: 16px; font-weight: 500; color: var(--ink); }
.pc-subtitle { font-size: 14px; font-weight: 500; color: var(--mute); margin-top: 2px; }
.pc-price-row { margin-top: var(--s-sm); display: flex; align-items: baseline; gap: var(--s-sm); }
.pc-price { font-size: 16px; font-weight: 500; color: var(--ink); }
.pc-price.is-sale { color: var(--sale); }
.pc-price-old { font-size: 14px; font-weight: 500; color: var(--mute); text-decoration: line-through; }
.pc-price-off { font-size: 14px; font-weight: 500; color: var(--sale); }

/* ==========================================================================
   Shop by sport rail
   ========================================================================== */
.rail {
  display: flex;
  gap: var(--s-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-sm);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-tile {
  position: relative;
  flex: 0 0 clamp(280px, 30%, 440px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--soft-cloud);
}
.rail-tile img { width: 100%; height: 100%; object-fit: cover; }
.rail-tile .tile-cta {
  position: absolute;
  left: 24px; bottom: 24px;
}
.rail-tile .tile-label {
  position: absolute;
  left: 24px; top: 24px;
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: .5px;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

/* ==========================================================================
   Editorial / member tile
   ========================================================================== */
.editorial {
  position: relative;
  min-height: 70vh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.editorial img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .8;
}
.editorial img.editorial-bg-mobile { display: none; }
@media (max-width: 760px) {
  .editorial img.editorial-bg-desktop { display: none; }
  .editorial img.editorial-bg-mobile { display: block; object-position: center; }
}
.editorial::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%);
}
.editorial-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
  color: var(--on-primary);
}
.editorial-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: var(--s-md); }
.editorial-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.04;
  text-transform: uppercase;
  margin: 0 0 var(--s-lg);
  max-width: 14ch;
}
.editorial-text { font-size: 18px; line-height: 1.5; max-width: 46ch; margin: 0 0 var(--s-xl); color: #e7e7e7; }

/* ==========================================================================
   Category icon strip
   ========================================================================== */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-sm);
}
.cat-card {
  position: relative;
  background: var(--soft-cloud);
  aspect-ratio: 1 / 1;
  display: grid;
  place-content: end start;
  overflow: hidden;
  padding: var(--s-md);
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.05));
}
.cat-card .cat-label {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--s-section) 0 var(--s-xl);
  margin-top: var(--s-section);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-xl);
}
.footer-brand .nav-logo img { height: 40px; }
.footer-brand p { color: var(--mute); font-size: 14px; max-width: 32ch; line-height: 1.5; }
.footer-col h4 { font-size: 15px; font-weight: 600; margin: 0 0 var(--s-md); }
.footer-col a { display: block; color: var(--mute); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-fine {
  margin-top: var(--s-xl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  color: var(--mute);
  font-size: 12px;
}

/* ==========================================================================
   Mobile drawer
   ========================================================================== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 80%; max-width: 360px;
  background: var(--canvas);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform .25s ease;
  padding: 24px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-xl);
}
.drawer .nav-logo { margin-bottom: 0; }
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
}
.drawer-close:hover { background: var(--soft-cloud); }
.drawer-close svg { width: 22px; height: 22px; }
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled:active { transform: none; opacity: .45; }

.checkout-legal {
  margin: 20px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
}
.checkout-legal a { text-decoration: underline; text-underline-offset: 2px; }

body.minicart-open { overflow: hidden; }
.minicart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 450;
  opacity: 0; visibility: hidden;
  transition: opacity .2s;
}
.minicart-backdrop.open { opacity: 1; visibility: visible; }
.minicart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--canvas);
  z-index: 451;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,.08);
}
.minicart.open { transform: translateX(0); }
.minicart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  flex-shrink: 0;
}
.minicart-head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.minicart-lines { overflow-y: auto; flex: 1; padding: 0 20px; }
.minicart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.minicart-img {
  width: 72px;
  aspect-ratio: 1/1;
  background: var(--soft-cloud);
  overflow: hidden;
}
.minicart-img img { width: 100%; height: 100%; object-fit: cover; }
.minicart-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.minicart-sub { font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.minicart-row { display: flex; align-items: center; gap: 12px; }
.minicart-remove { font-size: 12px; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.minicart-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.minicart-foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--hairline-soft);
  flex-shrink: 0;
}
.minicart-foot .btn { width: 100%; margin-top: 10px; }
.minicart-empty { padding: 48px 20px; text-align: center; }
.minicart-empty p { color: var(--mute); margin: 0 0 16px; }



/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 32px 0; }
}
@media (max-width: 960px) {
  .nav-links, .search-pill input { display: none; }
  .nav-burger { display: grid; }
  .nav-logo img { height: 28px; }
}
@media (max-width: 599px) {
  .product-grid { grid-template-columns: 1fr; gap: var(--s-xs); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 24px 0; }
  .hero-content, .editorial-content { padding: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .utility-bar { display: none; }
  :root { --utility-h: 0px; }
}

/* ==========================================================================
   Toast
   ========================================================================== */
.scor-toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--on-primary);
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.scor-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.stock-alert {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  z-index: 400;
  max-width: min(440px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--on-primary);
  padding: 16px 44px 16px 20px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.stock-alert.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.stock-alert p { margin: 0; }
.stock-alert a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stock-alert-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none; border: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
.pdp-stock-note, .qv-stock-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute);
  margin: 0;
}
.pdp-stock-note a, .qv-stock-note a { text-decoration: underline; text-underline-offset: 2px; }
.auth-error a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Page header (breadcrumb / title block)
   ========================================================================== */
.page-head { padding: var(--s-xl) 0 var(--s-sm); }
.breadcrumb { font-size: 14px; font-weight: 500; color: var(--mute); margin-bottom: var(--s-sm); }
.breadcrumb a:hover { color: var(--ink); }
.page-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; letter-spacing: .5px; margin: 0; line-height: 1.06; }

/* ==========================================================================
   Catalog layout: sidebar + grid
   ========================================================================== */
.catalog-wrap { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-xl); align-items: start; }

.sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--s-md) 0;
  box-shadow: inset 0 -1px 0 var(--hairline-soft);
  margin-bottom: var(--s-xl);
}
.sub-nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sort-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
}
.sort-select {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 22px 6px 4px;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px 8px;
}
.sort-select:focus { outline: none; }
.filters-toggle { display: none; }
.results-count { font-size: 14px; color: var(--mute); margin: 0; }

.filter-group { padding: var(--s-lg) 0; border-bottom: 1px solid var(--hairline); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 16px; font-weight: 600; margin: 0 0 var(--s-md); }
.filter-opt {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 5px 0;
  font-size: 15px;
  cursor: pointer;
  color: var(--charcoal);
}
.filter-opt input { accent-color: var(--ink); width: 16px; height: 16px; }
.filter-opt .count { color: var(--mute); font-size: 13px; }
.empty-state { padding: var(--s-section) 0; text-align: center; color: var(--mute); }

/* ==========================================================================
   PDP (product detail)
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 80px 1fr 420px; gap: var(--s-xl); padding: var(--s-xl) 0 var(--s-section); align-items: start; }
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.pdp-thumb {
  width: 80px; aspect-ratio: 1/1;
  background: var(--soft-cloud);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.pdp-thumb.active { border-color: var(--ink); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-main {
  aspect-ratio: 1/1;
  background: var(--soft-cloud);
  overflow: hidden;
  position: sticky;
  top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-xl);
  cursor: zoom-in;
}
.pdp-main img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

.pdp-info { position: sticky; top: 80px; }
.pdp-badge { font-size: 13px; font-weight: 600; color: var(--success); margin-bottom: var(--s-sm); }
.pdp-name { font-size: 28px; font-weight: 600; margin: 0 0 var(--s-xs); letter-spacing: -.5px; }
.pdp-sub { font-size: 16px; color: var(--mute); margin: 0 0 var(--s-lg); }
.pdp-price-row { display: flex; align-items: baseline; gap: var(--s-md); margin-bottom: var(--s-md); }
.pdp-price { font-size: 22px; font-weight: 600; }
.pdp-price.is-sale { color: var(--sale); }
.pdp-price-old { font-size: 16px; color: var(--mute); text-decoration: line-through; }
.pdp-price-off { font-size: 15px; color: var(--sale); font-weight: 600; }

.pdp-sku {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: var(--s-xl);
}
.pdp-sku strong {
  color: var(--ink);
  font-weight: 600;
}

.pdp-block-label { font-size: 15px; font-weight: 600; margin: 0 0 var(--s-md); }
.color-row { display: flex; gap: var(--s-sm); margin-bottom: var(--s-xl); }
.color-pick {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  box-shadow: 0 0 0 1px var(--hairline) inset;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.color-pick.active { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--canvas) inset; }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--s-sm); margin-bottom: var(--s-md); }
.size-opt {
  height: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  background: var(--canvas);
  transition: border-color .12s;
}
.size-opt:hover { border-color: var(--ink); }
.size-opt.active { border-color: var(--ink); background: var(--ink); color: var(--on-primary); }
.size-opt.is-soldout {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.size-opt.is-soldout:hover { border-color: var(--hairline); }
.size-hint { font-size: 13px; color: var(--sale); min-height: 18px; margin-bottom: var(--s-md); }
.size-guide-link { font-size: 14px; margin: 0 0 var(--s-md); }
.size-guide-link a { text-decoration: underline; text-underline-offset: 3px; }

.pdp-actions { display: flex; flex-direction: column; gap: var(--s-md); margin: var(--s-lg) 0 var(--s-xl); }
.pdp-actions .btn { width: 100%; }
.btn-outline { background: var(--canvas); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline) inset; }
.btn-outline:hover { box-shadow: 0 0 0 1px var(--ink) inset; }
.btn-outline.is-active { color: var(--sale); box-shadow: 0 0 0 1px var(--sale) inset; }

.disclosure { border-top: 1px solid var(--hairline); }
.disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-xl) 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.disclosure[open] summary::after { content: "–"; }
.disclosure p { margin: 0 0 var(--s-xl); color: var(--charcoal); line-height: 1.6; font-size: 15px; }

/* ==========================================================================
   Cart page
   ========================================================================== */
.cart-wrap { display: grid; grid-template-columns: 1fr 360px; gap: var(--s-section); padding: var(--s-xl) 0 var(--s-section); align-items: start; }
.cart-line {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--s-lg);
  padding: var(--s-xl) 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-line-img { 
  width: 110px; 
  aspect-ratio: 1/1; 
  background: var(--soft-cloud); 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.cart-line-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}
.cart-line-name { font-size: 16px; font-weight: 500; }
.cart-line-sub { font-size: 14px; color: var(--mute); margin-top: 2px; }
.cart-line-controls { display: flex; align-items: center; gap: var(--s-md); margin-top: var(--s-md); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--r-full); }
.qty-stepper button { width: 36px; height: 36px; font-size: 18px; display: grid; place-items: center; }
.qty-stepper span { min-width: 28px; text-align: center; font-size: 15px; font-weight: 500; }
.cart-line-remove { font-size: 14px; color: var(--mute); text-decoration: underline; }
.cart-line-remove:hover { color: var(--sale); }
.cart-line-price { font-size: 16px; font-weight: 600; text-align: right; white-space: nowrap; }

.cart-summary { background: var(--soft-cloud); padding: var(--s-xl); position: sticky; top: 80px; }
.cart-summary h3 { font-size: 20px; font-weight: 600; margin: 0 0 var(--s-lg); }
.summary-row { display: flex; justify-content: space-between; padding: var(--s-sm) 0; font-size: 15px; }
.summary-row.total { font-size: 18px; font-weight: 600; border-top: 1px solid var(--hairline); margin-top: var(--s-sm); padding-top: var(--s-md); }
.cart-summary .btn { width: 100%; margin-top: var(--s-lg); }
.cart-empty { padding: var(--s-section) 0; text-align: center; }
.cart-empty p { color: var(--mute); font-size: 17px; margin-bottom: var(--s-lg); }

/* ==========================================================================
   Responsive for new layouts
   ========================================================================== */
@media (max-width: 1023px) {
  .pdp { grid-template-columns: 1fr 360px; }
  .pdp-thumbs { display: none; }
}
.filter-head { display: none; }
@media (max-width: 960px) {
  .catalog-wrap { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
  .catalog-sidebar.open { display: block; position: fixed; inset: 0; z-index: 210; background: var(--canvas); padding: 24px; overflow-y: auto; }
  .catalog-sidebar.open .filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }
  .filter-head h3 { margin: 0; font-size: 22px; font-weight: 600; }
  .filters-toggle { display: inline-flex; width: 100%; }
  .sub-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 4px 0 16px;
    margin-bottom: 18px;
  }
  .sub-nav-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-left: 0;
    width: 100%;
    order: 1;
  }
  .sort-wrap {
    display: block;
    width: 100%;
  }
  .sort-label { display: none; }
  .sort-select {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 16px;
    border-radius: var(--r-lg);
    background-color: var(--soft-cloud);
    background-position: right 14px center;
    font-size: 14px;
    text-align: left;
  }
  .results-count {
    order: 2;
    font-size: 13px;
    line-height: 1.3;
  }
}
@media (max-width: 760px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-main { position: static; }
  .pdp-info { position: static; }
  .cart-wrap { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 599px) {
  .cart-line { grid-template-columns: 80px 1fr; }
  .cart-line-img { width: 80px; }
  .cart-line-price { grid-column: 2; text-align: left; }
}

/* ==========================================================================
   Quick view modal
   ========================================================================== */
.qv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}
.qv-backdrop.open { opacity: 1; visibility: visible; }

.qv-modal {
  background: var(--canvas);
  width: min(920px, calc(100vw - 48px));
  max-width: 920px;
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  transform: translateY(16px) scale(.98);
  transition: transform .22s ease;
  position: relative;
}
.qv-backdrop.open .qv-modal { transform: translateY(0) scale(1); }

.qv-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--canvas);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 0 0 1px var(--hairline) inset;
}
.qv-close:hover { background: var(--soft-cloud); }
.qv-close svg { width: 18px; height: 18px; }

.qv-media {
  grid-row: 1 / -1;
  background: var(--soft-cloud);
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.qv-media-main {
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-xl);
  min-height: 0;
  flex: 1 1 auto;
  cursor: zoom-in;
}
.qv-media-main img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.qv-thumbs-rail {
  display: none;
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  background: var(--canvas);
}
.qv-thumbs-rail.is-on { display: block; }
.qv-media-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--s-sm);
  padding: 8px 36px 12px;
  background: var(--canvas);
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: #b4b4b4 transparent;
}
.qv-media-thumbs::-webkit-scrollbar { height: 8px; }
.qv-media-thumbs::-webkit-scrollbar-thumb {
  background: #b4b4b4;
  border-radius: 4px;
}
.qv-media-thumbs .pdp-thumb {
  width: 56px;
  flex: 0 0 56px;
}
.qv-thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--hairline) inset;
  display: grid;
  place-items: center;
  padding: 0;
}
.qv-thumbs-nav:hover { background: var(--soft-cloud); }
.qv-thumbs-nav[hidden] { display: none; }
.qv-thumbs-nav:disabled { opacity: .35; pointer-events: none; }
.qv-thumbs-nav svg { width: 14px; height: 14px; }
.qv-thumbs-prev { left: 4px; }
.qv-thumbs-next { right: 4px; }
.qv-body {
  grid-column: 2;
  padding: var(--s-xl) var(--s-xl) 12px;
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
}
.qv-foot {
  grid-column: 2;
  padding: 0 var(--s-xl) var(--s-xl);
  min-width: 0;
}
.qv-foot .pdp-actions { margin: 0 0 10px; }
.qv-badge { font-size: 13px; font-weight: 600; color: var(--success); margin-bottom: var(--s-xs); }
.qv-name { font-size: 24px; font-weight: 600; margin: 0 0 var(--s-xs); letter-spacing: -.5px; }
.qv-sub { font-size: 15px; color: var(--mute); margin: 0 0 var(--s-md); }
.qv-price-row { display: flex; align-items: baseline; gap: var(--s-md); margin-bottom: var(--s-lg); }
.qv-detail-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .qv-backdrop {
    padding: 0;
    place-items: end stretch;
  }
  .qv-modal {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 96dvh;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }
  .qv-media {
    grid-row: auto;
    flex: 0 0 auto;
    max-height: none;
  }
  .qv-media-main {
    aspect-ratio: unset;
    flex: none;
    height: min(38dvh, 280px);
    max-height: min(38dvh, 280px);
    padding: 12px 16px 4px;
  }
  .qv-thumbs-nav { display: none !important; }
  .qv-media-thumbs {
    padding: 4px 16px 8px;
    gap: 6px;
  }
  .qv-media-thumbs .pdp-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    aspect-ratio: 1/1;
  }
  .qv-body {
    grid-column: auto;
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 16px 8px;
    max-height: none;
  }
  .qv-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .qv-name { font-size: 18px; line-height: 1.2; margin: 0 0 2px; }
  .qv-sub { font-size: 13px; margin: 0 0 6px; }
  .qv-price-row { margin-bottom: 10px; }
  .qv-modal .pdp-price { font-size: 20px; }
  .qv-modal .pdp-block-label { font-size: 13px; margin: 0 0 6px; }
  .qv-modal .color-row { margin-bottom: 10px; }
  .qv-modal .size-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 4px;
  }
  .qv-modal .size-opt { height: 40px; font-size: 14px; }
  .qv-modal .size-hint { min-height: 16px; margin-bottom: 0; font-size: 12px; }
  .qv-foot {
    grid-column: auto;
    flex: 0 0 auto;
    padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--hairline-soft);
    background: var(--canvas);
  }
  .qv-foot .pdp-actions { margin: 0; gap: 8px; }
  .qv-foot .btn { height: 44px; font-size: 15px; }
  .qv-detail-link { margin-top: 8px; font-size: 13px; }
}

/* ==========================================================================
   Fullscreen photo lightbox
   ========================================================================== */
.lb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 72px 100px;
}
.lb-backdrop.open { display: flex; }
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-close svg { width: 20px; height: 20px; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 0;
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav[hidden] { display: none; }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}
.lb-thumbs {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: calc(100vw - 48px);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.lb-thumbs[hidden] { display: none; }
.lb-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  background: #222;
  overflow: hidden;
  cursor: pointer;
}
.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lb-thumb.is-on { border-color: #fff; }

@media (max-width: 760px) {
  .lb-backdrop { padding: 56px 16px 96px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ==========================================================================
   About page: prose, values, forms, newsletter
   ========================================================================== */
.prose { max-width: 760px; }
.prose p { font-size: 18px; line-height: 1.6; color: var(--charcoal); margin: 0 0 var(--s-lg); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-sm); }
.value-card {
  background: var(--soft-cloud);
  padding: var(--s-xl);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.value-card.alt { background: var(--canvas); box-shadow: 0 0 0 1px var(--hairline) inset; }
.value-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--stone);
  line-height: 1;
  margin-bottom: var(--s-md);
}
.value-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 var(--s-sm); }
.value-card p { font-size: 15px; line-height: 1.5; color: var(--mute); margin: 0; }

.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-section); align-items: start; }
.form-lead { font-size: 18px; line-height: 1.5; color: var(--mute); max-width: 36ch; }
.scor-form { display: flex; flex-direction: column; gap: var(--s-md); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 14px; font-weight: 500; color: var(--charcoal); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--canvas);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--soft-cloud);
}
.field.invalid input, .field.invalid textarea { border-color: var(--sale); }
.scor-form .btn { align-self: flex-start; margin-top: var(--s-sm); }
.form-note { font-size: 13px; color: var(--mute); line-height: 1.5; margin: var(--s-sm) 0 0; }
.form-note a { text-decoration: underline; }
.form-success {
  background: var(--success);
  color: var(--on-primary);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
}

.newsletter {
  background: var(--ink);
  color: var(--on-primary);
  padding: var(--s-section) 0;
  text-align: center;
  margin-top: var(--s-section);
}
.newsletter-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); text-transform: uppercase; margin: 0 0 var(--s-sm); }
.newsletter p { color: var(--stone); font-size: 16px; margin: 0 0 var(--s-xl); }
.newsletter-form { display: flex; gap: var(--s-sm); justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  font-family: inherit;
  font-size: 16px;
  padding: 0 20px;
  height: 48px;
  width: 320px;
  max-width: 100%;
  border: none;
  border-radius: var(--r-lg);
  background: var(--canvas);
  color: var(--ink);
  outline: none;
}
.newsletter-form input.invalid { box-shadow: 0 0 0 2px var(--sale); }

@media (max-width: 760px) {
  .value-grid { grid-template-columns: 1fr; }
  .form-split { grid-template-columns: 1fr; gap: var(--s-xl); }
}

/* ==========================================================================
   Legal pages (privacy, offer)
   ========================================================================== */
.legal { padding: var(--s-xl) 0 var(--s-section); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-section); align-items: start; }
.legal-toc {
  position: sticky;
  top: 80px;
  border-left: 2px solid var(--hairline-soft);
  padding-left: var(--s-lg);
}
.legal-toc h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--mute); margin: 0 0 var(--s-md); }
.legal-toc a { display: block; font-size: 14px; color: var(--charcoal); padding: 6px 0; line-height: 1.4; }
.legal-toc a:hover { color: var(--ink); }

.legal-body { max-width: 820px; }
.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: var(--s-section) 0 var(--s-md);
  scroll-margin-top: 80px;
  letter-spacing: -.3px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 16px; line-height: 1.65; color: var(--charcoal); margin: 0 0 var(--s-md); }
.legal-body ul { margin: 0 0 var(--s-md); padding-left: var(--s-lg); }
.legal-body li { font-size: 16px; line-height: 1.65; color: var(--charcoal); margin-bottom: var(--s-sm); }
.legal-body .lead { font-size: 18px; color: var(--ink); margin-bottom: var(--s-xl); }
.legal-meta { font-size: 14px; color: var(--mute); margin-top: var(--s-xl); padding-top: var(--s-lg); border-top: 1px solid var(--hairline); }
.legal-requisites { background: var(--soft-cloud); padding: var(--s-xl); font-size: 15px; line-height: 1.7; }
.legal-requisites dt { font-weight: 600; color: var(--ink); }
.legal-requisites dd { margin: 0 0 var(--s-sm); color: var(--charcoal); }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--s-xl); }
  .legal-toc { display: none; }
}

.auth-checkbox { display: flex; gap: var(--s-sm); align-items: flex-start; font-size: 13px; color: var(--mute); line-height: 1.4; }
.auth-checkbox input { margin-top: 2px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.auth-checkbox a { text-decoration: underline; }
.auth-error { font-size: 13px; color: var(--sale); min-height: 16px; }

#scor-top { min-height: 96px; }

.pay-opt {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 10px 0;
  font-size: 15px;
  cursor: pointer;
}
.pay-opt input { accent-color: var(--ink); }

.checkout-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-section);
  padding: var(--s-xl) 0 var(--s-section);
  align-items: start;
}
.checkout-success { max-width: 640px; padding: var(--s-section) 0; }
.checkout-success h2 { font-size: 32px; margin: 0 0 var(--s-md); }

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: var(--s-xl) 0;
}
.size-table th, .size-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.size-table th { font-weight: 600; background: var(--soft-cloud); }

.faq-list { max-width: 820px; }
.page-404 {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--s-section);
}
.page-404 .nav-logo { justify-content: center; }
.page-404 .nav-logo img { height: 52px; }
.page-404 h1 { font-family: var(--font-display); font-size: clamp(48px, 8vw, 96px); text-transform: uppercase; margin: 12px 0; }

/* Admin */
.admin-bar {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  padding: 12px 24px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: var(--canvas);
  z-index: 20;
}
.admin-bar .nav-logo img { height: 28px; }
.admin-login .nav-logo img { height: 40px; }
.admin-tabs { display: flex; gap: var(--s-lg); margin-right: auto; }
.admin-tabs button { font-size: 15px; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.admin-tabs button.active { border-bottom-color: var(--ink); }
.admin-main { padding: 24px; max-width: 1360px; margin: 0 auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: var(--s-xl); }
.admin-head h1 { margin: 0; font-size: 28px; }
.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 22px; }
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink);
}
.admin-chip span { font-weight: 500; color: var(--mute); }
.admin-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-chip.active span { color: rgba(255,255,255,.72); }
.admin-cat-panel { margin-bottom: 22px; }
.admin-cat-panel .scor-form .btn { margin-top: 4px; }
.admin-cat-list { list-style: none; padding: 0; margin: 0; }
.admin-cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.admin-cat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-link-btn[disabled] { opacity: .35; pointer-events: none; text-decoration: none; }
.admin-product-list { display: flex; flex-direction: column; gap: 10px; }
.admin-product {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-sm);
  background: var(--canvas);
}
.admin-product-img {
  width: 80px; height: 80px;
  background: var(--soft-cloud);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.admin-product-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block; 
}
.admin-product-meta h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.admin-product-meta p { margin: 0; }
.admin-product-price { font-size: 15px; font-weight: 600; margin-top: 6px !important; }
.admin-product-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.admin-icon-btn {
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.admin-product.is-soldout { opacity: 1; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--hairline-soft); vertical-align: top; }
.admin-thumb img { 
  width: 48px; 
  height: 48px; 
  object-fit: contain; 
  background: var(--soft-cloud);
  padding: 3px;
}
.admin-login { max-width: 400px; margin: 12vh auto; padding: 0 24px; text-align: center; }
.admin-login h1 { font-size: 24px; margin: 12px 0 24px; }

.admin-editor { background: transparent; padding: 0; margin: 0; }
.admin-editor.scor-form .btn { margin-top: 0; align-self: auto; }
.admin-editor-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.admin-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 4px;
}
.admin-editor-top h1 { margin: 0; font-size: 28px; font-weight: 600; }
.admin-editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-editor-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1.25fr);
  gap: 20px;
  align-items: start;
}
.admin-panel {
  background: var(--soft-cloud);
  padding: 22px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
.admin-panel h2,
.admin-panel-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.admin-panel-sub { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--hairline-soft); }
.admin-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.admin-pair .field { min-width: 0; }
.admin-panel .field input,
.admin-panel .field textarea,
.admin-panel .field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.admin-color {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  background: var(--canvas);
  padding: 12px;
  border-radius: 14px;
  transition: opacity 0.2s, border-top 0.2s;
  border-top: 3px solid transparent;
}
.admin-color-fields .admin-pair {
  grid-template-columns: 88px minmax(0, 1fr);
}
.admin-color-photo { display: flex; flex-direction: column; gap: 8px; }
.admin-photo-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--mute);
  text-align: center;
}
.admin-color-preview,
.admin-color-empty {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--soft-cloud);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.admin-color-empty {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  padding: 8px;
}
.admin-color-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.admin-color-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.admin-color-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drag-handle {
  cursor: move;
  font-size: 18px;
  color: var(--mute);
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
.drag-handle:hover {
  background: var(--soft-cloud);
  color: var(--ink);
}
.admin-color-toolbar strong { font-size: 13px; font-weight: 600; }
.admin-link-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-link-btn:hover { color: var(--sale); }

.admin-gallery-wrap { margin-top: 4px; }
.admin-gallery-wrap .field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.admin-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-gallery-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft-cloud);
  flex: 0 0 auto;
  cursor: move;
  transition: opacity .15s, transform .15s;
  border: 2px solid transparent;
}
.admin-gallery-thumb:hover {
  transform: scale(1.05);
}
.admin-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
}
.admin-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .15s;
}
.admin-gallery-thumb:hover .admin-gallery-remove {
  opacity: 1;
}
.admin-gallery-remove:hover {
  background: var(--ink);
}

.sku-table-wrap { margin-top: 12px; }
.sku-table-wrap .field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.sku-table-header {
  display: grid;
  grid-template-columns: 80px 80px 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--soft-cloud);
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.sku-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: 0 0 8px 8px;
}
.sku-row {
  display: grid;
  grid-template-columns: 80px 80px 1fr;
  gap: 8px;
  align-items: center;
}
.sku-size {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.sku-row input {
  height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}
.sku-row input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--soft-cloud);
}
.sku-row input[type="number"] {
  text-align: right;
}

/* Category management */
.admin-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--s-xl);
}
.admin-category {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-sm);
}
.admin-cat-image-single {
  width: 120px;
  height: 120px;
  background: var(--soft-cloud);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-cat-image-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-cat-img-empty {
  font-size: 11px;
  color: var(--mute);
  text-align: center;
  padding: 8px;
}
.admin-cat-info h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}
.admin-cat-info p {
  margin: 0;
}
.admin-cat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Category editor */
.admin-cat-preview-single {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}
.admin-cat-preview {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--soft-cloud);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-cat-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-cat-preview-empty {
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  padding: 8px;
}

/* Home blocks */
.admin-homeblocks-page .admin-head { margin-bottom: 6px; }
.admin-homeblocks-page .admin-head h1 { font-size: 22px; }
.admin-hb-lead {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute);
}
.admin-block-section { margin: 0 0 22px; }
.admin-block-section h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.admin-hero-slides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-hero-slide {
  background: var(--soft-cloud);
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  padding: 12px 14px;
}
.admin-block-section > .admin-hero-slide { max-width: 560px; }
.admin-hero-slide-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.admin-hero-slide-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-hb-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-hb-thumb {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e8e8;
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.admin-hb-thumb.is-hero-d { width: 168px; height: 94px; }
.admin-hb-thumb.is-hero-m { width: 53px; height: 94px; }
.admin-hb-thumb.is-rail { width: 100%; aspect-ratio: 4/5; }
.admin-hb-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-hb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  color: var(--mute);
}
.admin-hb-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  background: rgba(17,17,17,.7);
  color: #fff;
  padding: 4px 6px;
  border-radius: 999px;
}
.admin-hb-thumb.is-hero-m .admin-hb-badge { left: 4px; right: 4px; text-align: center; padding: 3px 0; }
.admin-hb-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,17,17,.48);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .15s ease;
}
.admin-hb-thumb:hover .admin-hb-hover,
.admin-hb-thumb.is-busy .admin-hb-hover { opacity: 1; }
.admin-hb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-hb-meta strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.admin-hb-meta span {
  font-size: 11px;
  color: var(--mute);
}
.admin-hb-url {
  margin-top: 4px;
  width: 100%;
  max-width: 160px;
  border: 0;
  background: transparent;
  font-size: 10px;
  line-height: 1.3;
  color: var(--mute);
  padding: 0;
  outline: none;
  font-family: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-hb-url:focus { color: var(--ink); }
.admin-homeblocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 132px);
  gap: 12px;
}
.admin-homeblocks-grid .admin-hb-slot {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: var(--soft-cloud);
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  padding: 8px;
}
.admin-homeblocks-grid .admin-hb-thumb { border-radius: 10px; }
.admin-homeblocks-grid .admin-hb-url { max-width: none; }
@media (max-width: 960px) {
  .admin-hero-slides { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-hero-slide-row { flex-wrap: wrap; }
  .admin-homeblocks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sku-table-wrap { margin-top: 12px; }
.sku-table-wrap .field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.sku-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-swatch input[type="color"] {
  height: 48px;
  padding: 4px;
  cursor: pointer;
}

.mute { color: var(--mute); font-size: 13px; }

/* Модальное окно остатков */
.stock-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.stock-modal {
  background: var(--canvas);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.stock-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.stock-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  padding-right: 8px;
  flex: 1;
}
.stock-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--mute);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.stock-modal-close:hover {
  background: var(--hover);
}
.stock-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.stock-modal-color {
  margin-bottom: 24px;
}
.stock-modal-color:last-child {
  margin-bottom: 0;
}
.stock-modal-color h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.stock-modal-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stock-modal-header-row,
.stock-modal-row {
  display: grid;
  grid-template-columns: 80px 100px 1fr;
  gap: 12px;
  align-items: center;
}
.stock-modal-header-row {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.stock-modal-header-row span {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stock-modal-size {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.stock-modal-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
}
.stock-modal-input:focus {
  outline: none;
  border-color: var(--ink);
}
.stock-modal-sku {
  font-size: 13px;
  color: var(--mute);
  font-family: 'Courier New', monospace;
}
.stock-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .admin-editor-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .admin-bar { flex-wrap: wrap; }
  .admin-product { grid-template-columns: 64px 1fr; }
  .admin-product-img { width: 64px; height: 64px; }
  .admin-product-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-pair, .admin-color { grid-template-columns: 1fr; }
  .admin-editor-top { flex-direction: column; align-items: stretch; }
}
