:root {
  --pcb-ink: #101827;
  --pcb-muted: #637083;
  --pcb-line: #dfe7ef;
  --pcb-soft: #f5f7fb;
  --pcb-panel: #ffffff;
  --pcb-orange: #f97316;
  --pcb-cyan: #06b6d4;
  --pcb-lime: #84cc16;
  --pcb-navy: #0b1220;
  --pcb-shadow: 0 24px 70px rgba(15, 23, 42, .12);
  --pcb-photo: url("../images/pc-builder/pc-complete-realistic.png");
}

.page-pc-builder #main-content {
  background: linear-gradient(180deg, #fff 0%, #f7fafc 44%, #edf4f8 100%);
  overflow-x: clip;
}

.page-pc-builder .hyc-chatbot__thought {
  display: none !important;
}

.pc-builder-mobile-bar {
  display: none;
}

.pc-builder-mobile-help {
  display: none;
}

.pc-builder {
  color: var(--pcb-ink);
  padding: calc(var(--navbar-h) + 2rem) clamp(1rem, 2.5vw, 2rem) 4rem;
  overflow-x: clip;
}

.pc-builder-hero,
.pc-builder-toolbar,
.pc-builder-layout {
  width: min(1480px, 100%);
  margin-inline: auto;
}

.pc-builder-hero {
  min-height: clamp(460px, 70vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
}

.pc-builder-kicker {
  font-family: var(--font-mono);
  color: var(--pcb-orange);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .7rem;
}

.pc-builder-hero h1,
.pc-builder-stage__head h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: .96;
  color: #08111f;
}

.pc-builder-hero h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  max-width: 760px;
}

.pc-builder-hero p:not(.pc-builder-kicker) {
  max-width: 620px;
  color: var(--pcb-muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  margin-top: 1.1rem;
}

.pc-builder-hero__actions,
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.pc-builder-btn,
.pc-builder-toolbtn {
  min-height: 44px;
  border-radius: 8px;
  padding: .8rem 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pc-builder-btn:hover,
.pc-builder-toolbtn:hover {
  transform: translateY(-2px);
}

.pc-builder-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 16px 34px rgba(249, 115, 22, .24);
}

.pc-builder-btn--ghost,
.pc-builder-toolbtn {
  color: #152236;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .72);
}

.pc-builder-hero__rig {
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.hero-rig-case {
  position: relative;
  width: min(680px, 88vw);
  aspect-ratio: 1.5;
  border: 2px solid rgba(15, 23, 42, .12);
  border-radius: 24px;
  background: var(--pcb-photo) center / cover no-repeat;
  box-shadow: var(--pcb-shadow);
  transform: rotateX(58deg) rotateZ(-16deg);
  overflow: hidden;
}

.hero-rig-case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(8,17,31,.1));
  pointer-events: none;
}

.hero-rig-board,
.motherboard-outline {
  position: absolute;
  border-radius: 16px;
  background: linear-gradient(135deg, #18364d, #0f2636);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 14px 40px rgba(6, 182, 212, .12);
}

.hero-rig-board {
  inset: 11% 20% 16% 14%;
}

.hero-rig-cpu,
.hero-rig-ssd,
.hero-rig-gpu,
.hero-rig-ram,
.hero-rig-fan {
  position: absolute;
  display: block;
  box-shadow: 0 12px 26px rgba(5, 10, 20, .18);
}

.hero-rig-cpu {
  width: 17%;
  aspect-ratio: 1;
  left: 38%;
  top: 28%;
  border-radius: 12px;
  background: radial-gradient(circle, #9ca3af 0 18%, #d1d5db 19% 54%, #8795a4 55% 100%);
}

.hero-rig-ram {
  width: 5%;
  height: 40%;
  top: 22%;
  border-radius: 8px;
  background: linear-gradient(180deg, #111827, #2dd4bf 20%, #111827 42%, #2dd4bf 64%, #111827);
}

.hero-rig-ram--a { left: 58%; }
.hero-rig-ram--b { left: 65%; }

.hero-rig-gpu {
  width: 48%;
  height: 18%;
  left: 29%;
  bottom: 21%;
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 50%, #0b1220 0 15%, #64748b 16% 27%, transparent 28%),
    radial-gradient(circle at 64% 50%, #0b1220 0 15%, #64748b 16% 27%, transparent 28%),
    linear-gradient(90deg, #111827, #273449);
}

.hero-rig-ssd {
  width: 20%;
  height: 11%;
  right: 16%;
  top: 18%;
  border-radius: 10px;
  background: linear-gradient(135deg, #e5e7eb, #94a3b8);
}

.hero-rig-fan {
  width: 11%;
  aspect-ratio: 1;
  right: 8%;
  border-radius: 50%;
  background: conic-gradient(from 35deg, #0ea5e9, #0f172a, #84cc16, #0f172a, #0ea5e9);
}

.hero-rig-fan--one { top: 22%; }
.hero-rig-fan--two { bottom: 22%; }

.pc-builder-toolbar {
  position: sticky;
  top: calc(var(--navbar-h) + .5rem);
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

.pc-builder-toolbar label {
  display: grid;
  gap: .24rem;
  color: var(--pcb-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pc-builder-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--pcb-line);
  border-radius: 8px;
  padding: 0 .85rem;
  background: #fff;
  color: var(--pcb-ink);
  font-weight: 700;
}

.pc-builder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(420px, 1fr) minmax(300px, 360px);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.pc-builder-panel,
.pc-builder-stage {
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.pc-builder-panel {
  position: sticky;
  top: calc(var(--navbar-h) + 6.4rem);
  overflow: hidden;
}

.pc-builder-panel__head,
.pc-builder-stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.pc-builder-panel__head span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #0b1220;
  font-weight: 800;
}

.pc-builder-panel__head strong {
  color: var(--pcb-orange);
  font-family: var(--font-mono);
  font-size: .76rem;
}

.pc-builder-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .45rem;
  padding: .9rem;
  background: #f8fafc;
}

.pc-builder-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #536173;
  background: #fff;
  font-weight: 800;
  font-size: .82rem;
}

.pc-builder-tabs button.is-active {
  color: #fff;
  background: #0f172a;
  border-color: #0f172a;
}

.pc-builder-list {
  display: grid;
  gap: .75rem;
  max-height: 660px;
  overflow: auto;
  padding: 1rem;
}

.component-empty {
  border: 1px dashed rgba(15, 23, 42, .18);
  border-radius: 10px;
  padding: 1rem;
  color: #475569;
  background: #f8fafc;
  font-size: .92rem;
  line-height: 1.45;
}

.component-empty--error {
  color: #991b1b;
  background: #fef2f2;
  border-color: rgba(220, 38, 38, .28);
}

.component-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: .8rem;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 10px;
  padding: .75rem;
  background: #fff;
  cursor: grab;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.component-card:hover,
.component-card:focus {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, .44);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .10);
  outline: none;
}

.component-card.is-dragging {
  opacity: .68;
}

.component-thumb,
.installed-thumb {
  position: relative;
  width: 74px;
  height: 60px;
  border-radius: 8px;
  background: #e5edf5;
  overflow: hidden;
}

.component-thumb-img {
  object-fit: cover;
  background: #e8eef5;
}

.component-thumb::before,
.component-thumb::after,
.installed-thumb::before,
.installed-thumb::after {
  content: "";
  position: absolute;
}

.thumb-cpu::before,
.installed-cpu::before {
  inset: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b8c1cc, #f8fafc 42%, #64748b);
  box-shadow: inset 0 0 0 4px #8895a5;
}

.thumb-cpu::after,
.installed-cpu::after {
  inset: 22px;
  border-radius: 4px;
  background: #1f2937;
}

.thumb-motherboard::before,
.installed-motherboard::before {
  inset: 8px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 38% 42%, #d1d5db 0 10%, #475569 11% 20%, transparent 21%),
    linear-gradient(135deg, #12364c, #0f2938);
}

.thumb-motherboard::after,
.installed-motherboard::after {
  width: 8px;
  height: 34px;
  right: 16px;
  top: 13px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, #84cc16 0 5px, #111827 5px 10px);
}

.thumb-ram::before,
.installed-ram::before {
  left: 9px;
  right: 9px;
  top: 22px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, #0f172a, #06b6d4, #0f172a, #84cc16);
}

.thumb-ram::after,
.installed-ram::after {
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #d9a441 0 5px, transparent 5px 10px);
}

.thumb-storage::before,
.installed-storage::before {
  inset: 15px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #64748b);
}

.thumb-storage::after,
.installed-storage::after {
  width: 22px;
  height: 5px;
  right: 15px;
  top: 27px;
  border-radius: 99px;
  background: #0f172a;
}

.thumb-gpu::before,
.installed-gpu::before {
  inset: 14px 5px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 26% 50%, #020617 0 12%, #64748b 13% 24%, transparent 25%),
    radial-gradient(circle at 67% 50%, #020617 0 12%, #64748b 13% 24%, transparent 25%),
    linear-gradient(90deg, #111827, #334155);
}

.thumb-gpu::after,
.installed-gpu::after {
  width: 8px;
  height: 22px;
  left: 2px;
  top: 19px;
  background: #d1d5db;
}

.thumb-psu::before,
.installed-psu::before {
  inset: 11px 10px;
  border-radius: 8px;
  background: radial-gradient(circle, #0f172a 0 14%, #94a3b8 15% 34%, #1f2937 35% 100%);
}

.thumb-psu::after,
.installed-psu::after {
  right: 16px;
  top: 25px;
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: #020617;
}

.thumb-case::before,
.installed-case::before {
  inset: 8px 12px;
  border: 3px solid #334155;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(148,163,184,.55), rgba(255,255,255,.28));
}

.thumb-case::after,
.installed-case::after {
  right: 17px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pcb-cyan);
}

.thumb-cooling::before,
.installed-cooling::before {
  inset: 11px 18px;
  border-radius: 50%;
  background: conic-gradient(#06b6d4, #0f172a, #84cc16, #0f172a, #06b6d4);
}

.thumb-cooling::after,
.installed-cooling::after {
  inset: 24px 31px;
  border-radius: 50%;
  background: #fff;
}

.component-info {
  min-width: 0;
}

.component-info strong {
  display: block;
  color: #111827;
  line-height: 1.15;
}

.component-info small {
  color: var(--pcb-muted);
  display: block;
  margin-top: .24rem;
}

.component-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .55rem;
}

.component-price {
  color: var(--pcb-orange);
  font-family: var(--font-mono);
  font-weight: 800;
}

.component-chip {
  border-radius: 999px;
  padding: .15rem .45rem;
  color: #075985;
  background: #e0f2fe;
  font-size: .68rem;
  font-weight: 800;
}

.component-chip--stock {
  color: #166534;
  background: #dcfce7;
}

.component-chip--muted {
  color: #64748b;
  background: #f1f5f9;
}

.component-install-btn {
  display: none;
}

.pc-builder-stage {
  min-height: auto;
  padding-bottom: 1rem;
}

.pc-builder-stage__head h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.builder-score {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(var(--pcb-lime) var(--score, 0%), #e5e7eb 0);
  box-shadow: inset 0 0 0 7px #fff;
  font-family: var(--font-mono);
  font-weight: 900;
}

.pc-case-top {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.pc-case-shell {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 1.5;
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 14px;
  background: var(--pcb-photo) center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.pc-case-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 34px rgba(2,8,23,.16);
  z-index: 1;
}

.case-rail {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.case-rail--left { left: 4%; }
.case-rail--right { right: 4%; }

.case-airflow {
  position: absolute;
  left: 11%;
  right: 11%;
  height: 8px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #94a3b8 0 18px, transparent 18px 31px);
}

.case-airflow--top { top: 6%; }
.case-airflow--bottom { bottom: 6%; }

.motherboard-outline {
  left: 17%;
  top: 13%;
  width: 56%;
  height: 72%;
}

.pc-case-shell .case-rail,
.pc-case-shell .case-airflow,
.pc-case-shell .motherboard-outline {
  display: none;
}

.drop-zone {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 3;
  border: 1px dashed rgba(96, 165, 250, .76);
  border-radius: 8px;
  color: rgba(255,255,255,.88);
  background:
    linear-gradient(135deg, rgba(2,8,23,.84), rgba(15,23,42,.68)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 12px 34px rgba(2,8,23,.22);
  backdrop-filter: blur(2px);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  overflow: hidden;
}

.drop-zone::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

.drop-zone.is-hot {
  transform: scale(1.025);
  border-color: var(--pcb-orange);
  background: rgba(249, 115, 22, .18);
}

.drop-zone.is-filled {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.drop-zone.is-filled::after,
.drop-zone.is-filled .slot-label,
.drop-zone.is-filled .installed-part {
  display: none;
}

.slot-label {
  z-index: 2;
  color: inherit;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.is-filled .slot-label {
  position: absolute;
  left: .5rem;
  top: .4rem;
  color: #0f172a;
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: .08rem .35rem;
}

.zone-motherboard { left: 18%; top: 14%; width: 34%; height: 33%; }
.zone-cpu { left: 34%; top: 17%; width: 14%; height: 22%; }
.zone-ram { left: 55%; top: 19%; width: 12%; height: 33%; }
.zone-storage { left: 36%; top: 64%; width: 21%; height: 9%; }
.zone-gpu { left: 16%; top: 48%; width: 63%; height: 17%; }
.zone-psu { left: 15%; bottom: 8%; width: 68%; height: 16%; }
.zone-case { left: 17%; top: 5%; width: 63%; height: 8%; }
.zone-cooling { left: 69%; top: 40%; width: 15%; height: 16%; }

.installed-part {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: .35rem;
}

.installed-thumb {
  width: min(92%, 138px);
  height: min(86%, 108px);
  border: 1px solid rgba(15, 23, 42, .1);
  background: #f8fafc;
}

.zone-gpu .installed-thumb {
  width: 94%;
}

.zone-ram .installed-thumb {
  transform: rotate(90deg);
}

.pc-builder-hints {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: 0 1rem 1rem;
}

.hint-pill {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: .45rem .7rem;
  color: #475569;
  background: #fff;
  font-weight: 800;
  font-size: .78rem;
}

.hint-pill--ok {
  color: #166534;
  border-color: rgba(132, 204, 22, .42);
  background: #f0fdf4;
}

.summary-slots {
  display: grid;
  gap: .55rem;
  padding: 1rem;
}

.summary-slot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  padding: .65rem;
  background: #f8fafc;
}

.summary-slot strong {
  display: block;
  color: #111827;
  line-height: 1.15;
  font-size: .9rem;
}

.summary-slot span {
  display: block;
  color: var(--pcb-muted);
  font-size: .78rem;
}

.summary-slot button {
  color: #ef4444;
  font-weight: 900;
  padding: .35rem;
}

.compat-card,
.total-card {
  margin: 0 1rem 1rem;
  border-radius: 10px;
  padding: 1rem;
}

.compat-card {
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.compat-card.is-ok {
  border-color: rgba(132, 204, 22, .44);
  background: #f0fdf4;
}

.compat-card.is-bad {
  border-color: rgba(239, 68, 68, .42);
  background: #fef2f2;
}

.compat-card strong,
.total-card span {
  display: block;
  color: #111827;
  font-weight: 900;
}

.compat-card p,
.total-card small {
  color: var(--pcb-muted);
  font-size: .86rem;
  line-height: 1.45;
  margin-top: .3rem;
}

.total-card {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(249,115,22,.96), rgba(15,23,42,.96)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px);
}

.total-card span,
.total-card small {
  color: rgba(255,255,255,.78);
}

.total-card strong {
  display: block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-top: .2rem;
}

.summary-actions {
  padding: 0 1rem 1rem;
  margin-top: 0;
}

.summary-actions .pc-builder-btn {
  flex: 1 1 145px;
}

@media (max-width: 1180px) {
  .pc-builder-hero,
  .pc-builder-layout {
    grid-template-columns: 1fr;
  }

  .pc-builder-panel {
    position: static;
  }

  .pc-builder-list {
    max-height: 420px;
  }

  .pc-builder-toolbar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page-pc-builder .hyc-chatbot,
  .page-pc-builder .hyc-whatsapp-float {
    display: none !important;
  }

  .page-pc-builder .mob-trustbar,
  .page-pc-builder .mob-offer-card {
    display: none !important;
  }

  .page-pc-builder .navbar {
    height: 119px !important;
  }

  .page-pc-builder #main-content {
    padding-top: 119px !important;
  }

  .pc-builder {
    padding: .85rem .75rem 6.5rem;
  }

  .pc-builder-hero {
    display: none;
  }

  .pc-builder-hero__copy {
    order: 1;
  }

  .pc-builder-kicker {
    font-size: .66rem;
    margin-bottom: .45rem;
  }

  .pc-builder-hero h1 {
    max-width: 360px;
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    line-height: .98;
  }

  .pc-builder-hero p:not(.pc-builder-kicker) {
    font-size: .95rem;
    line-height: 1.55;
    margin-top: .8rem;
  }

  .pc-builder-hero__actions {
    gap: .55rem;
    margin-top: 1rem;
  }

  .pc-builder-hero__actions .pc-builder-btn {
    min-height: 42px;
    padding-inline: .85rem;
    font-size: .88rem;
  }

  .pc-builder-hero__rig {
    display: none;
  }

  .pc-builder-toolbar {
    display: none;
  }

  .pc-builder-layout {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-top: .35rem;
    width: 100%;
    min-width: 0;
  }

  .pc-builder-stage {
    order: 1;
    width: 100%;
    min-width: 0;
    min-height: auto;
    border-radius: 10px;
    overflow: hidden;
  }

  .pc-builder-stage__head {
    padding: .85rem .9rem .65rem;
  }

  .pc-builder-stage__head h2 {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .pc-builder-mobile-help {
    display: block;
    margin-top: .35rem;
    color: var(--pcb-muted);
    font-size: .78rem;
    line-height: 1.35;
  }

  .builder-score {
    width: 50px;
    height: 50px;
    font-size: .72rem;
    box-shadow: inset 0 0 0 6px #fff;
  }

  .pc-case-top {
    padding: .7rem .55rem .45rem;
  }

  .pc-case-shell {
    min-height: auto;
    aspect-ratio: 1.5;
    border-radius: 10px;
    max-width: none;
  }

  .drop-zone {
    border-radius: 6px;
    border-width: 1px;
  }

  .slot-label {
    font-size: .58rem;
  }

  .zone-motherboard { left: 18%; top: 14%; width: 34%; height: 33%; }
  .zone-cpu { left: 34%; top: 17%; width: 14%; height: 22%; }
  .zone-ram { left: 55%; top: 19%; width: 12%; height: 33%; }
  .zone-storage { left: 36%; top: 64%; width: 21%; height: 9%; }
  .zone-gpu { left: 16%; top: 48%; width: 63%; height: 17%; }
  .zone-psu { left: 15%; bottom: 8%; width: 68%; height: 16%; }
  .zone-case { left: 17%; top: 5%; width: 63%; height: 8%; }
  .zone-cooling { left: 69%; top: 40%; width: 15%; height: 16%; }

  .pc-builder-hints {
    padding: .25rem .85rem .85rem;
    gap: .4rem;
  }

  .hint-pill {
    padding: .35rem .55rem;
    font-size: .68rem;
  }

  .pc-builder-catalog {
    order: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 18px 18px 10px 10px;
    overflow: hidden;
    box-shadow: 0 -12px 42px rgba(15, 23, 42, .12);
  }

  .pc-builder-catalog .pc-builder-panel__head {
    position: relative;
    padding: 1.15rem .95rem .8rem;
  }

  .pc-builder-catalog .pc-builder-panel__head::before {
    content: "";
    position: absolute;
    top: .45rem;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    transform: translateX(-50%);
  }

  .pc-builder-catalog .pc-builder-panel__head span {
    font-size: 1.15rem;
  }

  .pc-builder-tabs {
    display: flex;
    grid-template-columns: none;
    gap: .45rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: .65rem .85rem .8rem;
    scroll-snap-type: x mandatory;
  }

  .pc-builder-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 .75rem;
    border-radius: 999px;
    font-size: .76rem;
    scroll-snap-align: start;
  }

  .pc-builder-list {
    display: flex;
    gap: .7rem;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .85rem .85rem 1rem;
    scroll-snap-type: x mandatory;
  }

  .component-card {
    flex: 0 0 260px;
    grid-template-columns: 68px 1fr;
    padding: .7rem;
    cursor: pointer;
    scroll-snap-align: start;
  }

  .component-thumb,
  .installed-thumb {
    width: 68px;
    height: 56px;
  }

  .component-info strong {
    font-size: .92rem;
  }

  .component-info small {
    font-size: .75rem;
  }

  .component-price {
    font-size: .86rem;
  }

  .component-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    margin-top: .55rem;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    font-size: .8rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(249, 115, 22, .18);
  }

  .pc-builder-summary {
    display: none;
  }

  .pc-builder-mobile-bar {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 70px;
    padding: .75rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
    backdrop-filter: blur(18px);
  }

  .pc-builder-mobile-bar span {
    display: block;
    color: var(--pcb-muted);
    font-size: .72rem;
    font-weight: 800;
  }

  .pc-builder-mobile-bar strong {
    display: block;
    color: #0f172a;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .pc-builder-mobile-bar #builder-mobile-action {
    min-width: 112px;
    min-height: 48px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #84cc16, #16a34a);
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(22, 163, 74, .28);
  }

  /* Toggle del resumen (cuenta + total + estado) */
  .pcb-mobile-toggle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .12rem;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
  }
  .pcb-mobile-toggle__line { display: inline-flex; align-items: center; gap: .4rem; }
  .pcb-mobile-toggle__hint { font-size: .66rem; font-weight: 800; color: #0ea5e9; }
  .pcb-mobile-compat {
    display: inline-block;
    padding: .06rem .42rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 900;
  }
  .pcb-mobile-compat.is-ok { background: #dcfce7; color: #166534; }
  .pcb-mobile-compat.is-bad { background: #fee2e2; color: #991b1b; }

  /* Bottom-sheet: el resumen completo se despliega sobre el catálogo */
  .pcb-summary-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1290;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(1px);
  }
  .pcb-summary-backdrop[hidden] { display: none; }

  #pc-builder-app.is-summary-open .pc-builder-summary {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    max-height: 82vh;
    overflow-y: auto;
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 48px rgba(15, 23, 42, .3);
    animation: pcbSheetUp .22s ease;
  }
  #pc-builder-app.is-summary-open .pc-builder-panel__head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }
  #pc-builder-app.is-summary-open .pcb-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
  }
  body.pcb-sheet-open { overflow: hidden; }
}

/* Ocultos en desktop (solo aplican al sheet móvil) */
.pcb-sheet-close { display: none; }
.pcb-summary-backdrop { display: none; }
@keyframes pcbSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ─── Auto-armado por presupuesto ─────────────────────────────────────────────── */
.pc-builder-autobar {
  width: min(1480px, 100%);
  margin: .6rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(249, 115, 22, .28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(249,115,22,.07), rgba(255,255,255,.9));
}

.pc-builder-autobar__title {
  font-family: var(--font-display);
  font-weight: 900;
  color: #0b1220;
  font-size: 1.02rem;
}

.pc-builder-autobar__field {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--pcb-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pc-builder-autobar__field select {
  min-height: 42px;
  border: 1px solid var(--pcb-line);
  border-radius: 8px;
  padding: 0 .85rem;
  background: #fff;
  color: var(--pcb-ink);
  font-weight: 800;
  font-size: .92rem;
  text-transform: none;
}

#builder-autobuild {
  min-height: 44px;
  padding-inline: 1.2rem;
}

.pc-builder-autobar__note {
  flex: 1 1 220px;
  color: var(--pcb-muted);
  font-size: .76rem;
  line-height: 1.4;
}

/* Miniatura real del producto dentro del gabinete */
.installed-thumb--img {
  display: block; width: 100%; height: 100%; min-height: 26px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  border-radius: 4px;
}

/* Pre-armados recomendados */
.pc-builder-presets {
  width: min(1480px, 100%); margin: .5rem auto 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.pc-builder-presets__title { font-size: .8rem; font-weight: 800; color: var(--pcb-muted); margin-right: .3rem; }
.pcb-preset {
  padding: .5rem .85rem; border-radius: 999px; font-weight: 800; font-size: .82rem;
  color: #152236; background: #fff; border: 1px solid rgba(15,23,42,.14); cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.pcb-preset:hover { transform: translateY(-2px); border-color: var(--pcb-orange); }
.total-card__fin { display: block; margin-top: .4rem; }

/* "Te falta poco" — sugerencia de la pieza más barata compatible */
.pcb-next {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: .6rem; padding-top: .55rem; border-top: 1px dashed rgba(15,23,42,.15);
  font-size: .78rem; color: #334155;
}
.pcb-next__btn {
  margin-left: auto; padding: .3rem .7rem; border-radius: 6px; font-weight: 800; font-size: .76rem;
  color: #fff; background: linear-gradient(135deg, #f97316, #ea580c); border: none; cursor: pointer;
}

/* Pestañas de categoría bloqueadas hasta elegir procesador + placa */
.pc-builder-tabs button.is-locked {
  opacity: .45;
  position: relative;
}
.pc-builder-tabs button.is-locked::after {
  content: "🔒";
  font-size: .7em;
  margin-left: .25rem;
}

/* ─── Asesor (refrigeración / avisos) ─────────────────────────────────────────── */
.advice-card {
  margin: 0 1rem 1rem;
  border-radius: 10px;
  padding: .85rem 1rem;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
}
.advice-card strong { display: block; color: #0369a1; font-weight: 900; font-size: .9rem; }
.advice-card ul { margin: .4rem 0 0; padding-left: 1.05rem; }
.advice-card li { color: #075985; font-size: .8rem; line-height: 1.45; margin-bottom: .25rem; }

/* Listas dentro de la tarjeta de compatibilidad */
.compat-card ul { margin: .4rem 0 0; padding-left: 1.05rem; }
.compat-card li { color: var(--pcb-muted); font-size: .82rem; line-height: 1.4; margin-bottom: .2rem; }
.compat-card.is-warn { border-color: #fde68a; background: #fffbeb; }
.compat-card.is-bad li { color: #991b1b; }

/* Chips de compatibilidad en las tarjetas del catálogo */
.component-chip--warn { color: #92400e; background: #fef3c7; }
.component-chip--bad  { color: #991b1b; background: #fee2e2; }
.component-chip--best { color: #9a3412; background: #ffedd5; font-weight: 800; }

/* Indicador de ahorro (#4) y armado gratis (#18) */
.total-card__savings {
  display: block;
  margin-top: .25rem;
  color: #047857;
  font-weight: 700;
}
.total-card__savings[hidden] { display: none; }
.total-card__free {
  display: block;
  margin-top: .3rem;
  color: #0f172a;
}
.total-card__free strong { color: #16a34a; }

/* Stepper de cantidad (RAM / almacenamiento) en el resumen */
.summary-qty {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
}
.summary-qty button {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, .2);
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.summary-qty button:disabled { opacity: .4; cursor: not-allowed; }
.summary-qty span { min-width: 1.2rem; text-align: center; font-weight: 800; font-size: .85rem; }

/* Tarjetas no seleccionables (sin stock o incompatibles) */
.component-card.is-disabled {
  opacity: .55;
  filter: grayscale(.4);
  cursor: not-allowed;
}
.component-card.is-disabled:hover { transform: none; box-shadow: none; border-color: rgba(15, 23, 42, .09); }
.component-install-btn.is-disabled {
  display: inline-block;
  margin-top: .35rem;
  padding: .25rem .6rem;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
}

@media (max-width: 760px) {
  .pc-builder-autobar {
    margin-top: 0;
    padding: .75rem .85rem;
    gap: .55rem;
  }
  .pc-builder-autobar__note { flex-basis: 100%; }
  #builder-autobuild { flex: 1 1 100%; }
}

/* ─── Comparador de componentes ──────────────────────────────────────────────── */
.component-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
}

.component-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .55rem;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.component-compare-btn:hover { border-color: rgba(249, 115, 22, .5); color: #ea580c; }
.component-compare-btn.is-on {
  border-color: #0ea5e9;
  background: #e0f2fe;
  color: #0369a1;
}
.component-card.is-comparing {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .35);
}

.pcb-compare-tray {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .6rem;
  padding: .6rem .75rem;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .25);
}
.pcb-compare-tray__info { font-size: .78rem; font-weight: 700; }
.pcb-compare-tray__actions { display: inline-flex; gap: .45rem; }
.pcb-compare-tray__btn {
  padding: .4rem .8rem;
  border-radius: 7px;
  border: 0;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #06283d;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}
.pcb-compare-tray__btn:disabled { opacity: .5; cursor: not-allowed; }
.pcb-compare-tray__clear {
  padding: .4rem .7rem;
  border-radius: 7px;
  border: 1px solid rgba(226, 232, 240, .35);
  background: transparent;
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Modal de comparación */
body.pcb-modal-open { overflow: hidden; }
.pcb-compare-modal[hidden] { display: none; }
.pcb-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.pcb-compare-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(2px);
}
.pcb-compare-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.3rem 1.1rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .4);
}
.pcb-compare-modal__close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.pcb-cmp-title { margin: 0 0 .9rem; font-size: 1.15rem; }
.pcb-cmp-scroll { overflow-x: auto; }
.pcb-cmp-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pcb-cmp-table th,
.pcb-cmp-table td {
  padding: .55rem .6rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  vertical-align: middle;
}
.pcb-cmp-table tbody th {
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}
.pcb-cmp-table td.is-best {
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
}
.pcb-cmp-head { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.pcb-cmp-head img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
  background: #e8eef5;
}
.pcb-cmp-head__name { font-size: .78rem; font-weight: 800; color: #0f172a; }
.pcb-cmp-head a { font-size: .72rem; color: #0ea5e9; font-weight: 700; }
.pcb-cmp-actions td { padding-top: .8rem; }
.pcb-cmp-add {
  display: inline-block;
  padding: .35rem .7rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}
.pcb-cmp-add.is-disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.pcb-cmp-note { margin: .8rem 0 0; font-size: .72rem; color: #64748b; }

/* Mejora mi PC actual */
.pcb-upgrade-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 1rem;
}
.pcb-upgrade-form label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .76rem;
  font-weight: 800;
  color: #475569;
}
.pcb-upgrade-form select {
  min-height: 40px;
  border: 1px solid var(--pcb-line, rgba(15,23,42,.16));
  border-radius: 8px;
  padding: 0 .6rem;
  background: #fff;
  color: #0f172a;
  font-size: .82rem;
  font-weight: 600;
}
.pcb-upgrade-h { font-size: .92rem; margin: 1.1rem 0 .55rem; color: #0f172a; }
.pcb-upgrade-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .7rem;
  align-items: center;
  padding: .6rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 10px;
  margin-bottom: .5rem;
}
.pcb-upgrade-card img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
  background: #e8eef5;
}
.pcb-upgrade-card__info { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.pcb-upgrade-card__info strong { font-size: .82rem; color: #0f172a; }
.pcb-upgrade-card__info small { font-size: .7rem; color: #64748b; }
.pcb-upgrade-card__price { font-size: .82rem; font-weight: 900; color: #ea580c; }
.pcb-upgrade-card__actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.pcb-upgrade-card__actions a { font-size: .72rem; color: #0ea5e9; font-weight: 700; }
.pcb-upgrade-card__actions button {
  padding: .35rem .7rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #84cc16, #16a34a);
  color: #fff;
  font-size: .74rem;
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 760px) {
  .pcb-upgrade-form { grid-template-columns: 1fr; }
}

/* ─── Toasts del builder (fallback sin alert() bloqueante) ─────────────────── */
#pcb-toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.pcb-toast {
  max-width: min(92vw, 480px);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .92rem;
  line-height: 1.35;
  color: #fff;
  background: #1f2937;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.pcb-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}
.pcb-toast--error { background: #b91c1c; }
.pcb-toast--ok    { background: #15803d; }

/* ─── Toggle "Solo con stock" ───────────────────────────────────────────────── */
.pcb-stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--pcb-muted);
  cursor: pointer;
  user-select: none;
  margin-left: auto;
}
.pcb-stock-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 17px;
  border-radius: 99px;
  background: var(--pcb-line);
  cursor: pointer;
  position: relative;
  transition: background .2s ease;
  flex-shrink: 0;
}
.pcb-stock-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.pcb-stock-toggle input[type="checkbox"]:checked {
  background: var(--pcb-orange);
}
.pcb-stock-toggle input[type="checkbox"]:checked::after {
  transform: translateX(13px);
}

/* ─── Modal de armados guardados ────────────────────────────────────────────── */
.pcb-saves-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}
.pcb-save-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pcb-soft);
  border-radius: 10px;
  border: 1px solid var(--pcb-line);
}
.pcb-save-item__info {
  flex: 1;
  min-width: 0;
}
.pcb-save-item__info strong {
  display: block;
  font-size: .9rem;
  color: var(--pcb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcb-save-item__info span {
  font-size: .82rem;
  color: var(--pcb-orange);
  font-weight: 700;
}
.pcb-save-item__info small {
  font-size: .75rem;
  color: var(--pcb-muted);
  margin-left: 8px;
}
.pcb-save-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pcb-save-item__actions .pc-builder-btn {
  padding: 6px 12px;
  font-size: .78rem;
}
.pcb-save-del {
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}
.pcb-save-del:hover {
  background: #fee2e2 !important;
}
@media (max-width: 520px) {
  .pcb-save-item { flex-direction: column; align-items: flex-start; }
  .pcb-save-item__actions { width: 100%; }
}

/* ─── Búsqueda + ordenamiento del catálogo ─── */
.pcb-catalog-search {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pcb-border, #e5e7eb);
  background: var(--pcb-surface, #fff);
}
.pcb-catalog-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1.5px solid var(--pcb-border, #d1d5db);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--pcb-ink);
  background: var(--pcb-bg, #f9fafb);
  outline: none;
  transition: border-color .15s;
}
.pcb-catalog-search input[type="search"]:focus {
  border-color: var(--pcb-orange, #f97316);
  background: #fff;
}
.pcb-catalog-search input[type="search"]::placeholder { color: #9ca3af; }
.pcb-catalog-search select {
  padding: 5px 8px;
  border: 1.5px solid var(--pcb-border, #d1d5db);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--pcb-ink);
  background: var(--pcb-bg, #f9fafb);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}
.pcb-catalog-search select:focus {
  border-color: var(--pcb-orange, #f97316);
}

/* ─── Balance CPU vs GPU ─── */
.pcb-balance {
  display: flex;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
  gap: 1px;
}
.pcb-balance__cpu {
  background: #3b82f6;
  border-radius: 4px 0 0 4px;
  transition: width .4s ease;
  font-size: 0; /* texto oculto visualmente, accesible vía title */
}
.pcb-balance__gpu {
  background: #10b981;
  border-radius: 0 4px 4px 0;
  transition: width .4s ease;
  font-size: 0;
}
.pcb-balance--cpu-heavy .pcb-balance__cpu { background: #ef4444; }
.pcb-balance--gpu-heavy .pcb-balance__gpu { background: #ef4444; }

/* Leyenda de balance (tooltip) */
.pcb-balance[title] { cursor: help; }
.pc-builder-hints .hint-pill { margin-bottom: 2px; }

/* ─── @media print — cotización limpia ─── */
@media print {
  /* Oculta todo excepto el resumen de la PC armada */
  body > *:not(.pc-builder) { display: none !important; }
  .pc-builder > *:not(.pc-builder-layout) { display: none !important; }
  .pc-builder-layout > *:not(.pc-builder-summary) { display: none !important; }
  .pc-builder-summary {
    position: static !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .summary-actions, .pcb-sheet-close, #builder-savings { display: none !important; }
  .pc-builder { display: block !important; }
  .pc-builder-layout { display: block !important; }
  .compat-card, .advice-card { break-inside: avoid; }

  /* Cabecera de impresión */
  .pc-builder-panel__head::before {
    content: 'HYC Shop — Cotización de PC armada';
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
  }
  .pc-builder-panel__head strong { font-size: 1rem; }

  /* Asegura colores visibles en papel */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .summary-slot { border-bottom: 1px solid #e5e7eb; padding: 6px 0; }
  .hint-pill { background: #f3f4f6 !important; border: 1px solid #d1d5db !important; }

  /* Footer de cotización */
  .total-card::after {
    content: 'Precios incluyen IGV. Armado e instalación GRATIS. Válido hasta agotar stock.';
    display: block;
    font-size: .75rem;
    color: #6b7280;
    margin-top: 8px;
  }
}
.pcb-toast--ok { background: #15803d; }
