/* ==========================================================================
   Viva Peptides — storefront
   Implements "Viva Peptides - Redesign v2" from Claude Design.

   Warm paper canvas, white content surfaces, near-black ink, hairline rules
   instead of bordered-card-with-hover-lift. Figtree for text, Roboto Mono
   for every number, lot, SKU and label. One green status mark per card is the
   only accent colour. Imagery sits in honest diagonal-stripe slots captioned
   with the shot that belongs there.
   ========================================================================== */

:root {
  /* --- Surfaces ----------------------------------------------------------- */
  --paper:      #DCD8D0;   /* page canvas behind the content column */
  --surface:    #FFFFFF;   /* content surface */
  --surface-2:  #F5F2EC;   /* warm tint */
  --surface-3:  #EDEAE3;
  --stripe-a:   #EDEAE3;   /* image-slot stripe, dark band */
  --stripe-b:   #F5F2EC;   /* image-slot stripe, light band */
  --stripe-cat-a: #E8E4DC;
  --stripe-cat-b: #F1EEE8;

  /* --- Ink ---------------------------------------------------------------- */
  --ink:        #101314;   /* headings, primary text, dark fills */
  --ink-soft:   #23282B;
  --ink-2:      #3D4143;
  --text:       #55595B;   /* body copy */
  --text-muted: #6E7274;   /* labels, meta — 4.6:1 on white */
  --text-warm:  #63615A;   /* mono captions inside image slots */
  --on-dark:    #B9BDBE;

  /* --- Lines -------------------------------------------------------------- */
  --line:       #E2DED6;
  --line-2:     #DFDBD3;
  --line-3:     #CFCAC1;

  /* --- Accent — brand blue (VP logo navy + label blue) --------------------- */
  --brand-navy: #16294B;   /* the P in the logo */
  --status:     #1358C4;   /* accent: links, marks, active states */

  --bad:  #A33A2C; --bad-bg:  #F7EDEB;
  --warn: #8A6209; --warn-bg: #F7F0E1;
  --ok:   #1358C4; --ok-bg:   #E8EFFA;

  /* --- Type --------------------------------------------------------------- */
  --font: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-hero:  62px;
  --fs-h2:    34px;
  --fs-h3:    20px;
  --fs-lede:  19px;
  --fs-logo:  23px;
  --fs-base:  15px;
  --fs-link:  14.5px;
  --fs-sm:    13.5px;
  --fs-xs:    12.5px;
  --fs-label: 12px;
  --fs-mono:  11px;

  /* --- Geometry ----------------------------------------------------------- */
  --shell:    1240px;
  --pad-x:    32px;
  --r-slot:   18px;   /* product / category image slots */
  --r-block:  24px;   /* editorial blocks */
  --r-sm:     10px;
  --r-pill:   999px;
  --header-h: 72px;
  --control-h: 49px;  /* shared height for .btn / .input / .select so paired rows align */

  /* --- Compatibility aliases ---------------------------------------------- *
   * The admin theme and some inline styles were written against the previous
   * token names. Keep them resolving so nothing loses its colour.           */
  --bg: var(--surface);
  --canvas: var(--paper);
  --surface-alt: var(--surface-2);
  --charcoal: var(--text);
  --charcoal-deep: var(--ink);
  --navy: var(--ink);
  --navy-deep: var(--ink);
  --navy-700: #23407C; --navy-800: #1B3161; --navy-850: #172A54;
  --navy-900: #122142; --navy-950: #0B1428;
  --secondary: var(--ink);
  --primary: var(--ink);
  --primary-hover: var(--ink-soft);
  --primary-tint: var(--status);
  --blue: var(--status);   --blue-50: var(--ok-bg);
  --blue-300: var(--status); --blue-400: var(--status);
  --blue-500: var(--status); --blue-600: var(--status); --blue-700: var(--status);
  --ink-300: #CFCAC1; --ink-400: var(--text-muted);
  --ink-500: var(--text); --ink-600: var(--text); --ink-700: var(--text);
  --line-soft: #EDEAE3;
  --radius: var(--r-sm); --radius-sm: 6px; --radius-md: var(--r-sm);
  --radius-lg: var(--r-slot); --radius-xl: var(--r-block); --radius-full: var(--r-pill);
  --r-md: var(--r-sm); --r-card: var(--r-slot); --r-lg: var(--r-block);
  --wrap: var(--shell); --gutter: var(--pad-x); --container: var(--shell);
  --font-display: var(--font); --font-num: var(--mono);
  --text-xs: var(--fs-xs); --text-sm: var(--fs-sm); --text-base: var(--fs-base);
  --text-lg: 16px; --text-xl: var(--fs-h3); --text-2xl: 26px;
  --text-3xl: var(--fs-h2); --text-4xl: clamp(34px, 5vw, var(--fs-hero));
  --space-1: 8px; --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-6: 48px; --space-8: 64px; --space-12: 96px;
  --shadow-card: none; --shadow-soft: none;
  --logo-ink: #111318; --logo-navy: var(--brand-navy);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* The whole site sits on a white column over the warm canvas. */
main, .site-header, .site-footer, .announce { background: var(--surface); }
main { display: block; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--status); }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.1; color: var(--ink);
}
h1 { font-size: clamp(34px, 5vw, var(--fs-hero)); letter-spacing: -0.04em; }
h2 { font-size: clamp(26px, 3.2vw, var(--fs-h2)); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
h4 { font-size: 16px; letter-spacing: -0.02em; }
p, ul, ol, li, figure, blockquote { margin: 0; }

/* --- Type helpers --------------------------------------------------------- */
.mono, .num, .price, .spec-table td, .table .num {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
/* Small uppercase section label — mono, tracked. */
.label {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 400;
}
/* Sentence-case section heading, tracked uppercase (the "Browse by category" rule) */
.rule-head {
  font-size: var(--fs-base); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.lede { font-size: var(--fs-lede); color: var(--text); max-width: 46ch; line-height: 1.55; }
.kicker, .muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.tiny  { font-size: var(--fs-label); }
.eyebrow {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.text-right { text-align: right; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Skip-to-content link becomes visible when keyboard-focused. */
a.visually-hidden:focus-visible {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  width: auto; height: auto; padding: 10px 16px; clip: auto; white-space: normal;
  background: var(--ink); color: #fff; border-radius: var(--r-sm);
}

/* --- Image slots ---------------------------------------------------------- *
 * Diagonal stripes stand in for photography that does not exist yet, with a
 * mono caption naming the shot that belongs there. Drop a real <img> inside
 * and it covers the stripes without any other change.                       */
.slot {
  position: relative; overflow: hidden;
  border-radius: var(--r-slot);
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px);
  display: flex; align-items: flex-end; padding: 16px;
}
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot__note {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-warm);
}
.slot--cat { background: repeating-linear-gradient(135deg, var(--stripe-cat-a) 0 8px, var(--stripe-cat-b) 8px 16px); }
.slot--dark {
  background: repeating-linear-gradient(135deg, #1A1E21 0 10px, #23282B 10px 20px);
}
.slot--dark .slot__note { color: rgb(255 255 255 / .5); }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); }
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 1000px; }

.section { padding-block: 64px; }
.section--tight { padding-block: 44px; }
.section--flush { padding-top: 0; }
.section--surface, .section--alt { background: var(--surface-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .muted, .section--dark .kicker { color: rgb(255 255 255 / .68); }

/* Section heading row: heading left, "Shop all ▸" right, hairline under. */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; }
.section-head p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 4px; }
.section-head--plain { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.more-link { font-size: var(--fs-link); font-weight: 600; color: var(--ink); white-space: nowrap; }
.more-link::after { content: " ▸"; font-size: 12px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; min-height: var(--control-h);
  font-size: var(--fs-link); font-weight: 600; letter-spacing: -0.01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--ink-soft); color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }

.btn--primary { --btn-bg: var(--ink); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--white:hover { background: var(--surface-2); color: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-3); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .4); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .1); color: #fff; }
.btn--danger { --btn-bg: var(--bad); }
.btn--sm { padding: 8px 16px; min-height: 38px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 34px; min-height: 56px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { padding: 9px; aspect-ratio: 1; }
.btn .caret { font-size: 13px; }

.link { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-3); }
.link:hover { color: var(--status); border-bottom-color: var(--status); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-link); font-weight: 600; color: var(--ink); }
.link-arrow svg { transition: transform .16s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Status marks & badges ------------------------------------------------ */
/* One status mark per card: a dot and a word, in the single accent colour. */
.mark { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; color: var(--status); }
.mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.mark--warn { color: var(--warn); }
.mark--out  { color: var(--bad); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 4px;
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-3); color: var(--ink);
}
.badge--ok    { background: var(--ok-bg);   color: var(--status); }
.badge--warn  { background: var(--warn-bg); color: var(--warn); }
.badge--bad   { background: var(--bad-bg);  color: var(--bad); }
.badge--muted { background: var(--surface-3); color: var(--text-muted); }
.badge--blue  { background: var(--ok-bg); color: var(--status); }
.badge--dark  { background: var(--ink); color: #fff; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line-3);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Announce bar --------------------------------------------------------- */
.announce {
  background: var(--ink); color: var(--on-dark);
  padding: 10px 20px; font-size: 13px; text-align: center;
}
.announce strong, .announce .hi { color: #fff; font-weight: 500; }

/* --- Header --------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header-inner {
  max-width: var(--shell); margin-inline: auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: 44px; min-height: var(--header-h);
}
/* Brand lockup: VP monogram, then VIVA in ink and PEPTIDES in navy —
   tracked caps, matching the label artwork. */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { height: 34px; width: auto; flex-shrink: 0; }
.brand b, .brand .mark-a, .brand span, .brand .mark-b {
  font-size: 17px; letter-spacing: .22em; text-transform: uppercase;
}
.brand b, .brand .mark-a { font-weight: 700; color: var(--ink); }
.brand span, .brand .mark-b { font-weight: 500; color: var(--logo-navy); }
.brand:hover .mark-a { color: var(--ink); }
.brand:hover .mark-b { color: var(--status); }

.nav { display: flex; align-items: center; gap: 30px; font-size: var(--fs-base); font-weight: 500; }
.nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.nav a:hover { color: var(--status); }
.nav a.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -14px;
  min-width: 280px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: var(--fs-link); font-weight: 500; }
.dropdown a span { display: block; font-size: var(--fs-label); font-weight: 400; color: var(--text-muted); margin-top: 1px; }
.dropdown a:hover { background: var(--surface-2); color: var(--ink); }
.dropdown-foot { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }

/* Text links, not a row of icon buttons. */
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: var(--fs-base); }
.header-actions a { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.header-actions a:hover { color: var(--status); }
.header-actions .cart-link { font-weight: 500; color: var(--ink); }
.cart-count { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-muted); }
.cart-count[data-count="0"] { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.icon-btn:hover { color: var(--status); }
.burger { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad-x); border-bottom: 1px solid var(--line); }
.mobile-nav-body { padding: 8px var(--pad-x) 40px; }
.mobile-nav-body a { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--ink); }
.mobile-nav-body .sub a { padding-left: 14px; font-weight: 400; color: var(--text); }
.mobile-nav-body h4 { margin: 22px 0 2px; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 400; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; align-items: end; min-height: 560px;
  background: repeating-linear-gradient(135deg, #1A1E21 0 10px, #23282B 10px 20px);
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(16 19 20 / .1) 0%, rgb(16 19 20 / .72) 78%);
}
.hero__note {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .45);
  text-align: center;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 760px; margin-inline: auto; width: 100%;
  padding: 0 var(--pad-x) 72px;
}
.hero h1 { color: #fff; letter-spacing: -0.04em; }
.hero p { font-size: var(--fs-lede); color: rgb(255 255 255 / .78); max-width: 46ch; margin-top: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; color: rgb(255 255 255 / .6); }

/* --- Category tiles ------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  aspect-ratio: 3 / 4; border-radius: var(--r-slot); overflow: hidden;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; color: var(--ink);
  background: repeating-linear-gradient(135deg, var(--stripe-cat-a) 0 8px, var(--stripe-cat-b) 8px 16px);
  transition: filter .18s ease;
}
.cat-card:hover { filter: brightness(.965); color: var(--ink); }
.cat-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card__note {
  position: absolute; top: 16px; left: 16px; right: 16px;
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-warm);
}
.cat-card__name { position: relative; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.cat-card__count { position: relative; font-size: var(--fs-xs); color: var(--text); margin-top: 2px; font-family: var(--mono); }

/* --- Product cards -------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .product-grid { grid-template-columns: 1fr; } }

.pcard { display: flex; flex-direction: column; }
.pcard__shot {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--r-slot);
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px);
  transition: filter .18s ease;
}
.pcard:hover .pcard__shot { filter: brightness(.965); }
.pcard__shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__note {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-warm);
}
.pcard__flag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 10px; border-radius: 4px;
  background: var(--ink); color: #fff;
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.pcard__flag--out { background: var(--bad); }

.pcard__body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.pcard__meta { display: flex; align-items: center; gap: 10px; }
.pcard__cat {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
}
.pcard__rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--text); font-family: var(--mono); }
.pcard__rating svg { color: var(--ink); }
.pcard__name { font-size: var(--fs-h3); margin-top: 8px; }
.pcard__tagline { font-size: var(--fs-link); color: var(--text); margin-top: 4px; line-height: 1.45; min-height: 42px; }
.pcard .mark { margin-top: 10px; }

.pcard__sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pcard__size {
  padding: 6px 11px; border: 1px solid var(--line-3); border-radius: 6px;
  background: #fff; color: var(--ink);
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pcard__size:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.pcard__size.is-out { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.pcard__size.is-out:hover { background: #fff; border-color: var(--line-3); color: var(--ink); }
.pcard__size.is-busy { opacity: .5; pointer-events: none; }

.pcard__buy {
  width: 100%; margin-top: 14px; padding: 14px 18px;
  background: var(--ink); color: #fff; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--fs-link); font-weight: 600;
  transition: background-color .16s ease;
}
.pcard__buy:hover { background: var(--ink-soft); color: #fff; }
/* Bottom-align the buy bar across equal-height grid rows while keeping the
   14px minimum gap: spare space goes above the buy bar, not into its margin. */
.pcard__body > :has(+ .pcard__buy) { margin-bottom: auto; }
.pcard__buy .price { font-family: var(--mono); font-weight: 500; }
.pcard.is-sold-out .pcard__buy { background: var(--surface-3); color: var(--text-muted); pointer-events: none; }

.stars { display: inline-flex; gap: 1px; color: var(--ink); }
.stars svg { width: 12px; height: 12px; }
.stars--lg svg { width: 16px; height: 16px; }

/* --- Editorial two-column blocks ------------------------------------------ */
.editorial { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-block); overflow: hidden; background: var(--surface-2); }
@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; } }
.editorial__slot { min-height: 320px; }
.editorial .slot { border-radius: 0; }  /* outer block already clips at --r-block */
.editorial__body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.editorial__body h3 { font-size: 26px; }
.editorial__body p { font-size: var(--fs-link); color: var(--text); line-height: 1.6; }
.editorial--flip .editorial__slot { order: 2; }

/* --- Fact strip (replaces the black stats band) --------------------------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; gap: 28px; } }
.fact__k { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.fact h3 { font-size: 19px; margin-top: 10px; }
.fact p { font-size: var(--fs-link); color: var(--text); margin-top: 6px; line-height: 1.55; }

/* --- Cards & panels ------------------------------------------------------- */
.card { --card-pad: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--card-pad); }
.card--flat { background: var(--surface-2); border-color: transparent; }
.card--pad-lg { --card-pad: 32px; }
.card--outline { background: transparent; }
a.card { transition: border-color .15s ease; }
a.card:hover { border-color: var(--ink); color: inherit; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 20px;
  padding: 16px var(--card-pad); border-bottom: 1px solid var(--line);
}
.card__head h3 { font-size: 16px; }
.panel { padding: 18px 20px; border-radius: var(--r-sm); background: var(--surface-2); }
.panel--info   { background: var(--surface-2); border-left: 2px solid var(--status); }
.panel--warn   { background: var(--warn-bg); }
.panel--danger { background: var(--bad-bg); }

/* --- Product detail ------------------------------------------------------- */
.pdp { display: grid; gap: 48px; padding-block: 32px 8px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0,1fr) minmax(0,440px); gap: 56px; } }
.pdp-main { aspect-ratio: 4/5; border-radius: var(--r-slot); overflow: hidden; position: relative; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px); }
.pdp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pdp-thumbs button { width: 64px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.pdp-thumbs button.is-active, .pdp-thumbs button:hover { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 6px; }
.pdp-tagline { font-size: 16px; color: var(--text); }
.pdp-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 18px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 4px; }
.pdp-price b { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.pdp-price s { font-family: var(--mono); font-size: 16px; color: var(--text); }

.variant-picker { margin: 22px 0; }
.variant-picker > span { display: block; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-options label {
  position: relative; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 1px solid var(--line-3); border-radius: var(--r-sm); background: #fff;
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 500;
  transition: border-color .15s ease, background-color .15s ease;
}
.variant-options input { position: absolute; opacity: 0; pointer-events: none; }
.variant-options label:hover { border-color: var(--ink); }
.variant-options label:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.variant-options label:has(input:disabled) { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.variant-options small { display: block; font-size: 11px; opacity: .7; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-3); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 48px; display: grid; place-items: center; color: var(--text); }
.qty button:hover { color: var(--ink); }
.qty input { width: 44px; height: 48px; text-align: center; border: 0; background: transparent; font-family: var(--mono); font-weight: 500; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 34px; height: 38px; }
.qty--sm input { width: 36px; height: 38px; }

.pdp-actions { display: flex; gap: 10px; margin: 20px 0 14px; }
.pdp-actions .btn { flex: 1; height: 50px; }

.stock-line { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; color: var(--status); }
.stock-line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock-line--in  { color: var(--status); }
.stock-line--low { color: var(--warn); }
.stock-line--out { color: var(--bad); }

.pdp-assurance { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.pdp-assurance li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text); }
.pdp-assurance svg { color: var(--ink); flex-shrink: 0; margin-top: 2px; }

.coa-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px; background: var(--surface-2); border-radius: var(--r-sm); }
.coa-card .ico { color: var(--ink); flex-shrink: 0; }
.coa-card strong { display: block; font-size: var(--fs-link); }
.coa-card span { font-family: var(--mono); font-size: var(--fs-label); color: var(--text-muted); }

.spec-table { border-top: 1px solid var(--line); }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 11px 0; text-align: left; font-size: var(--fs-sm); }
.spec-table th { width: 42%; font-weight: 400; color: var(--text-muted); }
.spec-table td { font-family: var(--mono); font-size: var(--fs-xs); text-align: right; color: var(--ink); word-break: break-word; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.accordion details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.accordion .content { padding: 0 0 22px; color: var(--text); font-size: var(--fs-link); line-height: 1.65; }
.accordion .content > * + * { margin-top: 12px; }

.prose { font-size: 16px; line-height: 1.72; color: var(--text); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; margin-top: 1.9em; }
.prose h3 { font-size: 18px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--status); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose table { border-top: 1px solid var(--line); font-size: var(--fs-link); }
.prose th, .prose td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); }
.prose blockquote, .prose .note { padding: 16px 20px; background: var(--surface-2); border-left: 2px solid var(--status); font-size: var(--fs-link); }

/* --- Reviews -------------------------------------------------------------- */
.review-summary { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .review-summary { grid-template-columns: 200px 1fr; } }
.review-score { padding: 22px; background: var(--surface-2); border-radius: var(--r-sm); text-align: center; }
.review-score b { display: block; font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.review-bars { display: grid; gap: 7px; }
.review-bar { display: grid; grid-template-columns: 46px 1fr 32px; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--fs-label); }
.review-bar .track { height: 4px; background: var(--surface-3); overflow: hidden; }
.review-bar .fill { height: 100%; background: var(--ink); }
.review { padding: 22px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-family: var(--mono); font-size: var(--fs-label); }
.review-reply { margin-top: 14px; padding: 14px 18px; background: var(--surface-2); border-left: 2px solid var(--line-3); font-size: var(--fs-link); }

/* --- Forms ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label-text { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field .hint { font-size: var(--fs-label); color: var(--text-muted); }
.field .err { font-size: var(--fs-label); color: var(--bad); font-weight: 500; }

.input, .select, .textarea {
  width: 100%; padding: 12px 14px; background: #fff; color: var(--ink);
  border: 1px solid var(--line-3); border-radius: var(--r-sm); font-size: var(--fs-link);
  transition: border-color .15s ease;
}
input.input, .select { height: var(--control-h); padding-block: 0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236E7274' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--text-muted); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--fs-link); line-height: 1.55; }
.check input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; }
.fieldset legend { padding: 0 8px; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }

/* --- Flash ---------------------------------------------------------------- */
.flashes { position: fixed; top: 88px; right: 24px; z-index: 200; display: grid; gap: 8px; max-width: 360px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; background: var(--ink); color: #fff; font-size: var(--fs-link); border-radius: var(--r-sm); animation: flash-in .22s ease; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }
.flash--success { background: var(--status); }
.flash--error   { background: var(--bad); }
.flash--info    { background: var(--ink-2); }
.flash button { margin-left: auto; color: rgb(255 255 255 / .6); flex-shrink: 0; }
.flash button:hover { color: #fff; }
@media (max-width: 560px) { .flashes { left: 12px; right: 12px; max-width: none; } }

/* --- Cart ----------------------------------------------------------------- */
.cart-layout { display: grid; gap: 40px; align-items: start; padding-block: 32px 64px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; } }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 92px; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; position: relative; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px); }
.cart-line__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-line__body { min-width: 0; }
.cart-line__body h3 { font-size: 17px; margin-bottom: 3px; }
.cart-line__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--mono); }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line__img { width: 72px; }
  .cart-line__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-rows { display: grid; gap: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-link); }
.summary-row > span:last-child:not(.muted) { font-family: var(--mono); color: var(--ink); }
.summary-row--total { border-bottom: 0; padding-top: 16px; font-size: 19px; font-weight: 600; color: var(--ink); }
.summary-row--total > span:last-child { font-size: 19px; font-weight: 500; }
.summary-row .neg { color: var(--status); }
.ship-meter .track { height: 3px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.ship-meter .fill { height: 100%; background: var(--ink); transition: width .4s ease; }

/* --- Checkout ------------------------------------------------------------- */
.checkout-layout { display: grid; gap: 44px; align-items: start; padding-block: 32px 64px; }
@media (min-width: 940px) { .checkout-layout { grid-template-columns: 1fr 380px; gap: 56px; } }
.checkout-steps { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.checkout-steps b { color: var(--ink); font-weight: 500; }
.checkout-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.checkout-section:last-of-type { border-bottom: 0; }
.checkout-section h2 { font-size: 20px; margin-bottom: 18px; }
.ship-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-3); border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ship-option:hover { border-color: var(--ink); }
.ship-option:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.ship-option input { accent-color: var(--ink); width: 16px; height: 16px; }
.ship-option strong { font-size: var(--fs-link); font-weight: 600; }
.ship-option span { font-size: var(--fs-label); color: var(--text-muted); }
.ship-option b { margin-left: auto; font-family: var(--mono); font-size: var(--fs-link); font-weight: 500; }

.mini-line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-line__img { position: relative; width: 52px; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px); }
.mini-line__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-line__qty { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 10px; }
.mini-line__body { min-width: 0; flex: 1; }
.mini-line__body strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.mini-line__body span { font-family: var(--mono); font-size: var(--fs-label); color: var(--text-muted); }

.pay-frame { min-height: 440px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; padding: 32px; }
.sandbox-banner { display: flex; align-items: center; gap: 10px; padding: 13px 16px; margin-bottom: 20px; background: var(--warn-bg); font-size: var(--fs-sm); color: var(--warn); border-radius: var(--r-sm); }

/* --- Timeline ------------------------------------------------------------- */
.timeline { display: grid; }
.timeline li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-muted); z-index: 1; }
.timeline li.is-done .dot { background: var(--status); color: #fff; }
.timeline li.is-current .dot { background: var(--ink); color: #fff; }
.timeline strong { font-size: var(--fs-link); }
.timeline span { font-family: var(--mono); font-size: var(--fs-label); color: var(--text-muted); }

/* --- Tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { font-size: var(--fs-link); }
.table th { padding: 12px 16px 12px 0; text-align: left; white-space: nowrap; font-family: var(--mono); font-size: var(--fs-mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.table td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; padding-right: 0; }

/* --- Pagination ----------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: var(--fs-xs);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .gap { border-color: transparent; color: var(--text-muted); }

/* --- Shop layout ---------------------------------------------------------- */
.shop-layout { display: grid; gap: 40px; align-items: start; padding-block: 24px 64px; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 210px 1fr; gap: 48px; } }
.shop-filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-group + .filter-group { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.filter-group h4 { font-family: var(--mono); font-size: var(--fs-mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.filter-group a:not(.btn) { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: var(--fs-link); color: var(--text); }
.filter-group a:not(.btn):hover { color: var(--ink); }
.filter-group a.is-active { color: var(--ink); font-weight: 600; }
.filter-group a em { font-style: normal; font-family: var(--mono); font-size: var(--fs-label); color: var(--text-muted); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.empty-state { text-align: center; padding: 72px 24px; background: var(--surface-2); border-radius: var(--r-sm); }
.empty-state .ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: #fff; color: var(--text-muted); }

/* --- Breadcrumbs & page head ---------------------------------------------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-label); color: var(--text-muted); flex-wrap: wrap; padding-top: 24px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-3); }
.page-head { padding-block: 36px 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }

/* --- Newsletter band ------------------------------------------------------ */
.newsletter { background: var(--ink); color: #fff; }
.newsletter__inner { max-width: var(--shell); margin-inline: auto; padding: 56px var(--pad-x); display: grid; grid-template-columns: 1fr 480px; gap: 40px; align-items: center; }
@media (max-width: 900px) { .newsletter__inner { grid-template-columns: 1fr; gap: 24px; } }
.newsletter h2 { color: #fff; font-size: 32px; }
.newsletter p { font-size: 16px; color: rgb(255 255 255 / .68); margin-top: 8px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 14px 16px; background: rgb(255 255 255 / .08); color: #fff; border: 1px solid rgb(255 255 255 / .22); border-radius: var(--r-sm); font-size: var(--fs-link); }
.newsletter input::placeholder { color: rgb(255 255 255 / .42); }
.newsletter input:focus { outline: none; border-color: rgb(255 255 255 / .5); }
.newsletter small { display: block; margin-top: 12px; font-size: var(--fs-xs); color: rgb(255 255 255 / .5); }

/* Inset dark call-to-action band (e.g. the calculator promo on Guides). */
.cta-band {
  background: var(--ink); color: #fff; border-radius: var(--r-block);
  padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px 40px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { font-size: var(--fs-link); color: rgb(255 255 255 / .68); margin-top: 8px; max-width: 60ch; }
@media (max-width: 560px) { .cta-band { padding: 28px 24px; } }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner { max-width: var(--shell); margin-inline: auto; padding: 44px var(--pad-x); }
.footer-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-muted); }
.footer-legal .contact { margin-left: auto; font-size: var(--fs-link); color: var(--text); }
.footer-legal .ro { font-weight: 600; color: var(--ink); }
.footer-disclaimer { font-size: var(--fs-label); color: var(--text-muted); max-width: 110ch; margin-top: 20px; line-height: 1.65; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-bottom: 32px; }
.site-footer h4 { font-family: var(--mono); font-size: var(--fs-mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.site-footer li + li { margin-top: 9px; }
.site-footer a { font-size: var(--fs-link); color: var(--text); }
.site-footer a:hover { color: var(--ink); }

/* --- Cart drawer ---------------------------------------------------------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgb(16 19 20 / .4); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1); }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }

/* --- Calculator ----------------------------------------------------------- */
.calc-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .calc-layout { grid-template-columns: 1fr 340px; } }
.calc-result { padding: 28px; background: var(--ink); color: #fff; border-radius: var(--r-sm); }
.calc-result dt { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .5); }
.calc-result dd { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 4px 0 22px; }
.calc-result dd:last-child { margin-bottom: 0; }
.calc-result .unit { font-size: var(--fs-sm); color: rgb(255 255 255 / .55); }

/* --- Scroll reveal -------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* --- Utilities ------------------------------------------------------------ */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hide { display: none !important; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-inner { gap: 20px; }
  .shop-filters { position: static; }
  .summary { position: static; }
  .header-actions { gap: 16px; }
}

@media print {
  .site-header, .site-footer, .flashes, .no-print, .announce { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
}
