/* =====================================================================
   PLATFORM SPARE PARTS — shared stylesheet
   Visual language: StudioBlank (monochrome, flat, hairline, weight-contrast).

   ┌──────────────────────────────────────────────────────────────────┐
   │  DESIGN SYSTEM VARIABLES — swap these for your own brand values.    │
   │  Everything below the variables block reads from these tokens.     │
   └──────────────────────────────────────────────────────────────────┘
   ===================================================================== */
:root {
  /* ---- COLOURS ---------------------------------------------------- */
  --bg:            #FAFAFA;   /* page background            */
  --surface:       #FFFFFF;   /* cards / panels             */
  --surface-muted: #F4F4F5;   /* subtle fills, hover rows   */
  --surface-dark:  #0A0A0A;   /* footer, inverse sections   */

  --ink:           #0A0A0A;   /* primary text & actions     */
  --ink-soft:      #404040;   /* secondary text             */
  --ink-muted:     #71717A;   /* captions, metadata         */
  --ink-faint:     #A1A1AA;   /* disabled, placeholder      */
  --ink-inverse:   #FAFAFA;   /* text on dark surfaces      */

  --line:          #E5E5E5;   /* hairline dividers          */
  --line-default:  #D4D4D8;   /* control / card borders     */
  --line-strong:   #A1A1AA;   /* hover borders              */
  --line-emphasis: #0A0A0A;   /* focus / active             */

  --accent:        #0A0A0A;   /* single accent hook — default = ink. */
  --accent-warm:   #F9A540;   /* logo orange — used sparingly: ticks, index numbers, hero word, basket badge, link hovers */

  /* semantic (system feedback only) */
  --ok:    #16A34A;
  --warn:  #CA8A04;
  --error: #DC2626;

  /* ---- TYPE ------------------------------------------------------- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --w-light: 300;
  --w-reg:   400;
  --w-med:   500;
  --w-semi:  600;
  --w-bold:  700;

  --track-tight:  -0.02em;
  --track-wide:   0.05em;
  --track-wider:  0.14em;

  /* ---- SPACING (base unit 16px) ----------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-8: 96px;
  --s-10: 128px;

  --gutter: clamp(20px, 5vw, 64px);   /* page side padding   */
  --maxw: 1240px;                     /* container width     */

  /* ---- RADIUS — flat, geometric, never rounded -------------------- */
  --radius: 0px;

  /* ---- MOTION — barely perceptible, nothing over 200ms ------------ */
  --dur: 180ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: var(--w-light);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: var(--w-bold); line-height: 1.1; letter-spacing: var(--track-tight); }

/* Accessible focus — 2px solid border, offset. Never a glow ring. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--line-emphasis);
  outline-offset: 2px;
}

::selection { background: var(--ink); color: var(--bg); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s-3); top: -100px;
  background: var(--ink); color: var(--ink-inverse);
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  z-index: 200; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-3); }

/* =====================================================================
   LAYOUT PRIMITIVES
   ===================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, var(--s-8)); }
.section--tight { padding-block: clamp(40px, 6vw, var(--s-6)); }
.section--dark { background: var(--surface-dark); color: var(--ink-inverse); }
.section--muted { background: var(--surface-muted); }

.divider { border: 0; border-top: 1px solid var(--line); }

/* eyebrow / structural label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: var(--w-med);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--accent-warm); display: inline-block;
}
.eyebrow--plain::before { display: none; }
/* leading index number in an eyebrow / cat-tile idx — picks up the logo orange */
.eb-n { color: var(--accent-warm); }
.section--dark .eyebrow { color: var(--ink-faint); }

/* mono metadata */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--ink-muted); }

.lede { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.55; color: var(--ink-soft); font-weight: var(--w-light); max-width: 56ch; }

.section-head { max-width: 64ch; margin-bottom: var(--s-5); }
.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); margin-top: var(--s-3); }
.section-head p { margin-top: var(--s-3); color: var(--ink-muted); font-size: 17px; }

/* =====================================================================
   BUTTONS — flat, sharp, background inverts on hover
   ===================================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--ink-inverse);
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 26px;
  font-size: 14px; font-weight: var(--w-semi);
  letter-spacing: var(--track-wide); text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-default); }
.btn--ghost:hover { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }

.btn--on-dark { --btn-bg: var(--ink-inverse); --btn-fg: var(--ink); --btn-bd: var(--ink-inverse); }
.btn--on-dark:hover { background: transparent; color: var(--ink-inverse); border-color: var(--ink-inverse); }

.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; }

.textlink {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: var(--w-med); font-size: 15px;
  border-bottom: 1px solid var(--line-default);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.textlink:hover { border-color: var(--accent-warm); gap: 12px; }
.textlink svg { width: 15px; height: 15px; }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--s-4);
  height: 116px;
  transition: gap 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .brand-logo-wrap {
  width: 96px; height: 84px;
  flex-shrink: 0;
  display: block;
  position: relative;
  overflow: hidden;
}
.brand .brand-logo {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}
/* remove the faint placeholder fill so a transparent-PNG logo floats free */
.brand .brand-logo::part(frame) { background: transparent; }
/* custom drag-to-resize handle (injected by logo-resize.js) */
.brand .brand-logo-grip {
  position: absolute; right: 0; bottom: 0;
  width: 16px; height: 16px;
  cursor: nwse-resize; z-index: 5;
  opacity: 0; transition: opacity var(--dur) var(--ease);
  touch-action: none;
}
.brand .brand-logo-grip::after {
  content: ""; position: absolute; right: 3px; bottom: 3px;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.brand .brand-logo-wrap:hover .brand-logo-grip,
.brand .brand-logo-grip.is-dragging { opacity: .85; }
.brand .brand-link {
  display: inline-flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand .name { font-weight: var(--w-bold); font-size: 17px; letter-spacing: var(--track-tight); }
.brand .sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-wider);
  text-transform: uppercase; color: var(--ink-muted);
}

.nav { display: flex; align-items: center; gap: var(--s-4); margin-left: var(--s-1);
  transition: gap 320ms cubic-bezier(0.22, 1, 0.36, 1), margin-left 320ms cubic-bezier(0.22, 1, 0.36, 1); }
/* On search open the tabs squish left (tighter gap, smaller margin) to free
   room for the expanding field. JS sizes the field against this squished nav. */
.site-header.search-open .header-inner { gap: var(--s-3); }
.site-header.search-open .nav { gap: var(--s-1); margin-left: var(--s-1); }
.nav a {
  font-size: 14px; font-weight: var(--w-med); color: var(--ink-soft);
  position: relative; padding-block: 4px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; margin-left: auto; }

/* ---- SEARCH ------------------------------------------------------- */
/* The container keeps a FIXED 132px footprint; the input is an overlay
   (position:absolute, right:0) that expands LEFTWARDS on open. The nav
   simultaneously squishes left (.search-open .nav) to free the space, and
   the expanded width is capped by calc(100vw - 825px) — the exact room left
   of the field once brand + tightened nav + basket are accounted for — so
   the field can never reach the tabs. Nav is hidden ≤1180px (below that the
   guaranteed room dips under the full-placeholder width). */
.search { position: relative; display: flex; align-items: center; width: 132px; height: 38px; flex-shrink: 0; }
.search-ico { display: none; }
.search-input {
  position: absolute; right: 0; top: 0;
  width: 132px; height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line-default); border-radius: 0;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
  background-size: 16px 16px;
  color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wide);
  cursor: pointer; outline: none; z-index: 60;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color var(--dur) var(--ease);
}
.search-input::placeholder { color: var(--ink-muted); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-header.search-open .search-input,
.search:focus-within .search-input {
  width: min(366px, calc(100vw - 792px));
  cursor: text; border-color: var(--ink);
}
.search-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(440px, 88vw);
  background: var(--surface); border: 1px solid var(--ink);
  max-height: 72vh; overflow-y: auto; z-index: 200;
}
.search-panel[hidden] { display: none; }
.sr-group {
  padding: 11px 14px 5px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.sr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); cursor: pointer;
}
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover, .sr-item.is-active { background: var(--ink); color: var(--ink-inverse); }
.sr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-title { font-size: 13px; font-weight: var(--w-med); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.sr-item:hover .sr-meta, .sr-item.is-active .sr-meta { color: var(--ink-inverse); }
.sr-tag {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 9px; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid var(--line-default); padding: 2px 6px;
}
.sr-item:hover .sr-tag, .sr-item.is-active .sr-tag { color: var(--ink-inverse); border-color: var(--ink-inverse); }
.sr-price { margin-left: auto; flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.sr-empty { padding: 18px 14px; font-size: 13px; color: var(--ink-soft); }
.sr-more { display: block; padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--track-wide); color: var(--ink-muted); text-decoration: none; border-top: 1px solid var(--line); }
.sr-more:hover { background: var(--surface-muted); color: var(--ink); }
/* Narrowed-desktop / tablet band: KEEP the nav buttons visible at all times.
   Instead of hiding the tabs, tighten them and collapse the search to an icon
   that opens a full-width drop-bar below the header — so the search never needs
   to expand over the tabs. The wordmark drops (logo carries the brand) to free
   the room. The hamburger only takes over below 720px, where 5 links genuinely
   no longer fit. */
@media (max-width: 1180px) {
  .header-inner { gap: var(--s-3); }
  .brand .brand-link { display: none; }
  .nav { gap: var(--s-3); margin-left: var(--s-2); }
  .nav a { font-size: 13px; }
  .site-header.search-open .nav { gap: var(--s-3); margin-left: var(--s-2); }

  /* search → 42px icon button that drops a full-width bar under the header */
  .search { width: 42px; height: 42px; }
  .search-input {
    width: 42px; height: 42px; padding: 0; cursor: pointer;
    color: transparent; background-position: center; border-color: var(--line-default);
  }
  .search-input::placeholder { color: transparent; }
  .site-header.search-open .search,
  .search:focus-within .search { position: static; }
  .site-header.search-open .search-input,
  .search:focus-within .search-input {
    position: fixed; top: 124px; left: 14px; right: 14px; width: auto; z-index: 130;
    height: 48px; padding: 0 16px 0 44px; cursor: text;
    color: var(--ink); background-position: 16px center; border-color: var(--ink);
  }
  .site-header.search-open .search-input::placeholder { color: var(--ink-muted); }
  .search-panel {
    position: fixed; top: calc(124px + 48px + 6px); left: 14px; right: 14px;
    width: auto; max-height: 62vh; border-color: var(--ink);
  }
}
/* True mobile: the 5 links no longer fit alongside logo + search + basket, so
   collapse to the hamburger drawer here (not at 1180px any more). */
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .nav-toggle { display: grid; }
}
.basket-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  border: 1px solid var(--line-default); padding: 9px 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wide);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.basket-link:hover { border-color: var(--ink); }
.basket-link svg { width: 16px; height: 16px; }
.basket-count {
  background: var(--accent-warm); color: var(--ink);
  font-size: 11px; padding: 1px 6px; min-width: 18px; text-align: center;
}

/* ---- MOBILE NAV: hamburger button + slide-in drawer ----
   Button + drawer markup are injected by search.js (shared on every page),
   so no per-page header edits are needed. The button shows whenever the
   inline .nav is hidden (≤720px); the drawer + scrim live on <body>. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-default);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 19px; height: 1.6px; background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { content: ""; position: absolute; left: 0; top: -6px; }
.nav-toggle .bars::after  { content: ""; position: absolute; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

.mnav-scrim {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0; transition: opacity 200ms var(--ease);
}
.mnav-scrim.is-open { opacity: 1; }
.mnav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(84vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--line-default);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 240ms var(--ease);
}
.mnav.is-open { transform: none; }
.mnav-scrim[hidden], .mnav[hidden] { display: none; }
.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--line);
}
.mnav-title {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: var(--track-wider); text-transform: uppercase;
  color: var(--ink-muted);
}
.mnav-close {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; color: var(--ink);
}
.mnav-close svg { width: 20px; height: 20px; }
.mnav-links { display: flex; flex-direction: column; padding: 6px 0; }
.mnav-links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 16px 22px; font-size: 17px; font-weight: var(--w-med);
  color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mnav-links a svg { width: 17px; height: 17px; color: var(--ink-faint); flex-shrink: 0; }
.mnav-links a:hover { background: var(--surface-muted); }
.mnav-links a[aria-current="page"] {
  color: var(--ink); font-weight: var(--w-semi);
  border-left: 2px solid var(--accent-warm); padding-left: 20px;
}
.mnav-links a[aria-current="page"] svg { color: var(--accent-warm); }
.mnav-foot {
  margin-top: auto; padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-block: clamp(56px, 11vw, 120px); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: var(--track-tight);
}
.hero h1 em { font-style: normal; color: var(--accent-warm); }
.hero .lede { margin-top: var(--s-4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-6);
  padding-top: var(--s-4); border-top: 1px solid var(--line);
}
.hero-meta .stat .n { font-family: var(--font-mono); font-size: 26px; font-weight: var(--w-med); letter-spacing: var(--track-tight); }
.hero-meta .stat .l { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

.hero-figure { position: relative; align-self: stretch; min-height: 520px; }
.hero-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 1px solid var(--line-default); }
.hero-figure image-slot.hero-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 1px solid var(--line-default); background: var(--surface-muted, #f4f4f5); }
.hero-tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--ink-inverse);
  padding: 12px 18px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase;
}

/* trusted brands strip */
.brands-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 5vw, 64px);
  padding-block: var(--s-5);
}
.brands-strip .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wider); text-transform: uppercase; color: var(--ink-muted); }
.brands-strip .names { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); }
.brands-strip .names span { font-weight: var(--w-bold); font-size: clamp(16px, 2vw, 22px); letter-spacing: var(--track-tight); color: var(--ink-soft); }

/* =====================================================================
   CATEGORY GRID / PRODUCT CARDS
   ===================================================================== */
.grid { display: grid; gap: 1px; background: var(--line-default); border: 1px solid var(--line-default); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.cat-tile {
  background: var(--surface); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3); min-height: 280px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cat-tile .idx { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: var(--track-wide); }
.cat-tile h3 { font-size: 22px; letter-spacing: var(--track-tight); margin-top: auto; }
.cat-tile p { font-size: 14px; color: var(--ink-muted); }
.cat-tile .cat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.cat-tile .cat-foot .mono { font-size: 12px; color: var(--ink-muted); }
.cat-tile .arrow { transition: transform var(--dur) var(--ease); }
.cat-tile:hover { background: var(--ink); color: var(--ink-inverse); }
.cat-tile:hover .idx, .cat-tile:hover p, .cat-tile:hover .cat-foot .mono { color: var(--ink-faint); }
.cat-tile:hover .cat-foot { border-color: rgba(250,250,250,0.18); }
.cat-tile:hover .arrow { transform: translateX(6px); }

/* product card (image-first) */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.product {
  background: var(--surface); border: 1px solid var(--line-default);
  display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .product:hover { transform: translateY(-6px); box-shadow: 0 10px 24px -12px rgba(10,10,10,0.28); }
}
.product .ph {
  aspect-ratio: 4/3; background: var(--surface-muted);
  filter: grayscale(1) contrast(1.04); object-fit: cover; width: 100%;
  border-bottom: 1px solid var(--line-default);
}
.product .body { padding: var(--s-3) var(--s-4) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.product .pn { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); letter-spacing: var(--track-wide); }
.product h3 { font-size: 17px; font-weight: var(--w-semi); letter-spacing: 0; line-height: 1.3; }
.product .brandtag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--track-wide);
  border: 1px solid var(--line-default); padding: 2px 8px; color: var(--ink-soft);
}
.product .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.product .price { font-family: var(--font-mono); font-size: 18px; font-weight: var(--w-med); }
.product .price small { color: var(--ink-muted); font-weight: var(--w-reg); font-size: 11px; }
.product .add {
  border: 1px solid var(--ink); background: var(--ink); color: var(--ink-inverse);
  padding: 8px 14px; font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.product .add:hover { background: transparent; color: var(--ink); }
.stock { font-family: var(--font-mono); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.stock::before { content: ""; width: 7px; height: 7px; background: var(--ok); display: inline-block; }
.stock--low::before { background: var(--warn); }

/* category page: view-only product card action (no price published) */
.product .view {
  width: 100%; text-align: center;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 10px 14px; font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.product .view:hover { background: var(--ink); color: var(--ink-inverse); }
.product .row--single { justify-content: stretch; }
.cat-empty { text-align: center; padding: var(--s-7) var(--s-4); border: 1px dashed var(--line-default); }
.cat-empty p { color: var(--ink-muted); margin-bottom: var(--s-4); max-width: 46ch; margin-inline: auto; }

/* uploadable image slot on product cards (grey placeholder) */
.product .ph-link { display: block; cursor: pointer; }
.product .ph-slot { width: 100%; height: auto; aspect-ratio: 3/4; display: block; background: var(--surface-muted); border-bottom: 1px solid var(--line-default); }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------------
   3D product viewer (placeholder demo on first best-seller card).
   Matches the portrait image-slot footprint so the card layout is unchanged. */
.product--3d .m3d-wrap {
  position: relative; width: 100%; aspect-ratio: 3/4;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line-default);
  overflow: hidden;
}
.product--3d .m3d {
  width: 100%; height: 100%; display: block;
  background: transparent;
  --poster-color: transparent;
  cursor: grab;
}
.product--3d .m3d:active { cursor: grabbing; }
/* small wayfinding hint, fades out once you grab the model */
.product--3d .m3d-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--ink-muted);
  background: rgba(255,255,255,0.82); padding: 4px 9px;
  pointer-events: none; opacity: 1; transition: opacity var(--dur) var(--ease);
}
.product--3d .m3d-wrap:hover .m3d-hint { opacity: 0; }

/* product detail page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.pd-gallery { display: flex; flex-direction: column; gap: var(--s-3); }
/* height:auto lets aspect-ratio drive the box — without it the component's
   built-in :host{height:160px} wins and collapses the frame to a sideways strip.
   fit=contain (set on the element) shows uploads at their natural proportions. */
.pd-main { width: 100%; height: auto; aspect-ratio: 3/4; display: block; background: var(--surface-muted); border: 1px solid var(--line-default); }
.pd-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-3); }
.pd-thumbs image-slot { width: 100%; height: auto; aspect-ratio: 1/1; display: block; background: var(--surface-muted); border: 1px solid var(--line-default); }
/* video tile — matches the square image thumbs, poster + play badge */
.pd-video-thumb { position: relative; width: 100%; aspect-ratio: 1/1; background: #0A0A0A; border: 1px solid var(--line-default); cursor: pointer; overflow: hidden; }
.pd-video-thumb .pd-vposter { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.78; transition: opacity 160ms var(--ease, cubic-bezier(0.4,0,0.2,1)); }
.pd-video-thumb:hover .pd-vposter { opacity: 1; }
.pd-video-thumb .pd-vbadge { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #FAFAFA; pointer-events: none; }
.pd-video-thumb .pd-vbadge svg { width: 30px; height: 30px; }
.pd-video-thumb .pd-vbadge > span { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.pd-video-thumb:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 2px; }
.pd-price { margin: var(--s-2) 0 var(--s-1); }
.pd-price .price { font-size: 26px; }
.price--call { font-family: var(--font-mono); font-size: 15px; color: var(--ink-muted); }
.pd-desc { margin-top: var(--s-4); }
.pd-desc p { color: var(--ink-soft); line-height: 1.7; margin-bottom: var(--s-3); }
.pd-info { display: flex; flex-direction: column; gap: var(--s-3); }
.pd-info h1 { font-size: clamp(28px,4vw,40px); letter-spacing: var(--track-tight); line-height: 1.05; }
.pd-info .pn { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); letter-spacing: var(--track-wide); }
.pd-info .lede { font-size: 16px; color: var(--ink-muted); font-weight: var(--w-light); line-height: 1.6; }
.pd-specs { list-style: none; padding: 0; margin: var(--s-3) 0 0; border-top: 1px solid var(--line); }
.pd-specs li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-specs li .k { color: var(--ink-muted); }
.pd-specs li .v { font-family: var(--font-mono); }
.pd-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
@media (max-width: 760px){ .product-detail { grid-template-columns: 1fr; } }

/* =====================================================================
   PROCESS TIMELINE  (unique section)
   ===================================================================== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-default); }
.tl-step { padding: var(--s-5) var(--s-4) var(--s-4) 0; border-top: 2px solid transparent; position: relative; }
.tl-step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 40%; height: 2px; background: var(--ink);
}
.tl-step .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wide); color: var(--ink-muted); }
.tl-step h3 { font-size: 20px; margin-top: var(--s-4); letter-spacing: 0; }
.tl-step p { font-size: 14px; color: var(--ink-muted); margin-top: var(--s-2); }

/* =====================================================================
   COMPARISON TABLE  (unique section)
   ===================================================================== */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 18px var(--s-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--ink-muted); font-weight: var(--w-med); border-bottom: 1px solid var(--line-default); }
.compare tbody th { font-weight: var(--w-med); color: var(--ink); }
.compare .col-us { background: var(--ink); color: var(--ink-inverse); }
.compare thead .col-us { background: var(--ink); color: var(--ink-inverse); }
.compare .tick { display: inline-block; }
.compare .tick svg { width: 18px; height: 18px; }
.compare .dash { color: var(--ink-faint); }

/* =====================================================================
   STATS  (unique section)
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(250,250,250,0.14); border: 1px solid rgba(250,250,250,0.14); }
.stat-cell { background: var(--surface-dark); padding: var(--s-5) var(--s-4); }
.stat-cell .n { font-family: var(--font-mono); font-size: clamp(34px, 5vw, 52px); font-weight: var(--w-med); letter-spacing: var(--track-tight); line-height: 1; color: var(--accent-warm); }
.stat-cell .l { font-size: 14px; color: var(--ink-faint); margin-top: var(--s-3); }
/* light variant */
.stats--light { background: var(--line-default); border-color: var(--line-default); }
.stats--light .stat-cell { background: var(--surface); }
.stats--light .stat-cell .l { color: var(--ink-muted); }

/* =====================================================================
   TESTIMONIAL GRID  (unique section)
   ===================================================================== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.quote { border: 1px solid var(--line-default); background: var(--surface); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.quote .stars { display: flex; gap: 3px; }
.quote .stars svg { width: 15px; height: 15px; }
.quote blockquote { font-size: 17px; line-height: 1.5; font-weight: var(--w-light); }
.quote .who { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.quote .who .av { width: 38px; height: 38px; border-radius: 0; background: var(--surface-muted); filter: grayscale(1); object-fit: cover; }
.quote .who .nm { font-weight: var(--w-semi); font-size: 14px; }
.quote .who .rl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: var(--track-wide); }

/* =====================================================================
   FAQ ACCORDION (CSS details/summary)  (unique section)
   ===================================================================== */
.faq { border-top: 1px solid var(--line-default); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s-4) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-size: clamp(17px, 2.2vw, 20px); font-weight: var(--w-semi); letter-spacing: var(--track-tight);
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--ink); transition: transform var(--dur) var(--ease); }
.faq summary .pm::before { top: 50%; left: 0; width: 18px; height: 1.5px; transform: translateY(-50%); }
.faq summary .pm::after { left: 50%; top: 0; width: 1.5px; height: 18px; transform: translateX(-50%); }
.faq details[open] summary .pm::after { transform: translateX(-50%) scaleY(0); }
.faq summary:hover { color: var(--ink-soft); }
.faq details > div { padding: 0 40px var(--s-4) 0; color: var(--ink-muted); font-size: 16px; max-width: 80ch; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { display: grid; grid-template-columns: 1.4fr auto; gap: var(--s-5); align-items: center; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 48px); }
.cta-band p { color: var(--ink-faint); margin-top: var(--s-3); max-width: 50ch; }
.cta-band .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* =====================================================================
   PAGE HEADER (interior pages)
   ===================================================================== */
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wide); color: var(--ink-muted); display: flex; gap: var(--s-2); margin-bottom: var(--s-4); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--ink-faint); }
.page-head h1 { font-size: clamp(36px, 6vw, 64px); }
.page-head p { margin-top: var(--s-4); font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 58ch; font-weight: var(--w-light); }

/* =====================================================================
   PROSE (legal / about body)
   ===================================================================== */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose h3 { font-size: 18px; font-weight: var(--w-semi); letter-spacing: 0; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p { color: var(--ink-soft); margin-bottom: var(--s-3); }
.prose ul { margin: 0 0 var(--s-3) 0; display: flex; flex-direction: column; gap: var(--s-2); }
.prose ul li { position: relative; padding-left: var(--s-4); color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 1px; background: var(--ink); }
.prose .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ink-muted); }
.prose a:not(.btn) { border-bottom: 1px solid var(--line-default); }
.prose a:not(.btn):hover { border-color: var(--ink); }

/* two-column about layout */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 1px solid var(--line-default); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-default); border: 1px solid var(--line-default); }
.value { background: var(--surface); padding: var(--s-5); }
.value .ic { width: 28px; height: 28px; margin-bottom: var(--s-4); }
.value .ic svg { width: 28px; height: 28px; stroke: var(--ink); }
.value h3 { font-size: 18px; font-weight: var(--w-semi); letter-spacing: 0; }
.value p { font-size: 14px; color: var(--ink-muted); margin-top: var(--s-2); }

/* pages hub cards */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.hub-card { border: 1px solid var(--line-default); background: var(--surface); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); min-height: 240px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.hub-card .ic svg { width: 26px; height: 26px; stroke: currentColor; }
.hub-card h3 { font-size: 20px; letter-spacing: 0; margin-top: var(--s-3); }
.hub-card p { font-size: 14px; color: var(--ink-muted); }
.hub-card .more { margin-top: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase; display: inline-flex; align-items: center; gap: var(--s-2); }
.hub-card:hover { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.hub-card:hover .more { color: var(--accent-warm); }
.hub-card:hover p { color: var(--ink-faint); }

/* =====================================================================
   FORMS
   ===================================================================== */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: 13px; font-weight: var(--w-semi); letter-spacing: var(--track-wide); text-transform: uppercase; }
.field label .req { color: var(--ink-muted); font-weight: var(--w-reg); }
.field input, .field textarea, .field select {
  font: inherit; font-weight: var(--w-reg); font-size: 15px;
  padding: 13px 14px; background: var(--surface);
  border: 1px solid var(--line-default); border-radius: var(--radius); color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 13px; color: var(--ink-muted); }
fieldset { border: 0; padding: 0; }

/* contact info list */
.contact-list { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-item { display: flex; gap: var(--s-3); align-items: flex-start; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.contact-item .ic { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.contact-item .ic svg { width: 22px; height: 22px; stroke: var(--ink); }
.contact-item .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--ink-muted); }
.contact-item .v { font-size: 16px; margin-top: 2px; overflow-wrap: anywhere; }
.contact-item .v a:hover { border-bottom: 1px solid var(--ink); }
/* let the text column shrink inside the flex row so long emails wrap, not clip */
.contact-item > span:last-child { min-width: 0; }

/* =====================================================================
   BASKET
   ===================================================================== */
.basket-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.basket-table { width: 100%; border-collapse: collapse; }
.basket-table thead th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--ink-muted); font-weight: var(--w-med); text-align: left; padding: 0 0 var(--s-3); border-bottom: 1px solid var(--line-default); }
.basket-table thead th.right, .basket-table td.right { text-align: right; }
.basket-row td { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.basket-item { display: flex; gap: var(--s-3); align-items: center; }
.basket-item img { width: 72px; height: 60px; object-fit: cover; filter: grayscale(1); border: 1px solid var(--line-default); }
.basket-item .pn { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: var(--track-wide); }
.basket-item h3 { font-size: 15px; font-weight: var(--w-semi); letter-spacing: 0; }
.qty { display: inline-flex; border: 1px solid var(--line-default); }
.qty button { width: 34px; height: 34px; background: var(--surface); display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.qty button:hover { background: var(--ink); color: var(--ink-inverse); }
.qty .n { width: 40px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; border-inline: 1px solid var(--line-default); }
.qty button svg { width: 13px; height: 13px; }
.basket-table .money { font-family: var(--font-mono); font-size: 15px; }
.remove { color: var(--ink-muted); width: 30px; height: 30px; display: grid; place-items: center; transition: color var(--dur) var(--ease); }
.remove:hover { color: var(--error); }
.remove svg { width: 16px; height: 16px; }

.summary { border: 1px solid var(--line-default); background: var(--surface); padding: var(--s-5); position: sticky; top: 96px; }
.summary h2 { font-size: 20px; letter-spacing: 0; margin-bottom: var(--s-4); }
.summary .line { display: flex; justify-content: space-between; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary .line .mono { font-size: 15px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-4); margin-top: var(--s-2); }
.summary .total .lbl { font-weight: var(--w-bold); font-size: 16px; }
.summary .total .amt { font-family: var(--font-mono); font-size: 26px; font-weight: var(--w-med); }
.summary .btn { margin-top: var(--s-4); }
.summary .trust { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); }
.summary .trust span { font-size: 12px; color: var(--ink-muted); display: flex; gap: var(--s-2); align-items: center; }
.summary .trust svg { width: 15px; height: 15px; stroke: var(--ink-soft); flex-shrink: 0; }
.promo { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.promo input { flex: 1; font: inherit; font-size: 14px; padding: 11px 12px; border: 1px solid var(--line-default); }
.promo input:focus { outline: none; border-color: var(--ink); }
.promo button { border: 1px solid var(--ink); background: var(--surface); padding: 0 16px; font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.promo button:hover { background: var(--ink); color: var(--ink-inverse); }
.promo-msg { font-size: 12px; margin-top: var(--s-2); min-height: 1em; }
.promo-msg[data-state="ok"] { color: var(--ok); }
.promo-msg[data-state="err"] { color: var(--error); }

/* basket thumbnail uses an <image-slot> so the user's uploaded product photo
   shows; keep it small and portrait-ish, matching the card images. */
.basket-item image-slot.basket-thumb {
  width: 72px; height: 90px; flex-shrink: 0;
  border: 1px solid var(--line-default); background: var(--surface-muted, #f4f4f5);
}
/* same footprint for the rotating 3D preview thumbnail */
.basket-item model-viewer.basket-thumb {
  width: 72px; height: 90px; flex-shrink: 0; display: block;
  border: 1px solid var(--line-default); background: var(--surface-muted, #f4f4f5);
  --poster-color: transparent; cursor: grab;
}
.basket-item model-viewer.basket-thumb:active { cursor: grabbing; }

/* hidden toggling must beat .basket-layout's display:grid */
#basket-app[hidden], #basket-empty[hidden] { display: none !important; }

/* empty basket */
.basket-empty { text-align: center; padding-block: clamp(48px, 9vw, 96px); border: 1px solid var(--line); }
.basket-empty .ic { width: 40px; height: 40px; margin: 0 auto var(--s-4); color: var(--ink-muted); }
.basket-empty .ic svg { width: 100%; height: 100%; }
.basket-empty h2 { font-size: 22px; letter-spacing: var(--track-tight); margin-bottom: var(--s-3); }
.basket-empty p { color: var(--ink-muted); margin-bottom: var(--s-5); }

/* checkout: PayPal container + not-yet-configured notice */
#paypal-button-container { margin-top: var(--s-4); }
#checkout-placeholder[disabled] { opacity: 0.5; cursor: not-allowed; }
.checkout-note {
  display: flex; gap: var(--s-2); align-items: flex-start;
  margin-top: var(--s-3); font-size: 12px; line-height: 1.5; color: var(--ink-muted);
}
.checkout-note a { border-bottom: 1px solid var(--line-default); color: var(--ink); }
.checkout-note a:hover { border-color: var(--accent-warm); }
.checkout-error { margin-top: var(--s-3); font-size: 13px; color: var(--error); }

/* order confirmation (after a successful PayPal payment) */
.order-confirm { text-align: center; padding-block: clamp(48px, 9vw, 96px); border: 1px solid var(--line-default); background: var(--surface); }
.order-confirm .ic { width: 48px; height: 48px; margin: 0 auto var(--s-4); color: var(--ok); }
.order-confirm .ic svg { width: 100%; height: 100%; }
.order-confirm h2 { font-size: 26px; letter-spacing: var(--track-tight); margin-bottom: var(--s-3); }
.order-confirm p { color: var(--ink-muted); max-width: 48ch; margin-inline: auto; }
.order-confirm .order-ref-line { margin-top: var(--s-3); font-size: 13px; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ink-soft); }
.order-confirm .order-ref-line .mono { text-transform: none; color: var(--ink); }
.order-confirm .btn { margin-top: var(--s-5); }

/* enquiry-form: inline validation + send status */
.field input[data-invalid], .field textarea[data-invalid], .field select[data-invalid] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
#consent[data-invalid] { outline: 2px solid var(--error); outline-offset: 2px; }
.form-status { font-size: 14px; padding: var(--s-3) 0; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--error); }

/* add-to-basket toast */
.basket-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 1000;
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--ink); color: var(--ink-inverse);
  padding: 12px 16px; font-size: 14px; max-width: 320px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  pointer-events: none;
}
.basket-toast[data-show] { opacity: 1; transform: none; }
.basket-toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.basket-toast strong { font-weight: var(--w-semi); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--surface-dark); color: var(--ink-inverse); padding-block: clamp(48px, 7vw, 80px) var(--s-5); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-5); padding-bottom: var(--s-6); border-bottom: 1px solid rgba(250,250,250,0.12); }
.footer-logo-wrap { display: inline-block; width: max-content; margin-bottom: var(--s-3); }
.footer-logo { display: block; height: 84px; width: auto; }
.footer-brand .name { font-weight: var(--w-bold); font-size: 20px; letter-spacing: var(--track-tight); }
.footer-brand .sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--track-wider); text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
.footer-brand p { color: var(--ink-faint); font-size: 14px; margin-top: var(--s-4); max-width: 38ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--ink-faint); font-weight: var(--w-med); margin-bottom: var(--s-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: 14px; color: var(--ink-inverse); opacity: 0.82; transition: opacity var(--dur) var(--ease); }
.footer-col a:hover { opacity: 1; }
.footer-col .mono { font-size: 13px; color: var(--ink-faint); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); }
.footer-bottom .cr { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: var(--track-wide); }
.socials { display: flex; gap: var(--s-2); }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(250,250,250,0.2); display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.socials a:hover { background: var(--ink-inverse); color: var(--ink); border-color: var(--ink-inverse); }
.socials svg { width: 17px; height: 17px; }

/* =====================================================================
   ENTRANCE FADE (subtle, runs once, respects reduced motion)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease) forwards; }
  .reveal.d1 { animation-delay: 80ms; }
  .reveal.d2 { animation-delay: 160ms; }
  .reveal.d3 { animation-delay: 240ms; }
  .reveal.d4 { animation-delay: 320ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .product .ph, .hero-figure img, .split img { opacity: 0; animation: fade 500ms var(--ease) forwards; }
  @keyframes fade { to { opacity: 1; } }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 480px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .basket-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 820px) {
  .grid--3, .products, .testimonials, .hub, .values { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split img { max-width: 420px; }
  .form-grid { grid-template-columns: 1fr; }
}
/* Contact page is form-weighted (was an INLINE grid override that beat the
   responsive rule above, so it never collapsed on phones — moved to a class). */
.split-contact { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 820px) { .split-contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .nav { display: none; }
  .header-inner { gap: var(--s-3); }
  .grid--3, .grid--2, .testimonials, .hub, .values, .timeline, .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-meta { gap: var(--s-4); }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 560px; }
  .basket-table-wrap { overflow-x: auto; }
  .basket-table { min-width: 560px; }
}

/* =====================================================================
   MOBILE OPTIMISATION  (≤760px) — crisp, single-hand catalogue
   Header compaction, icon-search drop bar, 2-up product grid, stacked
   CTAs, larger tap targets, tighter rhythm. Tablet handled separately.
   ===================================================================== */
@media (max-width: 760px) {
  :root { --gutter: 18px; }

  /* prevent any stray horizontal scroll on phones */
  html, body { overflow-x: hidden; }

  /* ---- HEADER ---- */
  .header-inner { height: 60px; gap: 8px; }
  .brand .brand-logo-wrap { width: 124px; height: 40px; }
  .brand .brand-link { display: none; }          /* logo carries the brand */
  .header-actions { gap: 8px; }

  /* basket → compact icon + count (hide the word, keep the badge legible) */
  .basket-link { padding: 0; width: 44px; height: 44px; justify-content: center; gap: 0; font-size: 0; position: relative; }
  .basket-link svg { width: 20px; height: 20px; }
  .basket-link .basket-count {
    position: absolute; top: -5px; right: -5px;
    font-size: 10px; line-height: 1; padding: 2px 5px; min-width: 16px;
  }

  /* search → 44px icon button that expands to a full-width drop bar on tap */
  .search { width: 44px; height: 44px; }
  .search-input {
    width: 44px; height: 44px; padding: 0; cursor: pointer;
    color: transparent; background-position: center; border-color: var(--line-default);
  }
  .search-input::placeholder { color: transparent; }
  .site-header.search-open .search,
  .search:focus-within .search { position: static; }
  .site-header.search-open .search-input,
  .search:focus-within .search-input {
    position: fixed; top: 64px; left: 14px; right: 14px; width: auto; z-index: 130;
    height: 48px; padding: 0 16px 0 44px; cursor: text;
    color: var(--ink); background-position: 16px center; border-color: var(--ink);
  }
  .site-header.search-open .search-input::placeholder { color: var(--ink-muted); }
  .search-panel {
    position: fixed; top: calc(64px + 48px + 6px); left: 14px; right: 14px;
    width: auto; max-height: 62vh; border-color: var(--ink);
  }

  /* ---- RHYTHM ---- */
  .section { padding-block: 48px; }
  .section--tight { padding-block: 34px; }
  .section-head { margin-bottom: var(--s-4); }

  /* ---- HERO ---- */
  .hero { padding-block: 40px 8px; }
  .hero-figure { min-height: 340px; max-width: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-meta { gap: var(--s-4) var(--s-5); margin-top: var(--s-5); }

  /* ---- CATEGORY TILES ---- */
  .cat-tile { padding: var(--s-4); min-height: 0; gap: var(--s-2); }
  .cat-tile h3 { font-size: 20px; }

  /* ---- PRODUCT CARDS: 2-up catalogue ---- */
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product .body { padding: 12px 13px 15px; gap: 6px; }
  .product h3 { font-size: 15px; line-height: 1.25; }
  .product .pn { font-size: 11px; }
  .product .price { font-size: 16px; }
  .product .price small { display: block; margin-top: 1px; }
  .product .row { flex-wrap: wrap; gap: 8px; }
  .product .add { padding: 9px 14px; }
  /* disable the hover-lift on touch (no hover, avoids stuck transforms) */
  .product:hover { transform: none; box-shadow: none; }

  /* ---- PRODUCT DETAIL ---- */
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
  .pd-cta { flex-direction: column; align-items: stretch; }
  .pd-cta .btn { justify-content: center; }
  .pd-info h1 { font-size: clamp(26px, 7vw, 32px); }

  /* ---- CTA BAND ---- */
  .cta-band .actions { flex-direction: column; align-items: stretch; }
  .cta-band .actions .btn { justify-content: center; }

  /* ---- BASKET: bigger qty steppers for thumbs ---- */
  .qty button { width: 40px; height: 40px; }
  .qty .n { width: 44px; }
  .summary .btn { justify-content: center; }

  /* ---- FORMS: comfortable tap height ---- */
  .field input, .field textarea, .field select { font-size: 16px; padding: 14px; } /* 16px = no iOS zoom */
}

/* very narrow phones — drop product cards to a single column */
@media (max-width: 400px) {
  .products { grid-template-columns: 1fr; }
  .brand .brand-logo-wrap { width: 112px; }
}
