/* ==========================================================================
   My LED Kit — design system
   Light is the base palette. Dark is re-declared twice: once for the system
   preference (unless the user forced light) and once for the explicit toggle.
   ========================================================================== */

:root {
  color-scheme: light;

  /* surfaces */
  --bg:            #F1F2F6;
  --bg-tint:       #E7E9F0;
  --surface:       #FFFFFF;
  --surface-2:     #F7F8FB;
  --surface-sunk:  #ECEEF3;

  /* ink */
  --text:          #0E0F13;
  --text-2:        #5B6070;
  --text-3:        #8B90A1;

  /* lines */
  --line:          rgba(14, 15, 19, 0.10);
  --line-soft:     rgba(14, 15, 19, 0.06);
  --line-strong:   rgba(14, 15, 19, 0.16);

  /* brand — Amazon Blue drives every action colour */
  --accent:        #1478CC;
  --accent-hi:     #2286DA;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(20, 120, 204, 0.10);
  --accent-ring:   rgba(20, 120, 204, 0.35);

  /* buttons — Amazon's palette: solid blue primary, neutral base button,
     teal focus ring. Hover shifts the fill: darker on light, lighter on dark. */
  --btn-primary:      #1478CC;
  --btn-primary-hi:   #1169B8;
  --btn-primary-down: #0F5CA1;
  --btn-primary-line: #1169B8;
  --btn-primary-ink:  #FFFFFF;
  --btn-added:        #067D62;
  --btn-base:         #FFFFFF;
  --btn-base-hi:      #F7FAFA;
  --btn-base-line:    #D5D9D9;
  --btn-base-ink:     #0F1111;
  --btn-shadow:       0 2px 5px 0 rgba(15, 17, 17, 0.10);
  --focus-line:       #008296;
  --focus-glow:       #C8F3FA;
  --spectrum:      linear-gradient(90deg, #F2A03D 0%, #F25D8E 34%, #6E6AF5 68%, #3BC7C0 100%);

  /* status */
  --ok:            #17915E;
  --warn:          #B7791F;
  --danger:        #B12704;

  /* elevation — three steps, each a near + far pair */
  --sh-1: 0 1px 2px rgba(14, 15, 19, 0.05), 0 3px 10px -2px rgba(14, 15, 19, 0.06);
  --sh-2: 0 2px 4px rgba(14, 15, 19, 0.05), 0 14px 32px -10px rgba(14, 15, 19, 0.16);
  --sh-3: 0 4px 8px rgba(14, 15, 19, 0.06), 0 32px 64px -22px rgba(14, 15, 19, 0.28);

  /* hero light run */
  --track-line:    #000000;

  /* geometry */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --pill: 999px;

  /* rhythm */
  --gap: 1.5rem;
  --pad-x: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1320px;

  /* motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --fast: 140ms;
  --med: 260ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg:            #08090D;
    --bg-tint:       #0E1016;
    --surface:       #14161D;
    --surface-2:     #191C24;
    --surface-sunk:  #101218;

    --text:          #F3F4F8;
    --text-2:        #9BA1B2;
    --text-3:        #6C7284;

    --line:          rgba(255, 255, 255, 0.10);
    --line-soft:     rgba(255, 255, 255, 0.06);
    --line-strong:   rgba(255, 255, 255, 0.18);

    --accent:        #4FA3E3;
    --accent-hi:     #77BCF0;
    --accent-ink:    #06121C;
    --accent-soft:   rgba(79, 163, 227, 0.14);
    --accent-ring:   rgba(20, 120, 204, 0.55);

    --btn-primary:      #1478CC;
    --btn-primary-hi:   #2286DA;
    --btn-primary-down: #1169B8;
    --btn-primary-line: #2286DA;
    --btn-primary-ink:  #FFFFFF;
    --btn-added:        #1F9E7E;
    --btn-base:         #191C24;
    --btn-base-hi:      #232733;
    --btn-base-line:    rgba(255, 255, 255, 0.20);
    --btn-base-ink:     #F3F4F8;
    --btn-shadow:       0 2px 5px 0 rgba(0, 0, 0, 0.45);
    --focus-line:       #4FC4D8;
    --focus-glow:       rgba(79, 196, 216, 0.30);

    --ok:            #3ECF8E;
    --warn:          #E0A94A;
    --danger:        #FF8A78;

    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.55), 0 3px 12px -2px rgba(0, 0, 0, 0.5);
    --sh-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 38px -12px rgba(0, 0, 0, 0.75);
    --sh-3: 0 6px 12px rgba(0, 0, 0, 0.5), 0 36px 72px -24px rgba(0, 0, 0, 0.9);

    --track-line:    #000000;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #08090D;
  --bg-tint:       #0E1016;
  --surface:       #14161D;
  --surface-2:     #191C24;
  --surface-sunk:  #101218;

  --text:          #F3F4F8;
  --text-2:        #9BA1B2;
  --text-3:        #6C7284;

  --line:          rgba(255, 255, 255, 0.10);
  --line-soft:     rgba(255, 255, 255, 0.06);
  --line-strong:   rgba(255, 255, 255, 0.18);

  --accent:        #4FA3E3;
  --accent-hi:     #77BCF0;
  --accent-ink:    #06121C;
  --accent-soft:   rgba(79, 163, 227, 0.14);
  --accent-ring:   rgba(20, 120, 204, 0.55);

  --btn-primary:      #1478CC;
  --btn-primary-hi:   #2286DA;
  --btn-primary-down: #1169B8;
  --btn-primary-line: #2286DA;
  --btn-primary-ink:  #FFFFFF;
  --btn-added:        #1F9E7E;
  --btn-base:         #191C24;
  --btn-base-hi:      #232733;
  --btn-base-line:    rgba(255, 255, 255, 0.20);
  --btn-base-ink:     #F3F4F8;
  --btn-shadow:       0 2px 5px 0 rgba(0, 0, 0, 0.45);
  --focus-line:       #4FC4D8;
  --focus-glow:       rgba(79, 196, 216, 0.30);

  --ok:            #3ECF8E;
  --warn:          #E0A94A;
  --danger:        #FF8A78;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.55), 0 3px 12px -2px rgba(0, 0, 0, 0.5);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 38px -12px rgba(0, 0, 0, 0.75);
  --sh-3: 0 6px 12px rgba(0, 0, 0, 0.5), 0 36px 72px -24px rgba(0, 0, 0, 0.9);

  --track-line:    #000000;
}

/* ─────────────────────────────────────────────────────────────── reset ── */

*, *::before, *::after { box-sizing: border-box; }

/* Author `display` values outrank the UA [hidden] rule — make it stick. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--med) var(--ease), color var(--med) var(--ease);
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

svg { display: block; }
svg[viewBox] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--accent-soft); color: var(--text); }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  translate: -50% -200%;
  z-index: 200;
  padding: 0.7rem 1.25rem;
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: var(--sh-2);
  transition: translate var(--med) var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

/* ───────────────────────────────────────────────────────────── buttons ── */

.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 120ms var(--ease),
    box-shadow var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    filter var(--fast) var(--ease);
}

.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn--primary {
  --btn-bg: var(--btn-primary);
  --btn-ink: var(--btn-primary-ink);
  border: 1px solid var(--btn-primary-line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 10px 24px -10px var(--accent-ring);
}
.btn--primary:hover {
  --btn-bg: var(--btn-primary-hi);
  box-shadow: 0 2px 4px rgba(0,0,0,0.14), 0 16px 34px -12px var(--accent-ring);
}
.btn--primary:active { --btn-bg: var(--btn-primary-down); }

.btn--ghost {
  --btn-bg: var(--btn-base);
  --btn-ink: var(--btn-base-ink);
  border: 1px solid var(--btn-base-line);
  box-shadow: var(--btn-shadow);
}
.btn--ghost:hover { --btn-bg: var(--btn-base-hi); border-color: var(--btn-base-line); box-shadow: var(--sh-1); }

/* Destructive, and it should look it — outlined until you commit to it. */
.btn--danger {
  --btn-bg: transparent;
  --btn-ink: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
}
.btn--danger:hover {
  --btn-bg: var(--danger);
  --btn-ink: #FFF;
  border-color: var(--danger);
}

.btn--soft {
  --btn-bg: var(--surface-sunk);
}
.btn--soft:hover { background: var(--accent-soft); color: var(--accent); }

/* Grow to meet the pointer, then press in on click. */
@media (hover: hover) {
  .btn:hover { transform: scale(1.04); }
  .btn--lg:hover { transform: scale(1.035); }
  .btn--block:hover { transform: scale(1.02); }
}

/* Feedback lands on pointer-down, not on release. */
.btn:active { transform: scale(0.97); transition-duration: 60ms; }

/* Amazon's focus treatment: teal edge, pale halo. */
.btn:focus-visible,
.cart-btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--focus-line);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-glow);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  min-width: 40px;
  padding: 0 0.75rem;
  border-radius: var(--pill);
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  color: var(--text-2);
  transition: transform 120ms var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--text); background: var(--surface); border-color: var(--line); }
@media (hover: hover) { .icon-btn:hover { transform: scale(1.06); } }
.icon-btn:active { transform: scale(0.94); transition-duration: 60ms; }
.icon-btn--plain { border-color: transparent; background: transparent; }

/* ══════════════════════════════════════════════════════════════════ NAV ══ */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0.7rem var(--pad-x);
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease), background-color var(--med) var(--ease);
}
/* Scroll edge effect instead of a permanent hairline. */
.nav.is-stuck { border-bottom-color: var(--line-soft); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }

.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
  padding: 5px;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--sh-1);
  border: 1px solid var(--line-soft);
}
.brand__mark i { width: 7px; height: 7px; border-radius: 2px; background: var(--text-3); transition: background-color 400ms var(--ease); }
.brand__mark i:nth-child(1) { background: #F2A03D; }
.brand__mark i:nth-child(2) { background: #F25D8E; }
.brand__mark i:nth-child(3) { background: #6E6AF5; }
.brand__mark i:nth-child(4) { background: #3BC7C0; }

.brand__name { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }

.nav__links { display: flex; gap: 0.35rem; margin-left: 0.75rem; }
.nav__links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--pill);
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--surface-sunk); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.search-trigger { color: var(--text-3); padding-right: 0.45rem; }
.search-trigger__label { font-size: 0.9rem; padding-right: 0.4rem; }
.search-trigger__kbd {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0.15rem 0.4rem;
  border-radius: 7px;
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
  font-size: 0.72rem;
  font-family: inherit;
  color: var(--text-3);
}
.kbd-mod { font-size: 0.82rem; line-height: 1; }

#themeToggle .icon-moon { display: none; }
:root[data-theme="dark"] #themeToggle .icon-sun { display: none; }
:root[data-theme="dark"] #themeToggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeToggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) #themeToggle .icon-moon { display: block; }
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: var(--pill);
  background: var(--btn-primary);
  color: var(--btn-primary-ink);
  border: 1px solid var(--btn-primary-line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.14), 0 8px 20px -10px var(--accent-ring);
  transition: transform 160ms var(--ease), background-color var(--fast) var(--ease);
}
.cart-btn svg { width: 19px; height: 19px; }
.cart-btn:hover { background: var(--btn-primary-hi); }
@media (hover: hover) { .cart-btn:hover { transform: scale(1.08); } }
.cart-btn:active { transform: scale(0.93); transition-duration: 60ms; }
.cart-btn.is-bumped { animation: cart-bump 420ms var(--ease); }

@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.cart-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--pill);
  background: var(--text);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 19px;
  text-align: center;
  border: 2px solid var(--bg);
  transition: scale 200ms var(--ease), opacity 160ms var(--ease);
}
.cart-btn__count[data-empty="true"] { scale: 0; opacity: 0; }

/* ═════════════════════════════════════════════════════════════════ HERO ══ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
  min-height: calc(100svh - 4rem);
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--pad-x) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 70vmax;
  z-index: -1;
  background:
    radial-gradient(46% 40% at 22% 32%, rgba(242, 160, 61, 0.20), transparent 70%),
    radial-gradient(44% 38% at 52% 20%, rgba(242, 93, 142, 0.18), transparent 70%),
    radial-gradient(48% 42% at 78% 34%, rgba(110, 106, 245, 0.24), transparent 70%);
  filter: blur(40px);
  opacity: 0.9;
  pointer-events: none;
}
:root[data-theme="dark"] .hero__glow { opacity: 0.55; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__glow { opacity: 0.55; }
}

.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  margin: 0 auto;
  font-size: clamp(2.1rem, 5.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.045em;   /* large type wants negative tracking */
}
.hero__title-accent {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__eyebrow {
  margin: 0 0 clamp(0.9rem, 2vw, 1.35rem);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero__sub {
  max-width: 44rem;
  margin: clamp(1rem, 2.2vw, 1.5rem) auto 0;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 2.6vw, 2rem);
}

/* ── hero backdrop ───────────────────────────────────────────────────────
   A wide still cropped by `cover`, so it holds up from phone to desktop.
   The scrim exists to keep the headline legible over picture — text sits
   light on dark here regardless of the page theme.
   ------------------------------------------------------------------------ */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0A0B10;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;   /* hold the aisle and its light runs in frame */
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(74% 58% at 50% 46%, rgba(8, 9, 13, 0.40), rgba(8, 9, 13, 0) 74%),
    linear-gradient(180deg,
      rgba(8, 9, 13, 0.58) 0%,
      rgba(8, 9, 13, 0.26) 34%,
      rgba(8, 9, 13, 0.50) 72%,
      rgba(8, 9, 13, 0.84) 100%);
}

/* Over picture the hero is always light text, in either theme. */
.hero--photo .hero__title { color: #FFFFFF; }
.hero--photo .hero__title-accent { color: transparent; }
.hero--photo .hero__eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero--photo .hero__sub { color: rgba(255, 255, 255, 0.82); }

.hero--photo .btn--ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero--photo .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

/* The coloured wash behind the old light run would muddy the picture. */
.hero--photo .hero__glow { display: none; }

/* ════════════════════════════════════════════════════════════════ TRUST ══ */

.trust {
  /* Starts just past the fold, so it comes into view as you scroll. */
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad-x) 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1px;
  background: var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  transition: background-color var(--med) var(--ease);
}
.stat:hover { background: var(--surface-2); }

.stat__value {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__unit { font-size: 0.5em; letter-spacing: -0.02em; margin-left: 0.15em; }

.stat__label {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--text-2);
  max-width: 20ch;
}

@media (max-width: 860px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── scroll reveal ───────────────────────────────────────────────────────── */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════ CATALOG ══ */

.catalog {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x) 0;
  scroll-margin-top: 5rem;
}

.catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  letter-spacing: -0.04em;
  scroll-margin-top: 6rem;
}
.section-sub {
  margin-top: 0.6rem;
  max-width: 40ch;
  color: var(--text-2);
  font-size: 0.98rem;
  letter-spacing: -0.005em;
}

.catalog__tools { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
}
.field__icon {
  position: absolute;
  left: 0.95rem;
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
}
.field__input {
  width: 100%;
  height: 44px;
  padding: 0 2.5rem 0 2.6rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  box-shadow: var(--sh-1);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  appearance: none;
}
.field__input::-webkit-search-cancel-button { display: none; }
.field__input::placeholder { color: var(--text-3); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--sh-1), 0 0 0 4px var(--accent-soft);
}
.field__clear {
  position: absolute;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-sunk);
  color: var(--text-2);
  transition: transform 120ms var(--ease), color var(--fast) var(--ease);
}
.field__clear svg { width: 12px; height: 12px; stroke-width: 2; }
.field__clear:hover { color: var(--text); }
.field__clear:active { transform: scale(0.9); }

.select { position: relative; display: flex; align-items: center; }
.select select {
  height: 44px;
  padding: 0 2.4rem 0 1.2rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  box-shadow: var(--sh-1);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease);
}
.select select:focus { outline: none; border-color: var(--accent); box-shadow: var(--sh-1), 0 0 0 4px var(--accent-soft); }
.select svg {
  position: absolute;
  right: 1rem;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  pointer-events: none;
}

/* ── category chips ──────────────────────────────────────────────────────── */

.chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: var(--sh-1);
  transition: transform 120ms var(--ease), background-color var(--fast) var(--ease),
              color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.chip:hover { color: var(--text); }
.chip:active { transform: scale(0.96); transition-duration: 60ms; }
.chip[aria-selected="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: var(--sh-2);
}
.chip__n { opacity: 0.5; margin-left: 0.35rem; font-variant-numeric: tabular-nums; }

/* ── grid ────────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-top: 1.75rem;
}

/* ── product card ────────────────────────────────────────────────────────── */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  transform: scale(1);
  transition: box-shadow var(--med) var(--ease), transform 300ms var(--ease), border-color var(--med) var(--ease);
  will-change: transform;
  animation: card-in 520ms var(--ease) backwards;
  animation-delay: var(--in-delay, 0ms);
}

@keyframes card-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (hover: hover) {
  .card:hover {
    transform: scale(1.035);
    z-index: 2;                                  /* lift above its neighbours */
    box-shadow: var(--sh-3);
    border-color: var(--line);
  }
  .card:active { transform: scale(1.01); transition-duration: 90ms; }
}

.card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.28rem 0.7rem;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.card__stock {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-3);
}
.card__stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--ok) 20%, transparent);
}
.card__stock[data-stock="low"] { color: var(--warn); }
.card__stock[data-stock="low"]::before { background: var(--warn); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--warn) 20%, transparent); }

/* ── artwork stage ───────────────────────────────────────────────────────── */

.card__art {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background:
    radial-gradient(120% 90% at 50% 8%, color-mix(in srgb, var(--art) 16%, transparent), transparent 62%),
    var(--surface-sunk);
  overflow: hidden;
}
.card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--surface) 60%, transparent));
  pointer-events: none;
}
.card__art img { width: 100%; height: 100%; object-fit: cover; }

.art { position: relative; width: 74%; display: grid; place-items: center; }
.art__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--art) 45%, transparent), transparent 70%);
  filter: blur(18px);
  opacity: 0.75;
}

/* track channel */
.tk { position: relative; width: 100%; height: 46px; }
.tk__body {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--art) 92%, white 30%) 0%,
    var(--art) 38%,
    color-mix(in srgb, var(--art) 80%, black 32%) 100%);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.15);
}
.tk__channel {
  position: absolute;
  inset: 12px 8px auto;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.10));
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
}
.tk__channel i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFE6B8;
  box-shadow: 0 0 6px 2px rgba(255, 214, 138, 0.85);
}

/* node / puck */
.pk { position: relative; width: 108px; height: 108px; }
.pk__body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--art) 55%, white 45%),
    color-mix(in srgb, var(--art) 85%, black 25%));
  box-shadow: var(--sh-2), inset 0 2px 0 rgba(255,255,255,0.5);
}
.pk__lens {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(58% 58% at 42% 34%, #FFFFFF, color-mix(in srgb, var(--art) 70%, white) 42%, color-mix(in srgb, var(--art) 92%, black 10%) 100%);
  box-shadow: inset 0 0 14px rgba(0,0,0,0.28), 0 0 26px 4px color-mix(in srgb, var(--art) 60%, transparent);
}
.pk__hot { position: absolute; inset: 36px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0%, transparent 68%); opacity: 0.9; }

/* controller */
.ct { position: relative; width: 100%; max-width: 190px; aspect-ratio: 5 / 3; }
.ct__body {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--art) 34%, #767D8E),
    color-mix(in srgb, var(--art) 30%, #2B2F3A));
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,0.28), 0 0 0 1px rgba(255,255,255,0.07);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ct__led { width: 9px; height: 9px; border-radius: 50%; background: var(--art); box-shadow: 0 0 10px 2px var(--art); }
.ct__ports { display: flex; gap: 6px; }
.ct__ports i { width: 16px; height: 8px; border-radius: 3px; background: rgba(0,0,0,0.30); box-shadow: inset 0 1px 2px rgba(0,0,0,0.4); }

/* power supply */
.ps { position: relative; width: 100%; max-width: 180px; aspect-ratio: 9 / 5; }
.ps__body {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--art) 88%, white 22%), color-mix(in srgb, var(--art) 82%, black 30%));
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ps__body i { width: 4px; height: 58%; border-radius: 2px; background: rgba(0,0,0,0.16); }

/* accessory */
.ac { position: relative; width: 100%; max-width: 170px; aspect-ratio: 4 / 3; }
.ac__a, .ac__b {
  position: absolute;
  border-radius: 9px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--art) 85%, white 28%), color-mix(in srgb, var(--art) 85%, black 28%));
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,0.5);
}
.ac__a { inset: 12% 42% 40% 6%; }
.ac__b { inset: 38% 8% 12% 34%; rotate: -8deg; }

/* screw */
.scr { width: 100%; max-width: 230px; height: auto; overflow: visible; }
.scr__shank {
  fill: color-mix(in srgb, var(--art) 88%, white 20%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}
.scr__thread {
  fill: none;
  stroke: color-mix(in srgb, var(--art) 55%, black 45%);
  stroke-width: 3;
  stroke-linejoin: round;
  opacity: 0.5;
}
.scr__head {
  fill: color-mix(in srgb, var(--art) 74%, black 30%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.26));
}
.scr__drive { fill: rgba(0, 0, 0, 0.42); }

/* colour swatch — chips fanned from a single rivet, like a sample deck */
.sw { position: relative; width: 100%; max-width: 180px; aspect-ratio: 4 / 3; }
.sw i {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 24%;
  height: 76%;
  margin-left: -12%;
  border-radius: 7px 7px 4px 4px;
  transform-origin: 50% 92%;
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.sw i:nth-child(1) { transform: rotate(-46deg); background: #F4F1EA; }
.sw i:nth-child(2) { transform: rotate(-23deg); background: #DCCDAF; }
.sw i:nth-child(3) { transform: rotate(0deg);   background: #B98B62; }
.sw i:nth-child(4) { transform: rotate(23deg);  background: #6B4A33; }
.sw i:nth-child(5) { transform: rotate(46deg);  background: #2E3238; }
.sw__pin {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 12px;
  height: 12px;
  margin: 0 0 -6px -6px;
  border-radius: 50%;
  background: linear-gradient(160deg, #FFFFFF, color-mix(in srgb, var(--art) 60%, #8A90A0));
  box-shadow: var(--sh-2);
}

/* cable, Y split, T injection */
.cbl { width: 100%; height: auto; overflow: visible; }
.cbl__wire {
  fill: none;
  stroke: var(--art);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}
.cbl__end {
  stroke: none;
  fill: color-mix(in srgb, var(--art) 62%, black 34%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}
.cbl__node {
  stroke: none;
  fill: color-mix(in srgb, var(--art) 55%, white 42%);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

/* bundle */
.bd { position: relative; width: 100%; max-width: 210px; aspect-ratio: 5 / 3; }
.bd__box {
  position: absolute;
  inset: 26% 0 6% 0;
  border-radius: 14px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--art) 42%, var(--surface)), color-mix(in srgb, var(--art) 78%, black 18%));
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,0.35);
}
.bd__rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), color-mix(in srgb, var(--art) 60%, #9AA0AE));
  box-shadow: var(--sh-2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}
.bd__rail i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FFE6B8;
  box-shadow: 0 0 6px 2px rgba(255, 214, 138, 0.9);
}

/* ── card copy ───────────────────────────────────────────────────────────── */

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.35rem 1.25rem;
}

.card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card__title {
  margin-top: 0.5rem;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.card__tagline {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: -0.003em;
  color: var(--text-2);
}

.card__specs { margin-top: 0.95rem; display: grid; gap: 0.4rem; }
.card__specs li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-2);
}
.card__specs svg { width: 13px; height: 13px; margin-top: 3px; color: var(--accent); stroke-width: 2.2; }

/* ── option picker ───────────────────────────────────────────────────────── */

.card__option { margin-top: 1rem; }

.picker { position: relative; }

.picker__trigger {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: var(--pill);
  border: 1px solid var(--line-soft);
  background: var(--surface-sunk);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  transition: transform 120ms var(--ease), background-color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.picker__trigger:hover { background: var(--surface); border-color: var(--line); box-shadow: var(--sh-1); }
.picker__trigger:active { transform: scale(0.985); transition-duration: 60ms; }

.picker__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.picker__icon {
  width: 14px; height: 14px;
  fill: currentColor;
  stroke: none;
  color: var(--accent);
}

/* Fixed width so one, two or three bolts all leave the labels aligned. */
.picker__bolts {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  width: 46px;
  flex: 0 0 46px;
}

/* An option group without wattage icons or price deltas gives those columns
   back, so a plain choice sits flush against the edge of the control. */
.picker--noicon .picker__trigger { grid-template-columns: 1fr auto; }
.picker--noicon .picker__opt { grid-template-columns: 1fr auto auto; }
.picker--nodelta .picker__opt { grid-template-columns: auto 1fr auto; }
.picker--noicon.picker--nodelta .picker__opt { grid-template-columns: 1fr auto; }

.picker__chevron {
  width: 14px; height: 14px;
  color: var(--text-3);
  transition: transform 260ms var(--ease);
}
.picker.is-open .picker__chevron { transform: rotate(180deg); }

/* Panel — a floating material that scales out of the trigger. */
.picker__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  padding: 6px;
  border-radius: var(--r-md);
  /* Solid, not glass: this sits directly on top of the card's own price and
     button, and a translucent layer over another light surface is unreadable. */
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3), var(--bevel);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -6px, 0) scale(0.96);
  filter: blur(5px);
  transition: opacity 170ms var(--ease), transform 260ms var(--ease),
              filter 170ms var(--ease), visibility 0s linear 260ms;
}
.picker.is-open .picker__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: opacity 170ms var(--ease), transform 260ms var(--ease),
              filter 170ms var(--ease), visibility 0s;
}

/* Flip above the trigger when there is no room below. */
.picker.is-up .picker__panel {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom center;
}
.picker.is-up:not(.is-open) .picker__panel { transform: translate3d(0, 6px, 0) scale(0.96); }

.picker__opt {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-sm);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
  transition: background-color 110ms var(--ease);
}
.picker__opt:hover,
.picker__opt:focus-visible { background: var(--accent-soft); outline: none; }
.picker__opt:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

.picker__opt-label { font-weight: 500; letter-spacing: -0.01em; }

.picker__opt-delta {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.picker__opt[aria-selected="true"] .picker__opt-delta { color: var(--text-2); }

/* The chip on the choice we steer people toward, and the nudge under the
   picker. Both ride the card's accent so they feel native to the card. */
.opt-reco {
  margin-left: 0.45rem;
  padding: 0.12rem 0.42rem;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: 0.08em;
}
.card__reco {
  margin: 0.5rem 0.1rem 0;
  font-size: 0.78rem;
  color: var(--text-3);
}
.card__reco::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.1em;
}

.picker__check {
  width: 15px; height: 15px;
  stroke-width: 2.4;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms var(--ease), transform 260ms var(--ease);
}
.picker__opt[aria-selected="true"] .picker__check { opacity: 1; transform: none; }

/* An open picker's card floats above its neighbours. */
.card.is-picking { z-index: 30; }

@media (prefers-reduced-motion: reduce) {
  .picker__panel { filter: none; transform: none; }
  .picker.is-up:not(.is-open) .picker__panel { transform: none; }
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.price { display: flex; align-items: baseline; gap: 0.3rem; }
.price__amount {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.price__unit { font-size: 0.8rem; color: var(--text-3); letter-spacing: 0; }

/* A price that has come down shows what it was, struck through and dimmed. */
.price__was {
  margin-right: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-variant-numeric: tabular-nums;
}
/* A cut price stays in the normal ink — the struck-through original beside it
   is what says "reduced", so the figure itself has no need to shout. */
.price__amount.is-cut { color: var(--text); }
.line__meta .price__was { font-size: 0.8rem; }

.price__request {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-2);
}

.add-btn {
  --btn-bg: var(--btn-primary);
  --btn-ink: var(--btn-primary-ink);
  position: relative;
  overflow: hidden;
  min-width: 108px;
  border: 1px solid var(--btn-primary-line);
  box-shadow: var(--btn-shadow);
}
.add-btn:hover { --btn-bg: var(--btn-primary-hi); }
.add-btn:active { --btn-bg: var(--btn-primary-down); }
.add-btn[data-added="true"] {
  --btn-bg: var(--btn-added);
  --btn-ink: #FFFFFF;
  border-color: var(--btn-added);
}

/* ── empty state ─────────────────────────────────────────────────────────── */

.empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 5rem 1rem;
  text-align: center;
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--surface-sunk);
  color: var(--text-3);
}
.empty__icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.empty p { color: var(--text-2); font-size: 0.94rem; }
.empty .btn { margin-top: 0.75rem; }

/* ══════════════════════════════════════════════════════════════ CLOSER ══ */

.closer { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--pad-x) 0; }

.closer__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-2);
  text-align: center;
}
.closer__glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 30% 100%, rgba(242, 160, 61, 0.22), transparent 70%),
    radial-gradient(40% 60% at 70% 100%, rgba(110, 106, 245, 0.26), transparent 70%);
  filter: blur(30px);
}
.closer__card h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; }
.closer__card p { max-width: 44ch; margin: 0.9rem auto 0; color: var(--text-2); letter-spacing: -0.005em; }
.closer__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* ═════════════════════════════════════════════════════════════ REVIEWS ══ */

/* ═══════════════════════════════════════════════════════════════ INSTALLS ══ */

.installs {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x) 0;
  scroll-margin-top: 5rem;
}

.installs { overflow: clip; }   /* the rail bleeds past the gutter, not the page */

.installs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* One sideways track. The photos are a mix of portrait, landscape and square,
   so every slide is set to a common HEIGHT and takes whatever width its own
   shape asks for — a filmstrip, not a grid of identical boxes.

   The scrolling belongs to the browser: scroll-snap gives a swipe real
   momentum and lands it on a photo, which no amount of JavaScript imitates
   well. */
.installs__rail {
  --rail-h: clamp(240px, 38vh, 430px);

  display: flex;
  align-items: stretch;
  gap: clamp(0.7rem, 1.2vw, 1rem);
  margin-top: 1.75rem;

  overflow-x: auto;
  overscroll-behavior-x: contain;
  /* `proximity`, not `mandatory`: the slides are different widths, and mandatory
     snapping drags any pan shorter than half a slide straight back where it
     came from — a trackpad flick reads as broken. Proximity tidies up a swipe
     that lands near a photo and leaves every other scroll alone.

     No `scroll-behavior: smooth` here either: on a snap container it fights
     touch panning. The arrows ask for smooth scrolling per call instead. */
  scroll-snap-type: x proximity;

  /* The strip runs out past the section's gutter on both sides, so photos
     bleed off the edge instead of stopping short of it. */
  margin-inline: calc(var(--pad-x) * -1);
  padding-inline: var(--pad-x);
  scroll-padding-inline: var(--pad-x);
  /* Room for the hover lift and its shadow, which would otherwise clip. */
  padding-block: 0.5rem;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.installs__rail::-webkit-scrollbar { display: none; }
.installs__rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

.shot {
  position: relative;
  display: block;
  flex: 0 0 auto;
  height: var(--rail-h);
  /* Height is fixed, so the shape sets the width. */
  width: calc(var(--rail-h) * var(--ar, 1.333));
  max-width: 86vw;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--sh-1);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.shot:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--sh-2); }
.shot:active { transform: scale(0.992); transition-duration: 90ms; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Holds the slide's colour before the file lands, so nothing flashes. */
  background: var(--surface-2);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 520ms var(--ease);
}
.shot:hover img { transform: scale(1.03); }

/* A clip says so before it is opened: a play badge, and how long it runs. */
.shot__play {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem 0.3rem 0.4rem;
  border-radius: var(--pill);
  background: rgba(8, 9, 13, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  transition: background-color 200ms var(--ease), transform 260ms var(--ease);
}
.shot__play svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.shot__play em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.shot--clip:hover .shot__play { background: var(--accent); transform: scale(1.04); }
.shot--clip { cursor: pointer; }

/* The caption rides on a gradient rather than a bar, so it stays legible over
   a bright dusk sky and a black night shot alike. */
.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 0.9rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #FFFFFF;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(8, 9, 13, 0), rgba(8, 9, 13, 0.72));
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 260ms var(--ease), transform 320ms var(--ease);
}
.shot:hover .shot__cap,
.shot:focus-visible .shot__cap { opacity: 1; transform: none; }

/* Touch has no hover to reveal the caption, so it simply stays. */
@media (hover: none) {
  .shot__cap { opacity: 1; transform: none; }
  .shot:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .shot, .shot img, .shot__cap { transition: none; }
  .shot:hover { transform: none; }
  .shot:hover img { transform: none; }
}

/* ── rail controls ───────────────────────────────────────────────────────── */

.rail-ctl { display: flex; gap: 0.5rem; }

.rail-ctl__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--pill);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  transition: background-color 160ms var(--ease), transform 220ms var(--ease),
              opacity 200ms var(--ease), box-shadow 220ms var(--ease);
}
.rail-ctl__btn:hover { background: var(--surface-2); box-shadow: var(--sh-2); }
.rail-ctl__btn:active { transform: scale(0.93); transition-duration: 70ms; }
.rail-ctl__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* At either end the button dims rather than vanishing, so the strip's length
   stays legible. */
.rail-ctl__btn:disabled { opacity: 0.35; box-shadow: none; pointer-events: none; }

.rail-ctl__btn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A bar, not thirteen dots: it reads the same whether there are 6 photos or 60. */
.rail-meter {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.rail-meter__bar {
  position: relative;
  flex: 0 1 220px;
  height: 3px;
  border-radius: var(--pill);
  background: var(--line-soft);
  overflow: hidden;
}
.rail-meter__bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--text-3);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 180ms var(--ease);
}
.rail-meter__count {
  color: var(--text-3);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  /* Swiping is the control on a phone; the arrows are for pointers. */
  .rail-ctl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-meter__bar i { transition: none; }
}

/* ── the viewer ──────────────────────────────────────────────────────────── */

/* Doubled up on purpose: the base .overlay is declared further down this file
   and would otherwise win the tie and pin the photo to the top of the screen. */
.overlay.overlay--photo {
  align-items: center;
  justify-items: center;
  padding: clamp(1rem, 4vh, 3rem) clamp(1rem, 6vw, 5rem);
}
.overlay.overlay--photo .overlay__scrim { background: rgba(8, 9, 13, 0.82); }

.viewer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transform: scale(0.965);
  filter: blur(6px);
  transition: opacity 220ms var(--ease), transform 320ms var(--ease), filter 220ms var(--ease);
}
.overlay.overlay--photo.is-open .viewer { opacity: 1; transform: none; filter: none; }

.viewer__img {
  display: block;
  /* Without this the browser starts its own image drag and eats the flick. */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 180ms var(--ease);
}
.viewer__img.is-loading { opacity: 0.35; }
/* video and img share the class, so a clip opens at exactly the size a photo
   would have — except it may need the room the controls take. */
video.viewer__img { background: #000; }
video.viewer__img[hidden] { display: none; }

.viewer__cap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  text-align: center;
}
.viewer__count {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.viewer__nav,
.viewer__close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--pill);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 160ms var(--ease), transform 220ms var(--ease);
}
.viewer__nav:hover,
.viewer__close:hover { background: rgba(255, 255, 255, 0.22); }
.viewer__nav:active,
.viewer__close:active { transform: scale(0.94); transition-duration: 70ms; }
.viewer__nav:focus-visible,
.viewer__close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

.viewer__nav svg,
.viewer__close svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewer__nav--prev { left: clamp(0.5rem, 2vw, 1.75rem); top: 50%; margin-top: -23px; }
.viewer__nav--next { right: clamp(0.5rem, 2vw, 1.75rem); top: 50%; margin-top: -23px; }
.viewer__close { top: clamp(0.75rem, 2vh, 1.5rem); right: clamp(0.5rem, 2vw, 1.75rem); }

@media (max-width: 620px) {
  .viewer__nav { bottom: clamp(0.75rem, 3vh, 1.5rem); top: auto; margin-top: 0; }
  .viewer__nav--prev { left: 25%; }
  .viewer__nav--next { right: 25%; }
  /* Clearance for the buttons that just moved into the thumb zone. */
  .viewer__cap { padding-bottom: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .viewer { transition: opacity 160ms linear; transform: none; filter: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .viewer__nav, .viewer__close { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(30, 32, 40, 0.9); }
  .shot__play { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 9, 13, 0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .shot__play { transition: none; }
  .shot--clip:hover .shot__play { transform: none; }
}

.reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x) 0;
  scroll-margin-top: 5rem;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-top: 1.75rem;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--med) var(--ease), transform 300ms var(--ease), border-color var(--med) var(--ease);
}
@media (hover: hover) {
  .review:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: var(--sh-2);
    border-color: var(--line);
  }
}

/* Amazon's star gold — it reads the same in both themes. */
.review__stars { display: flex; gap: 2px; color: #FFA41C; }
.review__stars svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }

.review__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--text-2);
}

.review__by {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.review__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.review__name { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.review__where { font-size: 0.82rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════════════════ FOOTER ══ */

.footer { margin-top: clamp(4rem, 9vw, 7rem); padding: 3rem var(--pad-x); border-top: 1px solid var(--line-soft); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9rem; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin-left: auto; font-size: 0.82rem; color: var(--text-3); }

/* Its own row under the legal line — attribution, not navigation. */
.footer__by { width: 100%; font-size: 0.82rem; color: var(--text-3); }
.footer__by a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.footer__by a:hover { color: var(--text); }

@media (max-width: 700px) {
  .footer__legal { margin-left: 0; width: 100%; }
}

/* ════════════════════════════════════════════════════════════ CART DRAWER ══ */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: min(430px, 100vw);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--line-soft);
  box-shadow: var(--sh-3);
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  touch-action: pan-y;
}

.drawer__grab {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 100%;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}
.drawer__grab:active { cursor: grabbing; }
.drawer__grab span {
  width: 4px;
  height: 46px;
  border-radius: var(--pill);
  background: var(--line-strong);
  transition: background-color var(--fast) var(--ease), height var(--med) var(--ease);
}
.drawer__grab:hover span { background: var(--text-3); height: 62px; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.4rem 1.1rem 1.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__head h2 { font-size: 1.22rem; letter-spacing: -0.03em; }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.4rem 1rem 1.9rem;
}

.drawer__empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--text-2);
}
.drawer__empty svg { width: 34px; height: 34px; color: var(--text-3); margin-bottom: 0.6rem; }
.drawer__empty strong { color: var(--text); font-size: 1.05rem; letter-spacing: -0.02em; }
.drawer__empty p { font-size: 0.9rem; }

.line {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  animation: line-in 320ms var(--ease) backwards;
}
.line:last-child { border-bottom: 0; }

/* Removal: a quick swell, then shrink away as the row collapses. */
.line.is-removing {
  overflow: hidden;
  pointer-events: none;
  transform-origin: center right;
  border-bottom-color: transparent;
  animation: line-pop 340ms var(--ease) forwards;
  transition: height 340ms var(--ease), padding 340ms var(--ease);
}

@keyframes line-pop {
  0%   { transform: scale(1);    opacity: 1; }
  28%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.68); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .line.is-removing { animation: none; opacity: 0; }
}

@keyframes line-in {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to   { opacity: 1; transform: none; }
}

.line__thumb {
  width: 66px;
  height: 66px;
  border-radius: var(--r-sm);
  background:
    radial-gradient(100% 80% at 50% 12%, color-mix(in srgb, var(--art) 26%, transparent), transparent 66%),
    var(--surface-sunk);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(58% 58% at 40% 32%, #FFF, var(--art));
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--art) 60%, transparent);
}

.line__main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.line__title { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.line__meta { font-size: 0.8rem; color: var(--text-3); }
.line__variant {
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.55rem; }
.line__price { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 3px;
  border-radius: var(--pill);
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text-2);
  transition: transform 120ms var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.stepper button svg { width: 12px; height: 12px; stroke-width: 2.2; }
.stepper button:hover { background: var(--surface); color: var(--text); }
.stepper button:active { transform: scale(0.88); transition-duration: 60ms; }
.stepper__val {
  /* Sized for a grouped six-figure quantity, e.g. "100,000". */
  width: 7.5ch;
  padding: 0 0.3rem;
  text-align: center;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: var(--r-xs);
  appearance: none;
}
.stepper__val:focus {
  outline: 2px solid var(--focus-line);
  outline-offset: 1px;
  background: var(--surface);
}
.stepper:focus-within { border-color: var(--line-strong); }

.line__end { display: flex; align-items: center; gap: 0.25rem; }

.line__remove {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-3);
  transition: transform 120ms var(--ease), color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.line__remove svg { width: 15px; height: 15px; stroke-width: 1.7; }
.line__remove:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.line__remove:active { transform: scale(0.88); transition-duration: 60ms; }
@media (hover: hover) { .line__remove:hover { transform: scale(1.08); } }

.drawer__foot {
  padding: 1.2rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom)) 1.9rem;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.drawer__row { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.98rem; }
.drawer__row strong { font-size: 1.35rem; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.drawer__note { margin: 0.35rem 0 1rem; font-size: 0.8rem; color: var(--text-3); }

/* Mixed 12 V / 24 V carts get told, right where the checkout button lives.
   Informational only — the button itself never locks. */
.cart-mixwarn {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-2);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 38%, transparent);
  border-radius: var(--r-sm);
}
.cart-mixwarn svg {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 0.12rem;
  fill: none;
  stroke: var(--warn);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-mixwarn p { margin: 0; }
.cart-mixwarn strong { color: var(--text-1); }

/* ── cart: coupon and discount rows ──────────────────────────────────────── */

.coupon { margin-bottom: 1rem; }
.coupon__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.coupon__row { display: flex; gap: 0.5rem; }
.coupon__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.coupon__input::placeholder { text-transform: none; letter-spacing: 0; color: var(--text-3); }
.coupon__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.coupon__msg { margin-top: 0.4rem; font-size: 0.85rem; min-height: 1.1em; color: var(--text-3); }
.coupon__msg[data-tone="ok"] { color: var(--ok); }
.coupon__msg[data-tone="bad"] { color: var(--danger); }

.drawer__row--off { color: var(--ok); font-size: 0.92rem; margin-top: 0.35rem; }
.drawer__row--off strong { font-size: 1rem; font-weight: 600; }
.drawer__row--total { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }
.drawer__row--total strong { font-size: 1.35rem; letter-spacing: -0.035em; }

.account-link__label { font-size: 0.9rem; font-weight: 500; }
@media (max-width: 900px) {
  .account-link__label { display: none; }
  #accountLink { padding: 0; width: 40px; }
}

/* ═════════════════════════════════════════════════════════ QUICK SEARCH ══ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(3rem, 12vh, 8rem) 1rem 1rem;
}
.overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 13, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.overlay.is-open .overlay__scrim { opacity: 1; }

.palette {
  position: relative;
  width: min(640px, 100%);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  overflow: hidden;
  /* Materialize: scale + blur together, not a flat fade. */
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.97);
  filter: blur(6px);
  transition: opacity 220ms var(--ease), transform 320ms var(--ease), filter 220ms var(--ease);
}
.overlay.is-open .palette { opacity: 1; transform: none; filter: none; }

.palette__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.palette__field > svg { width: 19px; height: 19px; color: var(--text-3); flex: 0 0 auto; }
.palette__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}
.palette__field input:focus { outline: none; }
.palette__field input::placeholder { color: var(--text-3); }

kbd {
  padding: 0.15rem 0.42rem;
  border-radius: 6px;
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--text-3);
}

.palette__results { max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem; }

.p-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-sm);
  text-align: left;
  transition: background-color 100ms var(--ease);
}
.p-item[aria-selected="true"] { background: var(--accent-soft); }
.p-item__dot {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
}
.p-item__dot i {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(58% 58% at 40% 32%, #FFF, var(--art));
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--art) 55%, transparent);
}
.p-item__name { font-size: 0.94rem; font-weight: 500; letter-spacing: -0.015em; }
.p-item__meta { font-size: 0.78rem; color: var(--text-3); }
.p-item__price { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.palette__none { padding: 2.5rem 1rem; text-align: center; color: var(--text-3); font-size: 0.92rem; }

.palette__foot {
  display: flex;
  gap: 1.25rem;
  padding: 0.7rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.76rem;
  color: var(--text-3);
}
.palette__foot span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ═══════════════════════════════════════════════════════════════ TOASTS ══ */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 140;
  translate: -50% 0;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  animation: toast-in 380ms var(--ease);
}
.toast svg { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.2; }
.toast.is-out { animation: toast-out 240ms var(--ease) forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.96); }
}

/* ═══════════════════════════════════════════════════════════ FLY TO CART ══ */

/* Parcels live above the palette (120) and the drawer (101) so a trip that
   starts inside either of them stays visible while that surface closes. */
.fly-layer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  overflow: hidden;
}

.fly {
  position: fixed;
  transform-origin: 50% 50%;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-sunk);
  box-shadow: var(--sh-2);
  will-change: transform, opacity;
}
/* The palette swatch already carries its own tile, so it travels undressed. */
.fly--bare { background: none; box-shadow: none; border-radius: 11px; }

/* The card gives a little as the product leaves it. */
.card__art.is-launching { animation: art-give 460ms var(--ease); }

@keyframes art-give {
  0%   { transform: scale(1); }
  22%  { transform: scale(0.955); }
  100% { transform: scale(1); }
}

/* Contact ring — only on an arrival, never on a quantity edit. */
.cart-btn::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: var(--pill);
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.cart-btn.is-landed::after { animation: cart-ring 520ms var(--ease) forwards; }

@keyframes cart-ring {
  from { opacity: 0.55; scale: 0.72; }
  to   { opacity: 0; scale: 1.55; }
}

/* ═══════════════════════════════════════════════════════════ RESPONSIVE ══ */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .search-trigger__label, .search-trigger__kbd { display: none; }
  .search-trigger { padding: 0; width: 40px; }
  .catalog__head { align-items: stretch; }
  .catalog__tools { width: 100%; }
  .field { flex: 1; min-width: 0; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
}

/* ════════════════════════════════════════════════════════ ACCESSIBILITY ══ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
  .card { transform: none !important; }
  .btn:hover, .icon-btn:hover, .cart-btn:hover { transform: none !important; }
  .palette { filter: none; transform: none; }
  .fly-layer { display: none; }
  .card__art.is-launching { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .drawer-scrim, .overlay__scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(14,15,19,0.34); --line-soft: rgba(14,15,19,0.22); --text-2: #3A3E4C; --text-3: #55596A; }
  :root[data-theme="dark"] { --line: rgba(255,255,255,0.34); --line-soft: rgba(255,255,255,0.22); --text-2: #C6CBD8; --text-3: #A6ACBC; }
  .card, .chip, .field__input, .select select { border-width: 1.5px; }
  .nav, .palette, .toast { background: var(--surface); }
}

/* ═══════════════════════════════════════════════════════ FOOTER COLUMNS ══ */
/* The sitewide footer nav — shared by index.html and every generated page
   (tools/build-seo.mjs), so both link the same map of the site. */

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}

.footer__col h3 {
  margin-bottom: 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { font-size: 0.9rem; color: var(--text-2); }
.footer__col a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════ HOME: EXPLORE ══ */
/* The crawlable category band on the homepage — real links to the category
   pages, styled to sit between the shop grid and the install gallery. */

.explore {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x) 0;
}

.explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.explore__card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.explore__card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.explore__card h3 { font-size: 1.02rem; letter-spacing: -0.02em; }
.explore__card p { font-size: 0.86rem; line-height: 1.5; color: var(--text-2); }
.explore__card span { margin-top: auto; padding-top: 0.45rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); }

/* The factual entity band — short, crawlable copy about who we are, with
   the resource links beside it. */
.about-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.about-band p { margin-top: 0.9rem; color: var(--text-2); line-height: 1.65; }
.about-band p a { color: var(--accent); }
.about-band p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.about-band ul { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.about-band ul a {
  display: block;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.about-band ul a:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }

@media (max-width: 860px) {
  .about-band { grid-template-columns: 1fr; }
}
