/* PC Builder — tokens, layout, components (port av configurator.css) */

.pcb {
  --green: #9ee627;
  --green-deep: #7ec61a;
  --green-soft: #d4f59a;

  /* DARK (default) */
  --bg: #131313;
  --bg-elev: #1c1c1c;
  --bg-sunken: #0e0e0e;
  --ink: #f2f2f2;
  --ink-2: #d4d4d4;
  --ink-3: #9a9a9a;
  --ink-4: #6a6a6a;
  --line: #2a2a2a;
  --line-2: #1f1f1f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 48px rgba(0,0,0,.45);

  --art-bg-1: #1a1a1a;
  --art-bg-2: #0c0c0c;
  --art-case-top: #232323;
  --art-case-bot: #161616;
  --art-case-stroke: #3a3a3a;
  --art-glass-1: #2e2e2e;
  --art-glass-2: #1c1c1c;
  --art-glass-stroke: #4a4a4a;
  --art-mesh: #6a6a6a;
  --art-mobo: #1a3a1a;
  --art-mobo-stroke: #2a5a2a;
  --art-cpu: #2a2a2a;
  --art-cpu-stroke: #5a5a5a;
  --art-cooler: #2a2a2a;
  --art-cooler-stroke: #8a8a8a;
  --art-ram: #2a2a2a;
  --art-ram-stroke: #6a6a6a;
  --art-ssd: #2a2a2a;
  --art-ssd-stroke: #6a6a6a;
  --art-gpu: #1f1f1f;
  --art-gpu-stroke: #6a6a6a;
  --art-psu: #1a1a1a;
  --art-psu-stroke: #6a6a6a;
  --art-shadow: #000000;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --ease: cubic-bezier(.2, .7, .2, 1);

  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}

/* LIGHT — opt-in via .pcb.is-light eller .light .pcb */
.pcb.is-light, .light .pcb {
  --bg: #f2f2f2;
  --bg-elev: #ffffff;
  --bg-sunken: #ebebeb;
  --ink: #131313;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --ink-4: #9a9a9a;
  --line: #d8d8d8;
  --line-2: #e6e6e6;
  --shadow: 0 1px 2px rgba(19,19,19,.04), 0 8px 24px rgba(19,19,19,.06);
  --shadow-lg: 0 2px 4px rgba(19,19,19,.06), 0 24px 48px rgba(19,19,19,.08);

  --art-bg-1: #ebebeb;
  --art-bg-2: #dedede;
  --art-case-top: #1c1c1c;
  --art-case-bot: #0e0e0e;
  --art-case-stroke: #2a2a2a;
  --art-glass-1: #2b2b2b;
  --art-glass-2: #1a1a1a;
  --art-glass-stroke: #3a3a3a;
  --art-mesh: #5a5a5a;
}

/* HERO */
.pcb-hero { padding: 56px 32px 28px; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pcb-hero-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); display: inline-flex; align-items: center; gap: 10px; }
.pcb-hero-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.pcb-hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); line-height: 0.95; letter-spacing: -0.01em; margin: 0; max-width: 14ch; }
.pcb-hero-title .accent { color: var(--green-deep); }
.pcb-hero-sub { font-size: 16px; color: var(--ink-3); max-width: 56ch; margin: 0; }

/* PROGRESS */
.pcb-progress { margin: 0 0 28px; }
.pcb-progress-meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pcb-progress-meta .progress-current { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pcb-progress-track { position: relative; height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pcb-progress-fill { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 999px; transition: width .5s var(--ease); box-shadow: 0 0 10px rgba(158,230,39,.5), 0 0 3px rgba(158,230,39,.8); }
.pcb-progress-ticks { display: grid; margin-top: 10px; gap: 4px; }
.pcb-tick { background: none; border: 0; padding: 6px 4px 0; text-align: left; font-family: var(--font-display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); border-top: 2px solid transparent; cursor: pointer; transition: color .25s var(--ease), border-color .25s var(--ease); }
.pcb-tick:hover { color: var(--ink-2); }
.pcb-tick.is-done { color: var(--ink-3); border-top-color: var(--green); }
.pcb-tick.is-active { color: var(--ink); border-top-color: var(--green); font-weight: 600; }

/* MAIN GRID */
.pcb-config { margin: 0 0 160px; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; gap: 48px; align-items: start; }

/* BUILD ART */
.pcb-build-col { position: sticky; top: 112px; }
.pcb-build-stage { position: relative; background: linear-gradient(180deg, var(--art-bg-1), var(--art-bg-2)); border-radius: var(--radius-xxl); border: 1px solid var(--line); padding: 24px; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcb-build-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pcb-build-svg { width: 100%; height: 100%; max-height: 540px; }

.pcb-part { transition: filter .35s var(--ease), opacity .35s var(--ease); opacity: .55; }
.pcb-part.is-active { opacity: 1; filter: drop-shadow(0 0 16px rgba(158,230,39,.7)) drop-shadow(0 0 6px rgba(158,230,39,1)); }
.pcb-part.is-custom { opacity: .82; }
.pcb-part.is-custom.is-active { filter: drop-shadow(0 0 20px rgba(158,230,39,.9)) drop-shadow(0 0 8px rgba(158,230,39,1)); }
/* NEW: summary-state — diskret komplett-highlight på alla delar */
.pcb-build-art.is-complete .pcb-part { opacity: .95; filter: drop-shadow(0 0 6px rgba(158,230,39,.35)); }

.pcb-build-meta { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.pcb-build-meta-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.005em; }
.pcb-build-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pcb-chip { font-size: 13.5px; padding: 9px 14px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; transition: all .25s var(--ease); cursor: pointer; }
.pcb-chip strong { font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.pcb-chip.is-active { border-color: var(--green-deep); color: var(--ink); background: color-mix(in oklab, var(--green) 10%, var(--bg-elev)); }

/* STEP VIEW */
.pcb-step-view { display: flex; flex-direction: column; gap: 28px; align-items: stretch; text-align: left; animation: pcbStepIn .45s var(--ease); }
@keyframes pcbStepIn { from { opacity: 0; transform: translateX(-20px) translateY(4px); } to { opacity: 1; transform: translateX(0) translateY(0); } }

.pcb-step-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
.pcb-step-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pcb-step-eyebrow .eyebrow-num { color: var(--ink); font-weight: 600; }
.pcb-step-eyebrow .eyebrow-dot { color: var(--green-deep); }
.pcb-step-title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; margin: 0; }
.pcb-step-desc { margin: 0; font-size: 15px; color: var(--ink-3); max-width: 56ch; }

/* OPTION GRID */
.pcb-opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.pcb-opt-card { text-align: left; display: flex; flex-direction: column; gap: 14px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease); position: relative; overflow: hidden; cursor: pointer; }
.pcb-opt-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; border: 1.5px solid transparent; transition: border-color .25s var(--ease); }
.pcb-opt-card:hover { border-color: var(--ink-4); transform: translateY(-1px); box-shadow: var(--shadow); }
.pcb-opt-card.is-selected { border-color: var(--green-deep); background: color-mix(in oklab, var(--green) 6%, var(--bg-elev)); }
.pcb-opt-card.is-selected::after { border-color: var(--green); }
.pcb-opt-card:focus-visible { outline: 2px solid var(--green, #9ae627); outline-offset: 3px; }
.pcb-opt-card:focus-visible::after { border-color: var(--green); }

.pcb-opt-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pcb-opt-image { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; flex-shrink: 0; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); padding: 16px; align-self: stretch; pointer-events: none; }
.pcb-opt-image img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }

/* Info-knapp: öppnar produkt-detalj-modal. Resten av kortet väljer produkten. */
.pcb-opt-info {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.pcb-opt-info:hover { border-color: var(--green); color: var(--green); }
.pcb-opt-info:active { transform: scale(.92); }
.pcb-opt-info:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Ge plats för info-knappen i kort-headern (så badge/titel inte överlappar) */
.pcb-opt-card-top { padding-right: 44px; }

.pcb-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,.92); display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; animation: pcbLbIn .2s var(--ease); }
@keyframes pcbLbIn { from { opacity: 0 } to { opacity: 1 } }
.pcb-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; background: #fff; border-radius: var(--radius-xxl); cursor: default; }
.pcb-lightbox-close { position: absolute; top: 24px; right: 32px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pcb-lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ── Produktdetalj-modal ────────────────────────────────────────── */
/* OBS: modal appendas till body, så pc-builder root-vars inte gäller.
   Fallback-värden inom var() är obligatoriska. */
.pcb-pmodal { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,.92); display: flex; align-items: center; justify-content: center; padding: 40px 24px; animation: pcbLbIn .2s ease; cursor: pointer; }
.pcb-pmodal__panel { position: relative; display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 24px; width: 100%; max-width: 880px; max-height: calc(100vh - 80px); background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: var(--radius-xxl, 16.875px); padding: 24px; overflow: hidden; cursor: default; }
.pcb-pmodal__close { position: fixed; top: max(16px, env(safe-area-inset-top, 16px)); right: max(16px, env(safe-area-inset-right, 16px)); width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.85); color: #f2f2f2; border: 1.5px solid rgba(255,255,255,.2); font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 100000; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.pcb-pmodal__close:active { transform: scale(.92); }
.pcb-pmodal__close:hover { background: rgba(255,255,255,.12); border-color: #6a6a6a; }

/* Vänsterkolumn: bild */
.pcb-pmodal__media { position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--radius-xxl, 16.875px); border: 1px solid #2a2a2a; padding: 16px; overflow: hidden; align-self: start; }
.pcb-pmodal__media img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Högerkolumn: info — scrollar internt */
.pcb-pmodal__info { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow-y: auto; padding-right: 6px; }
.pcb-pmodal__title { font-family: var(--font-display, system-ui, sans-serif); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.015em; margin: 0 48px 0 0; line-height: 1.2; color: #f2f2f2; }
.pcb-pmodal__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #9a9a9a; }
.pcb-pmodal__rating-stars { display: inline-flex; gap: 2px; color: #9ee627; }
.pcb-pmodal__rating-stars svg { width: 14px; height: 14px; }
.pcb-pmodal__rating-link { color: #9a9a9a; text-decoration: underline; text-underline-offset: 2px; }
.pcb-pmodal__rating-link:hover { color: #f2f2f2; }
.pcb-pmodal__price { font-family: var(--font-display, system-ui, sans-serif); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.015em; color: #f2f2f2; }
.pcb-pmodal__section-title { font-family: var(--font-display, system-ui, sans-serif); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; margin: 6px 0 4px; font-weight: 600; }

/* Specs-tabell */
.pcb-pmodal__specs { display: flex; flex-direction: column; width: 100%; }
.pcb-pmodal__spec-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2a2a2a; align-items: center; }
.pcb-pmodal__spec-row:last-child { border-bottom: 0; }
.pcb-pmodal__spec-label { font-size: 12px; font-weight: 500; color: #9a9a9a; text-transform: uppercase; letter-spacing: .04em; }
.pcb-pmodal__spec-value { font-size: 14px; font-weight: 600; color: #f2f2f2; text-align: right; }

/* Beskrivning — expanderbar */
.pcb-pmodal__desc { position: relative; font-size: 14px; line-height: 1.55; color: #d4d4d4; }
.pcb-pmodal__desc-inner { max-height: 72px; overflow: hidden; position: relative; transition: max-height .35s ease; }
.pcb-pmodal__desc-inner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(to bottom, transparent, #1c1c1c); pointer-events: none; transition: opacity .25s ease; }
.pcb-pmodal__desc.is-expanded .pcb-pmodal__desc-inner { max-height: 4000px; }
.pcb-pmodal__desc.is-expanded .pcb-pmodal__desc-inner::after { opacity: 0; }
.pcb-pmodal__desc-toggle { margin-top: 6px; background: transparent; border: 0; color: #9ee627; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.pcb-pmodal__desc-toggle:hover { color: #b5f25a; }

/* CTA — "Velg denne" */
.pcb-pmodal__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 18px; background: #9ee627; color: #131313; border: 0; border-radius: var(--radius-s, 6px); font-family: var(--font-display, system-ui, sans-serif); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.pcb-pmodal__cta:hover { background: #b5f25a; }
.pcb-pmodal__cta:active { transform: translateY(1px); }
.pcb-pmodal__cta-total { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .pcb-pmodal { padding: 12px; }
  .pcb-pmodal__panel { grid-template-columns: 1fr; gap: 16px; padding: 16px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .pcb-pmodal__info { overflow-y: visible; padding-right: 0; }
  .pcb-pmodal__media { max-height: 240px; aspect-ratio: auto; }
}

.pcb-opt-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pcb-opt-badge { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--bg-sunken); color: var(--ink-2); border: 1px solid var(--line); }
.pcb-opt-badge.is-rec { background: var(--green); color: #131313; border-color: var(--green); }
.pcb-opt-stock { font-size: 11.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.pcb-opt-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-deep); }

.pcb-opt-row { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.pcb-opt-name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0; letter-spacing: -0.005em; }
.pcb-opt-tagline { margin: 0; font-size: 14px; color: var(--ink-3); }
.pcb-opt-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: var(--ink-2); flex: 1; }
.pcb-opt-specs li { display: inline-flex; align-items: center; gap: 6px; }
/* Punkten före varje spec borttagen — separationen sköts av flex-gap */

.pcb-opt-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-2); }
.pcb-opt-price { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.005em; color: var(--ink); }
.pcb-opt-price.is-included { color: var(--ink-3); font-weight: 500; }

.pcb-opt-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-4); display: inline-flex; align-items: center; justify-content: center; transition: all .25s var(--ease); background: transparent; }
.pcb-opt-radio-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; transition: background .3s var(--ease), transform .35s cubic-bezier(.2,.7,.2,1); transform: scale(0); }
.pcb-opt-card.is-selected .pcb-opt-radio { border-color: var(--green-deep); background: var(--green); }
.pcb-opt-card.is-selected .pcb-opt-radio-dot { background: var(--ink); transform: scale(1.2); animation: pcbDotBounce .4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes pcbDotBounce { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* SUMMARY */
.pcb-sum-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.pcb-sum-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.pcb-sum-eyebrow { font-family: var(--font-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pcb-sum-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; margin-top: 4px; }
.pcb-sum-total-label { font-family: var(--font-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.pcb-sum-total-amount { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.015em; text-align: right; }
.pcb-sum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pcb-sum-row { display: grid; grid-template-columns: 140px 1fr auto auto; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.pcb-sum-row:last-child { border-bottom: 0; }
.pcb-sum-row-label { font-family: var(--font-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pcb-sum-row-name { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink); }
.pcb-sum-row-price { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pcb-sum-row-edit { background: none; padding: 6px 10px; border-radius: var(--r-sm); font-family: var(--font-display); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); cursor: pointer; }
.pcb-sum-row-edit:hover { border-color: var(--ink); color: var(--ink); }
.pcb-sum-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 6px; flex-wrap: wrap; }
.pcb-sum-foot-meta { display: flex; gap: 24px; font-size: 12.5px; color: var(--ink-3); }
.pcb-sum-foot-meta strong { color: var(--ink-2); font-weight: 600; font-family: var(--font-display); display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

/* DOCK */
.pcb-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg, #0a0a0a); border-top: 1px solid var(--line); }
.pcb-dock-inner { max-width: 1440px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pcb-dock-price { display: flex; align-items: baseline; gap: 14px; }
.pcb-dock-price-label { font-family: var(--font-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pcb-dock-price-amount { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcb-dock-price-amount.is-pulsing { animation: pcbPricePulse .55s var(--ease); }
@keyframes pcbPricePulse { 0% { color: inherit; } 35% { color: #7ec61a; transform: translateY(-1px); } 100% { color: inherit; transform: translateY(0); } }
.pcb-dock-actions { display: flex; gap: 10px; align-items: center; }

/* BUTTONS */
.pcb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-s); border: 1px solid transparent; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: transparent; color: var(--ink); transition: all .2s var(--ease); white-space: nowrap; cursor: pointer; }
.pcb-btn:disabled { opacity: .35; cursor: not-allowed; }
.pcb-btn-ghost { border-color: var(--line); color: var(--ink-2); }
.pcb-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.pcb-btn-primary { background: var(--green); color: #131313; border-color: var(--green); transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease); }
.pcb-btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); transform: scale(1.03); box-shadow: 0 0 12px rgba(158,230,39,.7), 0 0 32px rgba(158,230,39,.45), 0 0 64px rgba(158,230,39,.2); }
.pcb-btn-primary:active { transform: scale(.97); box-shadow: 0 0 8px rgba(158,230,39,.5), 0 0 20px rgba(158,230,39,.3); }
.pcb-btn-lg { padding: 16px 26px; font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .pcb-config { grid-template-columns: 1fr; gap: 28px; }
  /* Platta ut build-col så barnen blir grid-syskon → vi kan ändra ordning */
  .pcb-build-col { display: contents; position: static; }
  .pcb-build-stage { order: 1; aspect-ratio: 4 / 5; max-width: 380px; margin: 0 auto; }
  .pcb-step-col   { order: 2; }
  .pcb-build-meta { order: 3; margin-top: 8px; }
  /* Dölj PC-visualen helt på mobil — för smal yta för att vara meningsfull */
  .pcb-build-stage { display: none; }
  .pcb-build-meta-name { font-size: 16px; }
  .pcb-progress-ticks { display: none; }
  .pcb-opt-card-top { flex-direction: column; }
  .pcb-sum-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .pcb-sum-row-label { grid-column: 1 / -1; }

  /* Progress sticky vid toppen — visar "STEG X/9 · NAMN" + fyllning */
  .pcb-progress {
    position: sticky;
    top: 0;
    margin: 0 -16px 16px;
    padding: 12px 16px;
    background: var(--bg, #0a0a0a);
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }
  .pcb-progress-meta { display: flex; margin-bottom: 8px; font-size: 11px; }
  .pcb-progress-track { height: 3px; }
  .pcb-progress-fill { box-shadow: 0 0 12px rgba(158,230,39,.7); }
  /* Lite mer bottenmarginal så sista korten inte göms bakom dock */
  .pcb-config { margin-bottom: 180px; }
}
@media (max-width: 720px) {
  /* Stacka korten i en kolumn på mobil + telefon-storlek */
  .pcb-opt-grid { grid-template-columns: 1fr; gap: 16px; }
  .pcb-opt-card { padding: 18px; }
  .pcb-step-title { font-size: clamp(26px, 6vw, 36px); }
  .pcb-config { margin-bottom: 140px; }
}
@media (max-width: 640px) {
  /* Stacka dock i 2 rader: pris över knappar — undviker textklipp på smal viewport */
  .pcb-dock-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .pcb-dock-price { justify-content: space-between; gap: 10px; }
  .pcb-dock-actions { width: 100%; }
  .pcb-dock-actions .pcb-btn { flex: 1; justify-content: center; }
  .pcb-sum-foot-meta { flex-direction: column; gap: 10px; }
  .pcb-dock-price-amount { font-size: 22px; }
  .pcb-btn { padding: 10px 14px; font-size: 13px; }
  .pcb-opt-name { font-size: 1.1rem; }
  .pcb-opt-specs { font-size: 13.5px; }
  /* Progress matchar nya stackade dock-höjden (~96px) */
  .pcb-progress { bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcb-step-view { animation: none; }
  .pcb-opt-card.is-selected .pcb-opt-radio-dot { animation: none; transform: scale(1); }
  .pcb-progress-fill { transition: none; }
}
@media (min-width: 1440px) {
  .pcb-dock-inner { padding-left: 0; padding-right: 0; }
}

/* ── Preselect-notice ─────────────────────────────────────────────── */
.pcb-notice {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(154, 230, 39, .08);
  border: 1px solid rgba(154, 230, 39, .22);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink, #f2f2f2);
  text-align: left;
}
.pcb-notice__text { flex: 1; line-height: 1.4; text-align: left; }
.pcb-notice__cta {
  background: transparent;
  border: 0;
  color: var(--green, #9ae627);
  padding: 0;
  margin-left: 4px;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.pcb-notice__cta:hover { color: #b1f543; }
.pcb-notice__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  color: var(--ink-3, #b0b0b0);
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  opacity: .6;
  transition: opacity .15s ease;
}
.pcb-notice__close:hover { opacity: 1; }
