/* ==========================================================================
   APC Percussion Hire
   Same palette and type as alexpetcu.com, calmer layout.
   ========================================================================== */

:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --bg-3: #1c1c19;
  --ink: #ecebe5;
  --muted: #9a9991;
  --line: rgba(236, 235, 229, 0.14);
  --line-2: rgba(236, 235, 229, 0.26);
  --accent: #ff4a1c;
  --accent-ink: #0b0b0a;
  --ok: #7fd18b;

  --f-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 10px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: "/ "; color: var(--accent); }

.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link:hover { color: var(--accent); }
.link--muted { color: var(--muted); text-decoration-color: var(--line-2); font-size: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: #ff6a42; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); border-color: var(--ink); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }

.count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent-ink); color: var(--ink);
  font-family: var(--f-mono); font-size: 0.75rem;
}
.count.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 10, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); align-self: center; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.brand__sub { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 0.93rem; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__quote { flex: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__quote { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
}

/* ---------- layout ---------- */
.section, .hero { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(64px, 9vw, 120px); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section__lede { color: var(--muted); margin: 14px 0 0; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding-top: clamp(36px, 6vw, 80px);
}
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero__title em { display: block; letter-spacing: -0.01em; }
.hero__lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 52ch; margin: 22px 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  list-style: none; padding: 22px 0 0; margin: 32px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 0.9rem;
}
.hero__facts strong { color: var(--ink); font-weight: 600; }
.hero__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps__n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); font-family: var(--f-mono); font-size: 0.9rem; margin-bottom: 18px;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- catalogue ---------- */
.toolbar {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: var(--bg); padding: 12px 0 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: grid; gap: 12px;
}
.search { position: relative; display: block; max-width: 520px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 42px;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px;
  font: inherit;
}
.search input:focus { border-color: var(--accent); outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--line-2);
  font: 500 0.85rem var(--f-body); cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cat { padding-top: 36px; }
.cat[hidden] { display: none; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cat__head h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cat__head p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .items { grid-template-columns: 1fr; } }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 16px 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.item[hidden] { display: none; }
.item.is-added { border-color: rgba(255, 74, 28, 0.55); background: #1a1310; }
.item__name { font-weight: 600; font-size: 1rem; }
.item__brand { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.item__detail { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.add {
  flex: none; min-width: 92px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
  font: 600 0.85rem var(--f-body); cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.add:hover { border-color: var(--accent); color: var(--accent); }
.add[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.catalogue__empty { color: var(--muted); padding: 32px 0; }

/* ---------- gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery__grid button {
  display: block; padding: 0; border: 0; background: var(--bg-2); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: zoom-in;
}
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s; }
.gallery__grid button:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery__grid { gap: 6px; } }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 56px 60px;
  border: 0; background: rgba(5, 5, 5, 0.95); color: var(--ink);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__cap { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(20, 20, 18, 0.8); color: var(--ink); border: 1px solid var(--line-2);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.lightbox__close { top: 12px; right: 12px; font-size: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lightbox__nav { top: auto; bottom: 10px; transform: none; } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); border-top: 1px solid var(--line); padding-top: clamp(32px, 5vw, 56px); }
.about h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.about__body p { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.about__body p:first-child { color: var(--ink); }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- request ---------- */
.request { padding-bottom: clamp(64px, 9vw, 120px); }
.request__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .request__grid { grid-template-columns: 1fr; } }

.basket { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 860px) { .basket { position: static; } }
.basket__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.basket__head h3 { font-size: 1.2rem; }
.basket__list { list-style: none; margin: 0; padding: 0; }
.basket__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.basket__list li:first-child { border-top: 0; }
.basket__list small { display: block; color: var(--muted); font-size: 0.8rem; }
.basket__remove {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted);
  cursor: pointer; font-size: 0.85rem;
}
.basket__remove:hover { color: var(--accent); border-color: var(--accent); }
.basket__empty { color: var(--muted); margin: 0; font-size: 0.95rem; }

.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.field i { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field.is-invalid input { border-color: var(--accent); }
.form__error { margin: 0; padding: 12px 14px; border-radius: 8px; background: rgba(255, 74, 28, 0.12); border: 1px solid rgba(255, 74, 28, 0.5); font-size: 0.92rem; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__note { margin: 0; color: var(--muted); font-size: 0.9rem; }

.sent { background: var(--bg-2); border: 1px solid var(--ok); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.sent .eyebrow::before { color: var(--ok); }
.sent h3 { font-size: 1.6rem; margin-bottom: 8px; }
.sent p { color: var(--muted); }
.sent__summary { white-space: pre-wrap; font-family: var(--f-mono); font-size: 0.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 16px 0 20px; color: var(--ink); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.9rem;
}
.footer strong { color: var(--ink); display: block; font-family: var(--f-display); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--accent); }

/* ---------- floating quote button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.fab[hidden] { display: none; }
@media (min-width: 861px) { .fab { display: none; } }

/* ---------- form: fixes + delivery choice + date picker ---------- */
.field, .form, .form__row > * { min-width: 0; }
.field input, .field textarea { max-width: 100%; -webkit-appearance: none; appearance: none; font-size: 16px; }
.field__hint { color: var(--muted); font-size: 0.8rem; }
.form__note, .footer__links a { overflow-wrap: anywhere; }

fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.choice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__opts label { position: relative; flex: 1 1 120px; }
.choice__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__opts span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--muted);
  cursor: pointer; text-align: center; font-weight: 500; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.choice__opts span:hover { color: var(--ink); border-color: var(--ink); }
.choice__opts input:checked + span { border-color: var(--accent); color: var(--ink); background: #1a1310; box-shadow: inset 0 0 0 1px var(--accent); }
.choice__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice.is-invalid span { border-color: var(--accent); }

.form__error p { margin: 0 0 10px; }
.form__error p:last-child { margin-bottom: 0; }
.form__summary {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; padding: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font: 0.8rem/1.5 var(--f-mono); color: var(--ink); max-height: 260px; overflow: auto;
}
.form__fallback { display: flex; flex-wrap: wrap; gap: 10px; }
.sent__summary { overflow-wrap: anywhere; }

/* flatpickr calendar in site colours */
.flatpickr-calendar { background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); font-family: var(--f-body); max-width: calc(100vw - 24px); }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { border-bottom-color: var(--bg-2); }
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { border-top-color: var(--bg-2); }
.flatpickr-months .flatpickr-month, .flatpickr-weekdays, span.flatpickr-weekday, .flatpickr-current-month .flatpickr-monthDropdown-months { background: var(--bg-2); color: var(--ink); }
.flatpickr-day { color: var(--ink); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: rgba(236, 235, 229, 0.18); text-decoration: line-through; }
.flatpickr-day.today { border-color: var(--muted); }
.flatpickr-day:hover { background: var(--bg-3); border-color: var(--bg-3); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flatpickr-day.inRange { background: #3a1d12; border-color: #3a1d12; box-shadow: -5px 0 0 #3a1d12, 5px 0 0 #3a1d12; color: var(--ink); }
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: -10px 0 0 var(--accent); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--accent); }
.visually-hidden * { width: 1px; }

/* ---------- selected bar + clear-all toast ---------- */
.selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.9rem; color: var(--muted); }
.selbar[hidden] { display: none; }
.selbar strong { color: var(--ink); font-family: var(--f-mono); }
.selbar .link--muted { font-size: 0.9rem; }
.selbar__next { margin-left: auto; font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px; padding: 12px 18px; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--bg); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-weight: 500; white-space: nowrap;
}
.toast[hidden] { display: none; }
.toast .link { color: var(--bg); font-weight: 700; }

/* ==========================================================================
   Catalogue v2: collapsible sections, compact rows, set picker, mobile menu
   ========================================================================== */
.toolbar { padding: 10px 0; gap: 8px; }
.search input { height: 44px; }
.plus-inline {
  display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; line-height: 1;
}

.catalogue__list { border-top: 1px solid var(--line); }
.cat { padding: 0; border-bottom: 1px solid var(--line); }
.cat__head {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 18px 4px; min-height: 64px;
}
.cat__head::-webkit-details-marker { display: none; }
.cat__head:hover .cat__name { color: var(--accent); }
.cat__title { display: grid; gap: 2px; }
.cat__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: -0.02em; transition: color 0.2s; }
.cat__meta { color: var(--muted); font-size: 0.85rem; }
.cat__added { color: var(--accent); font-weight: 600; }
.cat__chev {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); position: relative;
  transition: transform 0.25s ease, background 0.2s;
}
.cat__chev::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.cat[open] .cat__chev { transform: rotate(180deg); background: var(--bg-3); }
.cat__blurb { margin: -6px 0 10px; padding: 0 4px; color: var(--muted); font-size: 0.9rem; }
.cat .items { padding-bottom: 18px; }

/* compact rows instead of cards */
.items { gap: 0 24px; }
.item {
  grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  padding: 12px 4px; background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line);
}
.item.is-added { background: none; }
.item.is-added .item__name { color: var(--accent); }
.item__name { font-size: 0.98rem; line-height: 1.35; }
.item__meta { color: var(--muted); font-size: 0.84rem; line-height: 1.4; margin-top: 2px; }
.item__brand { color: var(--ink); opacity: 0.8; }
.item__pick {
  margin-top: 6px; padding: 4px 0; background: none; border: 0; cursor: pointer;
  color: var(--accent); font: 500 0.85rem var(--f-body); text-align: left;
}
.item__pick b { font-weight: 600; color: var(--ink); }
.item__pick:hover { text-decoration: underline; }
.add {
  min-width: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem; font-weight: 400; line-height: 1;
}
.add[aria-pressed="true"] { font-size: 1.05rem; }

/* slim selection bar inside the sticky toolbar */
.selbar { font-size: 0.85rem; gap: 4px 14px; }

/* ---------- set picker (bottom sheet on phones, dialog on desktop) ---------- */
.picker {
  border: 1px solid var(--line-2); border-radius: 16px; padding: 0; background: var(--bg-2); color: var(--ink);
  width: min(560px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px));
}
.picker::backdrop { background: rgba(0, 0, 0, 0.65); }
.picker__inner { display: flex; flex-direction: column; gap: 12px; padding: 20px; max-height: inherit; }
.picker__head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.picker__head h3 { font-size: 1.3rem; }
.picker__sub { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.picker__x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; }
.picker__whole, .opt {
  min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: 500 0.95rem var(--f-body); cursor: pointer;
}
.picker__whole { width: 100%; font-weight: 600; }
.picker__whole[aria-pressed="true"], .opt[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.picker__or { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.picker__opts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px;
  overflow-y: auto; min-height: 0; flex: 1 1 auto; padding: 2px;
}
.picker__opts--wide { grid-template-columns: 1fr; }
.picker__opts--wide .opt { text-align: left; }
.picker__note { margin: 0; color: var(--muted); font-size: 0.8rem; }
.picker__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.picker__foot .btn { margin-left: auto; }
.picker__foot .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 600px) {
  .picker {
    margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; border-width: 1px 0 0;
    max-height: 88vh;
  }
  .picker__inner { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
  .picker__foot .btn { flex: 1; }
}

/* ---------- mobile menu ---------- */
.nav__menu { display: none; width: 40px; height: 40px; background: none; border: 0; color: var(--ink); cursor: pointer; position: relative; margin-left: auto; padding: 0; }
.nav__menu span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform 0.25s; }
.nav__menu span:first-child { top: 15px; }
.nav__menu span:last-child { top: 24px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: 6px var(--gutter) 14px; display: grid; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 0; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .nav__menu { display: block; }
  .nav__quote { margin-left: 0; }
  .nav__inner { gap: 10px; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* section spacing a little tighter on phones */
@media (max-width: 600px) {
  .section { padding-top: 56px; }
  .hero__facts { margin-top: 24px; }
}
.item__meta .item__brand { font-family: var(--f-body); font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); opacity: 0.75; margin: 0; }
.catalogue__list { border-top: 0; }
.toolbar { margin-bottom: 0; }
.mobile-menu { background: var(--bg); }
@media (max-width: 860px) { .catalogue { padding-bottom: 72px; } }

/* ---------- quantities ---------- */
.step { display: inline-flex; align-items: center; border: 1px solid var(--accent); border-radius: 999px; height: 44px; background: #1a1310; }
.step button {
  width: 40px; height: 42px; border: 0; background: none; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 999px;
}
.step button:hover:not([disabled]) { color: var(--accent); }
.step button[disabled] { opacity: 0.3; cursor: default; }
.step span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.basket__ctl { display: flex; align-items: center; gap: 8px; }
.basket__ctl .step { height: 36px; }
.basket__ctl .step button { width: 32px; height: 34px; font-size: 1.1rem; }

.picker__opts--list { display: grid; grid-template-columns: 1fr; gap: 0; }
.optrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px; border-top: 1px solid var(--line); }
.optrow:first-child { border-top: 0; }
.optrow small { color: var(--muted); font-size: 0.8rem; }
.optrow .step { border-color: var(--line-2); background: var(--bg); }
.optrow.is-on .step { border-color: var(--accent); background: #1a1310; }
.picker__whole[hidden] { display: none; }

/* ---------- sticky section headers while a section is open ---------- */
.cat[open] > .cat__head {
  position: sticky; top: calc(var(--nav-h) + var(--toolbar-h, 70px)); z-index: 15;
  background: var(--bg); border-bottom: 1px solid var(--line);
  margin: 0 calc(var(--gutter) * -1); padding-left: calc(var(--gutter) + 4px); padding-right: calc(var(--gutter) + 4px);
}
.cat[open] > .cat__head .cat__name { color: var(--ink); }
.cat[open] .cat__blurb { margin-top: 10px; }
@media (max-width: 600px) { .cat__head { min-height: 58px; padding-top: 12px; padding-bottom: 12px; } }

/* ---------- grouped picker ---------- */
.picker__opts { display: flex; flex-direction: column; gap: 18px; grid-template-columns: none; }
.picker__or[hidden] { display: none; }
.pgroup { display: grid; gap: 8px; }
.pgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pgroup__head b { font-weight: 600; }
.pgroup__head small { display: block; color: var(--muted); font-size: 0.8rem; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.chips-grid--wide { grid-template-columns: 1fr; }
.chips-grid--mid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.chips-grid--sets { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.chips-grid--sets .opt { white-space: nowrap; padding: 0 6px; }
.chips-grid--wide .opt { text-align: left; }
.pgroup .optrow:first-of-type { border-top: 0; }
.item--set .item__main { cursor: pointer; }
.item--set:hover .item__name { color: var(--accent); }
.item__pick[hidden] { display: none; }
.optrow { padding: 5px 2px; }
.optrow .step { height: 38px; }
.optrow .step button { width: 36px; height: 36px; font-size: 1.15rem; }
.pgroup__head b { font-size: 0.95rem; }

/* Safari won't reliably lay out <summary> as flex; use an inner row instead */
.cat__head { display: block; }
.cat__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cat__title { flex: 1 1 auto; min-width: 0; }
.cat__name { overflow-wrap: anywhere; }
.cat__chev { flex: 0 0 36px; }
.item__count { color: var(--ink); opacity: 0.85; }
