/* (C)2026 Badger Commerce Limited, a subsidiary of Kedos Consulting Limited */

/* ==========================================================================================
   SPEC
   A dark, immersive theme where the product is the hero: premium tech, audio and other
   considered purchases. A deep ink-teal canvas with hairline teal rules, minimal chrome and big
   dark space; one accent (brass by default) that the product page re-points at the selected
   colourway; Unbounded for display, Instrument Sans for reading, IBM Plex Mono for values and
   labels. Layered over Nova: Nova's bdgr.css loads first, this file second, the Design Brief's
   theme.css (brand colour / font / shape) last.

   Principles
   1. The product is the hero. A small range is shown as large alternating showcase rows, not a
      dense grid; a big range falls back to a clean large-card grid.
   2. One accent marks the action (--sp-accent, from the brand colour: brass by default). On a
      product page it follows the chosen colour variant, when the product has one.
   3. Values are mono. Prices, SKUs, quantities and labels use IBM Plex Mono.
   4. Nothing is shown that the catalogue can't back up: no invented specs, gauges or finance lines.
   5. Motion is decoration: sticky stage, reveal and view transitions are all off under
      prefers-reduced-motion, and everything stacks below 900px.

   Nova token re-points come first: the grey ramp is INVERTED (gray-50 is the darkest surface,
   gray-900 the strongest text) so Nova templates Spec has not overridden - basket, checkout,
   account, blog - read correctly on the dark canvas. Spec's own role tokens (--sp-*) follow,
   defined in terms of Nova's names where the Design Brief needs to reach them.
   ========================================================================================== */

:root {
  color-scheme: dark;

  /* ── Nova tokens, re-pointed ─────────────────────────────────────────────────────────── */
  --color-primary: #E0B067;               /* brass: the default accent */
  --color-primary-dark: #B98F52;
  --color-primary-light: #F0DCAE;
  --color-primary-50: rgba(224, 176, 103, 0.12);
  --color-primary-ring: rgba(224, 176, 103, 0.35);
  --color-primary-tint: rgba(224, 176, 103, 0.10);

  /* Inverted ramp: low numbers are the dark surfaces, high numbers the light text. */
  --color-gray-50: #0B1D22;
  --color-gray-100: #0F262C;
  --color-gray-200: #1B3A41;
  --color-gray-300: #2A4D55;
  --color-gray-400: #8AA1A3;
  --color-gray-500: #93ABAB;
  --color-gray-600: #A9BEBD;
  --color-gray-700: #C3D3D0;
  --color-gray-800: #DCE7E4;
  --color-gray-900: #E7EFEC;
  --color-gray-950: #F3F8F6;

  --color-success: #58C98A;
  --color-success-light: rgba(88, 201, 138, 0.14);
  --color-error: #F2867C;
  --color-error-dark: #E2695E;
  --color-error-light: rgba(242, 134, 124, 0.14);
  --color-error-ring: rgba(242, 134, 124, 0.3);
  --color-warning: #F0B34C;
  --color-info: #86AEF0;
  --color-warning-bg: rgba(240, 179, 76, 0.14);
  --color-warning-text: #F0C978;
  --color-info-bg: rgba(134, 174, 240, 0.14);
  --color-info-text: #A9C6F5;

  --color-surface: #071519;
  --color-text-strong: #E7EFEC;

  --font-family-base: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-family-display: "Unbounded", "Syncopate", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-weight-heading: 400;
  --letter-spacing-heading: -0.02em;

  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  --radius-2xl: 8px;

  --shadow-xs: 0 1px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.55);

  --product-image-ratio: 1 / 1;
  --container-max-width: 1320px;
  --container-padding: max(16px, 4vw);

  /* ── Spec roles ──────────────────────────────────────────────────────────────────────── */
  --sp-canvas: #071519;                    /* page */
  --sp-subtle: #0B1D22;                    /* a step above the page */
  --sp-surface: #0F262C;                   /* cards, panels, menus */
  --sp-inset: #0B1D22;                     /* input wells */
  --sp-sunken: #153239;                    /* hover / pressed */
  --sp-tile: #0B1D22;
  --sp-ink: #E7EFEC;                       /* strongest text - on #071519 ~15:1 */
  --sp-text: #C3D3D0;                      /* body text - ~11:1 */
  --sp-muted: #93ABAB;                     /* secondary text - ~7:1 on canvas, ~6:1 on surface */
  --sp-dim: #8AA1A3;                       /* small labels - ~5:1 on surface */
  --sp-line: rgba(190, 222, 216, 0.14);
  --sp-line-strong: rgba(190, 222, 216, 0.28);
  --sp-dark: #050F12;                      /* footer */
  --sp-slate: #0B1D22;
  --sp-slate-2: #153239;
  --sp-slate-3: #1C3F47;
  --sp-on-dark: #E7EFEC;
  --sp-on-dark-muted: #93ABAB;

  /* The accent: the brand colour, or the product page's colourway. spec.js re-points these on <html>. */
  --sp-accent: var(--color-primary);
  --sp-accent-hover: color-mix(in srgb, var(--sp-accent) 82%, #FFFFFF);
  --sp-on-accent: #1A1408;                 /* dark text on brass - ~9:1 */
  --sp-signal: var(--sp-accent);
  --sp-signal-lo: var(--sp-accent);
  --sp-buy: var(--sp-accent);
  --sp-buy-hover: var(--sp-accent-hover);
  --sp-on-buy: var(--sp-on-accent);
  --sp-sale: #F08A63;
  --sp-ok: var(--color-success);
  --sp-warn: var(--color-warning);
  --sp-star: var(--sp-accent);

  /* The lit stage a product image sits on. Photos with white backgrounds melt into it (multiply);
     transparent cut-outs sit on it. Set --sp-img-blend: normal and darken the stage to go fully dark. */
  --sp-stage-a: #F2F6F5;
  --sp-stage-b: #CBD8D5;
  --sp-stage: radial-gradient(closest-side at 50% 55%, color-mix(in srgb, var(--sp-accent) 10%, var(--sp-stage-a)), var(--sp-stage-b));
  --sp-img-blend: multiply;
  --sp-stage-ink: #0F262C;                 /* text / marks drawn on the stage */

  --sp-focus-ring: 0 0 0 2px var(--sp-canvas), 0 0 0 4px var(--sp-accent);
  --sp-control: 44px;
  --sp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sp-header-offset: 0px;                /* set by spec.js to the sticky header's height */
}

/* ==========================================================================================
   BASE
   ========================================================================================== */

body {
  background: var(--sp-canvas);
  color: var(--sp-text);
  font-family: var(--font-family-base);
  font-size: 14px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

a { color: var(--sp-ink); }
a:hover { color: var(--sp-ink); }
/* Links inside running copy (tenant content) stay recognisable. */
:where(p, li, dd, td) > a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--sp-focus-ring);
  border-radius: var(--radius-sm);
}

.spec-wrap {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.spec-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Numbers: monospaced and tabular so columns of prices, SKUs and quantities line up. */
.spec-num,
.spec-sku,
.spec-price__now,
.spec-price__was,
.spec-step input {
  font-family: var(--font-family-mono);
  font-variant-numeric: tabular-nums;
}

.spec-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.spec-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--sp-ink);
  color: var(--sp-surface);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top 150ms var(--sp-ease);
}
.spec-skip:focus { top: 12px; color: var(--sp-surface); }
#spec-content:focus { outline: none; }

.spec-main { padding-bottom: 48px; }

/* ==========================================================================================
   BUTTONS
   ========================================================================================== */

.spec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--sp-ink);
  border-radius: var(--radius-md);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font: 600 14px/1.1 var(--font-family-base);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--sp-ease), border-color 150ms var(--sp-ease), color 150ms var(--sp-ease);
}
.spec-btn:hover { background: var(--sp-sunken); color: var(--sp-ink); }
.spec-btn .spec-icon { font-size: 17px; }
.spec-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* The action colour: Add, Checkout, Search. Dark text keeps it legible on amber. */
.spec-btn--pri,
.spec-btn--buy { background: var(--sp-buy); border-color: var(--sp-signal-lo); color: var(--sp-on-buy); font-weight: 700; }
.spec-btn--pri:hover,
.spec-btn--buy:hover { background: var(--sp-buy-hover); color: var(--sp-on-buy); }

.spec-btn--dark,
.spec-btn--ink { background: var(--sp-ink); color: var(--sp-on-dark); }
.spec-btn--dark:hover,
.spec-btn--ink:hover { background: var(--sp-slate-2); color: var(--sp-on-dark); }

.spec-btn--outline { background: var(--sp-surface); }
.spec-btn--quiet { background: var(--sp-subtle); border-color: var(--sp-line-strong); }
.spec-btn--quiet:hover { background: var(--sp-sunken); }

.spec-btn--block { display: flex; width: 100%; }
.spec-btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.spec-btn--lg { min-height: 44px; font-size: 16px; padding: 0 20px; }
.spec-btn--lg .spec-icon { font-size: 19px; }

.spec-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--sp-ink);
  font-size: 22px;
  cursor: pointer;
}
.spec-iconbtn:hover { background: var(--sp-sunken); }

.spec-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sp-ink);
  font: 500 13px/1.3 var(--font-family-base);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ==========================================================================================
   HEADER: utility strip (announcement + promises), bar, category row
   The header is one slate block with a signal rule under it: brand, an always-visible search
   field, account and basket. The category row sits inside it, a shade lighter.
   ========================================================================================== */

.spec-announce {
  background: var(--sp-dark);
  color: var(--sp-on-dark);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  padding-block: 6px;
}
.spec-announce a { color: var(--sp-on-dark); text-decoration: underline; text-underline-offset: 2px; }

.spec-promise {
  background: var(--sp-dark);
  color: var(--sp-on-dark-muted);
  font-size: 12px;
}
.spec-announce + .spec-promise { border-top: 1px solid var(--sp-slate-2); }
.spec-promise__list {
  display: flex;
  justify-content: flex-end;
  gap: 4px 24px;
  margin: 0 auto;
  padding-block: 6px;
  list-style: none;
}
.spec-promise__item { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.spec-promise__item .spec-icon { font-size: 15px; color: var(--sp-signal); }
@media (max-width: 719px) {
  .spec-promise__list { justify-content: flex-start; }
  .spec-promise__item:not(:first-child) { display: none; }
}

.spec-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--sp-slate);
  color: var(--sp-on-dark);
  border-bottom: 3px solid var(--sp-signal);
}
.spec-header .spec-iconbtn { color: var(--sp-on-dark); }
.spec-header .spec-iconbtn:hover { background: var(--sp-slate-2); }
.spec-header :where(a, button, input):focus-visible { box-shadow: 0 0 0 2px var(--sp-signal); }

.spec-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand search actions";
  align-items: center;
  column-gap: clamp(12px, 2vw, 24px);
  min-height: 56px;
  padding-block: 8px;
}
.spec-header__menu { display: none; grid-area: menu; margin-left: -8px; }

.spec-header__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--sp-on-dark);
}
.spec-header__brand:hover { color: var(--sp-on-dark); }
.spec-header__logo {
  display: block;
  height: 36px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}
.spec-header__name {
  font-family: var(--font-family-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}
.spec-header__name--with-logo { font-size: 18px; }

.spec-header__search {
  grid-area: search;
  width: 100%;
  max-width: 760px;
  justify-self: center;
}

.spec-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Account + basket */
.spec-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--sp-on-dark);
  text-decoration: none;
  transition: background-color 150ms var(--sp-ease);
}
.spec-action:hover { background: var(--sp-slate-2); color: var(--sp-on-dark); }
.spec-action__icon { font-size: 22px; }
.spec-action__iconwrap { position: relative; display: inline-flex; }
.spec-action__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.spec-action__label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.spec-action__caption { font-size: 11px; color: var(--sp-on-dark-muted); white-space: nowrap; }
.spec-action__count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--sp-ink);
  color: var(--sp-signal);
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-weight: 600;
}
/* The basket is the one filled control in the header. */
.spec-action--basket { background: var(--sp-signal); border-color: var(--sp-signal-lo); color: var(--sp-on-buy); }
.spec-action--basket:hover { background: var(--sp-buy-hover); color: var(--sp-on-buy); }
.spec-header .spec-action--basket,
.spec-header .spec-action--basket:hover { color: var(--sp-on-buy); }
.spec-action--basket .spec-action__caption { color: var(--sp-slate); font-family: var(--font-family-mono); }
.spec-action--basket:not(.has-items) .spec-action__count { display: none; }
/* Search field (fallback form and the searchBar extension share these classes) */
.spec-searchbar { position: relative; }
.spec-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 0 4px 0 14px;
  gap: 10px;
  background: var(--sp-surface);
  border: 1.5px solid var(--sp-line-strong);
  border-radius: var(--radius-md);
  transition: border-color 150ms var(--sp-ease), box-shadow 150ms var(--sp-ease);
}
.spec-search:hover { border-color: var(--color-gray-400); }
.spec-search:focus-within {
  border-color: var(--sp-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-ink) 12%, transparent);
}
.spec-search__icon { font-size: 20px; color: var(--sp-muted); }
.spec-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sp-ink);
  font-size: 16px;                        /* 16px stops iOS zooming the page on focus */
  outline: none;
}
.spec-search__input::placeholder { color: var(--sp-muted); opacity: 1; }
/* the header search scope (fragment/search-scope) reads like the text it sits beside */
.spec-search__scope { color: var(--sp-ink); }
.spec-search__input:focus-visible { box-shadow: none; }
.spec-search__input::-webkit-search-decoration,
.spec-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.spec-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sp-muted);
  font-size: 18px;
  cursor: pointer;
}
.spec-search__clear[hidden] { display: none; }
.spec-search__clear:hover { background: var(--sp-tile); color: var(--sp-ink); }
.spec-search__submit {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: calc(var(--radius-md) - 2px);
  background: var(--sp-ink);
  color: var(--sp-surface);
  font: 600 14px/1 var(--font-family-base);
  cursor: pointer;
  transition: background-color 150ms var(--sp-ease);
}
.spec-search__submit:hover { background: var(--color-gray-800); }

/* Suggestions panel (rendered by Nova's searchBar.js) */
.spec-search__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1100;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 6px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.spec-search__panel[hidden] { display: none; }
.spec-searchbar .nova-searchbar__section-title {
  padding: 10px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-muted);
}
.spec-searchbar .nova-searchbar__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--sp-ink);
  text-decoration: none;
}
.spec-searchbar .nova-searchbar__option:hover,
.spec-searchbar .nova-searchbar__option.is-active { background: var(--sp-subtle); }
.spec-searchbar .nova-searchbar__thumb {
  width: 48px;
  height: 60px;
  flex: none;
  object-fit: contain;
  background: var(--sp-tile);
  border-radius: var(--radius-sm);
  mix-blend-mode: multiply;
}
.spec-searchbar .nova-searchbar__cat-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--sp-tile);
  color: var(--sp-ink);
}
.spec-searchbar .nova-searchbar__option-text { flex: 1 1 auto; min-width: 0; }
.spec-searchbar .nova-searchbar__name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spec-searchbar .nova-searchbar__brand {
  font-size: 12px;
  color: var(--sp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spec-searchbar .nova-searchbar__price-row { display: flex; align-items: baseline; gap: 8px; flex: none; }
.spec-searchbar .nova-searchbar__price { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spec-searchbar .nova-searchbar__compare { font-size: 12px; color: var(--sp-muted); text-decoration: line-through; }
.spec-searchbar .nova-searchbar__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  border-top: 1px solid var(--sp-line);
  color: var(--sp-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.spec-searchbar .nova-searchbar__footer:hover,
.spec-searchbar .nova-searchbar__footer.is-active { background: var(--sp-subtle); }
.spec-searchbar .nova-searchbar__empty { padding: 20px 12px; text-align: center; color: var(--sp-muted); font-size: 14px; }

/* Category row + mega menu (desktop) */
.spec-header__nav { position: relative; }
.spec-header__nav .spec-menu {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0 0 0 -12px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.spec-header__nav .spec-menu::-webkit-scrollbar { display: none; }
.spec-header__nav .spec-menu__item { position: static; }
.spec-header__nav .spec-menu__row {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}
.spec-header__nav .spec-menu__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  color: var(--sp-ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.spec-header__nav .has-panel .spec-menu__link { padding-right: 2px; }
.spec-menu__link--button {
  gap: 6px;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.spec-header__nav .has-panel .spec-menu__link--button { padding-right: 12px; }
.spec-menu__caret { font-size: 15px; color: var(--sp-muted); transition: transform 200ms var(--sp-ease); }
.spec-menu__item.is-open .spec-menu__caret { transform: rotate(180deg); }
.spec-drawer .spec-menu__link--button { justify-content: space-between; width: 100%; text-align: left; }
.spec-drawer .spec-menu__link--button .spec-menu__caret { font-size: 20px; color: var(--sp-ink); }
.spec-header__nav .spec-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 32px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  font-size: 15px;
  cursor: pointer;
}
.spec-header__nav .spec-menu__toggle .spec-icon { transition: transform 200ms var(--sp-ease); }
.spec-header__nav .spec-menu__row::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--sp-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--sp-ease);
}
.spec-header__nav .spec-menu__item:hover .spec-menu__row::after,
.spec-header__nav .spec-menu__item.is-open .spec-menu__row::after,
.spec-header__nav .spec-menu__item.is-current .spec-menu__row::after { transform: scaleX(1); }
.spec-header__nav .spec-menu__item.is-open .spec-menu__toggle .spec-icon { transform: rotate(180deg); }

.spec-header__nav .spec-menu__panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1020;
  max-height: calc(100vh - var(--sp-header-offset) - 24px);
  overflow-y: auto;
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-line);
  box-shadow: 0 28px 40px -28px rgba(19, 23, 20, 0.28);
}
.spec-header__nav .spec-menu__item.is-open > .spec-menu__panel { display: block; animation: spec-drop 180ms var(--sp-ease); }
html:not(.spec-js) .spec-header__nav .spec-menu__item:hover > .spec-menu__panel,
html:not(.spec-js) .spec-header__nav .spec-menu__item:focus-within > .spec-menu__panel { display: block; }
@keyframes spec-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.spec-menu__inner { padding-block: 28px 24px; }
.spec-menu__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px 40px;
}
.spec-menu__group--leaves:has(.spec-menu__list--flow) { grid-column: 1 / -1; }
/* A heading-less list of links sits beside headed columns: start it on their first link's line. */
.spec-header__nav .spec-menu__group--leaves:not(:has(.spec-menu__heading)) { padding-top: 26px; }
.spec-menu__heading {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
  text-decoration: none;
}
.spec-menu__heading--link { color: var(--sp-ink); }
.spec-menu__heading--link:hover { text-decoration: underline; text-underline-offset: 3px; }
.spec-menu__list { margin: 0; padding: 0; list-style: none; }
.spec-menu__list--flow { columns: 180px auto; column-gap: 40px; }
.spec-menu__list li { break-inside: avoid; }
.spec-menu__sublink,
.spec-menu__more {
  display: block;
  padding: 5px 0;
  color: var(--sp-text);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}
.spec-menu__sublink:hover { color: var(--sp-ink); text-decoration: underline; text-underline-offset: 3px; }
.spec-menu__more { color: var(--sp-ink); font-weight: 600; }
.spec-menu__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--sp-line);
  color: var(--sp-ink);
  font-weight: 600;
  text-decoration: none;
}
.spec-menu__all .spec-icon { transition: transform 150ms var(--sp-ease); }
.spec-menu__all:hover .spec-icon { transform: translateX(3px); }
.spec-header__nav .spec-menu__all { display: flex; width: 100%; }


/* ==========================================================================================
   SPEC SKIN FOR THE SEARCH FIELD AND THE CATEGORY ROW
   The rules above (kept from the layered-theme mechanics: suggestion panel, hover-intent mega
   menu) are recoloured here for a dark header.
   ========================================================================================== */

/* Search: a white field on the slate header with a signal button on its right edge. */
.spec-search {
  height: 40px;
  padding: 0 0 0 12px;
  gap: 8px;
  border: 1px solid var(--sp-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.spec-search:hover { border-color: var(--sp-surface); }
.spec-search:focus-within {
  border-color: var(--sp-signal);
  box-shadow: 0 0 0 3px var(--color-primary-ring);
}
.spec-search__icon { font-size: 18px; }
.spec-search__input { font-size: 16px; }
.spec-search__clear { height: 28px; width: 28px; }
.spec-search__submit {
  align-self: stretch;
  height: auto;
  padding: 0 18px;
  border-radius: 0;
  background: var(--sp-signal);
  color: var(--sp-on-buy);
  font-weight: 700;
}
.spec-search__submit:hover { background: var(--sp-buy-hover); }
.spec-search__panel {
  color: var(--sp-ink);
  border-color: var(--sp-line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.spec-searchbar .nova-searchbar__section-title { font-family: var(--font-family-display); font-size: 12px; letter-spacing: 0.1em; }
.spec-searchbar .nova-searchbar__thumb { width: 40px; height: 40px; }
.spec-searchbar .nova-searchbar__price { font-family: var(--font-family-mono); }

/* Category row: a lighter slate band with hairline-tight links; the mega panel stays white. */
.spec-header__nav { background: var(--sp-slate-2); color: var(--sp-on-dark); }
.spec-header__nav .spec-menu { margin: 0 0 0 -12px; gap: 0; }
.spec-header__nav .spec-menu__row { height: 40px; }
.spec-header__nav .spec-menu__link {
  color: var(--sp-on-dark);
  font-size: 13px;
  font-weight: 500;
}
.spec-header__nav .spec-menu__link:hover { color: var(--sp-on-dark); }
.spec-header__nav .spec-menu__toggle,
.spec-menu__caret { color: var(--sp-on-dark-muted); }
.spec-header__nav .spec-menu__item:hover > .spec-menu__row,
.spec-header__nav .spec-menu__item.is-open > .spec-menu__row { background: var(--sp-slate-3); }
.spec-header__nav .spec-menu__row::after { left: 0; right: 0; height: 3px; background: var(--sp-signal); }
.spec-header__nav .spec-menu__panel {
  color: var(--sp-text);
  border-top: 0;
  border-bottom: 3px solid var(--sp-signal);
  box-shadow: var(--shadow-lg);
}
.spec-menu__inner { padding-block: 20px 16px; }
.spec-menu__heading { font-family: var(--font-family-display); font-size: 14px; letter-spacing: 0.08em; }
.spec-menu__sublink,
.spec-menu__more { font-size: 14px; padding: 4px 0; }
/* ==========================================================================================
   MOBILE / TABLET HEADER + DRAWER
   ========================================================================================== */

@media (max-width: 1023px) {
  .spec-header__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "menu brand actions"
      "search search search";
    column-gap: 8px;
    row-gap: 0;
    min-height: 0;
    padding-top: 6px;
  }
  .spec-header__menu { display: inline-flex; }
  .spec-header__brand { justify-self: start; min-height: 48px; }
  .spec-header__logo { height: 32px; max-width: 150px; }
  .spec-header__name { font-size: 19px; }
  .spec-header__search {
    max-width: none;
    padding-block: 6px 12px;
    transition: margin-top 220ms var(--sp-ease), opacity 220ms var(--sp-ease);
  }
  .spec-search { height: 44px; }
  .spec-search__submit { display: none; }
  .spec-action { padding: 0; width: 44px; min-height: 44px; justify-content: center; }
  .spec-action__text { display: none; }
  .spec-header__nav { display: none; }
}

@media (min-width: 1024px) {
  .spec-drawer { display: none !important; }
}

.spec-drawer { position: fixed; inset: 0; z-index: 1060; }
.spec-drawer[hidden] { display: none; }
.spec-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 12, 0.5);
  opacity: 0;
  transition: opacity 240ms var(--sp-ease);
}
.spec-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(420px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--sp-surface);
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 280ms var(--sp-ease);
}
.spec-drawer.is-open .spec-drawer__scrim { opacity: 1; }
.spec-drawer.is-open .spec-drawer__panel { transform: none; }
.spec-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 8px 0 20px;
  border-bottom: 1px solid var(--sp-line);
}
.spec-drawer__title { font-size: 17px; font-weight: 650; color: var(--sp-ink); }
.spec-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.spec-drawer__foot { border-top: 1px solid var(--sp-line); padding: 8px 0; background: var(--sp-subtle); }
.spec-drawer__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--sp-ink);
  font-weight: 500;
  text-decoration: none;
}
.spec-drawer__link .spec-icon { font-size: 22px; }

.spec-drawer .spec-menu { margin: 0; padding: 0; list-style: none; }
.spec-drawer .spec-menu__item { border-bottom: 1px solid var(--sp-line); }
.spec-drawer .spec-menu__row { display: flex; align-items: stretch; }
.spec-drawer .spec-menu__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  color: var(--sp-ink);
  font-size: 17px;
  font-weight: 550;
  text-decoration: none;
}
.spec-drawer .spec-menu__toggle {
  flex: none;
  width: 60px;
  border: 0;
  border-left: 1px solid var(--sp-line);
  background: transparent;
  color: var(--sp-ink);
  font-size: 20px;
  cursor: pointer;
}
.spec-drawer .spec-menu__toggle .spec-icon { transition: transform 200ms var(--sp-ease); }
.spec-drawer .spec-menu__item.is-open .spec-menu__toggle .spec-icon { transform: rotate(180deg); }
.spec-drawer .spec-menu__panel { display: none; background: var(--sp-subtle); border-top: 1px solid var(--sp-line); }
.spec-drawer .spec-menu__item.is-open > .spec-menu__panel { display: block; }
.spec-drawer .spec-menu__inner { padding: 16px 20px 20px; }
.spec-drawer .spec-menu__groups { display: block; }
.spec-drawer .spec-menu__group + .spec-menu__group { margin-top: 20px; }
.spec-drawer .spec-menu__list--flow { columns: 2 130px; column-gap: 20px; }
.spec-drawer .spec-menu__sublink { padding: 8px 0; font-size: 16px; }
.spec-drawer .spec-menu__all { margin-top: 16px; }

html.spec-drawer-open { overflow: hidden; }
/* ==========================================================================================
   BREADCRUMB (Nova markup)
   ========================================================================================== */

.nova-breadcrumb { margin: 20px 0 4px; }
.nova-breadcrumb__list { font-size: 13px; }
.nova-breadcrumb__item { color: var(--sp-muted); }
.nova-breadcrumb__item + .nova-breadcrumb__item::before { content: "/"; color: var(--sp-line-strong); font-weight: 400; }
.nova-breadcrumb__link { color: var(--sp-muted); }
.nova-breadcrumb__link:hover,
.nova-breadcrumb__link:focus-visible { color: var(--sp-ink); text-decoration: underline; text-underline-offset: 3px; }
.nova-breadcrumb__current { color: var(--sp-ink); }

/* ==========================================================================================
   NOVA COMPATIBILITY
   Nova templates Spec hasn't replaced yet still render. These keep them on-system: buttons
   follow the one-colour rule and page sections sit on Spec's grid.
   ========================================================================================== */

.nova-container { max-width: var(--container-max-width); padding-inline: var(--container-padding); }
.nova-btn { border-radius: var(--radius-md); font-weight: 600; }
.nova-btn-secondary,
.nova-btn-outline { border-color: var(--sp-ink); color: var(--sp-ink); }
.nova-btn-outline:hover { background: var(--sp-ink); color: var(--sp-surface); }

/* ==========================================================================================
   MOTION
   ========================================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================================
   FORMS (Nova's .nova-input is used by quantity, checkout and account forms)
   ========================================================================================== */

.nova-input,
.spec-input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--sp-line-strong);
  border-radius: var(--radius-md);
  background-color: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 16px;                        /* no iOS zoom on focus */
}
.nova-input:hover,
.spec-input:hover { border-color: var(--color-gray-400); }
.nova-input:focus,
.spec-input:focus {
  outline: none;
  border-color: var(--sp-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-ink) 12%, transparent);
}
select.nova-input { min-height: 48px; }

/* Nova pages Spec doesn't override (basket, checkout, account, blog): keep the action colour legible.
   Nova's own primary button is white text on --color-primary; Spec's primary is amber, so the text
   goes dark, and the controls take Spec's tighter shape. */
.nova-btn-primary,
.btn-primary { color: var(--sp-on-buy); font-weight: 700; border-color: var(--sp-signal-lo); }
.nova-btn-primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled) { color: var(--sp-on-buy); }
.nova-btn { min-height: 40px; }
.nova-input,
.spec-input { min-height: 40px; padding: 8px 12px; border-width: 1px; }
select.nova-input { min-height: 40px; }
:where(h1, h2, h3) { letter-spacing: var(--letter-spacing-heading); }

/* ==========================================================================================
   FILTERED LISTINGS (search, merchandising nodes)
   ========================================================================================== */

.spec-plp-head--search { margin-top: 28px; }
.spec-plp-head__eyebrow { margin: 0 0 4px; font-size: 14px; font-weight: 550; color: var(--sp-muted); }

.spec-toolbar__filters { position: relative; }
.spec-toolbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sp-ink);
  color: var(--sp-surface);
  font-size: 12px;
  font-weight: 700;
}
.spec-btn--outline:hover .spec-toolbar__badge { background: var(--sp-surface); color: var(--sp-ink); }
.spec-toolbar__filters + .spec-toolbar__count { margin-right: auto; }

.spec-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 24px;
  padding: 0;
  list-style: none;
}
.spec-chip--applied { background: var(--sp-subtle); border-color: var(--sp-line-strong); gap: 8px; padding-right: 12px; }
.spec-chip--applied .spec-icon { font-size: 15px; }
.spec-applied__clear { font-size: 14px; font-weight: 600; color: var(--sp-ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }

.spec-listing { display: block; }
@media (min-width: 1024px) {
  .spec-listing.has-rail { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 40px; align-items: start; }
  .spec-listing.has-rail .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-toolbar__filters { display: none; }
  .spec-filters { position: sticky; top: calc(var(--sp-header-offset) + 76px); max-height: calc(100vh - var(--sp-header-offset) - 96px); overflow-y: auto; scrollbar-width: thin; }
  .spec-filters__head, .spec-filters__foot, .spec-filters__scrim { display: none; }
}
@media (min-width: 1440px) {
  .spec-listing.has-rail .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Small screens: the rail is a slide-in panel */
@media (max-width: 1023px) {
  .spec-filters { position: fixed; inset: 0; z-index: 1060; visibility: hidden; }
  .spec-filters.is-open { visibility: visible; }
  .spec-filters__scrim { position: absolute; inset: 0; background: rgba(11, 14, 12, 0.5); opacity: 0; transition: opacity 240ms var(--sp-ease); }
  .spec-filters.is-open .spec-filters__scrim { opacity: 1; }
  .spec-filters__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--sp-surface);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 280ms var(--sp-ease);
  }
  .spec-filters.is-open .spec-filters__panel { transform: none; }
  .spec-filters__head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--sp-line); }
  .spec-filters__title { font-size: 17px; font-weight: 650; color: var(--sp-ink); }
  .spec-filters__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
  .spec-filters__foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sp-line); }
  .spec-filters__done { flex: 1 1 auto; }
}

.spec-facet { border-bottom: 1px solid var(--sp-line); }
.spec-facet__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
  color: var(--sp-ink);
}
.spec-facet__title::-webkit-details-marker { display: none; }
.spec-facet__title > span:first-child { flex: 1 1 auto; }
.spec-facet__selected { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sp-ink); color: var(--sp-surface); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.spec-facet__chevron { font-size: 18px; color: var(--sp-muted); transition: transform 200ms var(--sp-ease); }
.spec-facet[open] .spec-facet__chevron { transform: rotate(180deg); }
.spec-facet__values { margin: 0; padding: 0 0 14px; list-style: none; }
html.spec-js .spec-facet__values.is-long:not(.is-expanded) li:nth-child(n+7) { display: none; }
.spec-facet__value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 4px 0;
  color: var(--sp-text);
  font-size: 15px;
  text-decoration: none;
}
.spec-facet__value:hover { color: var(--sp-ink); }
.spec-facet__box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  background: var(--sp-surface);
  color: transparent;
  font-size: 14px;
  transition: border-color 150ms var(--sp-ease), background-color 150ms var(--sp-ease);
}
.spec-facet__box .spec-icon { stroke-width: 2.5; }
.spec-facet__value:hover .spec-facet__box { border-color: var(--sp-ink); }
.is-selected > .spec-facet__value { color: var(--sp-ink); font-weight: 600; }
.is-selected > .spec-facet__value .spec-facet__box { background: var(--sp-ink); border-color: var(--sp-ink); color: var(--sp-surface); }
.spec-facet__label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.spec-facet__count { flex: none; font-size: 13px; color: var(--sp-muted); font-variant-numeric: tabular-nums; }
.spec-facet__more { margin: -6px 0 16px; padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--sp-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Filters the results chose show first; the rest sit behind "More filters (n)" */
.spec-facets-more { border-bottom: 1px solid var(--sp-line); }
.spec-facets-more__toggle { display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--sp-ink); text-decoration: underline; text-underline-offset: 3px; }
.spec-facets-more__toggle::-webkit-details-marker { display: none; }
.spec-facets-more__toggle > span { flex: 1 1 auto; }
.spec-facets-more[open] > .spec-facets-more__toggle .spec-facet__chevron { transform: rotate(180deg); }
.spec-facets-more > .spec-facet:last-child { border-bottom: 0; }

/* Price: min and max inputs with their captions above, the dash and Go on the input row */
.spec-pricefilter { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; grid-template-rows: auto 44px; column-gap: 8px; row-gap: 4px; align-items: center; padding: 0 0 16px; }
.spec-pricefilter__field { display: contents; }
.spec-pricefilter__caption { grid-row: 1; font-size: 12px; color: var(--sp-muted); }
.spec-pricefilter__field:first-of-type .spec-pricefilter__caption { grid-column: 1; }
.spec-pricefilter__field:last-of-type .spec-pricefilter__caption { grid-column: 3; }
.spec-pricefilter__input { grid-row: 2; display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; border: 1px solid var(--sp-line-strong); border-radius: var(--radius-md); background: var(--sp-surface); }
.spec-pricefilter__field:first-of-type .spec-pricefilter__input { grid-column: 1; }
.spec-pricefilter__field:last-of-type .spec-pricefilter__input { grid-column: 3; }
.spec-pricefilter__input:focus-within { border-color: var(--sp-ink); box-shadow: var(--sp-focus-ring); }
.spec-pricefilter__symbol { color: var(--sp-muted); font-size: 14px; }
.spec-pricefilter__input input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--sp-ink); font-size: 16px; font-variant-numeric: tabular-nums; outline: none; }
.spec-pricefilter__to { grid-row: 2; grid-column: 2; color: var(--sp-muted); }
.spec-pricefilter__go { grid-row: 2; grid-column: 4; height: 44px; }

/* Category page: "Results for … in …", the description, and the search-in-this-category box */
.spec-plp-head__scope { margin: 8px 0 0; font-size: 15px; color: var(--sp-text); }
.spec-plp-head__desc { max-width: 70ch; margin: 10px 0 0; font-size: 15px; color: var(--sp-text); }
.spec-scope-search { display: flex; align-items: stretch; max-width: 420px; margin: 14px 0 0; border: 1px solid var(--sp-line-strong); border-radius: var(--radius-md); background: var(--sp-surface); }
.spec-scope-search:focus-within { border-color: var(--sp-ink); box-shadow: var(--sp-focus-ring); }
.spec-scope-search__input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--sp-ink); font-size: 16px; outline: none; }
.spec-scope-search__btn { flex: none; width: 44px; border: 0; background: transparent; color: var(--sp-ink); cursor: pointer; }
.spec-scope-search__btn .spec-icon { font-size: 18px; }
/* The category nav's extras on listing pages: counts beside each category, a leaf's siblings */
.spec-tree + .spec-facets { margin-top: 4px; border-top: 1px solid var(--sp-line); }
.spec-tree__list .spec-tree__current { display: block; margin: 2px 0 2px -9px; padding: 3px 8px 3px 6px; }
.spec-tree__list--siblings { margin-left: 0; padding-left: 0; border-left: 0; }
.spec-tree__list--siblings .spec-tree__current { margin: 2px 0; }
.spec-tree__list .spec-tree__item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.spec-tree__item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
/* the page head is a wrapping flex row: these take a line of their own */
.spec-plp-head__scope, .spec-plp-head__desc, .spec-scope-search { flex-basis: 100%; }
.spec-toolbar__count { white-space: nowrap; }
@media (max-width: 519px) {
  /* Filter + sort need the room; the filter panel's "Show N products" button carries the count. */
  .spec-toolbar__filters + .spec-toolbar__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec-toolbar__filters { margin-right: auto; }
}

/* ==========================================================================================
   PRODUCT RAILS (trending, featured, recently viewed)
   ========================================================================================== */

.spec-rail { padding-block: 48px; }
.spec-rail__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 20px; }
.spec-rail__title { margin: 0; font-size: clamp(22px, 1vw + 16px, 28px); letter-spacing: -0.025em; color: var(--sp-ink); }
.spec-rail__subtitle { margin: 0; font-size: 15px; color: var(--sp-muted); }
.spec-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 42%);
  gap: 16px;
  margin-inline: calc(var(--container-padding) * -1);
  padding: 0 var(--container-padding) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--container-padding);
  scrollbar-width: none;
}
.spec-rail__track::-webkit-scrollbar { display: none; }
.spec-rail__track > .spec-card { scroll-snap-align: start; }
@media (min-width: 720px) { .spec-rail__track { grid-auto-columns: minmax(180px, 28%); } }
@media (min-width: 1100px) {
  .spec-rail__track { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; margin-inline: 0; padding: 0; overflow: visible; gap: 24px; }
  .spec-rail__track > .spec-card:nth-child(n+6) { display: none; }
}
.spec-card--rail .spec-card__title { font-size: 14px; }


/* ==========================================================================================
   LISTING: heading, toolbar, grid / list, product card
   ========================================================================================== */

.spec-plp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 8px 0 12px;
}
.spec-plp-head__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: clamp(28px, 1.6vw + 20px, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--sp-ink);
}
.spec-plp-head__count { margin: 0; font-size: 13px; color: var(--sp-muted); }
.spec-plp-head--search { margin-top: 12px; }
.spec-plp-head__eyebrow { flex-basis: 100%; margin: 0; font-size: 13px; font-weight: 600; color: var(--sp-muted); }

.spec-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-md);
}
.spec-toolbar__count { margin: 0; font-size: 13px; color: var(--sp-muted); white-space: nowrap; }
.spec-toolbar__r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.spec-toolbar__filters + .spec-toolbar__count { margin-right: 0; }

.spec-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.spec-sort__label { font-size: 13px; color: var(--sp-muted); white-space: nowrap; }
.spec-select { position: relative; display: inline-flex; }
.spec-select__control {
  height: 32px;
  padding: 0 30px 0 8px;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font: 500 13px/1 var(--font-family-base);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.spec-select__control:hover { border-color: var(--sp-ink); }
.spec-select__chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--sp-ink);
  pointer-events: none;
}
@media (max-width: 479px) { .spec-sort__label { display: none; } }

/* Applied filters */
.spec-applied { margin: 0 0 8px; }
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.spec-chip:hover { border-color: var(--sp-ink); color: var(--sp-ink); }
.spec-chip--applied { background: var(--sp-slate); border-color: var(--sp-slate); color: var(--sp-on-dark); padding: 0 8px; }
.spec-chip--applied:hover { background: var(--sp-slate-2); color: var(--sp-on-dark); }
.spec-chip--applied .spec-icon { font-size: 13px; }
.spec-applied__clear { font-size: 13px; font-weight: 500; color: var(--sp-muted); }

/* Rail (persistent on desktop, sheet on small screens - mechanics above) */
.spec-listing.has-rail { grid-template-columns: 244px minmax(0, 1fr); gap: 16px; }
.spec-listing.has-rail .spec-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.spec-listing__main { min-width: 0; container-type: inline-size; }
.spec-filters__panel { font-size: 13px; }
@media (min-width: 1024px) {
  .spec-filters {
    top: calc(var(--sp-header-offset) + 12px);
    max-height: calc(100vh - var(--sp-header-offset) - 28px);
  }
  .spec-filters__panel {
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--radius-md);
  }
  .spec-filters__body { padding: 0 12px; }
}
@media (max-width: 1023px) {
  /* A bottom sheet, like a phone's own filter drawer. */
  .spec-filters__panel {
    top: auto;
    left: 0;
    right: 0;
    width: auto;
    max-height: 84vh;
    border-top: 3px solid var(--sp-signal);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(105%);
  }
  .spec-filters__title { font-family: var(--font-family-display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
}

.spec-facet__title { min-height: 44px; font-family: var(--font-family-display); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.spec-facet__value { min-height: 32px; font-size: 13px; }
.spec-facet__count { font-family: var(--font-family-mono); font-size: 12px; }
.spec-facet__box { width: 16px; height: 16px; font-size: 12px; border-radius: var(--radius-sm); }
.is-selected > .spec-facet__value .spec-facet__box { background: var(--sp-ink); border-color: var(--sp-ink); color: var(--sp-signal); }
.spec-facet__selected { background: var(--sp-signal); color: var(--sp-on-buy); }
.spec-toolbar__badge { background: var(--sp-signal); color: var(--sp-on-buy); }
.spec-btn--outline:hover .spec-toolbar__badge { background: var(--sp-signal); color: var(--sp-on-buy); }

/* Category tree (collection page rail) */
.spec-tree { padding: 12px 0; font-size: 13px; }
.spec-tree__title { margin: 0 0 8px; font-family: var(--font-family-display); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sp-ink); }
.spec-tree__up { display: flex; align-items: center; gap: 4px; padding: 3px 0; color: var(--sp-text); text-decoration: none; }
.spec-tree__up:hover { color: var(--sp-ink); text-decoration: underline; }
.spec-tree__up .spec-icon { font-size: 14px; }
.spec-tree__current {
  margin: 2px -8px;
  padding: 3px 8px;
  background: var(--sp-sunken);
  border-left: 3px solid var(--sp-signal);
  font-weight: 700;
  color: var(--sp-ink);
}
.spec-tree__list { margin: 0 0 0 12px; padding: 0 0 0 8px; border-left: 1px solid var(--sp-line); list-style: none; }
.spec-tree__list a { display: block; padding: 3px 0; color: var(--sp-text); text-decoration: none; }
.spec-tree__list a:hover { color: var(--sp-ink); text-decoration: underline; }

/* ── Results: grid and list ─────────────────────────────────────────────────────────── */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 8px;
}
@media (max-width: 519px) { .spec-grid { grid-template-columns: minmax(0, 1fr); } }
.spec-empty {
  max-width: 480px;
  margin: 48px auto;
  padding: 32px 24px;
  text-align: center;
  color: var(--sp-muted);
}
.spec-empty__title { margin: 0 0 8px; font-family: var(--font-family-display); font-size: 26px; text-transform: uppercase; color: var(--sp-ink); }
.spec-empty .spec-btn { margin-top: 16px; }

/* ── Product card ───────────────────────────────────────────────────────────────────── */

.spec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-md);
}
.spec-card:hover { border-color: var(--sp-slate-3); }

.spec-card__media {
  position: relative;
  display: block;
  aspect-ratio: var(--product-image-ratio);
  overflow: hidden;
  border-bottom: 1px solid var(--sp-line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--sp-surface);
  isolation: isolate;
}
.spec-card__img,
.spec-card__img > div,
.spec-card__placeholder {
  position: absolute;
  inset: 0;
}
.spec-card__img img,
.spec-card__placeholder {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;
  transition: opacity 300ms var(--sp-ease);
}
.spec-card__img--alt { opacity: 0; transition: opacity 300ms var(--sp-ease); }
@media (hover: hover) {
  .spec-card__media.has-alt:hover .spec-card__img--alt { opacity: 1; }
}
.spec-card.is-unavailable .spec-card__img img { opacity: 0.55; }

.spec-card__badges {
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}
.spec-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px 2px 6px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-family-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.spec-badge--sale { background: var(--sp-ink); color: var(--sp-signal); }
.spec-badge--muted { background: var(--sp-sunken); color: var(--sp-ink); box-shadow: inset 0 0 0 1px var(--sp-line-strong); }
/* Inside the buy box the saving is an inline tag, not a flag on an image. */
.spec-price__line .spec-badge { border-radius: var(--radius-sm); padding: 1px 6px; font-family: var(--font-family-base); font-size: 11px; }
.spec-price__line .spec-badge--sale { background: var(--sp-signal); color: var(--sp-on-buy); }

.spec-card__body { flex: 1 1 auto; min-width: 0; padding: 8px 12px 0; }
.spec-card__brand {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spec-card__title {
  margin: 2px 0 6px;
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.spec-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--sp-ink);
  text-decoration: none;
}
.spec-card__title a:hover { text-decoration: underline; }
.spec-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sp-muted);
}
.spec-card__desc * { font-size: inherit; margin: 0; }

.spec-rate,
.spec-rating { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--sp-muted); }
.spec-stars {
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cg id='s'%3E%3Cpath d='M6 .6l1.5 3.6 3.9.3-3 2.5.9 3.8L6 8.8 2.7 10.8l.9-3.8-3-2.5 3.9-.3z'/%3E%3C/g%3E%3Cpath d='M18 .6l1.5 3.6 3.9.3-3 2.5.9 3.8L18 8.8l-3.3 2 .9-3.8-3-2.5 3.9-.3z'/%3E%3Cpath d='M30 .6l1.5 3.6 3.9.3-3 2.5.9 3.8L30 8.8l-3.3 2 .9-3.8-3-2.5 3.9-.3z'/%3E%3Cpath d='M42 .6l1.5 3.6 3.9.3-3 2.5.9 3.8L42 8.8l-3.3 2 .9-3.8-3-2.5 3.9-.3z'/%3E%3Cpath d='M54 .6l1.5 3.6 3.9.3-3 2.5.9 3.8L54 8.8l-3.3 2 .9-3.8-3-2.5 3.9-.3z'/%3E%3C/svg%3E");
  display: inline-block;
  width: 60px;
  height: 12px;
  background: linear-gradient(90deg, var(--sp-star) var(--r, 0%), var(--sp-line-strong) var(--r, 0%));
  -webkit-mask: var(--star-mask) center / 100% 100% no-repeat;
  mask: var(--star-mask) center / 100% 100% no-repeat;
}
.spec-rating__text { font-family: var(--font-family-mono); }

/* Stock: a dot and a plain statement. Shared by cards and the product page. */
.spec-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.spec-stock__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sp-ok); }
.spec-stock.is-in { color: var(--sp-ok); }
.spec-stock.is-low { color: var(--sp-warn); }
.spec-stock.is-low .spec-stock__dot { background: var(--sp-star); }
.spec-stock.is-out { color: var(--color-error); }
.spec-stock.is-out .spec-stock__dot { background: var(--color-error); }
.spec-card__stock { padding: 8px 12px 0; }

.spec-card__price { padding: 8px 12px 0; }
.spec-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; color: var(--sp-ink); }
.spec-price__from { font-size: 12px; color: var(--sp-muted); }
.spec-price__now { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.spec-price__now.is-sale { color: var(--sp-sale); }
.spec-price__was { font-size: 12px; color: var(--sp-muted); }

.spec-card__buy { padding: 8px 12px 12px; }
.spec-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.spec-buy__add { flex: 1; min-height: 34px; padding: 0 12px; }
.spec-card__buy > .spec-btn { min-height: 34px; }

.spec-step { display: inline-flex; height: 34px; border: 1px solid var(--sp-line-strong); border-radius: var(--radius-sm); background: var(--sp-surface); }
.spec-step button {
  width: 28px;
  border: 0;
  background: var(--sp-sunken);
  color: var(--sp-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.spec-step button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.spec-step button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.spec-step button:hover { background: var(--sp-line); }
.spec-step input {
  width: 40px;
  padding: 0;
  border: 0;
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}
.spec-step input::-webkit-outer-spin-button,
.spec-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html:not(.spec-js) .spec-step button { display: none; }

.spec-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-top: 1px dashed var(--sp-line);
  font-size: 12px;
}
.spec-sku { color: var(--sp-muted); letter-spacing: 0.02em; }
.spec-card--compact .spec-card__body { padding-bottom: 12px; }
.spec-card--rail .spec-card__body { padding-bottom: 12px; }
.spec-card--rail .spec-price { margin-top: 6px; }
.spec-card--rail .spec-price__now { font-size: 16px; }

/* ==========================================================================================
   PAGINATION
   ========================================================================================== */

.spec-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 8px; font-size: 13px; }
.spec-pager__summary { margin: 0; color: var(--sp-muted); font-family: var(--font-family-mono); }
.spec-pager__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.spec-pager__list > li:empty { display: none; }
.spec-pager__page,
.spec-pager__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-family: var(--font-family-mono);
  font-size: 13px;
  text-decoration: none;
}
.spec-pager__step { font-family: var(--font-family-base); font-weight: 500; }
.spec-pager__page:hover,
.spec-pager__step:hover { border-color: var(--sp-ink); color: var(--sp-ink); }
.spec-pager__page.is-current { background: var(--sp-ink); border-color: var(--sp-ink); color: var(--sp-signal); }
.spec-pager__step .spec-icon { font-size: 15px; }
.spec-pager__gap { color: var(--sp-muted); padding: 0 4px; }
@media (max-width: 479px) { .spec-pager__step span { display: none; } }

/* ==========================================================================================
   FOOTER
   ========================================================================================== */

.spec-footer { margin-top: 0; }

.spec-assure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 20px var(--container-padding);
  list-style: none;
}
.spec-assure__item { display: flex; align-items: center; gap: 12px; color: var(--sp-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.spec-assure__icon { font-size: 24px; color: var(--sp-ink); }

.spec-footer__main {
  background: var(--sp-dark);
  color: var(--sp-on-dark-muted);
  padding: 32px 0 24px;
  font-size: 13px;
  border-top: 3px solid var(--sp-signal);
}
.spec-assure + .spec-footer__main { border-top: 3px solid var(--sp-signal); }
.spec-footer__main a { color: var(--sp-on-dark); }
.spec-footer__main a:hover { color: var(--sp-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.spec-footer__main :is(h1, h2, h3, h4, h5, h6) {
  color: var(--sp-on-dark);
  font-family: var(--font-family-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.spec-footer__brand { margin: 0 0 12px; color: var(--sp-on-dark); font-family: var(--font-family-display); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.spec-footer__base { background: var(--sp-dark); color: var(--sp-on-dark-muted); font-size: 12px; }
.spec-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 16px 20px;
  border-top: 1px solid var(--sp-slate-2);
}
.spec-footer__legal p { margin: 0; }
.spec-footer__legal p + p { margin-top: 4px; }
.spec-footer__legal a { color: var(--sp-on-dark); text-decoration: underline; text-underline-offset: 2px; }
.spec-footer__pay { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--sp-on-dark-muted); font-size: 24px; }
.spec-footer__pay li { display: inline-flex; }
/* When the reassurance row is absent the dark block still needs its signal rule. */
.spec-footer > .spec-footer__base:first-child { border-top: 3px solid var(--sp-signal); }

/* ==========================================================================================
   PRODUCT PAGE
   ========================================================================================== */

/* Product page layout: see SPEC SKIN below. */

/* Gallery (Nova's carousel / grid / stack markup) */
.spec-pdp #main-slider .splide__slide,
.spec-pdp .nova-gallery__grid-item,
.spec-pdp .nova-gallery__stack-item {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-md);
}
.spec-pdp .nova-gallery__image { mix-blend-mode: multiply; }
.spec-pdp #thumb-slider .splide__slide {
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  background: var(--sp-surface);
  opacity: 0.75;
}
.spec-pdp #thumb-slider .splide__slide.is-active { border-color: var(--sp-ink); box-shadow: 0 0 0 2px var(--sp-signal); opacity: 1; }
.spec-pdp .nova-gallery__thumb { object-fit: contain; mix-blend-mode: multiply; }

/* Summary */
.spec-pdp__brand { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sp-muted); }
.spec-pdp__title {
  margin: 4px 0 8px;
  font-family: var(--font-family-display);
  font-size: clamp(26px, 1vw + 20px, 32px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--sp-ink);
}
.spec-pdp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sp-line);
  font-size: 13px;
  color: var(--sp-muted);
}
.spec-pdp__meta:empty { display: none; }
.spec-pdp__sku b { color: var(--sp-ink); font-weight: 500; }
.spec-pdp__summary { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--sp-text); }
.spec-pdp__social { margin-top: 16px; }

.spec-promises {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--sp-ink);
}
.spec-promises:not(:has(li)) { display: none; }
.spec-promises li { display: flex; align-items: center; gap: 8px; }
.spec-promises .spec-icon { font-size: 18px; }

/* Buy box */
.spec-buybox {
  margin: 0;
  background: var(--sp-surface);
  border: 1px solid var(--sp-ink);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--sp-signal);
}
@media (max-width: 899px) { .spec-buybox { box-shadow: none; } }
.spec-buybox__sec { padding: 12px 16px; border-bottom: 1px solid var(--sp-line); }
.spec-buybox__sec:last-child { border-bottom: 0; }
.spec-buybox__sec:empty { display: none; }

.spec-price__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; color: var(--sp-ink); }
.spec-price__line .spec-price__now { font-size: 34px; }
.spec-price__line .spec-price__was { font-size: 14px; }
.spec-price__from:empty { display: none; }
.spec-price__note { margin: 2px 0 0; font-size: 12px; color: var(--sp-muted); }

.spec-buybox__row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin-top: 12px; }
.spec-buybox__row:first-child { margin-top: 0; }
.spec-buybox__qty { flex: none; }
.spec-buybox__qty .nova-quantity-selector { margin: 0; }
.spec-buybox__qty .nova-quantity-select { height: 44px; min-width: 96px; font-family: var(--font-family-mono); font-weight: 600; }
.spec-buybox__qty .nova-quantity-selector--amount label { font-weight: 600; color: var(--sp-ink); }
.spec-buybox__add { flex: 1 1 160px; }
.spec-buybox__unavailable { margin: 8px 0 0; font-size: 13px; color: var(--sp-muted); }

.spec-doc__title,
.spec-pdp__docs .spec-doc__title {
  margin: 0 0 12px;
  font-family: var(--font-family-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-ink);
}
.spec-pdp__docs { margin-top: 8px; min-width: 0; }
.spec-anchors {
  position: sticky;
  top: var(--sp-header-offset);
  z-index: 20;
  display: flex;
  overflow-x: auto;
  background: var(--sp-canvas);
  border-bottom: 2px solid var(--sp-ink);
  scrollbar-width: none;
}
.spec-anchors::-webkit-scrollbar { display: none; }
.spec-anchors a {
  margin-bottom: -2px;
  padding: 10px 16px;
  border-bottom: 4px solid transparent;
  font-family: var(--font-family-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--sp-slate-3);
}
.spec-anchors a:hover { color: var(--sp-ink); border-bottom-color: var(--sp-signal); }
.spec-doc { scroll-margin-top: calc(var(--sp-header-offset) + 52px); padding: 16px; background: var(--sp-surface); border: 1px solid var(--sp-line); border-top: 0; }
.spec-doc + .spec-doc { margin-top: 12px; border-top: 1px solid var(--sp-line); }
.spec-pdp__docs > .spec-doc:first-child { border-top: 1px solid var(--sp-line); }
.spec-anchors + .spec-doc { border-top: 0; }

.spec-prose { font-size: 14px; line-height: 1.6; color: var(--sp-text); }
.spec-prose > :first-child { margin-top: 0; }
.spec-prose > :last-child { margin-bottom: 0; }
.spec-prose :is(h1, h2, h3, h4) { font-family: var(--font-family-display); font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; margin: 1.2em 0 0.5em; }
.spec-prose ul, .spec-prose ol { padding-left: 1.2em; }
.spec-prose li + li { margin-top: 4px; }
.spec-prose img { max-width: 100%; height: auto; }
.spec-prose table { width: 100%; border-collapse: collapse; }
.spec-prose :is(th, td) { padding: 6px 8px; border-bottom: 1px solid var(--sp-line); text-align: left; }

.spec-pdp-lower { margin-top: 32px; }

/* Stock line in the buy box sits under the price/options and above the quantity row. */
.spec-buybox__purchase .spec-stock { margin-bottom: 0; }
.spec-buybox__purchase .spec-stock + .spec-buybox__row { margin-top: 12px; }
.spec-buybox__purchase .spec-stock[hidden] { display: none; }

/* Variant pickers (markup built by Nova's variants.js) */
.spec-pdp #variantSelector { margin-bottom: 8px; min-height: 0; }
.spec-pdp .nova-variant-group { margin-bottom: 20px; }
.spec-pdp .nova-variant-label-row { margin-bottom: 10px; }
.spec-pdp .nova-variant-label {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sp-ink);
}
.spec-pdp .nova-variant-label-value { font-size: 14px; color: var(--sp-text); }
.spec-pdp .nova-variant-label-value:empty::after { content: "choose one"; font-style: normal; color: var(--sp-sale); font-weight: 600; }
.spec-pdp .nova-variant-btn {
  min-width: 52px;
  height: 46px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--sp-ink);
  background: var(--sp-surface);
  border: 1.5px solid var(--sp-line-strong);
  border-radius: var(--radius-md);
}
.spec-pdp .nova-variant-btn:hover:not(.nova-variant-btn--disabled):not(.nova-variant-btn--selected) {
  border-color: var(--sp-ink);
  transform: none;
  box-shadow: none;
}
.spec-pdp .nova-variant-btn:focus-visible { outline: none; box-shadow: var(--sp-focus-ring); }
/* Selected is ink, not the brand colour: the brand colour is reserved for the button that buys. */
.spec-pdp .nova-variant-btn--selected,
.spec-pdp .nova-variant-btn--disabled.nova-variant-btn--selected {
  background: var(--sp-ink);
  border-color: var(--sp-ink);
  color: var(--sp-surface);
  box-shadow: none;
}
.spec-pdp .nova-variant-btn--disabled { background: var(--sp-subtle); color: var(--color-gray-400); border-color: var(--sp-line); }
.spec-pdp #notAvailable {
  padding: 10px 14px !important;
  margin-bottom: 16px !important;
  background: color-mix(in srgb, var(--sp-sale) 8%, var(--sp-surface)) !important;
  color: var(--sp-sale) !important;
  border: 1px solid color-mix(in srgb, var(--sp-sale) 30%, transparent);
  border-radius: var(--radius-md) !important;
  font-weight: 600;
}
.spec-pdp .nova-variant-attention .nova-variant-group { animation: spec-nudge 600ms var(--sp-ease); }
@keyframes spec-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Docked buy bar (mobile only - on desktop the buy box itself stays in view) */
.spec-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-line);
  box-shadow: 0 -8px 24px -12px rgba(19, 23, 20, 0.2);
  padding: 10px var(--container-padding) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 260ms var(--sp-ease);
}
.spec-dock.nova-sticky-buybar--visible { transform: none; }
.spec-dock__inner { display: flex; align-items: center; gap: 12px; }
.spec-dock__details { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spec-dock__name { display: none; }
.spec-dock__variant {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--sp-text);
  text-align: left;
  cursor: pointer;
}
.spec-dock__change { color: var(--sp-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.spec-dock__price { font-size: 18px; font-weight: 750; color: var(--sp-ink); }
.spec-dock__btn { flex: none; min-height: 50px; }
.spec-dock__btn[aria-disabled="true"] { opacity: 0.5; }
@media (min-width: 1024px) { .spec-dock { display: none; } }
@media (max-width: 1023px) { body.nova-buybar-active { padding-bottom: 76px; } }

.spec-pdp .nova-variant-group--missing .nova-variant-label { color: var(--sp-sale); }
.spec-pdp .nova-variant-group--missing .nova-variant-btn:not(.nova-variant-btn--disabled):not(.nova-variant-btn--selected) { border-color: var(--sp-sale); }
.spec-pdp .nova-variant-label-value:empty::after { content: none; }

/* ==========================================================================================
   "ADDED TO BASKET" PANEL (side sheet on desktop, bottom sheet on phones)
   ========================================================================================== */

.spec-added { position: fixed; inset: 0; z-index: 1070; }
.spec-added[hidden] { display: none; }
.spec-added__scrim { position: absolute; inset: 0; background: rgba(11, 14, 12, 0.45); opacity: 0; transition: opacity 240ms var(--sp-ease); }
.spec-added.is-open .spec-added__scrim { opacity: 1; }
.spec-added__panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px 24px;
  background: var(--sp-surface);
  box-shadow: var(--shadow-xl);
  transition: transform 280ms var(--sp-ease);
}
@media (min-width: 720px) {
  .spec-added__panel { top: 0; right: 0; bottom: 0; width: min(420px, 92vw); transform: translateX(100%); overflow-y: auto; }
}
@media (max-width: 719px) {
  .spec-added__panel {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    overflow-y: auto;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }
}
.spec-added.is-open .spec-added__panel { transform: none; }
.spec-added__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-right: -10px; }
.spec-added__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; color: var(--sp-ink); }
.spec-added__title:focus { outline: none; }
.spec-added__tick { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--color-success); color: #FFFFFF; font-size: 16px; }
.spec-added__tick .spec-icon { stroke-width: 2.5; }
.spec-added__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-block: 1px solid var(--sp-line); }
.spec-added__media { display: block; aspect-ratio: var(--product-image-ratio); border-radius: var(--radius-sm); background: var(--sp-tile); overflow: hidden; }
.spec-added__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.spec-added__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-added__name { font-weight: 600; color: var(--sp-ink); line-height: 1.35; }
.spec-added__meta { font-size: 14px; color: var(--sp-muted); }
.spec-added__price { font-weight: 700; color: var(--sp-ink); white-space: nowrap; }
.spec-added__totals { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 15px; }
.spec-added__totals[hidden] { display: none; }
.spec-added__totals dt { font-weight: 500; color: var(--sp-text); }
.spec-added__count { color: var(--sp-muted); }
.spec-added__totals dd { margin: 0; font-size: 18px; font-weight: 750; color: var(--sp-ink); }
.spec-added__actions { display: grid; gap: 10px; }
.spec-added__continue { justify-self: center; }
.spec-added__promise { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--sp-subtle); font-size: 14px; color: var(--sp-ink); }
.spec-added__promise .spec-icon { font-size: 18px; }
[aria-busy="true"].spec-btn { opacity: 0.7; cursor: progress; }
.spec-added__title:focus-visible { box-shadow: none; }

/* The "added to basket" confirmation is a compact panel under the header on desktop (the shopper keeps
   their place on the page), and stays a bottom sheet on phones. */
@media (min-width: 720px) {
  .spec-added__scrim { background: transparent; }
  .spec-added__panel {
    top: calc(var(--sp-header-offset) + 8px);
    right: var(--container-padding);
    bottom: auto;
    width: min(380px, calc(100vw - 2 * var(--container-padding)));
    max-height: calc(100vh - var(--sp-header-offset) - 24px);
    gap: 12px;
    padding: 0 0 16px;
    border: 1px solid var(--sp-line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 200ms var(--sp-ease), opacity 200ms var(--sp-ease);
  }
  .spec-added.is-open .spec-added__panel { transform: none; opacity: 1; }
  .spec-added__head { margin: 0; padding: 4px 8px 4px 16px; background: #E3F3E7; border-bottom: 1px solid var(--sp-line); border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .spec-added__item,
  .spec-added__totals,
  .spec-added__actions,
  .spec-added__promise { margin-inline: 16px; }
  .spec-added__item { border-top: 0; }
}
.spec-added__title { font-family: var(--font-family-display); font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-success); }
.spec-added__tick { border-radius: var(--radius-sm); }
.spec-added__media { aspect-ratio: 1 / 1; background: var(--sp-surface); border: 1px solid var(--sp-line); }
.spec-added__price,
.spec-added__totals dd { font-family: var(--font-family-mono); font-weight: 600; }
.spec-added__promise { border-radius: var(--radius-sm); }

/* Nova's basket (templates/nova/extensions/fullBasket) is skinned by tokens: see fragment/commerceTokens.html. Spec's:
   dark surfaces with hairlines, monospaced numerals, and the accent-coloured buy button. */
:root {
  --nb-card-bg: var(--sp-surface);
  --nb-card-border: 1px solid var(--sp-line-strong);
  --nb-summary-bg: var(--sp-surface);
  --nb-rule: var(--sp-line);
  --nb-control-border: 1px solid var(--sp-line-strong);
  --nb-control-radius: var(--radius-sm);
  --nb-num-font: var(--font-family-mono);
  --nb-sticky-top: calc(var(--sp-header-offset) + 16px);
  --nb-bar-bg: var(--sp-surface);
  --nb-title-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem);
  --nb-item-title-weight: 500;
  --nb-total-size: 1.5rem;
  --nb-total-weight: 500;

  --nb-cta-bg: var(--sp-buy);
  --nb-cta-fg: var(--sp-on-buy);
  --nb-cta-hover-bg: var(--sp-buy-hover);
  --nb-cta-radius: var(--radius-md);
  --nb-cta-weight: 700;

  /* Checkout steps */
  --nb-head-bg: var(--sp-subtle);
  --nb-input-bg: var(--sp-inset);
  --nb-card-title-size: 1.125rem;
  --nb-legend-size: 1.0625rem;
}
/* Leave room for the item-count badge that overhangs the basket icon. */
.spec-action__iconwrap + .spec-action__text { margin-left: 8px; }

/* ==========================================================================================
   SPEC SKIN
   Everything above is the shared mechanism (header, menu, drawer, filters, cards, pager, footer,
   "added" panel), driven by role tokens. From here on it is Spec's own look, and it wins by coming
   last: hairlines instead of fills, mono uppercase labels, squared controls, one accent, big
   dark space, product images on a lit stage.
   ========================================================================================== */

/* ── Bootstrap 5 dark values (Nova loads bootstrap.min.css; its tables, cards, forms and alerts read these) ── */
:root {
  --bs-body-color: #C3D3D0;
  --bs-body-color-rgb: 195, 211, 208;
  --bs-body-bg: #071519;
  --bs-body-bg-rgb: 7, 21, 25;
  --bs-emphasis-color: #E7EFEC;
  --bs-emphasis-color-rgb: 231, 239, 236;
  --bs-secondary-color: rgba(195, 211, 208, 0.75);
  --bs-secondary-bg: #0F262C;
  --bs-tertiary-color: rgba(195, 211, 208, 0.6);
  --bs-tertiary-bg: #0B1D22;
  --bs-border-color: rgba(190, 222, 216, 0.2);
  --bs-link-color: #E0B067;
  --bs-link-hover-color: #F0DCAE;
  --bs-code-color: #F0DCAE;
  --bs-primary-bg-subtle: rgba(224, 176, 103, 0.14);
  --bs-primary-border-subtle: rgba(224, 176, 103, 0.35);
  --bs-primary-text-emphasis: #F0DCAE;
  --bs-success-bg-subtle: rgba(88, 201, 138, 0.14);
  --bs-success-border-subtle: rgba(88, 201, 138, 0.35);
  --bs-success-text-emphasis: #8FE0B2;
  --bs-danger-bg-subtle: rgba(242, 134, 124, 0.14);
  --bs-danger-border-subtle: rgba(242, 134, 124, 0.35);
  --bs-danger-text-emphasis: #F6A79F;
  --bs-warning-bg-subtle: rgba(240, 179, 76, 0.14);
  --bs-warning-border-subtle: rgba(240, 179, 76, 0.35);
  --bs-warning-text-emphasis: #F0C978;
  --bs-info-bg-subtle: rgba(134, 174, 240, 0.14);
  --bs-info-border-subtle: rgba(134, 174, 240, 0.35);
  --bs-info-text-emphasis: #A9C6F5;
  --bs-secondary-bg-subtle: #153239;
  --bs-secondary-border-subtle: rgba(190, 222, 216, 0.28);
  --bs-secondary-text-emphasis: #C3D3D0;
  --bs-light-bg-subtle: #0F262C;
  --bs-dark-bg-subtle: #050F12;
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────── */
html { background: var(--sp-canvas); -webkit-text-size-adjust: 100%; }
body {
  background: var(--sp-canvas);
  color: var(--sp-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--sp-accent) 40%, transparent); color: var(--sp-ink); }
a { color: var(--sp-ink); }
a:hover { color: var(--sp-accent); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--sp-accent);
  outline-offset: 3px;
  box-shadow: none;
  border-radius: var(--radius-sm);
}
.spec-main { padding-bottom: 0; }
.spec-skip { background: var(--sp-accent); color: var(--sp-on-accent); }
.spec-skip:focus { color: var(--sp-on-accent); }

.spec-display {
  font-family: var(--font-family-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: none;
  color: var(--sp-ink);
  overflow-wrap: anywhere;
}
.spec-eyebrow {
  margin: 0 0 16px;
  font: 500 12px/1.4 var(--font-family-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sp-accent);
}
.spec-eyebrow a { color: inherit; text-decoration: none; }
.spec-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Buttons: squared, mono, uppercase ───────────────────────────────────────────────── */
.spec-btn {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--sp-ink);
  font: 500 12px/1 var(--font-family-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-btn:hover { background: transparent; border-color: var(--sp-accent); color: var(--sp-accent); }
.spec-btn--pri,
.spec-btn--buy,
.spec-btn--dark,
.spec-btn--ink { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-on-accent); }
.spec-btn--pri:hover,
.spec-btn--buy:hover,
.spec-btn--dark:hover,
.spec-btn--ink:hover { background: var(--sp-ink); border-color: var(--sp-ink); color: var(--sp-canvas); }
.spec-btn--outline,
.spec-btn--quiet { background: transparent; }
.spec-btn--quiet:hover { background: transparent; }
.spec-btn--sm { min-height: 36px; padding: 0 14px; font-size: 11px; }
.spec-btn--lg { min-height: 52px; font-size: 12px; padding: 0 28px; }
.spec-btn .spec-icon { font-size: 16px; }
.spec-btn[disabled] { opacity: 0.4; }
.spec-iconbtn { border-radius: var(--radius-sm); color: var(--sp-text); }
.spec-iconbtn:hover { background: var(--sp-sunken); color: var(--sp-ink); }
.spec-linkbtn { color: var(--sp-text); font-family: var(--font-family-mono); font-size: 12px; letter-spacing: 0.06em; }

/* ── Header: glass bar, hairline, minimal ────────────────────────────────────────────── */
.spec-announce {
  background: var(--sp-subtle);
  color: var(--sp-text);
  border-bottom: 1px solid var(--sp-line);
  font: 400 11px/1.4 var(--font-family-mono);
  letter-spacing: 0.06em;
}
.spec-announce a { color: var(--sp-ink); }
.spec-promise {
  background: var(--sp-canvas);
  color: var(--sp-muted);
  border-bottom: 1px solid var(--sp-line);
  font: 400 11px/1.4 var(--font-family-mono);
  letter-spacing: 0.04em;
}
.spec-announce + .spec-promise { border-top: 0; }
.spec-promise__item { font-weight: 400; }
.spec-promise__item .spec-icon { color: var(--sp-accent); }

.spec-header {
  background: color-mix(in srgb, var(--sp-canvas) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--sp-ink);
  border-bottom: 1px solid var(--sp-line);
}
.spec-header .spec-iconbtn { color: var(--sp-text); }
.spec-header .spec-iconbtn:hover { background: var(--sp-sunken); color: var(--sp-ink); }
.spec-header :where(a, button, input):focus-visible { box-shadow: none; }
.spec-header__brand,
.spec-header__brand:hover { color: var(--sp-ink); }
.spec-header__name {
  font-family: var(--font-family-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
}
.spec-header__name--with-logo { font-size: 12px; }
/* A long site name wraps onto a second line and is clipped after that, so it never pushes the page
   wider than a phone screen (and the account and basket buttons off it), as in Brock. */
.spec-header__brand { max-width: 100%; }
.spec-header__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  line-height: 1.25;
}
.spec-header__logo { height: 32px; }

.spec-action {
  border-radius: var(--radius-sm);
  color: var(--sp-text);
  font-family: var(--font-family-mono);
}
.spec-action:hover { background: var(--sp-sunken); color: var(--sp-ink); }
.spec-action__icon { font-size: 20px; }
.spec-action__label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.spec-action__caption { font-size: 11px; color: var(--sp-muted); }
.spec-action__count { background: var(--sp-accent); color: var(--sp-on-accent); border-radius: var(--radius-sm); }
/* The basket is an outlined control; it fills its border with the accent once it holds something. */
.spec-header .spec-action--basket,
.spec-header .spec-action--basket:hover {
  background: transparent;
  border: 1px solid var(--sp-line-strong);
  color: var(--sp-ink);
}
.spec-header .spec-action--basket:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.spec-header .spec-action--basket.has-items { border-color: var(--sp-accent); }
.spec-action--basket .spec-action__caption { color: var(--sp-muted); font-family: var(--font-family-mono); }
/* Leave room for the item-count badge that overhangs the basket icon. */
.spec-action__iconwrap + .spec-action__text { margin-left: 10px; }

.spec-search {
  height: 40px;
  background: var(--sp-inset);
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
}
.spec-search:hover { border-color: var(--sp-muted); }
.spec-search:focus-within { border-color: var(--sp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-accent) 25%, transparent); }
.spec-search__icon { color: var(--sp-muted); }
.spec-search__input { color: var(--sp-ink); }
.spec-search__submit {
  background: var(--sp-accent);
  color: var(--sp-on-accent);
  font: 500 11px/1 var(--font-family-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-search__submit:hover { background: var(--sp-accent-hover); color: var(--sp-on-accent); }
.spec-search__panel { background: var(--sp-surface); border: 1px solid var(--sp-line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.spec-searchbar .nova-searchbar__section-title { font-family: var(--font-family-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--sp-dim); }
.spec-searchbar .nova-searchbar__option:hover,
.spec-searchbar .nova-searchbar__option.is-active,
.spec-searchbar .nova-searchbar__footer:hover,
.spec-searchbar .nova-searchbar__footer.is-active { background: var(--sp-sunken); }
.spec-searchbar .nova-searchbar__thumb { background: var(--sp-stage-a); mix-blend-mode: var(--sp-img-blend); border-radius: var(--radius-sm); }
.spec-searchbar .nova-searchbar__cat-icon { background: var(--sp-sunken); color: var(--sp-ink); }

/* Category row */
.spec-header__nav { background: transparent; color: var(--sp-text); border-top: 1px solid var(--sp-line); }
.spec-header__nav .spec-menu { gap: 4px; }
.spec-header__nav .spec-menu__row { height: 44px; }
.spec-header__nav .spec-menu__link {
  color: var(--sp-muted);
  font: 500 12px/1 var(--font-family-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spec-header__nav .spec-menu__link:hover,
.spec-header__nav .spec-menu__item.is-open > .spec-menu__row .spec-menu__link,
.spec-header__nav .spec-menu__item.is-current .spec-menu__link { color: var(--sp-ink); }
.spec-header__nav .spec-menu__toggle,
.spec-menu__caret { color: var(--sp-dim); }
.spec-header__nav .spec-menu__item:hover > .spec-menu__row,
.spec-header__nav .spec-menu__item.is-open > .spec-menu__row { background: transparent; }
.spec-header__nav .spec-menu__row::after { left: 12px; right: 12px; height: 2px; background: var(--sp-accent); }
.spec-header__nav .spec-menu__panel {
  background: var(--sp-subtle);
  color: var(--sp-text);
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line-strong);
  box-shadow: 0 32px 48px -28px rgba(0, 0, 0, 0.75);
}
.spec-menu__heading { font: 500 11px/1.4 var(--font-family-mono); letter-spacing: 0.14em; color: var(--sp-dim); }
.spec-menu__heading--link { color: var(--sp-ink); }
.spec-menu__sublink,
.spec-menu__more { color: var(--sp-ink); font-size: 15px; }
.spec-menu__sublink:hover,
.spec-menu__more:hover { color: var(--sp-accent); }
.spec-menu__more { font-weight: 500; }
.spec-menu__all { color: var(--sp-accent); font: 500 12px/1 var(--font-family-mono); letter-spacing: 0.12em; text-transform: uppercase; border-top-color: var(--sp-line); }
.spec-drawer__panel { background: var(--sp-surface); border-right: 1px solid var(--sp-line-strong); }
.spec-drawer__title,
.spec-filters__title { font: 500 12px/1 var(--font-family-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sp-accent); }
.spec-drawer .spec-menu__link { font-size: 17px; font-weight: 500; }
.spec-drawer .spec-menu__list--flow { columns: 2 130px; }
.spec-drawer__scrim,
.spec-filters__scrim { background: rgba(2, 9, 11, 0.66); }

/* Breadcrumb */
.nova-breadcrumb { margin: 20px 0 0; }
.nova-breadcrumb__list { font: 400 11px/1.6 var(--font-family-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.nova-breadcrumb__link:hover,
.nova-breadcrumb__link:focus-visible { color: var(--sp-accent); }

/* Content-page (/p/...) trail: sits between the header and any hero, so keep it tight. */
.nova-page-crumbs .nova-breadcrumb { margin: 12px 0; }

/* ── Collection hero ─────────────────────────────────────────────────────────────────── */
.spec-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--sp-line); }
.spec-hero__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-family-display);
  font-size: clamp(2.2rem, 6.4vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--sp-ink);
  overflow-wrap: anywhere;
}
.spec-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.spec-hero__lede {
  max-width: 52ch;
  color: var(--sp-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spec-hero__lede > * { margin: 0; font-size: inherit; color: inherit; }
.spec-hero__lede > * + * { margin-top: 0.6em; }
.spec-hero__count { margin: 0; font: 400 12px/1.4 var(--font-family-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sp-dim); }
.spec-hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  color: var(--sp-ink);
  font: 500 11px/1 var(--font-family-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.spec-pill:hover { border-color: var(--sp-accent); color: var(--sp-accent); }

/* ── Product art: the lit stage ──────────────────────────────────────────────────────── */
.spec-art-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.spec-art-empty::before {
  content: "";
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(15, 38, 44, 0.28);
  box-shadow: 0 0 0 clamp(8px, 2vw, 16px) rgba(15, 38, 44, 0.05), 0 0 0 calc(clamp(8px, 2vw, 16px) + 1px) rgba(15, 38, 44, 0.12);
}
.spec-art-empty__mark {
  position: absolute;
  font: 400 clamp(2rem, 6vw, 4rem)/1 var(--font-family-display);
  color: rgba(15, 38, 44, 0.55);
}

/* ── Showcase rows ───────────────────────────────────────────────────────────────────── */
.spec-show {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--sp-line);
}
.spec-show:last-child { border-bottom: 0; }
.spec-show:nth-of-type(even) { grid-template-columns: 0.85fr 1.15fr; }
.spec-show:nth-of-type(even) .spec-show__art { order: 2; }
.spec-show__art {
  position: relative;
  display: block;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  aspect-ratio: var(--product-image-ratio);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-lg);
  background: var(--sp-stage);
  box-shadow: 0 50px 100px -60px color-mix(in srgb, var(--sp-accent) 60%, transparent);
}
.spec-show__img,
.spec-show__img > div { position: absolute; inset: 0; }
.spec-show__img img {
  width: 100% !important;
  height: 100% !important;
  padding: 7%;
  box-sizing: border-box;
  object-fit: contain !important;
  mix-blend-mode: var(--sp-img-blend);
  transition: transform 0.9s var(--sp-ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .spec-show__art:hover .spec-show__img img { transform: scale(1.04); }
}
.spec-show.is-unavailable .spec-show__img img { opacity: 0.55; }
.spec-show__info { min-width: 0; }
.spec-show__idx { margin: 0 0 16px; font: 400 12px/1.4 var(--font-family-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sp-dim); }
.spec-show__title { margin: 0 0 16px; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.spec-show__title a { color: var(--sp-ink); text-decoration: none; }
.spec-show__title a:hover { color: var(--sp-accent); }
.spec-show__desc {
  max-width: 44ch;
  margin: 0 0 28px;
  color: var(--sp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spec-show__desc > * { margin: 0; font-size: inherit; color: inherit; }
.spec-show__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.spec-show .spec-price { align-items: baseline; gap: 4px 10px; }
.spec-show .spec-price__now { font-size: 1.5rem; font-weight: 400; letter-spacing: 0; }
.spec-show .spec-price__was { font-size: 0.875rem; }
.spec-show__flag { font: 500 11px/1 var(--font-family-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sp-muted); }

.spec-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--sp-ease), transform 0.8s var(--sp-ease); }
.spec-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .spec-show,
  .spec-show:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0; }
  .spec-show:nth-of-type(even) .spec-show__art { order: 0; }
  .spec-show__art { max-width: 460px; }
}

/* ── Price and stock (shared) ────────────────────────────────────────────────────────── */
.spec-price { color: var(--sp-ink); }
.spec-price__from { font: 400 11px/1 var(--font-family-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sp-dim); }
.spec-price__now { font-weight: 400; letter-spacing: 0; }
.spec-price__now.is-sale { color: var(--sp-sale); }
.spec-price__was { color: var(--sp-dim); }
.spec-stock { font: 500 12px/1.3 var(--font-family-mono); letter-spacing: 0.04em; }
.spec-stock.is-out { color: var(--color-error); }

/* ── Listing furniture (search, merchandising, large collections) ────────────────────── */
.spec-plp-head { margin: clamp(28px, 5vw, 56px) 0 24px; gap: 8px 16px; }
.spec-plp-head__title {
  font-family: var(--font-family-display);
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--sp-ink);
  overflow-wrap: anywhere;
}
.spec-plp-head__count { font: 400 12px/1.4 var(--font-family-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sp-dim); }
.spec-plp-head__eyebrow { font: 500 12px/1.4 var(--font-family-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sp-accent); }
.spec-toolbar { background: transparent; border: 0; border-bottom: 1px solid var(--sp-line); border-radius: 0; padding: 0 0 14px; margin-bottom: 28px; }
.spec-toolbar__count { font: 400 12px/1.4 var(--font-family-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-muted); }
.spec-sort__label { font: 400 11px/1 var(--font-family-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sp-dim); }
.spec-select__control {
  height: 36px;
  background: var(--sp-inset);
  color: var(--sp-ink);
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  font: 500 12px/1 var(--font-family-mono);
  letter-spacing: 0.04em;
}
.spec-select__control:hover { border-color: var(--sp-accent); }
.spec-select__chevron { color: var(--sp-muted); }
.spec-chip { background: transparent; border-color: var(--sp-line-strong); color: var(--sp-ink); font: 500 11px/1 var(--font-family-mono); letter-spacing: 0.06em; border-radius: var(--radius-sm); }
.spec-chip:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.spec-chip--applied,
.spec-chip--applied:hover { background: color-mix(in srgb, var(--sp-accent) 12%, transparent); border-color: var(--sp-accent); color: var(--sp-ink); }
.spec-applied__clear { color: var(--sp-muted); font-family: var(--font-family-mono); }
.spec-toolbar__badge { background: var(--sp-accent); color: var(--sp-on-accent); }

.spec-listing.has-rail { grid-template-columns: 248px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.spec-listing.has-rail .spec-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 1024px) {
  .spec-filters__panel { background: transparent; border: 0; border-radius: 0; }
  .spec-filters__body { padding: 0; }
}
@media (max-width: 1023px) {
  .spec-filters__panel { background: var(--sp-surface); border-top: 1px solid var(--sp-line-strong); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
.spec-facet__title,
.spec-tree__title { font: 500 11px/1.3 var(--font-family-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sp-muted); }
.spec-facet__value { font-size: 14px; color: var(--sp-text); }
.spec-facet__count { color: var(--sp-dim); }
.spec-facet__box { background: var(--sp-inset); border-color: var(--sp-line-strong); }
.spec-facet__value:hover .spec-facet__box { border-color: var(--sp-accent); }
.is-selected > .spec-facet__value .spec-facet__box { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-on-accent); }
.spec-facet__selected { background: var(--sp-accent); color: var(--sp-on-accent); }
.spec-facet__more { color: var(--sp-accent); font-family: var(--font-family-mono); font-size: 12px; }
.spec-tree__current { background: transparent; border-left: 2px solid var(--sp-accent); font-weight: 500; }
.spec-tree__list a:hover,
.spec-tree__up:hover { color: var(--sp-accent); text-decoration: none; }
.spec-empty__title { font-family: var(--font-family-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; text-transform: none; letter-spacing: -0.02em; }

/* ── Cards: large, dark, the product on its stage ────────────────────────────────────── */
.spec-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 2.4vw, 40px) clamp(16px, 2vw, 32px); }
@media (max-width: 519px) { .spec-grid { grid-template-columns: minmax(0, 1fr); } }
.spec-card { background: transparent; border: 0; border-radius: 0; }
.spec-card:hover { border-color: transparent; }
.spec-card__media {
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-lg);
  background: var(--sp-stage);
  transition: border-color 0.3s var(--sp-ease), box-shadow 0.3s var(--sp-ease);
}
.spec-card:hover .spec-card__media,
.spec-card:focus-within .spec-card__media { border-color: var(--sp-accent); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--sp-accent) 60%, transparent); }
.spec-card__img img,
.spec-card__placeholder { padding: 8%; box-sizing: border-box; mix-blend-mode: var(--sp-img-blend); }
.spec-card__badges { top: 12px; }
.spec-badge { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: 500 10px/1.2 var(--font-family-mono); letter-spacing: 0.14em; padding: 4px 8px 4px 6px; }
.spec-badge--sale { background: var(--sp-accent); color: var(--sp-on-accent); }
.spec-badge--muted { background: var(--sp-canvas); color: var(--sp-ink); box-shadow: none; }
.spec-price__line .spec-badge { border-radius: var(--radius-sm); }
.spec-price__line .spec-badge--sale { background: var(--sp-accent); color: var(--sp-on-accent); }
.spec-card__body { padding: 16px 0 0; }
.spec-card__brand { font: 500 11px/1.4 var(--font-family-mono); letter-spacing: 0.14em; color: var(--sp-dim); }
.spec-card__title { margin: 4px 0 6px; font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.spec-card__title a { color: var(--sp-ink); }
.spec-card__title a:hover { color: var(--sp-accent); text-decoration: none; }
.spec-card__desc { font-size: 13px; color: var(--sp-muted); }
.spec-rate,
.spec-rating { font-family: var(--font-family-mono); color: var(--sp-muted); }
.spec-stars { background: linear-gradient(90deg, var(--sp-accent) var(--r, 0%), var(--sp-line-strong) var(--r, 0%)); }
.spec-card__stock,
.spec-card__price { padding: 8px 0 0; }
.spec-card__price .spec-price__now { font-size: 1.125rem; }
.spec-card__buy { padding: 12px 0 0; }
.spec-card__buy > .spec-btn { min-height: 40px; }
.spec-buy__add { min-height: 40px; padding: 0 12px; }
.spec-step { height: 40px; background: transparent; border-color: var(--sp-line-strong); border-radius: var(--radius-sm); }
.spec-step button { background: transparent; color: var(--sp-text); width: 32px; }
.spec-step button:hover { background: var(--sp-sunken); color: var(--sp-ink); }
.spec-step input { background: transparent; color: var(--sp-ink); width: 44px; }
.spec-card__foot { padding: 12px 0 0; border-top: 0; font-family: var(--font-family-mono); }
.spec-sku { color: var(--sp-dim); letter-spacing: 0.06em; }

.spec-rail { padding-block: clamp(48px, 7vw, 88px); }
.spec-rail__title { font-family: var(--font-family-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.02em; }
.spec-rail__subtitle { color: var(--sp-muted); }
.spec-card--rail .spec-card__title { font-size: 0.95rem; }

/* ── Pagination ──────────────────────────────────────────────────────────────────────── */
.spec-pager { margin: 40px 0 8px; }
.spec-pager__summary { color: var(--sp-dim); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.spec-pager__page,
.spec-pager__step { background: transparent; border-color: var(--sp-line-strong); color: var(--sp-ink); border-radius: var(--radius-sm); }
.spec-pager__step { font-family: var(--font-family-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.spec-pager__page:hover,
.spec-pager__step:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.spec-pager__page.is-current { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-on-accent); }

/* ── Footer ──────────────────────────────────────────────────────────────────────────── */
.spec-footer { border-top: 1px solid var(--sp-line); margin-top: clamp(32px, 6vw, 72px); }
.spec-assure { padding-block: 32px; }
.spec-assure__item { color: var(--sp-text); font: 400 12px/1.4 var(--font-family-mono); letter-spacing: 0.04em; }
.spec-assure__icon { color: var(--sp-accent); }
.spec-footer__main,
.spec-assure + .spec-footer__main { background: var(--sp-dark); border-top: 1px solid var(--sp-line); color: var(--sp-muted); }
.spec-footer__main a { color: var(--sp-text); }
.spec-footer__main a:hover { color: var(--sp-accent); }
.spec-footer__main :is(h1, h2, h3, h4, h5, h6) { color: var(--sp-ink); font: 500 11px/1.4 var(--font-family-mono); letter-spacing: 0.14em; }
.spec-footer__brand { font-family: var(--font-family-display); font-size: 14px; font-weight: 500; letter-spacing: 0.3em; color: var(--sp-ink); }
.spec-footer__base { background: var(--sp-dark); color: var(--sp-muted); font-family: var(--font-family-mono); }
.spec-footer__base-inner { border-top: 1px solid var(--sp-line); }
.spec-footer__legal a { color: var(--sp-text); }
.spec-footer > .spec-footer__base:first-child { border-top: 1px solid var(--sp-line); }
.spec-footer__pay { color: var(--sp-muted); }

/* ── Product page ────────────────────────────────────────────────────────────────────── */
.spec-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 16px;
  align-items: start;
}
.spec-pdp__gallery { grid-area: auto; min-width: 0; }
@media (min-width: 900px) {
  .spec-pdp {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "gallery head"
      "gallery buy"
      "gallery docs"
      "gallery .";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(32px, 5vw, 72px);
    row-gap: 0;
  }
  .spec-pdp__gallery { grid-area: gallery; }
  .spec-pdp__head { grid-area: head; }
  .spec-pdp__buy { grid-area: buy; margin-top: 28px; }
  .spec-pdp__docs { grid-area: docs; margin-top: 40px; }
  .spec-pdp--bespoke { grid-template-areas: "gallery head"; grid-template-rows: auto; }
}
/* The stage stays in view while the story scrolls past - only with motion allowed and room for it. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .spec-pdp__gallery { position: sticky; top: calc(var(--sp-header-offset) + 16px); align-self: start; }
  .spec-pdp #main-slider .splide__slide {
    aspect-ratio: auto;
    height: min(calc(100vh - var(--sp-header-offset) - 168px), 680px);
    min-height: 320px;
  }
}
@media (max-width: 899px) {
  /* Edge to edge on phones: every pixel of width goes to the product. */
  .spec-pdp__gallery { margin-inline: calc(var(--container-padding) * -1); }
  .spec-pdp #main-slider .splide__slide { border-radius: 0; border-inline: 0; }
  .spec-pdp__gallery #thumb-slider { padding-inline: var(--container-padding); }
}

.spec-pdp #main-slider { transition: box-shadow 0.6s var(--sp-ease); }
@media (min-width: 900px) {
  .spec-pdp #main-slider { box-shadow: 0 60px 120px -70px color-mix(in srgb, var(--sp-accent) 70%, transparent); }
}
.spec-pdp #main-slider .splide__slide,
.spec-pdp .nova-gallery__grid-item,
.spec-pdp .nova-gallery__stack-item {
  position: relative;
  background: var(--sp-stage);
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-lg);
}
.spec-pdp .nova-gallery__image { mix-blend-mode: var(--sp-img-blend); padding: 6%; box-sizing: border-box; }
.spec-pdp #thumb-slider .splide__slide { background: var(--sp-stage); border: 1px solid var(--sp-line-strong); border-radius: var(--radius-sm); opacity: 0.7; }
.spec-pdp #thumb-slider .splide__slide.is-active { border-color: var(--sp-accent); box-shadow: none; opacity: 1; }
.spec-pdp .nova-gallery__thumb { mix-blend-mode: var(--sp-img-blend); }
.spec-art-empty--stage { border-radius: inherit; }

.spec-pdp__brand { font: 500 12px/1.4 var(--font-family-mono); letter-spacing: 0.16em; color: var(--sp-accent); }
.spec-pdp__title {
  margin: 10px 0 16px;
  font-family: var(--font-family-display);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--sp-ink);
  overflow-wrap: anywhere;
}
.spec-pdp__meta { border-bottom: 1px solid var(--sp-line); font: 400 12px/1.4 var(--font-family-mono); letter-spacing: 0.06em; color: var(--sp-muted); }
.spec-pdp__sku b { color: var(--sp-ink); font-weight: 500; }
.spec-pdp__summary { font-size: 1.05rem; line-height: 1.6; color: var(--sp-muted); }
.spec-promises { font: 400 12px/1.4 var(--font-family-mono); letter-spacing: 0.02em; color: var(--sp-muted); }
.spec-promises .spec-icon { color: var(--sp-accent); }

.spec-buybox { background: var(--sp-surface); border: 1px solid var(--sp-line-strong); border-radius: var(--radius-lg); box-shadow: none; }
.spec-buybox__sec { padding: 20px 24px; border-bottom: 1px solid var(--sp-line); }
.spec-price__line { gap: 6px 12px; }
.spec-price__line .spec-price__now { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.spec-price__line .spec-price__was { font-size: 1rem; }
.spec-price__note { font-family: var(--font-family-mono); color: var(--sp-dim); }
.spec-buybox__row { gap: 12px; margin-top: 16px; }
.spec-buybox__qty .nova-quantity-select { height: 52px; background: var(--sp-inset); color: var(--sp-ink); border: 1px solid var(--sp-line-strong); border-radius: var(--radius-sm); font-family: var(--font-family-mono); }
.spec-buybox__add { flex: 1 1 200px; }
.spec-buybox__unavailable { color: var(--sp-muted); font-family: var(--font-family-mono); }

.spec-pdp .nova-variant-label { font: 500 11px/1 var(--font-family-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sp-dim); }
.spec-pdp .nova-variant-label-value { font: 500 12px/1 var(--font-family-mono); color: var(--sp-ink); }
.spec-pdp .nova-variant-label-value:empty::after { content: none; }
.spec-pdp .nova-variant-btn {
  min-width: 52px;
  height: 46px;
  padding: 0 16px;
  background: transparent;
  color: var(--sp-ink);
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  font: 500 13px/1 var(--font-family-mono);
}
.spec-pdp .nova-variant-btn:hover:not(.nova-variant-btn--disabled):not(.nova-variant-btn--selected) { border-color: var(--sp-accent); }
.spec-pdp .nova-variant-btn--selected,
.spec-pdp .nova-variant-btn--disabled.nova-variant-btn--selected {
  background: color-mix(in srgb, var(--sp-accent) 12%, transparent);
  border-color: var(--sp-accent);
  color: var(--sp-ink);
  box-shadow: inset 0 0 0 1px var(--sp-accent);
}
.spec-pdp .nova-variant-btn--disabled { background: transparent; color: var(--sp-dim); border-color: var(--sp-line); text-decoration: line-through; }
.spec-pdp .nova-variant-group--missing .nova-variant-label { color: var(--sp-sale); }
.spec-pdp #notAvailable { background: color-mix(in srgb, var(--sp-sale) 12%, var(--sp-surface)) !important; color: var(--sp-ink) !important; }

.spec-pdp__docs { min-width: 0; }
.spec-anchors { background: color-mix(in srgb, var(--sp-canvas) 90%, transparent); border-bottom: 1px solid var(--sp-line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.spec-anchors a { font: 500 11px/1 var(--font-family-mono); letter-spacing: 0.14em; color: var(--sp-muted); border-bottom-width: 2px; }
.spec-anchors a:hover { color: var(--sp-ink); border-bottom-color: var(--sp-accent); }
.spec-doc { background: transparent; border: 0; border-top: 1px solid var(--sp-line); padding: 32px 0; }
.spec-doc + .spec-doc { margin-top: 0; }
.spec-pdp__docs > .spec-doc:first-child,
.spec-anchors + .spec-doc { border-top: 1px solid var(--sp-line); }
.spec-doc__title,
.spec-pdp__docs .spec-doc__title { font: 500 12px/1.4 var(--font-family-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sp-accent); margin: 0 0 16px; }
.spec-prose { font-size: 1rem; line-height: 1.7; color: var(--sp-text); }
.spec-prose :is(h1, h2, h3, h4) { font-family: var(--font-family-display); font-size: 1.15rem; font-weight: 400; letter-spacing: -0.01em; text-transform: none; color: var(--sp-ink); }
.spec-prose a { color: var(--sp-accent); }
.spec-prose :is(th, td) { border-bottom-color: var(--sp-line); }
.spec-pdp-lower { margin-top: clamp(40px, 6vw, 80px); }

/* Specification table (extensions/attributeDisplayExtension) */
.spec-specs { margin: 32px 0; }
.spec-specs__title { margin: 0 0 16px; font: 500 12px/1.4 var(--font-family-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sp-accent); }
.spec-specs__list { margin: 0; padding: 0; border-top: 1px solid var(--sp-line-strong); }
.spec-specs__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sp-line); }
.spec-specs__row dt { font: 400 12px/1.6 var(--font-family-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sp-dim); }
.spec-specs__row dd { margin: 0; font: 400 14px/1.6 var(--font-family-mono); color: var(--sp-ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .spec-specs__row { grid-template-columns: 1fr; gap: 2px; } }

/* Docked buy bar (phones) */
.spec-dock { background: color-mix(in srgb, var(--sp-surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--sp-line-strong); box-shadow: 0 -12px 32px -16px rgba(0, 0, 0, 0.6); }
.spec-dock__variant { color: var(--sp-muted); font-family: var(--font-family-mono); }
.spec-dock__change { color: var(--sp-accent); }
.spec-dock__price { font-family: var(--font-family-mono); font-weight: 400; font-size: 1.125rem; }

/* "Added to basket" panel */
.spec-added__panel { background: var(--sp-surface); border: 1px solid var(--sp-line-strong); }
.spec-added__scrim { background: rgba(2, 9, 11, 0.66); }
.spec-added__head { background: color-mix(in srgb, var(--color-success) 14%, var(--sp-surface)); }
.spec-added__title { font: 500 12px/1.3 var(--font-family-mono); letter-spacing: 0.12em; }
.spec-added__tick { color: var(--sp-canvas); }
.spec-added__media { background: var(--sp-stage); border: 1px solid var(--sp-line); }
.spec-added__img { mix-blend-mode: var(--sp-img-blend); }
.spec-added__meta { color: var(--sp-muted); }
.spec-added__promise { background: var(--sp-subtle); color: var(--sp-text); }
@media (min-width: 720px) {
  .spec-added__head { background: color-mix(in srgb, var(--color-success) 14%, var(--sp-surface)); }
}

/* ── Nova pages Spec does not override: basket, checkout, account, blog, sign-in ────── */
.nova-container { max-width: var(--container-max-width); padding-inline: var(--container-padding); }
:where(h1, h2, h3, h4) { color: var(--sp-ink); }
.nova-btn { border-radius: var(--radius-sm); font-family: var(--font-family-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.nova-btn-primary,
.btn-primary { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-on-accent); font-weight: 600; }
.nova-btn-primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled) { background: var(--sp-accent-hover); border-color: var(--sp-accent-hover); color: var(--sp-on-accent); }
.nova-btn-secondary,
.nova-btn-outline { background: transparent; border-color: var(--sp-line-strong); color: var(--sp-ink); }
.nova-btn-secondary:hover,
.nova-btn-outline:hover { background: transparent; border-color: var(--sp-accent); color: var(--sp-accent); }
/* Text on the brand colour in Nova's inline <style> blocks is white; on brass it needs to be dark. These
   blocks load after this file, hence !important. */
.uc-cta, .nb-amount-update, .nb-summary-cta, .le-btn-primary,
.nb-summary-actions .nb-summary-cta,
.nb-summary-actions .nb-summary-cta:hover,
.wizard-step.active .wizard-step-circle { color: var(--sp-on-accent) !important; font-weight: 600; }

.nova-input,
.spec-input,
.form-control,
.form-select,
.uc-input,
.nb-amount-input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--sp-inset);
  color: var(--sp-ink);
  font-size: 16px;
}
.nova-input::placeholder,
.form-control::placeholder,
.uc-input::placeholder { color: var(--sp-dim); opacity: 1; }
.nova-input:hover,
.spec-input:hover { border-color: var(--sp-muted); }
.nova-input:focus,
.spec-input:focus,
.form-control:focus,
.form-select:focus,
.uc-input:focus {
  outline: none;
  border-color: var(--sp-accent);
  background-color: var(--sp-inset);
  color: var(--sp-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-accent) 25%, transparent);
}
select.nova-input { min-height: 44px; }
input:-webkit-autofill,
input:-webkit-autofill:focus { -webkit-text-fill-color: var(--sp-ink); box-shadow: 0 0 0 1000px var(--sp-inset) inset; }

/* Nova inline styles and <style> blocks that hard-code a white background. The grey ramp is inverted, so
   the text on them is now light; they must be dark too. Stripe's own elements are left alone (light
   iframes), and their container below is given a light surface instead. */
[style*="background: white"],
[style*="background:white"],
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background: #FFF"],
[style*="background:#FFF"],
[style*="background: #ffffff"],
[style*="background: #FFFFFF"],
[style*="background-color: white"],
[style*="background-color:white"],
[style*="background-color: #fff"],
[style*="background-color: #FFF"],
.demo-form, .auth-form,
.uc-delivery-option, .uc-lock-block, .uc-panel-block, .uc-lock-btn,
.nb-methods-card, .nb-empty, .nb-card, .nb-summary-card, .nb-summary-secondary,
.nova-coverflow-card, .nova-mobile-menu { background: var(--sp-surface) !important; }
.uc-input, .nb-qty-pill, .nb-amount-frame, .nb-amount-input { background: var(--sp-inset) !important; }
.nb-alert-warning { color: var(--color-warning-text) !important; }
.nb-stock.is-in { color: var(--color-success) !important; }
.nb-stock.is-low { color: var(--color-warning) !important; }
/* Stripe's Payment Element and Card Element draw dark text on a transparent light theme: give them a light surface. */
#uc-payment-element,
#card-element,
#payment-request-button { background: #F4F8F7; color: #0F262C; border-radius: var(--radius-lg); padding: 16px; }
.StripeElement { background: #FFFFFF; }

table { color: var(--sp-text); }
hr { border-color: var(--sp-line-strong); opacity: 1; }
.alert { border-color: var(--sp-line-strong); }

/* ── Motion ──────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spec-reveal { opacity: 1; transform: none; }
  .spec-show__img img,
  .spec-card__media,
  .spec-pdp #main-slider { transition: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* Phones: 16px stops iOS zooming the page when the sort control is focused (must stay last to beat the
   control's own size rules above). */
@media (max-width: 1023px) {
  .spec-select__control { font-size: 16px; }
}
