.pcb { padding: 1.25rem 0 3rem; }
.pcb-crumb { color: var(--gray-400); display: flex; font-size: .82rem; gap: .4rem; margin-bottom: 1rem; }
.pcb-crumb a:hover { color: var(--primary); }
.pcb-head { align-items: flex-end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.pcb-head h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 .25rem; }
.pcb-head p { color: var(--gray-600); margin: 0; max-width: 38rem; }
.pcb-actions, .pcb-bar, .pcb-stats { display: flex; gap: .5rem; }
.pcb-actions { flex-wrap: wrap; justify-content: flex-end; }
.pcb-back { margin: 0 0 1rem; }
.pcb-back a { color: var(--primary); font-weight: 700; }
.pcb-btn, .pcb-choose, a.pcb-choose {
    align-items: center; background: #fff; border: 1px solid var(--gray-200); border-radius: 8px;
    color: var(--gray-800); cursor: pointer; display: inline-flex; font-size: .86rem; font-weight: 600;
    gap: .35rem; padding: .55rem .85rem; text-decoration: none;
}
.pcb-btn:hover, .pcb-choose:hover { border-color: var(--primary); color: var(--primary); }
.pcb-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.pcb-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.pcb-btn-ghost { color: var(--danger); }
.pcb-btn:disabled { cursor: not-allowed; opacity: .45; }
.pcb-bar {
    align-items: center; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
    justify-content: space-between; margin-bottom: .75rem; padding: .85rem 1rem;
}
.pcb-hide { align-items: center; color: var(--gray-700); display: flex; font-size: .9rem; font-weight: 600; gap: .45rem; margin: 0; }
.pcb-stat { min-width: 8rem; text-align: right; }
.pcb-stat strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.pcb-stat span { color: var(--gray-400); font-size: .75rem; }
.pcb-stat-total strong { color: var(--accent-dark); }
.pcb-psu-note { background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px; color: #9a3412; font-size: .86rem; margin: 0 0 .9rem; padding: .65rem .85rem; }
.pcb-group { margin-top: 1.15rem; }
.pcb-group h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .55rem; }
.pcb-group.is-empty { display: none; }
.pcb-list { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.pcb-row { align-items: center; border-top: 1px solid var(--gray-100); display: grid; gap: .75rem; grid-template-columns: 220px 1fr auto; padding: .85rem 1rem; }
.pcb-list .pcb-row:first-child { border-top: 0; }
.pcb-row.is-hidden { display: none; }
.pcb-row.is-missing { background: #fff7f7; }
.pcb-slot { align-items: center; display: flex; gap: .7rem; min-width: 0; }
.pcb-icon { align-items: center; background: var(--primary-light); border-radius: 10px; color: var(--primary); display: flex; flex: 0 0 42px; font-size: 1.15rem; height: 42px; justify-content: center; width: 42px; }
.pcb-slot strong { display: block; font-size: .95rem; }
.pcb-required { color: var(--danger); font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.pcb-picks { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.pcb-pick { align-items: center; display: grid; gap: .7rem; grid-template-columns: 54px 1fr auto auto auto; }
.pcb-pick img, .pcb-pick-fallback { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; height: 54px; object-fit: contain; width: 54px; }
.pcb-pick-fallback { align-items: center; color: var(--gray-400); display: flex; justify-content: center; }
.pcb-pick-copy { min-width: 0; }
.pcb-pick-copy a, .pcb-pick-copy span { display: block; font-size: .9rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcb-pick-copy a:hover { color: var(--primary); }
.pcb-pick-copy small { color: var(--gray-400); }
.pcb-price { font-weight: 800; white-space: nowrap; }
.pcb-price s { color: var(--gray-400); display: block; font-size: .75rem; font-weight: 500; }
.pcb-qty { align-items: center; border: 1px solid var(--gray-200); border-radius: 8px; display: flex; }
.pcb-qty button { background: transparent; border: 0; height: 32px; width: 28px; }
.pcb-qty input { border: 0; font-weight: 700; height: 32px; text-align: center; width: 36px; }
.pcb-remove { background: transparent; border: 0; color: var(--gray-400); font-size: 1rem; }
.pcb-remove:hover { color: var(--danger); }
.pcb-empty-page, .pcb-modal-empty { color: var(--gray-600); padding: 2rem 1rem; text-align: center; }
.pcb-modal[hidden] { display: none; }
.pcb-modal { inset: 0; position: fixed; z-index: 1080; }
.pcb-modal-backdrop { background: rgba(15, 23, 42, .55); inset: 0; position: absolute; }
.pcb-modal-dialog {
    background: #fff; border-radius: 16px; display: flex; flex-direction: column; height: min(760px, calc(100vh - 2rem));
    left: 50%; max-width: 820px; position: relative; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 1.5rem);
}
.pcb-modal-head, .pcb-modal-foot { align-items: center; display: flex; justify-content: space-between; padding: .9rem 1rem; }
.pcb-modal-head { border-bottom: 1px solid var(--gray-200); }
.pcb-modal-head h3 { font-size: 1.05rem; margin: 0; }
.pcb-modal-x { background: transparent; border: 0; font-size: 1rem; }
.pcb-modal-search { align-items: center; border-bottom: 1px solid var(--gray-100); display: flex; gap: .5rem; padding: .7rem 1rem; }
.pcb-modal-search input { border: 0; flex: 1; outline: none; }
.pcb-modal-body { flex: 1; overflow: auto; }
.pcb-option { align-items: center; border-bottom: 1px solid var(--gray-100); display: grid; gap: .75rem; grid-template-columns: 64px 1fr auto auto; padding: .75rem 1rem; }
.pcb-option img, .pcb-option .pcb-pick-fallback { height: 64px; width: 64px; }
.pcb-option strong { display: block; font-size: .92rem; }
.pcb-option small { color: var(--gray-400); }
.pcb-stock-out { color: var(--danger); font-size: .75rem; font-weight: 700; }
.pcb-modal-foot { border-top: 1px solid var(--gray-200); }
@media (max-width: 767px) {
    .pcb-head, .pcb-bar, .pcb-row, .pcb-pick, .pcb-option { display: flex; flex-wrap: wrap; }
    .pcb-actions, .pcb-stats { width: 100%; }
    .pcb-stat { text-align: left; }
    .pcb-choose { margin-left: auto; }
}
@media print {
    .topbar, .site-header, .main-nav, .site-footer, .mobile-bottom-nav, .back-to-top, .pcb-actions, .pcb-hide, .pcb-choose, .pcb-remove, .pcb-qty, .pcb-modal, .cart-toast { display: none !important; }
    .pcb-row.is-hidden { display: none !important; }
    .pcb { padding: 0; }
}
