/* Patriot Arms — site styles */

:root {
  color-scheme: dark;
  --black: #141210;
  --surface: #1B1815;
  --surface-2: #221D19;
  --line: rgba(203, 166, 115, 0.16);
  --ivory: #EFE7D6;
  --ivory-tile: #E6DBC6;
  --walnut: #4A2A18;
  --ink: #2A1B12;
  --ink-2: #4E3A2C;
  --ink-3: #6B5444;
  --gold: #B48E5A;
  --gold-hover: #C49E68;
  --gold-light: #CBA673;
  --saddle: #8B4A23;
  --sold: #C98A5A;
  --text: #D9CFBD;
  --muted: #A69B89;
  --faint: #8F8575;
  --rule: rgba(203, 166, 115, 0.25);
  --bench: #1B1815;
  --rule-ink: rgba(42, 27, 18, 0.2);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(80px, 9vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 81px;  /* 12px + 56px logo + 12px + 1px border */
  --sticky-top: calc(var(--header-h) + 20px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

[tabindex="-1"]:focus { outline: none; }

html { scroll-padding-top: var(--sticky-top); }
html[data-page="build"] { scroll-padding-top: 0; }
::selection { background: rgba(203, 166, 115, 0.35); color: var(--ivory); }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--gold-light); }
a:hover { color: #E6C894; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
input::placeholder, textarea::placeholder { color: var(--faint); }

.wrap { max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }

/* Type */
.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ivory);
}

/* Small capitals label that sits above a heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.section-title { display: flex; flex-direction: column; gap: 14px; }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #D4B37F 0%, #B48E5A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.35);
  color: #17120D;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease), background-color 220ms var(--ease);
}
.btn:hover { color: #17120D; filter: brightness(1.07); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.35), 0 12px 26px -14px rgba(203, 166, 115, 0.7); }
.btn:active { transform: none; }
.btn--walnut { background: var(--walnut); box-shadow: none; color: var(--ivory); }
.btn--walnut:hover { background: #5A3520; color: var(--ivory); filter: none; box-shadow: 0 12px 26px -14px rgba(42, 27, 18, 0.8); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(50% + 0.95em) / 100% 1px;
  transition: color 200ms ease, background-size 300ms var(--ease);
}
.text-link::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: rotate(45deg);
  transition: transform 260ms var(--ease);
}
.text-link:hover::after, a:hover > .text-link::after { transform: translateX(4px) rotate(45deg); }

.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(203, 166, 115, 0.4);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { border-color: var(--gold-light); }
.chip[aria-pressed="true"] { background: var(--gold-light); border-color: var(--gold-light); color: var(--black); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Skip link */
.skip-link {
  position: fixed; z-index: 100; left: 16px; top: -60px;
  padding: 12px 18px; background: var(--ivory); color: var(--ink); border-radius: 2px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: #100E0C; }
.topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 36px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.topbar-inner a { color: var(--gold-light); text-decoration: none; }
.topbar-inner a:hover { color: var(--ivory); }
.topbar-mark { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); opacity: 0.8; }
@media (max-width: 760px) {
  .topbar-inner > :nth-child(1), .topbar-inner > :nth-child(2), .topbar-inner > :nth-child(4), .topbar-inner > :nth-child(5) { display: none; }
  .topbar-inner { font-size: 10.5px; letter-spacing: 0.12em; }
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(20, 18, 16, 0.82);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9); background: rgba(20, 18, 16, 0.92); }
html[data-page="build"] .site-header { position: relative; }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 40px;
  padding-block: 12px;
}
/* The header keeps one height while you scroll; only its background and shadow change.
   (Shrinking it would change the page height and make the scroll position jump back and forth.) */
.site-header .logo { display: block; line-height: 0; }
.site-header .logo-img { display: block; height: 56px; width: auto; aspect-ratio: 1800 / 564; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 0 clamp(22px, 2.6vw, 38px); white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav a[data-nav] { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); text-decoration: none; }
.site-nav a[data-nav]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 8px;
  height: 1px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: center;
  transition: transform 300ms var(--ease);
}
.site-nav a[data-nav]:hover { color: var(--gold-light); }
.site-nav a[data-nav]:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--gold-light); }
.header-inner > .menu-btn { display: none; }

/* Shop menu that drops from the header */
.nav-item { position: static; display: flex; align-items: center; }
.has-mega > a[data-nav] { gap: 8px; }
.has-mega > a[data-nav]::before {
  content: ""; order: 2;
  width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor;
  transform: rotate(45deg); opacity: 0.7;
}
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #161311;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 220ms ease, transform 260ms var(--ease), visibility 0s linear 260ms;
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 80ms, 80ms, 0s;
}
.has-mega.is-shut .mega { opacity: 0; visibility: hidden; transition: none; }
.mega-inner {
  max-width: 1360px; margin: 0 auto; padding: 32px var(--gutter) 36px;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 48px;
}
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-col .eyebrow { margin-bottom: 10px; }
.mega-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ivory); text-decoration: none;
  transition: color 200ms ease, padding 260ms var(--ease);
}
.mega-link:hover { color: var(--gold-light); padding-left: 6px; }
.mega-link--all { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--gold-light); border-bottom: 0; padding-top: 14px; }
.mega-count { font-family: var(--sans); font-size: 12px; color: var(--faint); white-space: nowrap; }
.mega-feature {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 210px; padding: 22px; border-radius: 3px; overflow: hidden;
  text-decoration: none; color: var(--ivory); isolation: isolate;
}
.mega-feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.mega-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 18, 16, 0.05) 20%, rgba(20, 18, 16, 0.9) 100%); }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; max-width: 320px; }

.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0; background: transparent; border: 0; border-radius: 2px; color: var(--ivory); cursor: pointer;
  transition: color 200ms ease;
}
.icon-btn:hover { color: var(--gold-light); }
.search-btn {
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
}
.search-btn:hover { border-color: rgba(203, 166, 115, 0.5); }
.search-btn-label { min-width: 90px; text-align: left; }
kbd, .search-btn-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid rgba(203, 166, 115, 0.3); border-radius: 3px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted);
}
.cart-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 6px 0 12px;
  color: var(--ivory); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.cart-link:hover { color: var(--gold-light); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--gold-light); color: #17120D;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums;
  transition: transform 260ms var(--ease);
}
.cart-count.is-empty { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(203, 166, 115, 0.35); }
.cart-link[aria-current="page"] { color: var(--gold-light); }

/* Phone menu */
dialog { color: inherit; }
.drawer {
  margin: 0 auto 0 0;
  width: min(380px, 88vw);
  max-width: none; height: 100%; max-height: none;
  padding: 0; border: 0;
  background: #181513;
  border-right: 1px solid var(--line);
}
.drawer::backdrop { background: rgba(8, 7, 6, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in 320ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer-panel { min-height: 100%; display: flex; flex-direction: column; gap: 28px; padding: 14px 22px 28px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-right: -10px; }
.drawer-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 24px; color: var(--ivory); text-decoration: none;
}
.drawer-nav a[aria-current="page"] { color: var(--gold-light); }
.drawer-group { display: flex; flex-direction: column; gap: 2px; }
.drawer-group .eyebrow { margin-bottom: 8px; }
.drawer-group a { display: flex; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; font-size: 15px; }
.drawer-search {
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  color: var(--muted); font-family: var(--sans); font-size: 14px; text-align: left; cursor: pointer;
}
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }

/* Search */
.search-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none; max-height: min(640px, calc(100vh - 120px));
  margin: 10vh auto auto;
  padding: 0; border: 1px solid rgba(203, 166, 115, 0.35); border-radius: 4px;
  background: #1A1714;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}
.search-dialog::backdrop { background: rgba(8, 7, 6, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog[open] { animation: search-in 220ms var(--ease); }
@keyframes search-in { from { opacity: 0; transform: translateY(-8px) scale(0.99); } }
.search-box { display: flex; flex-direction: column; max-height: inherit; }
.search-row { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); color: var(--gold-light); }
.search-row input {
  flex: 1 1 auto; min-width: 0; min-height: 64px;
  background: none; border: 0; outline: none;
  color: var(--ivory); font-family: var(--serif); font-size: 22px;
}
.search-row input::-webkit-search-cancel-button { display: none; }
.search-row input:focus-visible { outline: none; }
.search-esc {
  height: 28px; padding: 0 8px; background: none; cursor: pointer;
  border: 1px solid rgba(203, 166, 115, 0.3); border-radius: 3px;
  font-family: var(--sans); font-size: 11px; color: var(--muted);
}
.search-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 10px 12px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(203, 166, 115, 0.4) transparent; }
.q-group { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.q-label { padding: 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.q-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 8px 10px; border-radius: 3px; text-decoration: none; color: var(--text);
}
.q-item--page, .q-item--all { grid-template-columns: minmax(0, 1fr) auto; min-height: 52px; }
.q-item[aria-selected="true"] { background: rgba(203, 166, 115, 0.1); box-shadow: inset 2px 0 0 var(--gold-light); }
.q-thumb { width: 76px; height: 46px; border-radius: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #2E2822 0%, #1F1B17 75%); }
.q-thumb .sil { width: 80%; max-height: 76%; height: auto; }
.q-thumb .sil--compact, .q-thumb .sil--striker, .q-thumb .sil--hammer { width: 58%; }
.q-thumb img { width: 100%; height: 100%; object-fit: contain; background: #F4F1EC; }
.q-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.q-name { font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-price { font-family: var(--serif); font-size: 15px; color: var(--ivory); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-go { color: var(--gold-light); }
.q-item--all .q-name { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--gold-light); }
.q-empty { padding: 28px 12px; }
.q-empty p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.q-empty p:first-child { font-family: var(--serif); font-size: 20px; color: var(--ivory); }
.search-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 12px 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
}
.search-foot span { display: inline-flex; align-items: center; gap: 4px; }
.search-foot a { margin-left: auto; font-weight: 500; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .search-dialog { margin-top: 12px; max-height: calc(100vh - 24px); }
  .search-foot span { display: none; }
  .q-item { grid-template-columns: 64px minmax(0, 1fr); }
  .q-thumb { width: 64px; height: 40px; }
  .q-price { display: none; }
}

/* Back to top */
.to-top {
  position: fixed; z-index: 40; right: 20px; bottom: 20px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: rgba(27, 24, 21, 0.9); border: 1px solid rgba(203, 166, 115, 0.4); border-radius: 50%;
  color: var(--gold-light); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade-up 260ms var(--ease);
  transition: background-color 200ms ease, color 200ms ease;
}
.to-top:hover { background: var(--gold-light); color: #17120D; }
html[data-page="build"] .to-top { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* Inner page headings */
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ivory);
  text-wrap: balance;
}
.page-head {
  padding-block: clamp(48px, 6vw, 88px) 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.page-head p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.7; color: var(--muted); }

@media (max-width: 1300px) {
  .search-btn { padding: 0; border: 0; }
  .search-btn-label, .search-btn-key { display: none; }
  .site-nav { gap: 0 28px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 61px; }  /* 8px + 44px menu button + 8px + 1px border */
  .header-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; padding-block: 8px; }
  .header-inner > .menu-btn { display: inline-flex; justify-self: start; margin-left: -10px; }
  .site-nav { display: none; }
  .site-header .logo-img { height: 42px; }
  .cart-word { display: none; }
  .cart-link { padding: 0 0 0 8px; gap: 6px; }
}

/* Hero */
.hero { position: relative; isolation: isolate; padding-block: clamp(44px, 6vw, 92px) clamp(48px, 5vw, 72px); }
.hero::before {
  content: "";
  position: absolute; z-index: -1; inset: -120px 0 0;
  background: radial-gradient(circle 440px at 64% 42%, rgba(180, 142, 90, 0.11), rgba(180, 142, 90, 0) 100%);
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: clamp(22px, 3vw, 36px); }
.hero-eyebrow::before { flex: none; }
@media (max-width: 520px) { .hero-eyebrow { gap: 10px; font-size: 10.5px; letter-spacing: 0.16em; } .hero-eyebrow::before { width: 18px; } }
.hero::after {
  content: "";
  position: absolute; z-index: -1;
  right: var(--gutter); top: 50%;
  width: min(34vw, 460px); aspect-ratio: 1200 / 974;
  transform: translateY(-62%);
  background: url("../images/brand/mark-gold.svg") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
@media (max-width: 900px) { .hero::after { display: none; } }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9.4vw, 144px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ivory);
}
.hero-foot {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(203, 166, 115, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 56px;
}
.hero-foot p { flex: 1 1 340px; max-width: 460px; margin: 0; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-note { flex: 0 1 240px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hero-note .status { display: flex; align-items: center; gap: 10px; color: var(--ivory); }
.hero-note .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero-note .sub { padding-left: 17px; }

/* Home: what you can count on */
.assure { padding-bottom: clamp(56px, 6vw, 88px); }
.assure-grid {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.assure-grid li { display: flex; flex-direction: column; gap: 6px; padding: 28px 28px 30px; }
.assure-grid li + li { border-left: 1px solid var(--line); }
.assure-grid svg { color: var(--gold-light); margin-bottom: 10px; }
.assure-title { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ivory); }
.assure-text { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 960px) {
  .assure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure-grid li:nth-child(3) { border-left: 0; }
  .assure-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .assure-grid li { padding: 20px 14px 22px; }
  .assure-grid li:nth-child(odd) { padding-left: 0; }
  .assure-title { font-size: 17px; }
  .assure-text { font-size: 12.5px; }
}

/* Letter */
.letter { background: var(--ivory); color: var(--ink); }
.letter .eyebrow, .partners .eyebrow { color: var(--saddle); }
.letter .wrap {
  padding-block: var(--section);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px clamp(48px, 7vw, 120px);
}
.letter-mark { flex: 0 1 clamp(180px, 22vw, 300px); margin: 0; }
.letter-mark img { display: block; width: 100%; height: auto; }
.letter-body { flex: 2 1 480px; max-width: 640px; display: flex; flex-direction: column; gap: 22px; font-family: var(--serif); }
.letter-body p { margin: 0; font-size: 18px; line-height: 1.75; color: #3F2D21; }
.letter-body .lead { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.4; color: var(--ink); }

/* Home: recently added */
.recent { padding-block: var(--section); display: flex; flex-direction: column; gap: 32px; }
.recent-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }

/* Home: three ways in */
.teasers { background: var(--walnut) radial-gradient(ellipse 70% 80% at 85% 0%, rgba(203, 166, 115, 0.12), transparent 70%); color: var(--ivory); }
.teasers-inner { padding-block: clamp(72px, 8vw, 120px); display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.teasers-head { display: flex; flex-direction: column; gap: 14px; }
.teasers .eyebrow { color: #E2C795; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teaser {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 30px 26px;
  border: 1px solid rgba(239, 231, 214, 0.18);
  border-radius: 3px;
  background: rgba(20, 12, 7, 0.18);
  color: var(--ivory);
  text-decoration: none;
  transition: background-color 300ms ease, border-color 300ms ease, transform 300ms var(--ease);
}
.teaser:hover { color: var(--ivory); background: rgba(20, 12, 7, 0.32); border-color: rgba(226, 199, 149, 0.55); transform: translateY(-3px); }
.teaser-num { font-family: var(--serif); font-style: italic; font-size: 18px; color: #E2C795; }
.teaser-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; color: var(--ivory); }
.teaser p { margin: 0 0 auto; max-width: 460px; font-size: 15px; line-height: 1.7; color: #E3D6C1; }
.teaser .text-link { margin-top: 10px; color: #E2C795; }
@media (max-width: 900px) { .teaser-grid { grid-template-columns: minmax(0, 1fr); } }

/* Inventory */
.shop-body { padding-bottom: var(--section); display: flex; flex-direction: column; gap: 32px; }
.shop-notes { display: flex; flex-wrap: wrap; gap: 8px 48px; font-size: 15px; color: var(--muted); }
.shop-notes p { margin: 0; }
.shop-notes a { font-weight: 500; text-underline-offset: 4px; }
.stock-list { min-width: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(203, 166, 115, 0.3); }
.stock-row {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid rgba(203, 166, 115, 0.22);
  text-decoration: none;
  background: linear-gradient(90deg, rgba(203, 166, 115, 0.07), transparent 70%) no-repeat 0 0 / 0% 100%;
  transition: background-size 500ms var(--ease), padding 400ms var(--ease);
}
.stock-row:hover { background-size: 100% 100%; padding-left: 12px; }
.stock-row:hover .name { color: var(--gold-light); }
.stock-row .thumb {
  width: 176px; height: 78px; border-radius: 3px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #2A241F 0%, #1B1815 75%); display: flex; align-items: center; justify-content: center;
}
.stock-row .thumb .sil { width: 78%; max-height: 80%; height: auto; }
.stock-row .thumb .sil--compact, .stock-row .thumb .sil--striker, .stock-row .thumb .sil--hammer { width: 56%; }
.stock-row .thumb svg { display: block; width: 100%; height: 100%; }
.stock-row .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stock-row .name { font-family: var(--serif); font-size: 23px; line-height: 1.25; color: var(--ivory); }
.stock-row .detail { font-size: 14px; color: var(--muted); }
.stock-row .price { font-family: var(--serif); font-size: 21px; color: var(--ivory); white-space: nowrap; }
.stock-row .price--request { font-size: 17px; color: var(--gold-light); }
.stock-row .price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stock-row .row-tag { font-size: 12px; font-weight: 500; color: var(--gold-light); white-space: nowrap; }
.stock-row.is-sold .name { color: var(--muted); }
.stock-row.is-sold .detail { color: var(--faint); }
.stock-row.is-sold .price { font-style: italic; color: var(--sold); }
.stock-empty { margin: 24px 0 0; color: var(--muted); }

@media (max-width: 640px) {
  .stock-row { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; }
  .stock-row .thumb { width: 96px; height: 52px; grid-row: span 2; }
  .stock-row .price-col { grid-column: 2; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .stock-row .name { font-size: 20px; }
}

/* How buying works */
.how { padding-block: clamp(48px, 6vw, 88px) var(--section); }
.how-inner { display: flex; flex-direction: column; gap: 52px; }
.how-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.how-head .page-title { max-width: 820px; }
.how-head p { margin: 0; max-width: 380px; font-size: 15px; color: var(--muted); }
.good-to-know { display: flex; flex-direction: column; gap: 14px; max-width: 720px; padding-top: 36px; border-top: 1px solid rgba(203, 166, 115, 0.3); }
.good-to-know ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.good-to-know li::marker { color: var(--gold); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 36px 32px; }
.steps li {
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
  padding-top: 26px;
  border-top: 1px solid rgba(203, 166, 115, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.steps .num { font-family: var(--serif); font-size: 15px; color: var(--gold-light); }
.steps .title { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--ivory); }
.steps .body { font-size: 15px; color: var(--muted); }

/* Custom shop */
.workshop { background: var(--walnut); color: var(--ivory); display: flex; flex-wrap: wrap; align-items: stretch; }
.workshop-photo { flex: 1 1 520px; min-width: 0; min-height: 420px; background: #160f0a; }
.workshop-photo img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

/* The 3D showcase: a pistol, an AR and a shotgun turning in turn. The photo stays until it loads. */
.showcase {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  width: 100%; height: min(calc(100vh - var(--header-h)), 820px); min-height: clamp(460px, 62vw, 560px);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 72% 62% at 50% 46%, #4f3623 0%, #2b1c12 58%, #160f0a 100%);
  cursor: grab;
}
.showcase.is-drag { cursor: grabbing; }
.showcase-poster { position: absolute; inset: 0; z-index: 0; transition: opacity 700ms ease; }
.showcase.is-live .showcase-poster { opacity: 0; pointer-events: none; }
.showcase-stage { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 700ms ease; }
.showcase.is-live .showcase-stage { opacity: 1; }
.showcase-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
/* Soft edges, so guns slide in and out of the dark instead of off a hard edge */
.showcase::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, #160f0a 0%, rgba(22, 15, 10, 0) 16%, rgba(22, 15, 10, 0) 84%, #160f0a 100%),
    linear-gradient(0deg, rgba(14, 9, 6, 0.85) 0%, rgba(14, 9, 6, 0) 34%);
  opacity: 0; transition: opacity 700ms ease;
}
.showcase.is-live::before { opacity: 1; }
.showcase-ui {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 0 clamp(20px, 3.4vw, 44px) clamp(18px, 2.6vw, 30px);
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; visibility: hidden; transition: opacity 700ms ease;
}
.showcase.is-live .showcase-ui { opacity: 1; visibility: visible; }
.showcase-cap { display: flex; flex-direction: column; gap: 4px; max-width: 460px; transition: opacity 260ms ease, transform 260ms var(--ease); }
.showcase-cap.is-swap { opacity: 0; transform: translateY(6px); }
.showcase-title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--ivory); }
.showcase-note { font-size: 14px; line-height: 1.55; color: #D6C7AE; }
.showcase-ctl { display: flex; align-items: center; gap: 18px; }
.showcase-dots { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.showcase-dot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  min-height: 44px; padding: 8px 0 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: #BFAE92; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 250ms ease;
}
.showcase-dot:hover, .showcase-dot[aria-current="true"] { color: var(--ivory); }
.showcase-dot-bar { position: relative; display: block; width: 100%; height: 2px; background: rgba(239, 231, 214, 0.22); overflow: hidden; }
.showcase-dot-bar i { position: absolute; inset: 0; background: var(--gold-light); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.showcase-play {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 14, 9, 0.55); border: 1px solid rgba(239, 231, 214, 0.3); border-radius: 50%;
  color: var(--ivory); cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease;
}
.showcase-play:hover { background: rgba(203, 166, 115, 0.22); border-color: var(--gold-light); }
.showcase-play .i-play { display: none; }
.showcase.is-paused .showcase-play .i-play { display: block; }
.showcase.is-paused .showcase-play .i-pause { display: none; }
.showcase-play:focus-visible, .showcase-dot:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
@media (max-width: 1023px) {
  .showcase { position: relative; top: auto; height: clamp(460px, 112vw, 600px); min-height: 0; }
}
@media (max-width: 640px) {
  .showcase-note { font-size: 13px; }
  .showcase-dot { font-size: 10px; letter-spacing: 0.12em; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-poster, .showcase-stage, .showcase::before, .showcase-ui, .showcase-cap { transition: none; }
}
.workshop-body {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 760px;
  padding: clamp(64px, 7vw, 112px) clamp(20px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.workshop-body > p { margin: 0; max-width: 540px; line-height: 1.75; color: #E3D6C1; }
.price-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; max-width: 540px; }
.price-list .h3 { margin-bottom: 4px; }
.price-line { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.price-line .dots { position: static; inset: auto; pointer-events: auto; flex: 1; border-bottom: 1px dotted rgba(239, 231, 214, 0.4); transform: translateY(-4px); }
.price-line .amount { font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.price-note { margin: 6px 0 0; font-size: 14px; color: #CDBFA8; }
.workshop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.workshop-actions .text-link { color: var(--ivory); }

/* Shared bits for the gun and build pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.back-link::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.back-link:hover { color: var(--gold-light); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; min-height: 44px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs > * + *::before { content: "/"; margin: 0 12px; color: rgba(203, 166, 115, 0.4); }
.crumbs [aria-current] { color: var(--ivory); }
.btn { gap: 10px; }
.btn--outline { background: transparent; color: var(--ivory); border: 1px solid rgba(203, 166, 115, 0.6); }
.btn--outline:hover { background: rgba(203, 166, 115, 0.12); color: var(--ivory); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Gun detail page */
.product { padding-block: clamp(28px, 4vw, 48px) var(--section); display: flex; flex-direction: column; gap: 20px; }
.product-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(40px, 5vw, 80px); }
.product-visual {
  flex: 3 1 520px;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.5vw, 32px);
  background: var(--bench);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-visual img { display: block; width: 100%; aspect-ratio: 724 / 328; object-fit: cover; border-radius: 2px; }
.product-visual svg { border-radius: 2px; }
.product-visual .product-photo { margin-top: 12px; }
.product-visual svg { display: block; width: 100%; height: auto; }
.product-visual figcaption { font-size: 13px; color: var(--faint); }
.photo-placeholder {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background: #26201B; border-radius: 2px;
  font-size: 14px; color: var(--faint);
}
.product-info { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.product-tier { font-size: 14px; font-weight: 500; color: var(--gold-light); }
.product-info .page-title { font-size: clamp(34px, 3.4vw, 50px); }
.product-detail { margin: 0; line-height: 1.7; color: var(--muted); }
.product-price { font-family: var(--serif); font-size: 30px; color: var(--ivory); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.product-note:empty { display: none; }
.product-note a { font-weight: 500; text-underline-offset: 4px; }
.product-price { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.product-assure { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.product-assure li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.product-assure svg { flex: none; color: var(--gold-light); margin-top: 1px; }
.product-assure a { font-weight: 500; text-underline-offset: 4px; }
@media (min-width: 1024px) { .product-info { position: sticky; top: var(--sticky-top); } }
.specs { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; color: var(--text); }
.specs dt { flex-shrink: 0; }
.specs dd { min-width: 0; text-wrap: pretty; }
.specs .spec-list { display: flex; flex-direction: column; gap: 4px; }
.more-specs > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light);
}
.more-specs > summary::-webkit-details-marker { display: none; }
.more-specs > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.2s var(--ease); }
.more-specs[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.more-specs > summary:hover { color: var(--gold-hover); }
.more-specs > summary:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.more-specs .specs { border-top: 0; }

/* Custom builds: choose a gun */
.build-starts { padding-bottom: var(--section); display: flex; flex-wrap: wrap; gap: 20px; }
.build-start {
  flex: 1 1 300px;
  min-width: 0;
  padding: 24px;
  background: var(--bench);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.build-start:hover { border-color: var(--gold-light); }
.build-start svg { display: block; width: 100%; height: 160px; border-radius: 2px; }
.build-start--cat svg { height: 210px; }
.build-start .price-line-sm { font-family: var(--serif); font-size: 18px; color: var(--ivory); }
.build-start .name { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ivory); }
.build-start .parts { font-size: 14px; line-height: 1.6; color: var(--muted); }
.build-start .go { margin-top: auto; }
.build-start .go { font-size: 15px; font-weight: 500; color: var(--gold-light); text-decoration: underline; text-underline-offset: 5px; }

/* Builder: the bench */
.build-head { padding-block: clamp(28px, 4vw, 48px) 24px; display: flex; flex-direction: column; gap: 8px; }
.build-head .page-title { font-size: clamp(38px, 4vw, 58px); }
.build-gun { margin: 0; font-size: 17px; color: var(--muted); }

/* Builder: the studio, with the 3D model (or drawing), numbered dots and the options tab */
.studio {
  position: relative;
  display: flex;
  height: clamp(540px, 76vh, 720px);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: #1D1A17;
}
.stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 78% 72% at 50% 42%, #F5F0E7 0%, #E5DED1 56%, #CEC5B4 100%);
}
.stage:not(.is-3d) { background: var(--bench); }
.stage.is-loading::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid rgba(42, 27, 18, 0.15);
  border-top-color: var(--saddle);
  animation: stage-spin 0.9s linear infinite;
}
.stage.is-loading .stage-hint { right: 50%; transform: translateX(50%); bottom: calc(50% - 56px); max-width: none; white-space: nowrap; }
@keyframes stage-spin { to { transform: rotate(360deg); } }
.stage-3d { position: absolute; inset: 0; }
.stage-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.stage-canvas:active { cursor: grabbing; }
.stage .bench-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dots { position: absolute; inset: 0; pointer-events: none; }
.dot {
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  padding: 0;
  background: none;
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.dot-num {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(36, 24, 16, 0.92);
  border: 1.5px solid var(--gold-light);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.45);
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.dot-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(203, 166, 115, 0.75);
  animation: dot-ring 2.6s ease-out infinite;
}
@keyframes dot-ring { 0% { opacity: 0.9; transform: scale(0.8); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.dot.is-changed .dot-num { background: var(--gold); color: #24180F; border-color: #F5EBD6; }
.dot:hover .dot-num, .dot.is-hot .dot-num, .dot[aria-expanded="true"] .dot-num { background: var(--ivory); color: #24180F; border-color: var(--walnut); transform: scale(1.08); }
.dot.is-behind { opacity: 0.38; }
.dot.is-behind .dot-num::after { display: none; }
.dot:focus { outline: none; }
.dot:focus-visible .dot-num { outline: 2px solid #24180F; outline-offset: 3px; }
.dot-label {
  position: absolute;
  left: 42px; top: 50%;
  transform: translate(-4px, -50%);
  padding: 5px 10px;
  background: rgba(36, 24, 16, 0.92);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}
.dot.label-left .dot-label { left: auto; right: 42px; transform: translate(4px, -50%); }
.dot:hover .dot-label, .dot:focus-visible .dot-label, .dot.is-hot .dot-label { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { .dot-num::after { animation: none; opacity: 0; } }
.stage-tools { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.tool {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 252, 246, 0.86);
  border: 1px solid rgba(42, 27, 18, 0.16);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.35);
}
.tool:hover { background: #FFFFFF; }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.tool:focus-visible { outline-color: var(--ink); }
.stage-hint {
  position: absolute;
  right: 18px; bottom: 18px;
  max-width: 46%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: right;
  color: rgba(42, 27, 18, 0.66);
  pointer-events: none;
}
.stage:not(.is-3d) .stage-hint { color: var(--faint); }

.panel-tab {
  flex: 0 0 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 0;
  background: #241F1A;
  border: 0;
  border-left: 1px solid var(--rule);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.panel-tab:hover { background: #2C251D; color: var(--ivory); }
.panel-tab .tab-label { writing-mode: vertical-rl; transform: rotate(180deg); }
.tab-chev { transition: transform 200ms ease; }
.studio.panel-closed .tab-chev { transform: rotate(180deg); }
.opt-panel { flex: 0 0 384px; min-width: 0; display: flex; flex-direction: column; background: #1D1A17; border-left: 1px solid var(--rule); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--rule); }
.panel-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ivory); }
.panel-count { font-size: 12.5px; color: var(--muted); }
.panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 166, 115, 0.5) transparent;
}
.opt-sec { border-bottom: 1px solid var(--rule); }
.sec-h { margin: 0; font: inherit; }
.sec-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 20px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}
.sec-head:hover, .opt-sec.is-hot .sec-head { background: rgba(203, 166, 115, 0.07); }
.sec-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--gold-light);
}
.opt-sec.is-changed .sec-num { background: var(--gold); border-color: var(--gold); color: #24180F; }
.sec-text { min-width: 0; display: flex; flex-direction: column; }
.sec-label { font-size: 12px; font-weight: 500; letter-spacing: 0.03em; color: var(--muted); }
.sec-choice { font-family: var(--serif); font-size: 16.5px; line-height: 1.3; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-price { font-size: 12.5px; font-weight: 500; color: var(--gold-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec-chev { color: var(--muted); transition: transform 200ms ease; }
.opt-sec.is-open .sec-chev { transform: rotate(180deg); }
.sec-body { padding: 0 12px 16px; }
.sec-help { margin: 0 8px 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.initials-field { margin: 12px 8px 0; display: flex; flex-direction: column; gap: 6px; }
.initials-field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.initials-field input {
  max-width: 180px;
  min-height: 46px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(203, 166, 115, 0.45);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Builder: options and summary */
.build-lower {
  padding-block: 36px var(--section);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px clamp(40px, 5vw, 80px);
}
.next-steps { flex: 3 1 460px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  line-height: 1.65;
  color: var(--muted);
}
.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--gold-light);
}
.next-steps strong { font-weight: 500; color: var(--ivory); }

/* Builder: the options box that opens at a part */
.slot-pop {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: #221E1A;
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  box-shadow: 0 28px 56px -16px rgba(0, 0, 0, 0.75);
  animation: pop-in 140ms ease-out;
}
.slot-pop.tail-left::before, .slot-pop.tail-right::before {
  content: "";
  position: absolute;
  top: var(--tail-y, 40px);
  width: 12px; height: 12px;
  background: #221E1A;
  transform: translateY(-50%) rotate(45deg);
}
.slot-pop.tail-left::before { left: -7px; border-left: 1px solid var(--gold-light); border-bottom: 1px solid var(--gold-light); }
.slot-pop.tail-right::before { right: -7px; border-right: 1px solid var(--gold-light); border-top: 1px solid var(--gold-light); }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slot-pop { animation: none; } }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px 4px 16px; }
.pop-title { font-family: var(--serif); font-size: 21px; color: var(--ivory); }
.pop-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 3px;
  color: var(--muted); cursor: pointer;
}
.pop-close:hover { color: var(--ivory); background: rgba(203, 166, 115, 0.1); }
.pop-help { margin: 0; padding: 0 16px 10px; font-size: 13px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--rule); }
.pop-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 166, 115, 0.5) transparent;
}
.opt {
  width: 100%;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}
.opt:hover { background: rgba(203, 166, 115, 0.08); border-color: rgba(203, 166, 115, 0.4); }
.opt[aria-pressed="true"] { background: rgba(203, 166, 115, 0.13); border-color: var(--gold-light); }
.opt-thumb {
  width: 112px; height: 64px;
  border-radius: 2px;
  background: var(--bench);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.opt-thumb svg, .opt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage.is-3d ~ * .opt-thumb, .studio .opt-thumb { background: #E7E0D4; }
.opt-thumb img[data-thumb] { background: linear-gradient(100deg, #E2DACD 30%, #EFE9DF 50%, #E2DACD 70%) 0 0 / 300% 100%; animation: thumb-wait 1.2s linear infinite; }
@keyframes thumb-wait { to { background-position: -300% 0; } }
.opt-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt-name { font-family: var(--serif); font-size: 16px; line-height: 1.25; color: var(--ivory); }
.opt-note { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.opt-price { font-size: 12px; font-weight: 500; color: var(--gold-light); }
.slot-pop .opt { grid-template-columns: 136px minmax(0, 1fr); }
.slot-pop .opt-thumb { width: 136px; height: 77px; }
.stage:not(.is-3d) ~ .opt-panel .opt-thumb, .stage:not(.is-3d) .opt-thumb { background: var(--bench); }
.opt[aria-pressed="true"] .opt-name::after {
  content: "";
  display: inline-block;
  width: 5px; height: 10px;
  margin-left: 8px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg) translateY(-2px);
}
.pop-foot { padding: 4px 8px 14px; border-top: 1px solid var(--rule); }
.pop-list { padding: 8px; }

.slip-prices { margin: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px dashed rgba(42, 27, 18, 0.35); }
.slip-prices div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.slip-prices dd { margin: 0; font-variant-numeric: tabular-nums; }
.slip-prices .total { margin-top: 4px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.btn--walnut[disabled] { opacity: 0.6; }
.build-slip { margin-left: auto; }
.slip-base { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink); }
.build-lines li { justify-content: space-between; gap: 16px; }
.build-lines .k { font-size: 13px; color: var(--ink-3); }
.build-lines .v { text-align: right; color: var(--ink); }
.build-lines .lp { display: block; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.build-lines .empty { font-size: 14px; color: var(--ink-3); }
.text-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .studio { flex-direction: column; height: auto; overflow: visible; border: 0; background: none; }
  .stage { flex: none; position: sticky; top: 0; z-index: 4; height: clamp(270px, 70vw, 500px); border: 1px solid var(--rule); border-radius: 3px; }
  .stage-hint { right: 12px; bottom: 14px; max-width: 42%; font-size: 12px; }
  .opt-sec { scroll-margin-top: calc(clamp(270px, 70vw, 500px) + 12px); }
  .stage-tools { left: 12px; bottom: 12px; gap: 6px; }
  .tool { width: 40px; height: 40px; }
  .dot, .dot-num { width: 28px; height: 28px; }
  .dot { margin: -14px 0 0 -14px; }
  .dot-num { font-size: 12px; }
  .dot-label { display: none; }
  .panel-tab {
    flex: none;
    flex-direction: row;
    height: 50px;
    margin-top: 12px;
    border: 1px solid var(--rule);
    border-radius: 3px;
  }
  .panel-tab .tab-label { writing-mode: horizontal-tb; transform: none; }
  .tab-chev { transform: rotate(-90deg); }
  .studio.panel-closed .tab-chev { transform: rotate(90deg); }
  .opt-panel { flex: none; margin-top: 8px; border: 1px solid var(--rule); border-radius: 3px; }
  .panel-body { overflow: visible; }
}
@media (max-width: 520px) {
  .opt { grid-template-columns: 100px minmax(0, 1fr); }
  .opt-thumb { width: 100px; height: 57px; }
}

.slip {
  flex: 2 1 340px;
  min-width: 0;
  max-width: 460px;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 3px;
  padding: 36px 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
}
.slip-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px dashed rgba(42, 27, 18, 0.35);
}
.slip-head .title { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.slip-head .count { font-size: 13px; color: var(--ink-3); }
.slip-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.slip-lines li { display: flex; align-items: baseline; gap: 12px; font-size: 15px; line-height: 1.5; }
.slip-lines svg { flex: 0 0 auto; transform: translateY(1px); }
.slip-ship { padding-top: 16px; border-top: 1px dashed rgba(42, 27, 18, 0.35); font-size: 14px; color: #5C4636; }
.slip-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.quote-form { display: flex; flex-direction: column; gap: 12px; }
.quote-form label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.quote-form input, .quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: #F7F2E8;
  border: 1px solid rgba(42, 27, 18, 0.3);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
.quote-form textarea { min-height: 84px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.quote-done { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink); }
.quote-done a { color: var(--saddle); font-weight: 500; text-underline-offset: 3px; }

/* Partners */
.partners { background: var(--ivory); color: var(--ink); }
.partners .wrap {
  padding-block: var(--section);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px clamp(40px, 6vw, 96px);
}
.partners .h2, .partners .h3 { color: var(--ink); }
.partners-intro { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }
.partners-intro p { margin: 0; line-height: 1.7; color: var(--ink-2); }
.partners-intro a, .partner-row a { color: var(--saddle); font-weight: 500; text-underline-offset: 4px; }
.partners-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.dealer-block { display: flex; flex-direction: column; gap: 18px; }
.dealer-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.dealer-tile {
  flex: 1 1 200px;
  height: 120px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.dealer-tile--filled { background: var(--ivory-tile); border: 1px solid rgba(42, 27, 18, 0.22); }
.dealer-tile--filled:hover { border-color: rgba(42, 27, 18, 0.5); }
.dealer-tile--filled img { height: 52px; width: auto; }
.dealer-tile--filled span { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.dealer-tile--empty { border: 1px dashed rgba(42, 27, 18, 0.35); font-size: 13px; color: var(--ink-3); }
.partner-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule-ink); }
.partner-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding: 22px 0; border-bottom: 1px solid var(--rule-ink);
}
.partner-row .logo-slot {
  flex: 0 0 150px; height: 68px;
  border: 1px dashed rgba(42, 27, 18, 0.35); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-3);
}
.partner-row .who { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.partner-row .who strong { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.3; }
.partner-row .who span { font-size: 14px; color: #5C4636; }
.partner-row a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }

/* Footer */
.site-footer { background: #0F0D0C; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 72px 36px; display: flex; flex-direction: column; gap: 52px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: block; width: clamp(150px, 14vw, 190px); height: auto; }
.footer-tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.signup { flex: 0 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.signup label { font-size: 15px; color: var(--ivory); }
.signup .row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 240px; min-width: 0; min-height: 50px; padding: 0 16px;
  background: transparent; border: 1px solid rgba(203, 166, 115, 0.45); border-radius: 2px;
  color: var(--ivory); font-family: var(--sans); font-size: 15px;
}
.signup-done { margin: 0; font-size: 15px; color: var(--ivory); }
.footer-links { display: flex; flex-wrap: wrap; gap: 36px 72px; padding-top: 40px; border-top: 1px solid var(--rule); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text); }
.footer-col .head { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); padding-bottom: 6px; }
/* Footer links are underlined so they read as links */
.footer-col a, .legal-row a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(203, 166, 115, 0.45);
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.footer-col a { align-self: flex-start; color: var(--text); }
.footer-col a:hover, .legal-row a:hover { color: var(--gold-light); text-decoration-color: currentColor; }
.legal { display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 1.7; color: var(--faint); }
.legal p { margin: 0; max-width: 780px; }
.legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-right: 64px; }
.legal-row nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.legal-row a { color: var(--muted); }

/* ------------------------------------------------------------------
   Shop: brands, filters and product cards
   ------------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop-head { padding-bottom: 32px; }

.brand-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brand-tile {
  min-height: 112px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, #1D1A17 0%, #181513 100%);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 250ms ease, background-color 250ms ease, transform 300ms var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.brand-tile:hover { border-color: rgba(203, 166, 115, 0.6); }
.brand-tile[aria-pressed="true"] { background: #2A231C; border-color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold-light); }
.brand-tile-logo { height: 40px; width: auto; filter: invert(1) sepia(0.15) brightness(0.95); }
.brand-tile .brand-wordmark { filter: none; }
.brand-tile .brand-wordmark, .brand-all { height: 40px; display: flex; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: 0.14em; color: var(--ivory); text-align: center; }
.brand-all { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0; }
.brand-label { font-size: 14px; font-weight: 600; color: var(--ivory); }
.brand-count { font-size: 12.5px; color: var(--muted); }
.brand-tile--all .brand-label { display: none; }

.shop-layout {
  padding-block: 36px var(--section);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.filters { display: flex; flex-direction: column; gap: 6px; position: sticky; top: var(--sticky-top); max-height: calc(100vh - var(--sticky-top) - 16px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(203, 166, 115, 0.4) transparent; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.filters-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ivory); }
.text-link-btn { min-height: 36px; padding: 0; background: none; border: 0; color: var(--gold-light); font-family: var(--sans); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.facet { border-bottom: 1px solid var(--rule); }
.facet summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ivory);
  cursor: pointer;
}
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); }
.facet[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.facet-opts { display: flex; flex-direction: column; padding-bottom: 12px; }
.facet-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; color: var(--text); cursor: pointer; }
.facet-opt input {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0; flex: 0 0 auto;
  display: grid; place-content: center;
  border: 1px solid rgba(203, 166, 115, 0.5); border-radius: 2px; background: transparent;
  cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease;
}
.facet-opt input::before {
  content: ""; width: 4px; height: 8px; margin-top: -2px;
  border-right: 1.6px solid #17120D; border-bottom: 1.6px solid #17120D;
  transform: rotate(45deg) scale(0); transition: transform 150ms ease;
}
.facet-opt input:checked { background: var(--gold-light); border-color: var(--gold-light); }
.facet-opt input:checked::before { transform: rotate(45deg) scale(1); }
.facet-opt:hover input { border-color: var(--gold-light); }
.facet-opt:hover .facet-name { color: var(--ivory); }
.facet-name { flex: 1 1 auto; min-width: 0; }
.facet-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.facet-opt.is-empty { opacity: 0.5; }

.results { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search-field { flex: 1 1 280px; min-width: 0; position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  background: #1C1916;
  border: 1px solid rgba(203, 166, 115, 0.35);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
}
.sort-field { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort-field select {
  min-height: 46px;
  padding: 0 34px 0 12px;
  background: #1C1916 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A69B89' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid rgba(203, 166, 115, 0.35);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 14px;
  appearance: none;
}
.filters-toggle {
  display: none;
  min-height: 46px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid rgba(203, 166, 115, 0.5);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.results-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.results-count { margin: 0; font-size: 14px; color: var(--muted); }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  background: rgba(203, 166, 115, 0.12);
  border: 1px solid rgba(203, 166, 115, 0.45);
  border-radius: 17px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.active-chip:hover { border-color: var(--gold-light); }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.p-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1D1A17 0%, #181513 100%);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 350ms var(--ease), border-color 300ms ease, box-shadow 350ms var(--ease);
}
.p-card:hover { color: var(--text); border-color: rgba(203, 166, 115, 0.55); transform: translateY(-3px); box-shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.9); }
.p-card:hover .p-name { color: var(--gold-light); }
.p-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: radial-gradient(ellipse at 50% 45%, #2E2822 0%, #1F1B17 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.p-photo .sil, .p-photo img { transition: transform 600ms var(--ease); }
.p-card:hover .p-photo .sil, .p-card:hover .p-photo img { transform: scale(1.04); }
.p-photo img { width: 100%; height: 100%; object-fit: contain; background: #F4F1EC; }
.p-photo .sil { width: 78%; max-height: 72%; height: auto; margin-bottom: 4%; }
.p-photo .sil--compact, .p-photo .sil--striker, .p-photo .sil--hammer { width: 56%; }
.sil path, .sil circle { fill: #3E352C; }
.sil .st { fill: none; stroke: #3E352C; stroke-width: 5; stroke-linecap: round; }
.photo-note { position: absolute; left: 10px; bottom: 8px; font-size: 11.5px; color: var(--faint); }
.p-body { flex: 1 1 auto; padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 4px; }
.p-brand { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.p-name { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--ivory); overflow-wrap: anywhere; transition: color 200ms ease; }
.p-meta { font-size: 13px; line-height: 1.5; color: var(--muted); }
.p-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 18px 0; padding: 12px 0 16px; border-top: 1px solid var(--line); }
.p-price { font-family: var(--serif); font-size: 17px; color: var(--ivory); }
.p-tag { font-size: 12px; font-weight: 500; color: var(--gold-light); }
.p-go { font-size: 13px; font-weight: 600; color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.p-grid--row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.results-empty { padding: 40px 24px; border: 1px dashed var(--rule); border-radius: 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.results-empty p { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ivory); }

/* Product page additions */
.product-brand { min-height: 34px; display: flex; align-items: center; }
.product-brand-logo { height: 34px; width: auto; filter: invert(1) sepia(0.15) brightness(0.95); }
.product-brand .brand-wordmark { filter: none; }
.product-brand .brand-wordmark { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; color: var(--ivory); }
.product-photo-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border-radius: 2px;
  background: radial-gradient(ellipse at 50% 45%, #2E2822 0%, #1F1B17 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo-slot .sil { width: 74%; max-height: 74%; height: auto; }
.product-photo-slot .sil--compact, .product-photo-slot .sil--striker, .product-photo-slot .sil--hammer { width: 54%; }
.product-visual:has(.product-photo-slot) { padding: 0; overflow: hidden; }
.product-visual:has(.product-photo-slot) .product-photo-slot { border-radius: 0; }
.product-photo-slot .photo-note { left: 16px; bottom: 14px; font-size: 13px; }
.product-photo-slot.has-photo { background: #F4F1EC; }
.product-photo-slot img { width: 100%; height: 100%; object-fit: contain; }
.related { padding-bottom: var(--section); display: flex; flex-direction: column; gap: 18px; }

/* Custom builds model lists */
.builds-models { padding-bottom: var(--section); }
#build-brands-wrap { padding-bottom: 20px; }

/* Partners: brand wordmark tile */
.dealer-wordmark { height: 52px; display: flex; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; color: var(--ink); }

@media (max-width: 899px) {
  .brand-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
  .shop-layout .results { display: contents; }
  .shop-layout .results-bar { order: 0; }
  .shop-layout .filters { order: 1; }
  .shop-layout .results-meta { order: 2; }
  .shop-layout .p-grid { order: 3; }
  .shop-layout .results-empty { order: 4; }
  .shop-layout .shop-notes { order: 5; }
  .filters { display: none; position: static; max-height: none; overflow: visible; padding: 4px 16px 8px; background: #1C1916; border: 1px solid var(--rule); border-radius: 3px; }
  .filters.is-open { display: flex; }
  .filters-toggle { display: inline-flex; align-items: center; }
  .sort-field label { display: none; }
}
@media (max-width: 520px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-name { font-size: 17px; }
  .p-body { padding: 10px 12px 4px; }
  .p-foot { margin: 4px 12px 0; padding: 8px 0 12px; flex-wrap: wrap; }
  .photo-note { display: none; }
  .brand-tile { min-height: 96px; padding: 14px 10px; }
  .brand-tile-logo { height: 32px; }
}

/* ------------------------------------------------------------------
   Custom builds: brand, then model, then design
   ------------------------------------------------------------------ */
.designer { padding-bottom: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.designer-steps { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.step { background: #1C1916; border: 1px solid var(--rule); border-radius: 3px; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.step.is-closed { background: transparent; border-style: dashed; }
.step-head { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ivory); }
.step-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gold-light);
}
.step.is-closed .step-num { border-color: var(--faint); color: var(--muted); }
.step.is-closed .step-head { color: var(--muted); }
.step-body { display: flex; flex-direction: column; gap: 16px; }
.step-empty { margin: 0; color: var(--muted); }
.step-note { margin: 0; font-size: 14px; color: var(--muted); }
.step-note a { font-weight: 500; text-underline-offset: 4px; }

.brand-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice-tile {
  position: relative;
  min-height: 124px;
  padding: 16px 12px;
  background: #211D19;
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}
.choice-tile:hover { border-color: rgba(203, 166, 115, 0.6); }
.choice-tile.is-on { background: #2A231C; border-color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold-light); }
.choice-tile input, .model-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-tile:has(input:focus-visible), .model-opt:has(input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.choice-logo { height: 40px; width: auto; filter: invert(1) sepia(0.15) brightness(0.95); }
.choice-tile .brand-wordmark { filter: none; height: 40px; display: flex; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: 0.14em; color: var(--ivory); }
.choice-name { font-size: 14px; font-weight: 600; color: var(--ivory); }
.choice-count { font-size: 12.5px; color: var(--muted); }

.model-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 452px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 6px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 166, 115, 0.45) transparent;
}
.model-opt {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 14px 8px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}
.model-opt:hover { background: rgba(203, 166, 115, 0.06); border-color: rgba(203, 166, 115, 0.3); }
.model-opt.is-on { background: rgba(203, 166, 115, 0.12); border-color: var(--gold-light); }
.model-thumb {
  width: 104px; height: 60px;
  border-radius: 2px;
  background: radial-gradient(ellipse at 50% 45%, #2E2822 0%, #1F1B17 75%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.model-thumb img { width: 100%; height: 100%; object-fit: contain; background: #F4F1EC; }
.model-thumb .sil { width: 84%; max-height: 80%; height: auto; }
.model-thumb .sil--compact, .model-thumb .sil--striker, .model-thumb .sil--hammer { width: 60%; }
.model-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.model-name { font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--ivory); }
.model-opt.is-on .model-name::after {
  content: "";
  display: inline-block;
  width: 5px; height: 10px;
  margin-left: 10px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg) translateY(-2px);
}
.model-meta { font-size: 13px; line-height: 1.45; color: var(--muted); }
.model-flag { font-size: 12px; font-weight: 500; color: var(--gold-light); white-space: nowrap; }

.start-card {
  position: sticky;
  top: var(--sticky-top);
  background: var(--ivory);
  color: var(--ink);
  border-radius: 3px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
}
.start-preview {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #2E2822 0%, #1F1B17 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.start-preview > svg:not(.sil) { width: 100%; height: 100%; display: block; }
.start-preview .sil { width: 70%; max-height: 70%; height: auto; }
.start-preview .sil--compact, .start-preview .sil--striker, .start-preview .sil--hammer { width: 52%; }
.start-title { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.start-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.start-parts { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.start-price { margin: 2px 0 4px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.start-card .btn { width: 100%; }
.start-card .btn[disabled] { background: #D9CCB5; color: #6B5444; opacity: 1; cursor: not-allowed; }
.start-link { align-self: center; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--saddle); text-underline-offset: 4px; }

@media (max-width: 1023px) {
  .designer { grid-template-columns: minmax(0, 1fr); }
  .start-card { position: static; }
}
@media (max-width: 560px) {
  .step { padding: 18px 14px 18px; }
  .step-head { font-size: 21px; }
  .brand-choices { gap: 8px; }
  .choice-tile { min-height: 104px; padding: 12px 6px; }
  .choice-logo, .choice-tile .brand-wordmark { height: 30px; }
  .choice-tile .brand-wordmark { font-size: 11px; letter-spacing: 0.08em; }
  .choice-count { font-size: 11.5px; }
  .model-opt { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; }
  .model-thumb { width: 76px; height: 46px; grid-row: span 2; }
  .model-flag { grid-column: 2; }
  .model-name { font-size: 17px; }
}


/* ---------- Cart ---------- */

.product-incart { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; color: var(--gold-light); }
.slip-added { display: flex; gap: 10px; color: var(--ink-2); }
.slip-added::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: 5px; border-left: 2px solid var(--saddle); border-bottom: 2px solid var(--saddle); transform: rotate(-45deg); }

/* The note that appears after adding something */
.cart-toast {
  position: fixed;
  z-index: 60;
  top: calc(var(--header-h) + 12px);
  right: max(16px, calc((100vw - 1360px) / 2 + var(--gutter)));
  width: min(380px, calc(100vw - 32px));
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(203, 166, 115, 0.4), 0 28px 50px -20px rgba(0, 0, 0, 0.9);
  animation: toast-in 0.22s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .cart-toast { animation: none; } }
.toast-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.toast-title::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: -4px; border-left: 2px solid var(--saddle); border-bottom: 2px solid var(--saddle); transform: rotate(-45deg); }
.toast-close { flex: none; width: 40px; height: 40px; margin: -10px -12px -10px 0; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 2px; color: var(--ink-3); cursor: pointer; }
.toast-close:hover { color: var(--ink); background: rgba(42, 27, 18, 0.07); }
.toast-close:focus-visible { outline-color: var(--walnut); }
.toast-item { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-block: 1px dashed rgba(42, 27, 18, 0.3); }
.toast-thumb { flex: 0 0 104px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; border-radius: 2px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #2E2822 0%, #1F1B17 75%); }
.toast-thumb > svg:not(.sil) { width: 100%; height: 100%; display: block; }
.toast-thumb .sil { width: 76%; max-height: 72%; height: auto; }
.toast-thumb .sil--compact, .toast-thumb .sil--striker, .toast-thumb .sil--hammer { width: 58%; }
.toast-thumb img { width: 100%; height: 100%; object-fit: contain; background: #F4F1EC; }
.toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast-name { font-weight: 600; font-size: 15px; line-height: 1.35; }
.toast-meta { font-size: 13px; color: var(--ink-3); }
.toast-price { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.toast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.toast-actions .btn { min-height: 46px; padding: 0 22px; }
.toast-actions .text-btn { align-self: center; }

@media (max-width: 640px) {
  .cart-toast { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
}

/* The cart page */
.cart-head { padding-bottom: 32px; }
.cart-empty { display: flex; flex-direction: column; gap: 26px; padding-bottom: var(--section); }
.cart-empty p { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.cart-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding-bottom: var(--section); }
.cart-lines { flex: 999 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.cart-line {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  grid-template-areas: "thumb info price" "thumb parts parts" "thumb ctrl ctrl";
  grid-template-rows: auto auto 1fr;
  gap: 10px 28px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}
.cart-thumb { grid-area: thumb; align-self: start; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #2E2822 0%, #1F1B17 75%); }
.cart-thumb > svg:not(.sil) { width: 100%; height: 100%; display: block; }
.cart-thumb .sil { width: 76%; max-height: 72%; height: auto; }
.cart-thumb .sil--compact, .cart-thumb .sil--striker, .cart-thumb .sil--hammer { width: 56%; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; background: #F4F1EC; }
.cart-info { grid-area: info; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-kind { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); }
.cart-name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.cart-name a { color: var(--ivory); text-decoration: none; }
.cart-name a:hover { color: var(--gold-light); }
.cart-meta { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cart-parts { grid-area: parts; margin: 4px 0 0; padding: 12px 0 0; list-style: none; display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--rule); font-size: 14px; }
.cart-parts li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; }
.cp-k { font-size: 13px; color: var(--faint); }
.cp-v { color: var(--text); }
.cp-p { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-controls { grid-area: ctrl; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(203, 166, 115, 0.45); border-radius: 2px; }
.qty button { width: 44px; height: 42px; padding: 0; background: none; border: 0; color: var(--ivory); font-family: var(--sans); font-size: 18px; line-height: 1; cursor: pointer; }
.qty button:hover:not([disabled]) { background: rgba(203, 166, 115, 0.12); }
.qty button[disabled] { color: var(--faint); opacity: 0.5; cursor: not-allowed; }
.qty-val { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ivory); }
.cart-controls .text-link-btn { min-height: 44px; font-size: 14px; }
.cart-price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.cart-amount { font-family: var(--serif); font-size: 23px; line-height: 1.2; color: var(--ivory); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-each { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cart-slip { flex: 1 1 340px; position: sticky; top: var(--sticky-top); }
.cart-slip .total dt { font-family: var(--serif); }
.cart-slip .slip-prices { border-top: 0; padding-top: 0; }
.ink-link { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.ink-link:hover { color: var(--saddle); }
a.text-btn { display: inline-flex; align-items: center; }

@media (max-width: 700px) {
  .cart-line {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas: "thumb info" "thumb price" "parts parts" "ctrl ctrl";
    grid-template-rows: auto 1fr;
    gap: 8px 16px;
    padding-block: 22px;
  }
  .cart-name { font-size: 20px; }
  .cart-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; text-align: left; }
  .cart-amount { font-size: 19px; }
  .cart-controls { margin-top: 4px; }
  .cart-parts li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k p" "v v"; gap: 0 12px; }
  .cp-k { grid-area: k; }
  .cp-p { grid-area: p; }
  .cp-v { grid-area: v; }
  .cart-slip { position: static; }
}

/* ---------- Motion: page changes fade in, marked sections ease in once ---------- */
main > [data-view]:not([hidden]) { animation: view-in 420ms ease-out; }
@keyframes view-in { from { opacity: 0; } }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  main > [data-view]:not([hidden]), .drawer[open], .search-dialog[open], .to-top { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .p-card, .teaser, .stock-row, .mega, .mega-link { transition: none; }
}

/* Five round buttons on the stage on narrow phones: smaller, and the hint keeps to the room beside them */
@media (max-width: 460px) {
  .stage-tools { gap: 5px; }
  .tool { width: 34px; height: 34px; }
  .stage-hint { max-width: calc(100% - 232px); }
}
