/* ==========================================================================
   PixelKincs — Papírkatalógus
   A printed 1990s game-shop catalogue rendered as a storefront.
   Structure comes from hairline rules and typographic hierarchy, not cards.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* paper + ink */
  --paper: #F2EEE3;
  --stage: #FAF7EE;
  --ink: #17150F;
  --ink-soft: #2A2720;
  --muted: #6B6353;
  --rule: #CFC6B2;

  /* signal */
  --accent: #C2361D;
  --accent-deep: #9E2B15;
  --accent-ink: #FBF6EE;
  --green: #1F4740;
  --ok: #2E6B45;
  --warn: #8A5A16;
  --danger: #A62A1C;
  --band-ink: #F2EEE3;

  /* type */
  --sans: 'Archivo', Arial, Helvetica, sans-serif;
  --disp: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* rhythm */
  --gap: 32px;
  --shell: 1440px;
  --row: 44px;
  --speed: 160ms ease;
  --shadow-lift: 0 10px 26px rgba(23, 21, 15, .14);
  --focus: #C2361D;
}

html[data-theme='dark'] {
  color-scheme: dark;

  --paper: #14130F;
  --stage: #1C1A15;
  --ink: #F0EBDF;
  --ink-soft: #DCD6C6;
  --muted: #9A917F;
  --rule: #35312A;

  --accent: #E2563A;
  --accent-deep: #C4462C;
  --accent-ink: #14130F;
  --green: #1D3A34;
  --ok: #62C39A;
  --warn: #D7A253;
  --danger: #F0806B;
  --band-ink: #F2EEE3;

  --shadow-lift: 0 10px 26px rgba(0, 0, 0, .5);
  --focus: #E2563A;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--speed), color var(--speed);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.skip-link:focus { left: 12px; top: 12px; }

/* shared text styles */
.page-title {
  margin: 0;
  font-family: var(--disp);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.text-lead {
  max-width: 68ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.text-muted { color: var(--muted); }

.text-link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.text-link:hover { color: var(--accent-deep); }

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

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--speed), color var(--speed), border-color var(--speed);
}

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button--primary:hover { background: var(--accent-deep); }

.button--quiet {
  border: 1px solid var(--rule);
  color: var(--ink);
}

.button--quiet:hover { border-color: var(--ink); background: var(--stage); }

.button:disabled { opacity: .6; cursor: default; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.head-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: var(--shell);
  height: 88px;
  margin-inline: auto;
  padding-inline: var(--gap);
}

.brand { display: flex; align-items: center; }

.brand img { width: 132px; height: auto; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--rule);
  background: var(--stage);
  transition: border-color var(--speed);
}

.search:focus-within { border-color: var(--ink); }

.search__icon {
  position: absolute;
  left: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

.search__icon svg { width: 16px; height: 16px; }

.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 40px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; }

.search button {
  height: 100%;
  padding: 0 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background-color var(--speed);
}

.search button:hover { background: var(--accent-deep); }

.head-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.head-nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.head-nav a:hover { border-color: var(--accent); color: var(--accent); }
.head-nav a[aria-current] { border-color: var(--accent); }

.head-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: var(--stage);
  color: var(--ink);
  transition: border-color var(--speed), color var(--speed);
}

.theme-toggle:hover { border-color: var(--ink); color: var(--accent); }

.theme-toggle__icon { display: grid; place-items: center; }
.theme-toggle__icon svg { width: 17px; height: 17px; }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
html[data-theme='dark'] .theme-toggle__sun { display: block; }
html[data-theme='dark'] .theme-toggle__moon { display: none; }

.trade-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--speed), color var(--speed);
}

.trade-link:hover,
.trade-link[aria-current] { background: var(--accent); color: var(--accent-ink); }

/* category strip */
.catstrip {
  display: flex;
  align-items: stretch;
  height: 48px;
  border-top: 0;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}

.catstrip::-webkit-scrollbar { display: none; }

.catstrip__in {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.catstrip a {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 18px;
  border-right: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--speed);
}

.catstrip a:first-child { padding-left: 0; }
.catstrip a:hover { color: var(--accent); }
.catstrip a.is-active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* mobile menu */
.mobile-nav { display: none; }

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.main { min-width: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.page {
  padding-block: 26px 0;
}

/* --------------------------------------------------------------------------
   6. Product card (used by catalogue, home shelves, related)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 16px;
  align-items: start;
  align-content: start;
}

.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; }

.product-record {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.product-record__sold-out {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.record-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--stage);
  transition: border-color var(--speed);
}

.record-photo img {
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-fit: contain;
}

.product-record:hover .record-photo { border-color: var(--ink); }

.record-photo--detail { aspect-ratio: auto; }

.no-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--rule);
  background: var(--stage);
  color: var(--muted);
  text-align: left;
}

.no-photo strong {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}

.no-photo span { font-size: 12px; line-height: 1.4; }

.product-record__labels {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-record__tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-record__tag--featured { border-color: var(--ink); color: var(--ink); }

.product-rank-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  line-height: 1;
}

.product-rank-badge strong { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.product-rank-badge small { font-size: 6px; letter-spacing: .08em; }
.product-rank-badge--compact small { display: none; }

.product-record__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-record__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 10px;
  min-height: 36px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -.004em;
}

.product-record__title a:hover { color: var(--accent); }

.product-record__platform {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-record__platform .plat {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-record__platform .region { flex: 0 0 auto; }

.product-record__purchase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 9px;
}

.product-record__price {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-record__old-price {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: line-through;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--ok);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.availability::before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
}

.availability--reserved { color: var(--warn); }
.availability--sold { color: var(--muted); }
.availability--coming-soon { color: var(--muted); }

/* --------------------------------------------------------------------------
   7. Catalogue
   -------------------------------------------------------------------------- */
.results-hd {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ink);
}

.results-hd h1 {
  font-family: var(--disp);
  font-size: 38px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.count {
  padding-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.count strong { color: var(--ink); font-weight: 500; }

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sort:hover { border-color: var(--accent); }

.sort label { cursor: pointer; }

.sort__field {
  position: relative;
  display: flex;
  align-items: center;
}

.sort__field select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 190px;
  padding: 0 20px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.sort__field svg {
  position: absolute;
  right: 0;
  width: 13px;
  height: 13px;
  color: var(--ink);
  pointer-events: none;
}

.cols {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 24px;
  padding-top: 18px;
  align-items: start;
}

/* facets */
.facets { min-width: 0; }

.facet-label {
  margin: 0 0 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color var(--speed), color var(--speed);
}

.chip svg { width: 11px; height: 11px; color: var(--accent); }
.chip:hover { border-color: var(--ink); }

.clear {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.grp { border-top: 1px solid var(--rule); padding: 12px 0; }

.grp__head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.grp__head span { font-weight: 400; color: var(--muted); }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--row);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 13px;
  transition: color var(--speed);
}

.opt:last-child { border-bottom: 0; }
.opt:hover { color: var(--accent); }

.opt__box {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  background: transparent;
}

.opt.is-active .opt__box {
  border-color: var(--accent);
  background: var(--accent);
}

.opt.is-active .opt__box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(40deg);
}

.opt__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opt__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.opt.is-zero { opacity: .55; }

.brand-ic
{
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

html[data-theme='dark'] .brand-ic { filter: invert(1) brightness(1.6); }

.facet-more {
  border-top: 1px solid var(--rule);
  padding: 12px 0 0;
}

.facet-more > summary,
details.grp > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--row);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

details.grp > summary span { font-weight: 400; color: var(--muted); }
details.grp > summary svg { margin-left: auto; width: 14px; height: 14px; color: var(--muted); transition: transform var(--speed); }
details.grp[open] > summary svg { transform: rotate(180deg); }
.facet-more > summary::-webkit-details-marker,
details.grp > summary::-webkit-details-marker { display: none; }

.facet-more > summary::after {
  content: '';
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
}

.facet-more[open] > summary::after { transform: rotate(-135deg); }

.facet-more__body { display: grid; gap: 10px; padding: 4px 0 14px; }

.facet-more__body select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  background: var(--stage);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
}

.apply {
  display: block;
  width: 100%;
  height: var(--row);
  margin-top: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background-color var(--speed);
}

.apply:hover { background: var(--accent-deep); }

/* empty state + pager */
.empty-state {
  max-width: 620px;
  margin: 32px 0;
  padding: 26px 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  background: var(--stage);
}

.empty-state h2 {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.empty-state p { margin-top: 9px; color: var(--muted); font-size: 14px; }

.empty-state__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.pager a {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.pager a:hover { border-color: var(--rule); }
.pager a[aria-current='page'] { background: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   8. Item page
   -------------------------------------------------------------------------- */
.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.crumb__in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--rule); }
.crumb strong { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 12px; }

.item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 32px;
  align-items: start;
  padding-top: 22px;
}

/* gallery */
.product-gallery { display: grid; gap: 10px; min-width: 0; }

.product-gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--stage);
  cursor: zoom-in;
}

.product-gallery__stage:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.product-gallery__image {
  --zoom-x: 50%;
  --zoom-y: 50%;
  width: 100%;
  height: 582px;
  object-fit: contain;
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform 240ms ease;
}

.product-gallery__stage.is-zoomed .product-gallery__image {
  transform: scale(2.15);
  transition-duration: 100ms;
}

.product-gallery__hint {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.product-gallery__hint svg { width: 13px; height: 13px; color: var(--accent); }

.product-gallery__counter {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.product-gallery__rail { display: flex; flex-wrap: wrap; gap: 8px; }

.gallery-thumb {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--stage);
  opacity: .65;
  transition: opacity var(--speed), border-color var(--speed);
}

.gallery-thumb img { width: 76px; height: 76px; object-fit: contain; }
.gallery-thumb:hover { opacity: 1; border-color: var(--ink); }
.gallery-thumb.is-active,
.gallery-thumb[aria-pressed='true'] { opacity: 1; border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

.photo-count {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photo-count svg { width: 13px; height: 13px; }

/* summary */
.summary { min-width: 0; padding-top: 2px; }

.identity {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.summary h1 {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}

.cond { margin-bottom: 18px; color: var(--muted); font-size: 14px; }

.price-line { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }

.price {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.price span { font-size: 15px; font-weight: 500; }

.price-line .availability { margin-top: 0; margin-bottom: 7px; }

.facts { margin-top: 22px; border-top: 1px solid var(--rule); }

.facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.facts dd { font-size: 14px; line-height: 1.45; }
.facts dd.is-empty { color: var(--muted); }

.buy { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }

.buy__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ok);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.buy__status::before { content: ''; width: 5px; height: 5px; background: currentColor; }

.buy__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background-color var(--speed);
}

.buy__action:hover { background: var(--accent-deep); }
.buy__action svg { width: 16px; height: 16px; }

.buy__note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.delivery { margin-top: 16px; border-top: 1px solid var(--rule); }

.delivery > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

.delivery svg { width: 16px; height: 16px; margin-top: 1px; color: var(--green); flex: 0 0 auto; }
html[data-theme='dark'] .delivery svg { color: var(--ok); }
.delivery strong { display: block; font-weight: 600; }
.delivery small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* description + disclosures */
.record { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); }

.desc-text {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-line;
}

.acc { margin-top: 22px; border-top: 1px solid var(--rule); }

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform var(--speed); }
.acc[open] summary svg { transform: rotate(180deg); }
.acc p { max-width: 66ch; margin: 10px 2px 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* related */
.related { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head .text-link { font-size: 11px; }

/* --------------------------------------------------------------------------
   9. Home
   -------------------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--rule);
}

.masthead h1 {
  max-width: 820px;
  font-family: var(--disp);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.masthead__line { margin-top: 9px; color: var(--muted); font-size: 15px; }

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 14px;
}

.section-row .text-link { font-size: 11px; }

/* hero slider (only renders when banner slides are configured) */
.home-banner-slider-wrap { padding-top: 20px; }

.home-banner-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--stage);
}

.home-banner-slider__track { position: relative; }

.home-banner-slider__slide { display: none; }
.home-banner-slider__slide.is-active { display: block; }

.home-banner-slider__image--banner { width: 100%; height: auto; object-fit: cover; }

.home-banner-slider__controls { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }

.home-banner-slider__dot {
  width: 22px;
  height: 3px;
  background: var(--rule);
}

.home-banner-slider__dot.is-active { background: var(--accent); }

/* home shelves reuse the catalogue grid */
.home-collection { margin-top: 8px; }

.home-collection__grid { margin-top: 4px; }

.home-collection__empty { color: var(--muted); font-size: 14px; }

.home-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 16px; padding-bottom: 6px; }

.home-grid__footer { display: flex; justify-content: flex-start; padding: 22px 0 0; }

/* highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.highlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
}

.highlight-card + .highlight-card { border-left: 1px solid var(--rule); padding-left: 32px; }

.highlight-card__title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.highlight-card:hover .highlight-card__title { color: var(--accent); }

.highlight-card__text {
  display: block;
  max-width: 38ch;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.highlight-card__meta {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.highlight-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.highlight-card__thumbs { display: flex; gap: 8px; }

.highlight-card__thumb {
  display: block;
  padding: 5px;
  border: 1px solid var(--rule);
  background: var(--stage);
}

.highlight-card__thumb img { width: 84px; height: 84px; object-fit: contain; }

/* brand index */
.brand-index {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0 4px;
  border-bottom: 1px solid var(--rule);
}

.brand-index__list { border-top: 1px solid var(--rule); }

.brand-index__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px 48px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  transition: color var(--speed);
}

.brand-index__list a:hover { color: var(--accent); }
.brand-index__list img { width: 18px; height: 18px; object-fit: contain; justify-self: end; }
.brand-index__name { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.brand-index__num { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.brand-index__list a.is-empty { opacity: .5; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.step { padding: 20px 24px 22px 0; }
.step + .step { border-left: 1px solid var(--rule); padding-left: 24px; }

.step__n {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--disp);
  font-size: 30px;
  line-height: 1;
  letter-spacing: .04em;
}

.step strong { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 600; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* sell band */
.sell-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 34px;
  padding: 30px 32px;
  background: var(--green);
  color: var(--band-ink);
}

.sell-strip h2 {
  max-width: 22ch;
  font-family: var(--disp);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sell-strip .button--primary { background: var(--accent); color: var(--accent-ink); }
.sell-strip .button--primary:hover { background: #A82C16; }

/* keyword strip */
.keywords {
  padding: 24px 0 4px;
  border-bottom: 1px solid var(--rule);
}

.keywords__list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }

.keywords__list a {
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.keywords__list a:hover { border-color: var(--accent); color: var(--accent); }

/* featured record (rendered only when a featured item exists) */
.home-featured {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.home-featured__photo { display: block; padding: 8px; border: 1px solid var(--rule); background: var(--stage); }
.home-featured__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.home-featured__body { min-width: 0; }
.home-featured__label { color: var(--accent); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.home-featured__platform { margin-top: 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.home-featured__body h2 { margin-top: 8px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.home-featured__body h2 a:hover { color: var(--accent); }
.home-featured__text { max-width: 62ch; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.home-featured__buy { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.home-featured__buy strong { font-family: var(--mono); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-featured__buy .availability { margin-top: 0; }

/* --------------------------------------------------------------------------
   10. Forms (sell, contact, inquiry)
   -------------------------------------------------------------------------- */
.form-field { display: grid; gap: 7px; min-width: 0; }

.form-field > label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--speed);
}

.form-field select { cursor: pointer; }
.form-field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); opacity: 1; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--ink); outline: none; }

.form-field--wide { grid-column: 1 / -1; }

.field-optional { margin-left: 5px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.required-mark { color: var(--accent); }

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  background: var(--stage);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.choice-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color var(--speed), background-color var(--speed);
}

.choice:hover { border-color: var(--ink); }
.choice.is-checked { border-color: var(--accent); background: var(--stage); }

.choice input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid var(--muted);
  background: transparent;
}

.choice input:checked { border-color: var(--accent); }
.choice input:checked::after { content: ''; display: block; width: 7px; height: 7px; margin: 3px; background: var(--accent); }

.choice-field { margin: 0; padding: 0; border: 0; }

.choice-field legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .075em;
  text-transform: uppercase;
}

/* trade-in page */
.page-head { padding: 30px 0 24px; border-bottom: 1px solid var(--rule); }

.page-head h1 {
  font-family: var(--disp);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.page-head p { max-width: 78ch; margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.sell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 32px;
  align-items: start;
  padding-top: 24px;
}

.offer-form { padding: 24px; border: 1px solid var(--rule); background: var(--stage); }

.frow { padding: 16px 0; border-top: 1px solid var(--rule); }
.frow:first-child { padding-top: 0; border-top: 0; }
.frow:last-of-type { padding-bottom: 6px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.form-hint { margin-top: 8px; color: var(--muted); font-size: 12.5px; }

.form-note { max-width: 60ch; margin-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.form-actions { margin-top: 16px; }

.form-actions .button { width: 100%; height: 48px; font-size: 12px; }

/* aside: direct channels */
.side-panel { padding-left: 32px; border-left: 1px solid var(--rule); }
.side-panel .section-title { margin-bottom: 10px; }
.side-panel__note { margin-bottom: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.side-panel__link { margin-top: 20px; }

.channel-list { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }

.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  transition: color var(--speed);
}

.channel:hover { color: var(--accent); }
.channel svg { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }

.channel__label {
  flex: 0 0 auto;
  width: 74px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.channel__handle { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.channel__arrow { margin-left: auto; color: var(--muted); font-size: 14px; }

.side-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--stage);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* receipt / confirmation */
.receipt {
  padding: 24px;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  background: var(--stage);
}

.receipt .section-title { margin-bottom: 10px; }
.receipt p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.receipt p + p { margin-top: 8px; }
.receipt__summary { font-family: var(--mono); font-size: 13px; }
.receipt__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }

/* --------------------------------------------------------------------------
   11. Secondary pages (contact, about, shipping, terms, privacy, 404)
   -------------------------------------------------------------------------- */
.simple-page,
.contact-page {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 30px var(--gap) 0;
}

.about-page { padding-block: 30px 0; }

.simple-page .text-lead,
.contact-intro .text-lead,
.about-hero .text-lead { max-width: 76ch; }

.contact-layout,
.contact-layout__main { min-width: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 32px;
  align-items: start;
  padding-top: 24px;
}

.contact-intro { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }

.contact-form { padding: 24px; border: 1px solid var(--rule); background: var(--stage); }
.contact-form .section-title { margin-bottom: 8px; }
.contact-form__intro { margin-bottom: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.contact-form .form-field { margin-bottom: 14px; }
.contact-form__actions { margin-top: 18px; }
.contact-form__actions .button { width: 100%; height: 48px; }

.contact-direct { padding-left: 32px; border-left: 1px solid var(--rule); }
.contact-direct .section-title { margin-bottom: 12px; }
.contact-direct__note,
.contact-direct__hint { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.contact-direct__link { margin-top: 16px; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.about-hero__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.about-hero__mark strong {
  margin: 4px 0;
  font-family: var(--disp);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: .04em;
}

.about-hero__mark i { font-style: normal; font-size: 12px; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.about-values article { padding: 20px 24px 22px 0; }
.about-values article + article { border-left: 1px solid var(--rule); padding-left: 24px; }
.about-values__index { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.about-values h2 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.about-values p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.about-outro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  padding: 28px 32px;
  background: var(--green);
  color: var(--band-ink);
}

.about-outro h2 {
  font-family: var(--disp);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.about-outro__kicker { margin-bottom: 8px; color: rgba(242, 238, 227, .72); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--ink); background: var(--stage); }

.site-footer__in {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--shell);
  min-height: 64px;
  margin-inline: auto;
  padding: 14px var(--gap);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-footer__in nav { display: flex; flex-wrap: wrap; gap: 20px; }

.site-footer__in a { transition: color var(--speed); }
.site-footer__in a:hover { color: var(--accent); }

.site-footer__channels { display: flex; gap: 18px; margin-left: auto; }

/* --------------------------------------------------------------------------
   13. Inquiry dialog
   -------------------------------------------------------------------------- */
.dialog {
  width: min(540px, calc(100% - 24px));
  max-width: 540px;
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.dialog::backdrop { background: rgba(18, 16, 12, .62); }

.dialog__surface {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  background: var(--paper);
}

.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

.dialog__label {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dialog__head h2 {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  transition: border-color var(--speed), color var(--speed);
}

.icon-button:hover { border-color: var(--ink); color: var(--accent); }

.dialog__product {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--rule);
  background: var(--stage);
}

.dialog__product strong { font-size: 15px; font-weight: 600; }
.dialog__product span { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.dialog__product em { font-family: var(--mono); font-size: 18px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }

.dialog__intro { margin: 16px 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.dialog__note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--stage);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.inquiry-form { display: grid; gap: 14px; }
.inquiry-form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.inquiry-form__actions .button--primary { flex: 1 1 200px; }

body.dialog-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   14. Motion
   Content is always visible; motion lives in hover, focus and the gallery.
   -------------------------------------------------------------------------- */
[data-reveal],
[data-reveal-pending] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-gallery__image { transition: none; }
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .head-bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; }
  .head-nav { display: none; }
  .item-grid { grid-template-columns: minmax(0, 1fr) 440px; }
  .product-gallery__image { height: 480px; }
  .sell-grid,
  .contact-layout { grid-template-columns: minmax(0, 1fr) 400px; }
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cols { grid-template-columns: 200px minmax(0, 1fr); }
  .results-hd h1 { font-size: 32px; }
}

@media (max-width: 900px) {
  :root { --gap: 20px; }

  .item-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-gallery__image { height: 420px; }
  .summary h1 { font-size: 26px; }
  .price { font-size: 30px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .facets { order: 2; padding-top: 18px; border-top: 1px solid var(--rule); }
  .results { order: 1; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .highlight-card + .highlight-card { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .brand-index { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sell-grid,
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .side-panel,
  .contact-direct { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 22px; }
  .about-values { grid-template-columns: minmax(0, 1fr); }
  .about-values article + article { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .about-hero { grid-template-columns: minmax(0, 1fr); }
  .about-hero__mark { display: none; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 20px; }
  .masthead h1 { font-size: 42px; }
  .home-featured { grid-template-columns: minmax(0, 1fr); }
  .sell-strip { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about-outro { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .head-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand actions' 'search search';
    gap: 12px;
    height: auto;
    padding-block: 12px;
  }

  .brand { grid-area: brand; }
  .brand img { width: 108px; }
  .search { grid-area: search; }
  .head-actions { grid-area: actions; }
  .trade-link { display: none; }

  .catstrip { height: 44px; }
  .catstrip a { padding: 0 12px; font-size: 10.5px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .results-hd { flex-wrap: wrap; align-items: flex-end; gap: 8px; }
  .results-hd h1 { font-size: 26px; }
  .sort { margin-left: 0; width: 100%; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
  .sort__field select { max-width: none; }

  .product-gallery__image { height: 320px; }
  .product-gallery__hint { display: none; }
  .facts > div { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .choice-group { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .highlight-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .highlight-card__thumb img { width: 64px; height: 64px; }
  .offer-form,
  .contact-form { padding: 18px; }
  .page-title { font-size: 34px; }
  .page-head h1 { font-size: 34px; }
  .masthead h1 { font-size: 34px; }
  .sell-strip { padding: 22px 20px; }
  .sell-strip h2 { font-size: 27px; }
  .site-footer__in { gap: 12px 20px; font-size: 10.5px; }
  .site-footer__channels { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   16. Small parts shared by the rebuilt pages
   -------------------------------------------------------------------------- */
.results { min-width: 0; }

.record-photo__empty {
  padding: 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.tags .chip { cursor: default; }

.highlight-card__body { display: block; min-width: 0; }

.home-collection .grid,
.home-collection__grid { margin-top: 0; }

.item-page { padding-bottom: 8px; }

.sell-page,
.contact-page,
.about-page,
.catalog-page,
.home-page { padding-bottom: 8px; }
