/* =========================================================
   MFORN — Design System v.2026
   Sport-casual heritage brand
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* Palette — cold light grey base with graphite contrast */
  --bg:        #EFEFED;   /* soft cold light grey */
  --bg-alt:    #E4E4E1;   /* slightly darker grey */
  --bg-dark:   #1A1A1A;   /* near-black graphite for contrast sections */
  --ink:       #0A0A0A;   /* deep black */
  --ink-soft:  #2A2A2A;   /* graphite */
  --muted:     #757371;   /* warm grey for secondary text */
  --line:      #D0D0CD;   /* divider */
  --accent:    #0A0A0A;   /* no accent — black is the accent */
  --accent-2:  #2A2A2A;
  --invert:    #EFEFED;

  /* Type — one grotesque family */
  --font-display: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.5rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 9rem;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* Subtle grain overlay across the entire site for cinematic depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-display); text-transform: uppercase; }

.h-mega {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-transform: uppercase;
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
}

.italic { font-style: normal; font-weight: 400; opacity: 0.6; }

.lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-fluid { padding: 0 var(--gutter); }

section { padding: var(--s-8) 0; }

@media (max-width: 768px) {
  section { padding: var(--s-7) 0; }
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}

.btn:hover { color: var(--invert); }
.btn:hover::before { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--invert);
}
.btn-accent::before { background: var(--ink); }

.btn-light {
  border-color: var(--invert);
  color: var(--invert);
}
.btn-light::before { background: var(--invert); }
.btn-light:hover { color: var(--ink); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- NAVBAR ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
}
.brand sup {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-actions button { transition: color 0.3s var(--ease); }
.nav-actions button:hover { color: var(--accent); }

.cart-count {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--muted);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 0.62rem;
  line-height: 18px;
  text-align: center;
  margin-left: 0.4rem;
  font-family: var(--font-body);
  letter-spacing: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cart-count.has-items {
  background: var(--ink);
  color: var(--invert);
  font-weight: 600;
}

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .label { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { grid-template-columns: auto 1fr auto; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 6rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--invert);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.85) 100%);
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

/* Vignette overlay for cinematic feel */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}

/* ---------- HERO V3 — video inside each letter ---------- */
.hero-v3 {
  min-height: 100vh;
  padding: 0;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-v3 .hero-ticker {
  background: var(--ink);
  color: var(--invert);
  border: none;
}

.hero-letters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1100px;
  padding: 0 var(--gutter);
  margin: 0 auto;
}

.letter-cell {
  position: relative;
  aspect-ratio: 200 / 280;  /* viewBox 200x240 + место для подписи */
}

/* Video wrapper — fills square area at top, leaves space below for word */
.letter-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}
.letter-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback gradient when video not loaded */
.letter-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #2a2a2a 100%);
  z-index: -1;
}

/* Mask — covers everything OUTSIDE letter shape with background color,
   so only the letter-shaped hole shows the video underneath */
.letter-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}
.letter-mask rect:last-child {
  fill: var(--bg);
}

/* Subtitle word under each letter */
.letter-word {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 0.85vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  animation: letterWordIn 0.8s var(--ease) forwards;
}

.letter-cell:nth-child(1) .letter-word { animation-delay: 0.9s; }
.letter-cell:nth-child(2) .letter-word { animation-delay: 1.0s; }
.letter-cell:nth-child(3) .letter-word { animation-delay: 1.1s; }
.letter-cell:nth-child(4) .letter-word { animation-delay: 1.2s; }
.letter-cell:nth-child(5) .letter-word { animation-delay: 1.3s; }

@keyframes letterWordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Each letter starts hidden, animates in */
.letter-cell .letter-mask {
  opacity: 0;
  animation: letterMaskIn 1s var(--ease) forwards;
}
.letter-cell:nth-child(1) .letter-mask { animation-delay: 0.1s; }
.letter-cell:nth-child(2) .letter-mask { animation-delay: 0.25s; }
.letter-cell:nth-child(3) .letter-mask { animation-delay: 0.4s; }
.letter-cell:nth-child(4) .letter-mask { animation-delay: 0.55s; }
.letter-cell:nth-child(5) .letter-mask { animation-delay: 0.7s; }

@keyframes letterMaskIn {
  to { opacity: 1; }
}

/* Hover — video plays "louder" (well, brighter) */
.letter-cell {
  transition: transform 0.6s var(--ease);
}
.letter-cell:hover {
  transform: scale(1.02);
  z-index: 5;
}
.letter-cell:hover .letter-video {
  filter: brightness(1.2) contrast(1.1);
}
.letter-video {
  transition: filter 0.6s var(--ease);
}

.hero-v3 .hero-bottom {
  position: absolute;
  z-index: 3;
  bottom: 2.5rem;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--ink);
  opacity: 0;
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: 1.5s;
}
.hero-v3 .hero-bottom .eyebrow {
  color: var(--muted);
}
.hero-v3 .hero-bottom-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-v3 .scroll-hint {
  color: var(--muted);
}
.hero-v3 .scroll-hint::after {
  background: var(--muted);
}

@media (max-width: 768px) {
  .hero-letters { grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .letter-word {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    bottom: -1.5rem;
  }
  .hero-v3 .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-5);
}

.hero h1 {
  max-width: 14ch;
}

.hero h1 .accent {
  color: transparent;
  -webkit-text-stroke: 1px var(--invert);
  font-style: italic;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-end;
  text-align: right;
}
.hero-meta .lead { color: rgba(250,250,247,0.78); max-width: 32ch; }

.hero-ticker {
  position: absolute;
  top: 6rem;
  left: 0; right: 0;
  z-index: 2;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(250,250,247,0.18);
  border-bottom: 1px solid rgba(250,250,247,0.18);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.7);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 3rem; }
.ticker-track .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.6);
  z-index: 2;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px; height: 32px;
  background: rgba(250,250,247,0.4);
  margin: 0.6rem auto 0;
  animation: scrollLine 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0.2); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0.2; transform-origin: bottom; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta { align-items: flex-start; text-align: left; }
}

/* ---------- SECTION HEADER ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.section-head .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}
.section-head .link {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.section-head .link:hover { color: var(--accent); }

@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- FLAGSHIP — SUITS ---------- */
.flagship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.flagship-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
}
.flagship-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.flagship-card:hover img { transform: scale(1.04); }

.flagship-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  color: var(--invert);
}
.flagship-card .top { display: flex; justify-content: space-between; align-items: center; }
.flagship-card .tag {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(250,250,247,0.16);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(250,250,247,0.3);
}
.flagship-card .meta { text-align: right; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.flagship-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.flagship-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.flagship-card .price {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .flagship { grid-template-columns: 1fr; }
}

/* ---------- PRODUCT GRID ---------- */

/* ---------- CATEGORY HEADER (new pages) ---------- */
.cat-header {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-5);
}
.cat-header .container {
  display: grid;
  gap: 1.5rem;
}
.cat-header .crumbs {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat-header .crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.cat-header .crumbs a:hover { color: var(--ink); }

.cat-header h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.cat-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.cat-intro {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  max-width: 60ch;
  color: var(--ink-soft);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5) var(--s-4);
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.product-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 1rem;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity 0.6s var(--ease);
}
.product-img .img-b {
  position: absolute; inset: 0;
  opacity: 0;
}
.product:hover .img-b { opacity: 1; }
.product:hover .img-a { transform: scale(1.03); }

.product-img .ribbon {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--invert);
  padding: 0.35rem 0.6rem;
}
.product-img .ribbon.accent { background: var(--accent); }

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.product .product-code {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.product h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.product .sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.product .price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.product .swatches {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.product .swatch {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

/* ---------- EDITORIAL / LOOKBOOK ---------- */
.editorial {
  background: var(--ink);
  color: var(--invert);
}
.editorial .section-head { border-bottom-color: rgba(250,250,247,0.18); }
.editorial .section-head .link:hover { color: var(--accent-2); }

.editorial-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  grid-template-rows: auto auto;
  gap: var(--s-4);
}
.editorial-grid .ed-1 { grid-row: 1 / 3; aspect-ratio: 3/4; }
.editorial-grid .ed-2 { aspect-ratio: 4/3; }
.editorial-grid .ed-3 { aspect-ratio: 4/3; }
.editorial-grid figure {
  position: relative;
  overflow: hidden;
}
.editorial-grid figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.1);
  transition: transform 1.2s var(--ease);
}
.editorial-grid figure:hover img { transform: scale(1.05); }
.editorial-grid figcaption {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(250,250,247,0.2);
}

@media (max-width: 768px) {
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid .ed-1 { grid-row: auto; }
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.philosophy .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.philosophy .pull em {
  color: var(--accent);
  font-style: italic;
}
.philosophy .body { color: var(--ink-soft); }
.philosophy .body p + p { margin-top: 1rem; }
.philosophy .stats {
  margin-top: var(--s-5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
}
.philosophy .stat .n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  display: block;
}
.philosophy .stat .l {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

@media (max-width: 900px) { .philosophy { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--bg-alt);
  text-align: center;
  padding: var(--s-7) var(--gutter);
}
.newsletter h2 {
  max-width: 18ch;
  margin: 0 auto var(--s-3);
}
.newsletter form {
  display: flex;
  max-width: 520px;
  margin: var(--s-4) auto 0;
  border-bottom: 1px solid var(--ink);
}
.newsletter input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0.9rem 0.4rem;
  outline: none;
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter button {
  padding: 0 0.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
}
.newsletter .fine {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--invert);
  padding: var(--s-6) var(--gutter) var(--s-4);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-5);
}
.footer h5 {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer a { color: rgba(250,250,247,0.85); transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--accent-2); }

.footer .brand {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 0.5rem;
}
.footer .tagline {
  color: rgba(250,250,247,0.6);
  font-size: 0.92rem;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  max-width: var(--container);
  margin: var(--s-5) auto 0;
  padding-top: var(--s-3);
  border-top: 1px solid rgba(250,250,247,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(250,250,247,0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* stagger helper */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* hero load animation */
.hero h1, .hero .eyebrow, .hero-meta, .hero-ticker {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1.1s var(--ease) forwards;
}
.hero .eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.25s; }
.hero-meta { animation-delay: 0.45s; }
.hero-ticker { animation-delay: 0.7s; transform: translateY(0); }

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ---------- CATALOG PAGE BITS ---------- */
.page-head {
  padding: 9rem var(--gutter) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.page-head .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-4);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.page-head .crumbs {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.page-head .crumbs a:hover { color: var(--accent); }

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-5);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filters .chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--invert); border-color: var(--ink); }

/* ---------- PRODUCT PAGE ---------- */
.product-page {
  padding: 7rem var(--gutter) var(--s-6);
}
.product-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-6);
  max-width: var(--container);
  margin: 0 auto;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.gallery figure {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery .feature { grid-column: 1 / -1; aspect-ratio: 4/5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.product-detail .crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.product-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.product-detail .sub-h {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.product-detail .price-tag {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.product-detail .price-tag .old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.options { margin-bottom: 1.5rem; }
.options .label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--muted);
}
.options .label a { color: var(--ink); border-bottom: 1px solid var(--ink); }

.size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.size-grid button {
  border: 1px solid var(--line);
  padding: 0.8rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.size-grid button:hover { border-color: var(--ink); }
.size-grid button.active { background: var(--ink); color: var(--invert); border-color: var(--ink); }

.color-row { display: flex; gap: 0.6rem; }
.color-row .c {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.color-row .c.active { outline-color: var(--ink); outline-width: 1.5px; outline-offset: 3px; }

.cta-row { display: flex; gap: 0.6rem; margin: 2rem 0 1.5rem; }
.cta-row .btn { flex: 1; justify-content: center; }
.cta-row .fav {
  width: 56px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}
.cta-row .fav:hover { background: var(--ink); color: var(--invert); }

.accordion { border-top: 1px solid var(--line); margin-top: 2rem; }
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.accordion details[open] summary::after { content: '−'; }
.accordion .body {
  padding-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  padding: 10rem var(--gutter) var(--s-6);
  text-align: center;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 12ch;
  margin: 0 auto var(--s-4);
}
.about-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.about-hero .lead { margin: 0 auto; }

.about-image {
  height: 70vh;
  background-size: cover;
  background-position: center;
  margin: 0 var(--gutter);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.value .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.value h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  letter-spacing: -0.015em;
}
.value p { color: var(--ink-soft); }

@media (max-width: 768px) { .values { grid-template-columns: 1fr; } }

.product .price.request {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: var(--s-7) 0;
  color: var(--muted);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.product[data-hidden="true"] { display: none; }

/* ---------- ADVANCED ANIMATIONS ---------- */

/* Custom cursor — magnetic dot follows mouse */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor-dot.visible { opacity: 1; }
.cursor-dot.hover {
  width: 48px; height: 48px;
  background: var(--invert);
}
@media (hover: none), (max-width: 768px) {
  .cursor-dot { display: none; }
}

/* Letter-by-letter reveal for headlines */
.split-text { display: inline-block; }
.split-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.18em;
}
.split-text .word .inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordIn 1.1s var(--ease) forwards;
}
.split-text .word:nth-child(1) .inner { animation-delay: 0.05s; }
.split-text .word:nth-child(2) .inner { animation-delay: 0.15s; }
.split-text .word:nth-child(3) .inner { animation-delay: 0.25s; }
.split-text .word:nth-child(4) .inner { animation-delay: 0.35s; }
.split-text .word:nth-child(5) .inner { animation-delay: 0.45s; }
.split-text .word:nth-child(6) .inner { animation-delay: 0.55s; }
.split-text .word:nth-child(7) .inner { animation-delay: 0.65s; }

@keyframes wordIn {
  to { transform: translateY(0); opacity: 1; }
}

/* Parallax hero */
.parallax {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Marquee text — for accent strips between sections */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
  background: var(--ink);
  color: var(--invert);
  border-top: 1px solid rgba(250,250,247,0.1);
  border-bottom: 1px solid rgba(250,250,247,0.1);
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-style: italic;
}
.marquee-track .dot-l {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  align-self: center;
}
.marquee.alt { background: var(--bg); color: var(--ink); border-color: var(--line); }
.marquee.alt .dot-l { background: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Image hover — Ken Burns subtle zoom */
.kenburns img {
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}

/* Magnetic button hover */
.btn.magnetic { transition: transform 0.3s var(--ease); }

/* Hero text mask — clip-path reveal */
.mask-reveal {
  overflow: hidden;
  display: inline-block;
}
.mask-reveal > * {
  display: inline-block;
  transform: translateY(100%);
  animation: maskIn 1.2s var(--ease) forwards;
}
@keyframes maskIn {
  to { transform: translateY(0); }
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9998;
  transform: translateY(-100%);
  pointer-events: none;
}
.page-transition.out {
  animation: pageOut 0.7s var(--ease) forwards;
}
@keyframes pageOut {
  0%   { transform: translateY(100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* Product hover — extra polish */
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.18) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.product:hover .product-img::after { opacity: 1; }

.product-img .quick-view {
  position: absolute;
  bottom: 1rem; left: 1rem; right: 1rem;
  padding: 0.8rem;
  background: var(--invert);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  transform: translateY(120%);
  transition: transform 0.5s var(--ease);
  z-index: 2;
}
.product:hover .quick-view { transform: translateY(0); }

/* Scroll-driven progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 1001;
  transition: width 0.05s linear;
}

/* Hover float on flagship */
.flagship-card { transition: transform 0.6s var(--ease); }
.flagship-card:hover { transform: translateY(-4px); }

/* Soft fade-in for images on load */
.img-fade {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.img-fade.loaded { opacity: 1; }

/* ---------- CATEGORY HERO (per-page distinct) ---------- */
.cat-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--invert);
}
.cat-hero .bg {
  position: absolute; inset: 0; z-index: 0;
}
.cat-hero .bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.05);
}
.cat-hero .bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.5) 80%, rgba(10,10,10,0.85) 100%);
}
.cat-hero .inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.cat-hero h1 em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--invert);
}
.cat-hero .meta {
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.7);
}
.cat-hero .crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.7);
  margin-bottom: 1.5rem;
}

/* ---------- UTILS ---------- */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.hidden { display: none; }

/* =========================================================
   PRODUCT PAGE — v.2026 (overrides legacy product styles)
   ========================================================= */
.page-product { background: var(--bg); }

.product-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 6rem var(--gutter) 4rem;
  max-width: var(--container);
  margin: 0 auto;
}

.product-gallery { position: sticky; top: 6rem; align-self: start; }
.gallery-main {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 1rem;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--ink); }
.thumb:hover { border-color: var(--ink-soft); }

.product-details { display: flex; flex-direction: column; gap: 2rem; }

.product-details .breadcrumbs {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-details .breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.product-details .breadcrumbs a:hover { color: var(--ink); }

.product-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0.6rem 0 0.4rem;
}
.product-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.product-tags { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 400;
}
.product-lead {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-description {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.product-items ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-items li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.product-items li:last-child { border-bottom: none; }

.product-option {}
.option-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}
.option-header .link-small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.option-header .link-small:hover { color: var(--ink); }

/* COLORS */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.color-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  transition: all 0.3s var(--ease);
  font-family: var(--font-body);
  font-size: 0.85rem;
  user-select: none;
}
.color-option:hover { border-color: var(--ink-soft); }
.color-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--invert);
}
.color-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.color-tag {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.5rem;
  margin-left: 0.3rem;
}
.color-tag.in-stock { color: var(--muted); background: transparent; }
.color-tag.on-order { color: var(--muted); background: transparent; }
.color-option.selected .color-tag {
  color: rgba(244, 241, 234, 0.7);
}

.color-hint {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--ink);
  font-size: 0.85rem;
  line-height: 1.5;
}
.color-hint .hint-available { display: block; }
.color-hint .hint-on-order { display: none; }
.color-hint[data-stock="on-order"] .hint-available { display: none; }
.color-hint[data-stock="on-order"] .hint-on-order { display: block; }

/* SIZES */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.size-option {
  min-width: 56px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.25s var(--ease);
}
.size-option:hover { border-color: var(--ink-soft); }
.size-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--invert);
}

/* SPECS */
.product-specs {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}
.spec-val { color: var(--ink); text-align: right; max-width: 60%; }

/* ACTIONS */
.product-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.btn-large {
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.btn-block { width: 100%; text-align: center; }
.btn-primary {
  background: var(--ink);
  color: var(--invert);
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-secondary:hover { background: var(--ink); color: var(--invert); }
.btn-success { background: #1f5e3a !important; border-color: #1f5e3a !important; color: white !important; }

/* ASSURANCES */
.product-assurances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.assur-item { text-align: left; }
.ass-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.ass-text { font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }

@media (max-width: 900px) {
  .product-page-grid { grid-template-columns: 1fr; padding-top: 4rem; }
  .product-gallery { position: static; }
  .product-assurances { grid-template-columns: 1fr; gap: 1rem; }
}

/* =========================================================
   CART PAGE
   ========================================================= */
.page-cart { background: var(--bg); }

.cart-page { padding: 6rem 0 4rem; min-height: 60vh; }

.cart-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-header .crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.cart-header .crumbs a { color: var(--muted); text-decoration: none; }
.cart-header h1 { margin: 0; }

.cart-empty {
  text-align: center;
  padding: 5rem 1rem;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.cart-lines { display: flex; flex-direction: column; gap: 1rem; }

.cart-line {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: white;
  align-items: center;
}

.cart-photo {
  width: 120px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
  display: block;
}
.cart-photo img { width: 100%; height: 100%; object-fit: cover; }

.cart-info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.cart-code {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.cart-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.cart-badge {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.cart-badge.in-stock { color: var(--muted); }
.cart-badge.on-order { background: var(--ink); color: var(--invert); border-color: var(--ink); }
.cart-lead {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}
.qty-btn:hover { background: var(--bg-alt); }
.qty-input {
  width: 36px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
}

.cart-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-width: 100px;
  text-align: right;
}

.cart-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 0.5rem;
  transition: color 0.3s var(--ease);
}
.cart-remove:hover { color: var(--ink); }

.cart-summary {
  position: sticky;
  top: 6rem;
  padding: 1.75rem;
  background: var(--ink);
  color: var(--invert);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cart-summary .eyebrow {
  color: rgba(244, 241, 234, 0.55);
  margin-bottom: 0.5rem;
}
.cart-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.cart-sum-row strong { font-weight: 600; }
.cart-sum-delivery {
  font-size: 0.78rem;
  color: rgba(244, 241, 234, 0.6);
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  padding-top: 0.8rem;
}
.cart-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.15);
}
.cart-sum-total .total-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-on-order-note {
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.8rem 1rem;
  background: rgba(244, 241, 234, 0.06);
  border-left: 2px solid rgba(244, 241, 234, 0.4);
}

.cart-summary .btn-primary {
  background: var(--invert);
  color: var(--ink);
  border-color: var(--invert);
  margin-top: 0.5rem;
}
.cart-summary .btn-primary:hover { background: rgba(244, 241, 234, 0.85); }

.cart-summary .btn-secondary {
  background: transparent;
  color: var(--invert);
  border-color: rgba(244, 241, 234, 0.3);
}
.cart-summary .btn-secondary:hover {
  background: var(--invert);
  color: var(--ink);
}

.cart-clear-link {
  background: transparent;
  border: none;
  color: rgba(244, 241, 234, 0.55);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0.5rem;
  text-decoration: underline;
  transition: color 0.3s var(--ease);
}
.cart-clear-link:hover { color: var(--invert); }

.cart-count.has-items {
  background: var(--ink);
  color: var(--invert);
  border-radius: 50%;
  padding: 0 6px;
  font-size: 0.7rem;
  margin-left: 4px;
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-line { grid-template-columns: 90px 1fr; grid-template-areas:
    'photo info'
    'photo info'
    'qty price'
    'remove remove';
    gap: 1rem; }
  .cart-photo { width: 90px; grid-area: photo; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-price { grid-area: price; text-align: right; }
  .cart-remove { grid-area: remove; justify-self: end; }
}

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.page-checkout { background: var(--bg); }
.checkout-page { padding: 6rem 0 4rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.checkout-form-wrap { display: flex; flex-direction: column; gap: 2.5rem; }
.checkout-section {
  background: white;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
}
.checkout-section .eyebrow { margin-bottom: 1.4rem; color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--ink); }

.delivery-options,
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.delivery-option,
.payment-option {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.delivery-option:hover,
.payment-option:hover { border-color: var(--ink-soft); }
.delivery-option.selected,
.payment-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--invert);
}
.del-title,
.pay-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.del-meta,
.pay-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.delivery-option.selected .del-meta,
.payment-option.selected .pay-meta {
  color: rgba(244, 241, 234, 0.6);
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.8rem;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-row input {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.checkbox-row a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-row a:hover { color: var(--ink-soft); }

/* ORDER SUMMARY (sidebar) */
.order-summary {
  position: sticky;
  top: 6rem;
  padding: 1.75rem;
  background: var(--ink);
  color: var(--invert);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.order-summary .eyebrow { color: rgba(244, 241, 234, 0.55); }

.order-lines {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.15);
  max-height: 320px;
  overflow-y: auto;
}
.ord-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.ord-info { font-size: 0.85rem; line-height: 1.4; }
.ord-code {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}
.ord-name { font-weight: 600; margin: 0.2rem 0; }
.ord-opts { font-size: 0.75rem; color: rgba(244, 241, 234, 0.6); }
.ord-price { font-weight: 600; white-space: nowrap; }

.order-totals { display: flex; flex-direction: column; gap: 0.5rem; }
.ord-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.ord-sum-delivery {
  font-size: 0.78rem;
  color: rgba(244, 241, 234, 0.6);
}
.ord-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.8rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(244, 241, 234, 0.2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.checkout-warning {
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.8rem 1rem;
  background: rgba(244, 241, 234, 0.06);
  border-left: 2px solid rgba(244, 241, 234, 0.4);
  color: rgba(244, 241, 234, 0.9);
}

.order-summary .btn-primary {
  background: var(--invert);
  color: var(--ink);
  border-color: var(--invert);
  margin-top: 0.5rem;
}
.order-summary .btn-primary:hover { background: rgba(244, 241, 234, 0.85); }

.back-link {
  display: block;
  text-align: center;
  color: rgba(244, 241, 234, 0.55);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem;
  margin-top: 0.4rem;
}
.back-link:hover { color: var(--invert); }

/* SUCCESS */
.checkout-success {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.checkout-success .order-id {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--line);
  display: inline-block;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .delivery-options, .payment-options { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

/* =========================================================
   LEGAL PAGES (privacy, offer, consent, delivery)
   ========================================================= */
.page-legal { background: var(--bg); }

.legal-page { padding: 6rem 0 5rem; }
.legal-narrow { max-width: 780px; }

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-header .crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.legal-header .crumbs a { color: var(--muted); text-decoration: none; }
.legal-header h1 { margin: 0 0 0.6rem; }
.legal-meta {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 2.2rem 0 1rem;
  color: var(--ink);
}

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.005em;
  margin: 1.4rem 0 0.6rem;
  color: var(--ink);
}

.legal-body p { margin: 0 0 0.9rem; }
.legal-body ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.legal-body li { margin-bottom: 0.4rem; }

.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s var(--ease);
}
.legal-body a:hover { color: var(--ink-soft); }

.legal-body strong { font-weight: 700; color: var(--ink); }

.legal-note {
  padding: 1rem 1.2rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--ink);
  font-style: italic;
  margin-top: 1.5rem !important;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.page-about { background: var(--bg); }
.about-page { padding-top: 0; }

.about-hero {
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.about-hero .crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.about-hero .crumbs a { color: var(--muted); text-decoration: none; }
.about-hero h1.h-mega {
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0 auto;
}
.about-lead {
  max-width: 56ch;
  margin: 2rem auto 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}
.about-section:last-of-type { border-bottom: none; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}
.about-text p { margin: 0 0 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 700; color: var(--ink); }
.about-text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-dark {
  background: var(--ink);
  color: var(--invert);
  border-color: var(--ink);
}
.about-dark .about-text { color: rgba(239, 239, 237, 0.85); }
.about-dark .about-text strong { color: var(--invert); }
.about-dark h2 { color: var(--invert); }

/* DECODER BLOCK */
.decoder-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.dec-item {
  display: grid;
  grid-template-columns: 120px 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.dec-letter {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.dec-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}
.dec-desc {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* STATS */
.about-stats { background: var(--bg-alt); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-card { text-align: left; }
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat-l {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* CONTACT */
.about-contact {
  background: var(--ink);
  color: var(--invert);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-contact h2 { color: var(--invert); }

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(239, 239, 237, 0.15);
  align-items: baseline;
}
.contact-row:last-child { border-bottom: none; }
.ct-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 239, 237, 0.45);
  font-weight: 500;
}
.ct-value {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--invert);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}
a.ct-value:hover { opacity: 0.7; }
.ct-small {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(239, 239, 237, 0.7);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dec-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- Newsletter consent checkbox ---------- */
.nl-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 480px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.nl-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--ink);
}
.nl-consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nl-consent a:hover { opacity: 0.7; }

/* ---------- MN-баллы в чекауте ---------- */
.mn-block {
  margin-top: 0.75rem;
}
.mn-status {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}
.mn-hint {
  color: var(--muted);
}
.mn-ok {
  color: var(--ink);
}
.mn-ok strong {
  font-weight: 600;
}
.mn-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.mn-input-row input {
  flex: 1;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  white-space: nowrap;
}
.field-hint {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.field-hint a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mn-discount-row {
  font-size: 0.9rem;
}
.success-detail {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* =========================================================
   SIZE CHART MODAL
   ========================================================= */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.sc-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.sc-modal {
  background: var(--bg);
  border: 1px solid var(--line);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.35s var(--ease);
  overscroll-behavior: contain;
}
.sc-modal-overlay.visible .sc-modal {
  transform: translateY(0);
}

.sc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.sc-modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sc-modal-close {
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  padding: 0.25rem 0.5rem;
}
.sc-modal-close:hover { color: var(--ink); }

.sc-tip {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-left: 2px solid var(--ink);
}

.sc-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.sc-tab {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  background: none;
}
.sc-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.sc-tab:hover { color: var(--ink); }

.sc-tab-content.hidden { display: none; }

.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.sc-table th {
  background: var(--ink);
  color: var(--invert);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  text-align: left;
}
.sc-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.sc-table tbody tr:nth-child(even) td { background: var(--bg-alt); }
.sc-table tbody tr:last-child td { border-bottom: none; }
.sc-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.sc-table td:nth-child(2) {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* Size option — dual label (INT + RU) */
.size-option {
  cursor: pointer;
}
.size-option .size-int {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}
.size-option .size-ru {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 1px;
}

/* Size chart trigger link */
.sc-trigger {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.sc-trigger:hover { color: var(--ink); }

@media (max-width: 600px) {
  .sc-modal {
    padding: 1.25rem;
    max-height: 85vh;
  }
  .sc-table th,
  .sc-table td { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
}

/* =========================================================
   CATEGORY CARD VISUAL DIFFERENTIATION
   ========================================================= */

/* SUITS / OUTER — dark atmospheric style */
.product--dark .product-info {
  background: var(--ink);
  color: var(--invert);
}
.product--dark .product-info h4 {
  color: var(--invert);
}
.product--dark .product-info .product-code {
  color: rgba(239, 239, 237, 0.5);
}
.product--dark .product-info .price {
  color: var(--invert);
  opacity: 0.9;
}
.product--dark .product-img {
  background: var(--bg-dark);
}
.product--dark .ribbon {
  background: var(--invert);
  color: var(--ink);
}

/* BASICS — light minimal clean style */
.product--light .product-info {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.product--light .product-img {
  background: var(--bg-alt);
}
.product--light .ribbon--new {
  background: var(--ink);
  color: var(--invert);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}
.product--light .product-info h4 {
  font-weight: 500;
  letter-spacing: 0.02em;
}
.product--light .product-info .product-code {
  opacity: 0.5;
}

/* =========================================================
   CATEGORY HEADER THEMING
   ========================================================= */

/* Dark header for suits page */
.cat-header--dark {
  background: var(--bg-dark);
  color: var(--invert);
}
.cat-header--dark .h-section,
.cat-header--dark h1 { color: var(--invert); }
.cat-header--dark .cat-meta { color: rgba(239,239,237,0.5); }
.cat-header--dark .cat-intro { color: rgba(239,239,237,0.7); }
.cat-header--dark .crumbs { color: rgba(239,239,237,0.4); }
.cat-header--dark .crumbs a { color: rgba(239,239,237,0.5); }

/* Light minimal header for basics page */
.cat-header--light {
  background: var(--bg);
}

/* Section background for suits — dark */
.section--dark {
  background: #141414;
}
.section--dark .filters .chip {
  border-color: rgba(239,239,237,0.2);
  color: rgba(239,239,237,0.6);
}
.section--dark .filters .chip:hover,
.section--dark .filters .chip.active {
  background: var(--invert);
  color: var(--ink);
  border-color: var(--invert);
}

/* New-badge chip for basics filter */
.chip--new {
  position: relative;
}
.chip--new::before {
  content: '●';
  font-size: 0.5rem;
  color: var(--ink);
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* =========================================================
   PRODUCT TAGS — styled by type
   ========================================================= */
.tag--новинка {
  background: var(--ink);
  color: var(--invert);
}
.tag--флагман {
  background: var(--ink-soft);
  color: var(--invert);
}
.tag--лимит {
  background: #8B6914;
  color: var(--invert);
}
.tag--сезон {
  background: #2C5F2E;
  color: var(--invert);
}
.tag--под-заказ {
  border: 1px solid var(--muted);
  color: var(--muted);
  background: transparent;
}
.tag--база {
  background: var(--bg-alt);
  color: var(--muted);
}
