/*
 * PCStore storefront (home, setup page, quote wizard).
 * The component catalog pages add catalog.css; the admin uses its own stylesheets.
 *
 * Sections: tokens · base · header/footer · buttons · home hero · setup cards · steps ·
 * closing · setup page (gallery, parts, options, buy box, quote) · buy bar · wizard · responsive.
 */

@font-face { font-family: Oswald; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/oswald-latin.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/roboto-latin.woff2') format('woff2'); }

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #0b0b0c;
  --bg-raised: #121214;
  --surface: #161618;
  --surface-2: #1f1f22;
  --border: #26262a;
  --border-strong: #3f3f46;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #8b8b93;
  --accent: #7c3aed;
  --accent-bright: #9333ea;
  --accent-text: #c084fc;
  --good: #a3e635;
  --warn: #eab308;
  --radius: 8px;
  --radius-sm: 4px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: Roboto, ui-sans-serif, system-ui, sans-serif;
  --display: Oswald, 'Arial Narrow', Impact, sans-serif;
  --pad: clamp(20px, 3.4vw, 48px);
  --max: 1440px;
  --header: 68px;
  --slide-duration: 7s;
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.1; letter-spacing: .01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
::selection { background: var(--accent); color: white; }

.skip { position: fixed; top: -100px; left: 16px; z-index: 60; padding: 12px 16px; background: white; color: black; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.muted-x { color: var(--text-2); font-size: 13px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.js img[data-fade] { opacity: 0; transition: opacity .5s; }
.js img[data-fade].is-loaded { opacity: 1; }
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--text); color: #0a0a0a; font-size: 14px; }
#toast:empty { display: none; }

/* ── Header and footer ──────────────────────────────────────────────── */
.store-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 11, 12, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-inner { max-width: var(--max); min-height: var(--header); margin: auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.store-brand { display: inline-flex; align-items: center; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.store-mark { display: inline-block; width: 11px; height: 19px; margin-right: 10px; background: var(--accent); transform: skew(-12deg); }
#store-nav { display: flex; align-items: stretch; gap: 36px; height: var(--header); }
#store-nav a { position: relative; display: flex; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #d4d4d8; transition: color .2s; }
#store-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
#store-nav a:hover { color: white; }
#store-nav a:hover::after, #store-nav a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; place-items: center; }
.menu-icon { position: relative; width: 20px; height: 12px; border-block: 1.5px solid currentColor; }
.menu-icon::after { content: ''; position: absolute; inset: 4.5px 0 auto; border-top: 1.5px solid currentColor; }

.store-footer { margin-top: 96px; padding: 40px var(--pad) 28px; border-top: 1px solid var(--border); color: var(--text-2); }
.footer-inner { max-width: calc(var(--max) - 2 * var(--pad)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner .store-brand { color: var(--text); font-size: 19px; }
.footer-inner nav { display: flex; gap: 32px; font-size: 13px; }
.footer-inner nav a:hover, .footer-end a:hover { color: white; }
.footer-end { max-width: calc(var(--max) - 2 * var(--pad)); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--text-3); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: 2px;
  background: var(--accent); color: white;
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--accent-bright); }
.btn:disabled { opacity: .6; }
.btn span[aria-hidden] { font-size: 16px; line-height: 1; transition: transform .2s; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn.ghost { background: transparent; border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--text); background: transparent; }
.btn.small { min-height: 44px; padding: 10px 20px; font-size: 11px; }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  background: rgba(12, 12, 13, .5); color: white; backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s;
}
.round-btn:hover { border-color: rgba(255, 255, 255, .7); background: rgba(12, 12, 13, .75); }
.text-button { border: 0; background: none; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 4px; color: var(--accent-text); font-size: 13px; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translate(2px, -2px); }

/* ── Home: cover carousel ───────────────────────────────────────────── */
/* All slides share one grid cell, so the cover takes the height of the tallest slide. */
.hero {
  --hero-h: clamp(500px, min(calc(100svh - var(--header) - 24px), 62vw), 820px);
  position: relative; display: grid; grid-template-areas: 'stage'; overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 72%, var(--bg)),
    radial-gradient(ellipse 60% 70% at 68% 48%, #1d1d21 0%, #121214 55%, var(--bg) 100%);
}
.hero-slide {
  grid-area: stage; width: 100%; max-width: var(--max); height: var(--hero-h); margin: auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.hero-media { order: 2; height: 100%; display: grid; place-items: center; min-width: 0; }
.hero-media img {
  width: min(100%, var(--hero-h)); height: auto; aspect-ratio: 1; object-fit: contain;
  /* Fade only the outer studio margin into the page: no square edge, and the tower is never masked. */
  --fade: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: var(--fade), linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade), linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent);
  mask-composite: intersect;
}
.hero-copy { order: 1; display: grid; justify-items: start; gap: 18px; padding-bottom: 40px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.hero-kicker::before { content: ''; width: 28px; height: 2px; background: var(--accent-bright); }
.hero-name { font-size: clamp(56px, 6.6vw, 104px); line-height: .92; letter-spacing: .005em; }
.hero-line { max-width: 34ch; font-size: clamp(15px, 1.25vw, 18px); color: #d4d4d8; }
.hero-copy .btn { margin-top: 10px; }
.hero-slide .hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .24s; }

.hero-controls {
  grid-area: stage; align-self: end; z-index: 3;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 36px;
  display: flex; align-items: center; gap: 28px; pointer-events: none;
}
.hero-controls > * { pointer-events: auto; }
.hero-count { font-family: var(--display); font-size: 14px; letter-spacing: .12em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hero-count span { color: var(--text); }
.hero-bars { display: flex; gap: 8px; }
.hero-bar { width: 56px; height: 24px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hero-bar span { display: block; height: 2px; background: rgba(255, 255, 255, .22); position: relative; overflow: hidden; }
.hero-bar span::after { content: ''; position: absolute; inset: 0; background: white; transform: scaleX(0); transform-origin: left; }
.hero-bar[aria-current='true'] span::after { transform: scaleX(1); }
.hero.is-ready .hero-bar.is-active span::after { transform: scaleX(0); animation: hero-progress var(--slide-duration) linear forwards; }
.hero.is-paused .hero-bar.is-active span::after,
.hero.is-hidden-tab .hero-bar.is-active span::after { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; margin-left: auto; }
.hero-note { position: absolute; right: var(--pad); top: 18px; z-index: 3; font-size: 11px; color: var(--text-3); }
.hero-empty { min-height: 60vh; place-items: center; text-align: center; }
.hero-empty .hero-copy { justify-items: center; padding: 0 var(--pad); }
.hero-empty .hero-name { font-size: clamp(40px, 5vw, 72px); }

/* ── Home: setups ───────────────────────────────────────────────────── */
.setups { max-width: var(--max); margin: auto; padding: 96px var(--pad) 0; scroll-margin-top: var(--header); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.section-head h2 { font-size: clamp(34px, 3.4vw, 48px); }
.section-head p { max-width: 42ch; color: var(--text-2); font-size: 14px; text-align: right; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 2.2vw, 32px); }

.setup-card { min-width: 0; }
.setup-link { display: flex; flex-direction: column; height: 100%; }
.setup-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-raised); }
.setup-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s, opacity .5s; }
/* Key parts appear over the photo on hover/focus only; the photo leads. */
.setup-specs {
  position: absolute; inset: auto 0 0; list-style: none; padding: 64px 22px 20px;
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px;
  background: linear-gradient(to top, rgba(8, 8, 9, .94) 0%, rgba(8, 8, 9, .82) 55%, transparent 100%);
  font-size: 13px; line-height: 1.35; color: var(--text);
  opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.setup-specs li { display: contents; }
.setup-specs li > span { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); padding-top: 2px; }
.setup-body { display: grid; gap: 14px; padding: 20px 2px 0; }
.setup-title h3 { font-size: clamp(26px, 2.2vw, 32px); }
.setup-title p { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.setup-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.setup-price { font-size: 14px; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.setup-price small { font-size: 11px; color: var(--text-2); }
.setup-cta { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); transition: color .2s; }
@media (hover: hover) {
  .setup-link:hover .setup-media img { transform: scale(1.045); }
  .setup-link:hover .setup-specs { opacity: 1; transform: none; }
  .setup-link:hover .setup-cta { color: white; }
}
.setup-link:focus-visible { outline: none; }
.setup-link:focus-visible .setup-media { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.setup-link:focus-visible .setup-specs { opacity: 1; transform: none; }

/* ── Home: how it works ─────────────────────────────────────────────── */
.steps { max-width: var(--max); margin: auto; padding: 96px var(--pad) 0; }
.steps ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--border); }
.steps li > span { font-family: var(--display); font-size: 13px; letter-spacing: .14em; color: var(--accent-bright); }
.steps h3 { font-size: 22px; }
.steps p { max-width: 34ch; font-size: 14px; color: var(--text-2); }

/* ── Home: closing call to action ───────────────────────────────────── */
.closing {
  max-width: calc(var(--max) - 2 * var(--pad)); margin: 96px auto 0; padding: 44px clamp(24px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-radius: var(--radius); background: linear-gradient(110deg, #18181b, #121214 60%, #1c1212);
  border: 1px solid var(--border);
}
.closing h2 { font-size: clamp(28px, 2.8vw, 40px); }
.closing p { margin-top: 8px; color: var(--text-2); font-size: 14px; }

/* ── Setup page ─────────────────────────────────────────────────────── */
.preview-bar { background: var(--accent); padding: 8px 20px; font-size: 12px; text-align: center; }
.crumbs { max-width: var(--max); margin: auto; padding: 22px var(--pad) 0; display: flex; gap: 10px; font-size: 12px; color: var(--text-3); }
.crumbs a:hover { color: white; }
.crumbs span:last-child { color: var(--text-2); }

/* The panel is size-contained: the gallery sets the row height and the part list fills it. */
.pdp {
  max-width: var(--max); margin: auto; padding: 18px var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, 1fr); gap: clamp(32px, 4vw, 64px);
}
.pdp-gallery { min-width: 0; }
/* The photo never grows past the viewport, so photo, parts and buy box fit on one screen. */
.gallery { position: sticky; top: calc(var(--header) + 16px); max-width: max(440px, calc(100svh - 250px)); margin-left: auto; }
.pdp-panel { contain: size; min-height: 720px; min-width: 0; display: flex; flex-direction: column; }
.pdp-head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pdp-head h1 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1; }
.pdp-head p { font-size: 13px; color: var(--text-2); }

/* Gallery */
.gallery-main { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-raised); }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-main.is-part { background: #fff; }
.gallery-main.is-part img { inset: 10%; width: 80%; height: 80%; }
.gallery-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 13px; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); opacity: 0; transition: opacity .25s, border-color .2s, background .2s; }
.gallery-arrow.previous { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-main:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { flex: 0 0 64px; height: 64px; padding: 0; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--bg-raised); opacity: .55; transition: opacity .2s, border-color .2s; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--text); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-part { background: #fff; }
.gallery-thumb.is-part img { object-fit: contain; padding: 6px; }
.gallery-caption { min-height: 1.5em; margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--text-3); }

/* Parts: rows share the available height. Options open as an overlay over the list. */
.parts { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.parts-list { flex: 1 1 auto; min-height: 0; list-style: none; padding: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; }
.part-item { flex: 1 0 58px; display: flex; align-items: center; min-width: 0; border-bottom: 1px solid var(--border); }
.part-row-wrap { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.part-row {
  flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: inherit; text-align: left;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
}
.part-row[data-locked='true'] { cursor: default; }
.part-thumb { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-sm); background: #fff; color: #57534e; font-size: 15px; }
.part-thumb:not(:has(img)) { background: var(--surface-2); color: var(--text-2); }
.part-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.part-text { display: grid; gap: 1px; min-width: 0; }
.part-label { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.part-name { overflow: hidden; font-size: 13.5px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; transition: color .15s; }
.part-price { font-size: 13px; color: #d4d4d8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.part-row:not([data-locked='true']):hover .part-name, .part-row.is-focused .part-name { color: var(--accent-text); }
.part-change { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: transparent; color: #e4e4e7; transition: background .2s, border-color .2s; }
.part-change svg { transition: transform .2s; }
.part-change:hover, .part-item:hover .part-change { border-color: var(--text); }
.part-change[aria-expanded='true'] { background: var(--accent); border-color: var(--accent); }
.part-change[aria-expanded='true'] svg { transform: rotate(180deg); }

.part-detail {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden;
}
.part-options { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.part-options > .muted-x { padding: 16px; }
.options-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--border); }
.options-head p { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d4d4d8; }
.options-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: #e4e4e7; font-size: 18px; line-height: 1; }
.options-close:hover { background: var(--border-strong); }
.options-list { flex: 1; min-height: 0; display: grid; align-content: start; gap: 6px; padding: 10px; overflow-y: auto; overscroll-behavior: contain; }
.option {
  width: 100%; padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised);
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; color: inherit;
  transition: border-color .15s, background .15s;
}
.option:hover, .option:focus-visible { border-color: var(--border-strong); background: var(--surface-2); }
.option.is-selected { border-color: #4d7c0f; background: #161c10; }
.option:disabled { opacity: .55; }
.option .part-thumb { width: 52px; height: 46px; font: 10px/1.25 var(--font); text-align: center; }
.option-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.4; }
.option-price { display: grid; justify-items: end; gap: 1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.option-price strong { font-size: 13px; font-weight: 600; }
.option-price small { font-size: 11px; color: var(--text-3); }
.option.is-selected .option-price strong { color: var(--good); }
.options-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-raised); font-size: 12px; color: var(--text-2); }
.options-foot strong { font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; transition: color .15s; }
.options-foot.is-preview strong { color: var(--accent-text); }
.part-swap-status { padding: 0 16px 10px; font-size: 12px; color: var(--text-2); }
.part-swap-status:empty { display: none; }
.part-swap-status[data-state='error'] { color: var(--accent-text); }

/* Buy box at the bottom of the panel */
.pdp-buy { flex: 0 0 auto; display: grid; gap: 8px; padding-top: 18px; }
.buy-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.price-x { font-family: var(--display); font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-x small { font: 12px var(--font); color: var(--text-2); }
.price-x.pending { font-size: 26px; }
.parts-total { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--text-2); }
.parts-total strong { font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.parts-note, .price-note { font-size: 11px; line-height: 1.5; color: var(--text-3); }
.selection-status { font-size: 12px; color: var(--accent-text); }
.selection-status:empty { display: none; }
.selection-status[data-state='success'], .selection-status[data-state='pending'] { color: var(--text-2); }
.build-actions { margin-top: 6px; }
.build-actions .btn { width: 100%; min-height: 52px; }
.compat { display: flex; gap: 9px; font-size: 11px; line-height: 1.55; color: var(--text-3); }
.compat > span:first-child { flex-shrink: 0; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--warn); }

/* About and quote form below the fold */
.pdp-more { max-width: var(--max); margin: 80px auto 0; padding: 48px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--border); }
.about { display: grid; align-content: start; justify-items: start; gap: 16px; }
.about h2, .quote-copy h2 { font-size: clamp(26px, 2.4vw, 32px); }
.about-text { max-width: 60ch; font-size: 14px; line-height: 1.85; color: #d4d4d8; white-space: pre-line; }
.quote-copy { display: grid; gap: 10px; margin-bottom: 22px; }
.quote-copy p { font-size: 13px; color: var(--text-2); }
.quote-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 8px; min-width: 0; font-size: 12px; color: #d4d4d8; }
.quote-form label small { font-size: 11px; color: var(--text-3); }
.quote-form .wide, .quote-form > .btn, .quote-status { grid-column: 1 / -1; }
.quote-form input, .quote-form textarea { width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-raised); color: var(--text); outline-offset: 2px; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--text-2); }
.quote-form textarea { min-height: 96px; resize: vertical; }
.quote-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.quote-status { min-height: 1.5em; font-size: 13px; color: var(--text-2); }
.quote-status[data-state='success'] { color: var(--good); }
.quote-status[data-state='error'] { color: var(--accent-text); }

/* ── Sticky buy bar (setup page) ────────────────────────────────────── */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--pad) max(10px, env(safe-area-inset-bottom)); background: rgba(14, 14, 15, .92); border-top: 1px solid var(--border); backdrop-filter: blur(14px); }
.buy-bar-inner { max-width: calc(var(--max) - 2 * var(--pad)); margin: auto; display: flex; align-items: center; gap: 28px; }
.buy-bar-copy { display: grid; gap: 1px; min-width: 0; margin-right: auto; line-height: 1.3; }
.buy-bar-copy strong { overflow: hidden; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.buy-bar-copy span { font-size: 12px; color: var(--text-2); }
.buy-bar-parts { display: grid; justify-items: end; gap: 1px; line-height: 1.3; }
.buy-bar-parts span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.buy-bar-parts strong { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.page-build .store-footer { padding-bottom: 100px; }

/* ── Empty pages ────────────────────────────────────────────────────── */
.page-empty { max-width: 640px; min-height: 50vh; margin: 72px auto; padding: 0 var(--pad); display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; color: var(--text-2); }
.page-empty h1 { font-size: clamp(30px, 3.4vw, 44px); color: var(--text); }

/* ── Quote wizard (/cotizar) ────────────────────────────────────────── */
.wizard-hero { max-width: 780px; margin: 64px auto 0; padding: 0 var(--pad); display: grid; gap: 16px; }
.wizard-hero h1 { font-size: clamp(38px, 4.5vw, 58px); }
.lede { max-width: 560px; color: var(--text-2); font-size: 15px; }
.quote-wizard { max-width: 780px; margin: 32px auto 0; padding: 0 var(--pad) 24px; }
.wizard-progress { list-style: none; padding: 0; margin: 0 0 30px; display: flex; gap: 8px; }
.wizard-progress li { flex: 1; padding-top: 8px; border-top: 2px solid var(--border-strong); font-size: 11px; color: var(--text-2); }
.wizard-progress li[aria-current] { border-color: var(--accent-bright); color: white; }
.wizard-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.wizard-step legend { margin-bottom: 18px; padding: 0; font-size: 21px; line-height: 1.5; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--surface-2); font-size: 13px; }
.wizard-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wizard-card { position: relative; min-width: 0; cursor: pointer; }
.wizard-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wizard-card span { display: flex; align-items: center; min-height: 76px; padding: 16px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-raised); font-size: 14px; transition: border-color .2s, background .2s; }
.wizard-card input:checked + span { border-color: var(--accent); background: #241414; }
.wizard-card input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.wizard-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.wizard-actions .ghost { margin-right: auto; }
.wizard-note { margin-top: 24px; font-size: 12px; color: var(--text-2); }
.wizard-error { margin-top: 18px; color: var(--accent-text); font-size: 13px; }
.wizard-error:empty { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────── */
/* Below 1000px the setup page stacks and the panel takes its natural height. */
@media (max-width: 999px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-gallery { max-width: 680px; width: 100%; justify-self: center; }
  .gallery { position: static; max-width: none; }
  .pdp-panel { contain: none; min-height: 0; }
  .parts { min-height: 420px; }
  .parts-list { overflow: visible; }
  .pdp-more { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .steps ol { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; padding: 20px 0; }
  .steps li > span { grid-row: span 2; padding-top: 4px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; --header: 60px; }
  .menu-btn { display: grid; }
  .header-inner { position: relative; flex-wrap: wrap; gap: 0; }
  #store-nav { display: none; width: 100%; height: auto; flex-direction: column; gap: 0; padding: 4px 0 14px; }
  .header-inner.is-open #store-nav { display: flex; }
  #store-nav a { min-height: 48px; border-top: 1px solid var(--border); }
  #store-nav a::after { display: none; }

  .hero { --hero-h: auto; grid-template-areas: 'stage' 'controls'; background: linear-gradient(to bottom, transparent 75%, var(--bg)), radial-gradient(ellipse 90% 45% at 50% 30%, #1d1d21 0%, #121214 60%, var(--bg) 100%); }
  .hero-slide { height: auto; grid-template-columns: 1fr; gap: 0; padding: 0; align-content: start; }
  .hero-media { order: 1; height: auto; }
  .hero-media img { width: 100%; }
  .hero-copy { order: 2; gap: 12px; padding: 0 var(--pad) 8px; margin-top: -12px; }
  .hero-name { font-size: clamp(48px, 15vw, 72px); }
  .hero-copy .btn { margin-top: 6px; }
  .hero-controls { grid-area: controls; padding: 20px var(--pad) 0; gap: 18px; }
  .hero-bar { width: 40px; }
  .hero-arrows .round-btn { width: 40px; height: 40px; }
  .hero-note { top: 12px; right: var(--pad); }

  .setups { padding-top: 64px; }
  .section-head { display: grid; gap: 8px; margin-bottom: 24px; }
  .section-head p { text-align: left; }
  .setup-grid { gap: 40px; }
  .steps, .closing { margin-top: 0; }
  .steps { padding-top: 64px; }
  .closing { margin: 64px var(--pad) 0; padding: 32px 24px; display: grid; justify-items: start; gap: 22px; }

  .store-footer { margin-top: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-end { flex-direction: column; gap: 8px; }

  .crumbs { padding-top: 14px; }
  .pdp { padding-top: 12px; gap: 22px; }
  .gallery-arrow { opacity: 1; width: 38px; height: 38px; }
  .gallery-thumb { flex-basis: 54px; height: 54px; }
  .pdp-head h1 { font-size: 32px; }
  .part-row { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: 'thumb text' 'thumb price'; row-gap: 2px; column-gap: 12px; }
  .part-row .part-thumb { grid-area: thumb; }
  .part-row .part-text { grid-area: text; }
  .part-row .part-price { grid-area: price; font-size: 12px; color: var(--text-2); }
  .part-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .part-change { flex-basis: 36px; width: 36px; height: 36px; }
  .option { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px 8px 6px; }
  .option .part-thumb { width: 46px; height: 42px; }
  .option-name { font-size: 12px; }
  .buy-bar-inner { gap: 14px; }
  .buy-bar-copy strong { font-size: 15px; }
  .buy-bar-copy span { font-size: 11px; }
  .buy-bar-parts strong { font-size: 14px; }
  .quote-form { grid-template-columns: 1fr; gap: 14px; }
  .quote-form input, .quote-form textarea { font-size: 16px; }

  .page-empty { margin: 40px auto; }
  .wizard-hero { margin-top: 36px; }
  .wizard-hero h1 { font-size: 40px; }
  .wizard-options { grid-template-columns: 1fr; }
  .wizard-card span { min-height: 60px; }
  .wizard-actions .btn { padding: 12px 16px; font-size: 11px; }
}

@media (max-width: 420px) {
  .buy-bar-parts { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* No autoplay: the active bar stays full and slides change only on request. */
  .hero.is-ready .hero-bar.is-active span::after { animation: none; transform: scaleX(1); }
}

/* Focused customization: photo rail, independent picker and request dialog. */
.modal-open { overflow: hidden; }
dialog { color: var(--text); border: 1px solid var(--border-strong); background: #141416; border-radius: 16px; padding: 0; box-shadow: 0 28px 80px rgba(0, 0, 0, .75); }
dialog::backdrop { background: rgb(0 0 0 / .68); backdrop-filter: blur(6px); }

.wizard-banner {
  max-width: var(--max); margin: 14px auto 0; padding: 12px var(--pad);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.wizard-banner > span {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; background: rgba(220, 38, 38, .16); border: 1px solid rgba(220, 38, 38, .4);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text);
}
.wizard-banner > p { font-size: 13px; color: var(--text-2); }

.pdp { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); align-items: start; }
.pdp-gallery { align-self: start; }
.gallery { max-width: none; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
.gallery-main { grid-column: 2; grid-row: 1; cursor: zoom-in; }
.gallery-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; margin: 0; max-height: min(650px, 66vh); overflow-y: auto; overflow-x: hidden; }
.gallery-thumb { width: 56px; height: 56px; min-height: 56px; flex-basis: 56px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.gallery-thumb.is-part img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 5px; }
.gallery-caption { grid-column: 2; margin: 0; min-height: 0; font-size: 10px; letter-spacing: .04em; }
.gallery-expand { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border: 1px solid #ffffff30; border-radius: 50%; background: #151517c9; color: white; cursor: zoom-in; }
.zoom-preview { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; }
.gallery-main.is-zooming > img { visibility: hidden; }

.pdp-panel { contain: none; min-height: 0; }
.pdp-head { padding-bottom: 10px; }
.pdp-head h1 { font-size: clamp(28px, 2.5vw, 36px); }
.pdp-head p { font-size: 12px; }

.parts-list { overflow: visible; }
.part-item { flex: 0 0 auto; min-height: 50px; transition: background .15s; }
.part-row { padding: 6px 0; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; }
.part-thumb { width: 38px; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 3px; }
.part-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 0; }
.part-name { font-size: 12.5px; font-weight: 500; }
.part-label { font-size: 9.5px; letter-spacing: .07em; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.part-spec-inline { font-style: normal; font-weight: 400; letter-spacing: .01em; text-transform: none; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.part-price { display: block; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; padding-left: 4px; }
.part-change { border: 1px solid transparent; background: rgba(255, 255, 255, .04); width: 28px; height: 28px; flex-basis: 28px; color: var(--text-2); border-radius: 50%; }
.part-item:hover .part-change { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, .08); }

.pdp-buy { padding-top: 12px; gap: 8px; }
.buy-pricing { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-x.pending { font-size: 22px; }
.pdp-buy .parts-total {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-2);
}
.pdp-buy .parts-total strong { font-size: 14px; font-weight: 600; color: var(--text); }
.pdp-buy .parts-total small { font-size: 10px; color: var(--text-3); }
.reset-selection { border: 0; padding: 4px 0; background: none; color: var(--accent-text); font-size: 12px; }
.build-actions { margin: 0; }
.build-actions .btn { min-height: 46px; }
.buy-meta-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.version-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.cost-disclosure { font-size: 11px; color: var(--text-2); flex: 1 1 220px; }
.cost-disclosure summary { cursor: pointer; padding: 2px 0; list-style: none; }
.cost-disclosure summary::after { content: ' +'; }
.cost-disclosure[open] summary::after { content: ' −'; }
.cost-disclosure > p { margin-top: 6px; line-height: 1.5; }
.pdp-more { grid-template-columns: 1fr; margin-top: 48px; padding-top: 30px; }
.about-text { max-width: 85ch; }

/* Compact selection list: one row and one price delta per component. */
.part-picker { width: min(520px, calc(100vw - 24px)); max-height: 80dvh; margin: auto; }
.part-picker .part-detail { position: static; border: 0; box-shadow: none; max-height: 80dvh; display: flex; flex-direction: column; overflow: hidden; border-radius: 0; background: #141416; }
.part-picker .part-options { display: flex; flex-direction: column; min-height: 0; max-height: 80dvh; overflow: hidden; }
.options-head { padding: 10px 14px; background: #141416; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.options-head p { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.options-close { width: 36px; height: 36px; background: transparent; }
.options-list { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 0; padding: 4px 8px; overflow-y: auto; overscroll-behavior: contain; }
.option { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; min-height: 66px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; text-align: left; box-shadow: none; }
.option:last-child { border-bottom: 0; }
.option:hover, .option:focus-visible { background: #ffffff08; transform: none; }
.option:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.option .part-thumb { width: 42px; height: 42px; padding: 3px; background: white; border-radius: 5px; }
.option .part-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 0; }
.option-name { font-size: 12px; font-weight: 500; line-height: 1.4; min-height: 0; color: var(--text); }
.option-price { display: block; padding: 0; margin: 0; border: 0; width: auto; white-space: nowrap; }
.option-price strong { font-size: 11px; font-weight: 500; color: var(--text-2); }
.option.is-selected { background: #ffffff06; box-shadow: none; border-color: var(--border); }
.option-check { color: #a3cf78; font-size: 14px; }

/* Quote modal with live configuration summary */
.quote-dialog { width: min(600px, calc(100vw - 32px)); max-height: 90dvh; padding: 28px; overflow: auto; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { font-size: 28px; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.dialog-close { border: 0; background: #ffffff0d; color: white; border-radius: 50%; height: 36px; width: 36px; font-size: 24px; flex-shrink: 0; }
.quote-summary-card {
  margin: 18px 0 22px; padding: 14px 16px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 10px;
}
.quote-selection { margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; font-size: 13px; }
.quote-selection-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.quote-selection-main > div { display: grid; gap: 2px; }
.quote-selection span { color: var(--text-2); font-size: 12px; }
.quote-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg-raised); flex-shrink: 0; }
.quote-selection-budget { display: grid; justify-items: end; gap: 2px; text-align: right; }
.quote-selection-budget small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.quote-selection-budget strong { font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.quote-parts-details { border-top: 1px solid var(--border); padding-top: 8px; font-size: 12px; color: var(--text-2); }
.quote-parts-details summary { cursor: pointer; font-weight: 500; color: var(--text-2); }
.quote-parts-details summary:hover { color: var(--text); }
.quote-parts-list {
  margin-top: 10px; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px;
}
.quote-parts-list li { display: grid; gap: 1px; min-width: 0; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.quote-parts-list li span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.quote-parts-list li strong { font-size: 11.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-privacy { grid-column: 1 / -1; font-size: 11px; line-height: 1.5; color: var(--text-2); }

/* Wizard rich cards */
.wizard-progress li { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.wizard-progress li span { font-family: var(--display); font-size: 12px; color: var(--accent-bright); }
.wizard-card .wizard-card-body {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
  min-height: 108px; padding: 18px 20px;
}
.wizard-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); background: rgba(220, 38, 38, .14); padding: 2px 8px; border-radius: 999px;
}
.wizard-title { font-size: 15px; font-weight: 600; color: var(--text); }
.wizard-desc { font-size: 12.5px; line-height: 1.45; color: var(--text-2); }

.image-lightbox { width: min(1300px, 96vw); height: 94dvh; max-height: none; background: #0c0c0e; overflow: auto; }
.image-lightbox .dialog-close { position: fixed; top: 5vh; right: 4vw; z-index: 2; }
.image-lightbox img { display: block; width: 100%; height: calc(94dvh - 55px); object-fit: contain; cursor: zoom-in; }
.image-lightbox.is-magnified img { width: 180%; max-width: none; height: auto; cursor: zoom-out; }
.image-lightbox p { text-align: center; padding: 14px; color: var(--text-2); font-size: 12px; }
.visual-tools { margin-top: 12px; }
.visual-generate { background: none; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text); padding: 11px 14px; width: 100%; font-size: 12px; }
.visual-tools p { color: var(--text-2); font-size: 12px; margin-top: 8px; }
@media (max-width: 999px) {
 .pdp { grid-template-columns: 1fr; }
 .pdp-gallery { max-width: 700px; }
 .gallery { position: static; }
 .pdp-panel { min-height: 0; }
 .part-item { min-height: 54px; }
}
@media (max-width: 600px) {
 .gallery { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
 .gallery-thumb { width: 40px; height: 40px; min-height: 40px; flex-basis: 40px; }
 .gallery-thumbs { max-height: 340px; }
 .gallery-caption { font-size: 9px; }
 .part-picker { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88dvh; border-radius: 18px 18px 0 0; }
 .options-list { padding: 4px 10px; }
 .options-head { padding: 10px 16px; }
 .option { gap: 8px; grid-template-columns: 38px minmax(0, 1fr) auto 14px; }
 .option .part-thumb { width: 38px; height: 38px; }
 .quote-dialog { padding: 22px; }
 .quote-selection { flex-direction: column; align-items: flex-start; gap: 8px; }
 .quote-selection-budget { justify-items: start; text-align: left; }
 .quote-parts-list { grid-template-columns: 1fr; }
}
.integration-page { max-width: 860px; margin: 48px auto; padding: 0 24px; }
.integration-page h1 { margin: 24px 0 14px; font-size: 36px; }
.integration-page > p { color: var(--text-2); }
.integration-form { margin: 28px 0; display: grid; gap: 24px; }
.integration-form fieldset { padding: 24px; border: 1px solid var(--border-strong); border-radius: 12px; display: grid; gap: 18px; }
.integration-form legend { padding: 0 12px; font-size: 20px; }
.integration-form label { display: grid; gap: 8px; font-size: 13px; }
.integration-form input:not([type=checkbox]) { background: #1e1e22; padding: 12px; border: 1px solid var(--border-strong); border-radius: 6px; color: white; width: 100%; }
.integration-form p, .integration-form span { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.integration-form .inline-check { display: flex; align-items: center; }
.integration-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero { --slide-duration: 6.5s; }
.footer-grid { max-width: calc(var(--max) - 2 * var(--pad)); margin: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h2 { font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 20px; }
.footer-grid p { font-size: 13px; line-height: 1.9; color: var(--text-2); }
.footer-brand p { margin-top: 18px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 13px; font-size: 13px; }
.footer-grid nav a:hover, .footer-contact:hover { color: white; }
.footer-contact { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--text); }
@media(max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 22px; } .footer-brand { grid-column: 1 / -1; } }
.save-version { border: 0; background: transparent; color: var(--text-2); text-align: right; font-size: 11px; padding: 0; }
.saved-version { font-size: 12px; color: #bdd3c1; }

/* Interactive variant dock & reference badge on gallery stage */
.gallery-reference-pill {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; flex-direction: column; gap: 1px;
  padding: 6px 11px; border-radius: 8px;
  background: rgba(16, 16, 18, .88); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); pointer-events: none;
}
.gallery-reference-pill span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.gallery-reference-pill small { font-size: 10px; color: var(--text-2); }
.gallery-variant-dock {
  position: absolute; left: 12px; right: 58px; bottom: 12px; z-index: 3;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px; border-radius: 10px;
  background: rgba(16, 16, 18, .9); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}
.variant-dock-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); white-space: nowrap; }
.variant-dock-items { display: flex; align-items: center; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.variant-dock-items::-webkit-scrollbar { display: none; }
.variant-dock-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px 3px 4px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07);
  color: var(--text); font-size: 11px; white-space: nowrap; transition: border-color .15s, background .15s;
}
.variant-dock-chip:hover { border-color: var(--text); background: rgba(255, 255, 255, .14); }
.variant-dock-chip img { width: 22px; height: 22px; border-radius: 4px; background: #fff; object-fit: contain; padding: 1px; }
.variant-dock-chip span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }

/* Readable, restrained type for component selection and final prices. */
.pdp-panel, .part-picker { font-family: var(--font); -webkit-font-smoothing: antialiased; }
.part-label { font-size: 11px; font-weight: 400; letter-spacing: .01em; text-transform: none; line-height: 1.4; }
.part-name { font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.part-text { gap: 2px; }
.part-spec-inline { font-size: 11px; }
.options-head p { font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.option-name { font-family: var(--font); font-size: 13px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.option-price strong { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price-x { font-family: var(--font); font-weight: 600; font-size: clamp(27px, 2.4vw, 34px); letter-spacing: -.035em; line-height: 1.2; }
.price-x.pending { font-size: 23px; letter-spacing: -.02em; }
.options-foot strong, .buy-bar-price { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.pdp-title-line{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.style-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #333;border-radius:30px;background:#171717}
.style-switch button{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:24px;padding:8px 11px;color:#aaa;background:transparent;font:500 12px Roboto,sans-serif;cursor:pointer}
.style-switch button[aria-pressed=true]{background:#363636;color:#fff}
.style-switch button:focus-visible{outline:2px solid #eee;outline-offset:2px}
.style-switch button:disabled{opacity:.5;cursor:wait}
.style-dot{width:12px;height:12px;border-radius:50%;border:1px solid #777}
.style-dot-white{background:#eee}.style-dot-black{background:#151515}

.part-availability { color: #fca5a5; font-size: .75rem; font-weight: 600; }
.option:disabled { opacity: .5; cursor: not-allowed; }

.published-price-reference { display: none; }
.price-x.pending + .published-price-reference { display: block; }
