/**
 * DoctorPC Build Your Own PC — pc-builder.css v1.5
 * Red theme. Full (never-cropped) product images. Responsive.
 */

/* ── Global tokens: must live on :root so AI chat works on every page ── */
:root {
    --dpb-red:      #ec1f4f;
    --dpb-red-dk:   #c2143b;
    --dpb-red-lt:   #ff5c78;
    --dpb-ink:      #1c2230;
    --dpb-muted:    #6b7280;
    --dpb-line:     #e6e8ec;
    --dpb-bg:       #f5f6f8;
    --dpb-card:     #ffffff;
    --dpb-radius:   0;
    --dpb-shadow:   none;
    --dpb-shadow-h: none;
    --dpb-font-body: 'Questrial', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --dpb-font-head: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hide the theme's oversized page-title hero band on the builder page only
   (this stylesheet is enqueued solely on /build-your-own-pc/). The nav and the
   builder's own step title already say "Build Your Own PC", so the big band is
   redundant and wastes the top of the screen. */
.page-hero-section, .entry-hero { display: none !important; }

.dpb-wrap {
    --dpb-red:      #ec1f4f;
    --dpb-red-dk:   #c2143b;
    --dpb-red-lt:   #ff5c78;
    --dpb-ink:      #1c2230;
    --dpb-muted:    #6b7280;
    --dpb-line:     #e6e8ec;
    --dpb-bg:       #f5f6f8;
    --dpb-card:     #ffffff;
    --dpb-radius:   0;
    --dpb-shadow:   none;
    --dpb-shadow-h: none;

    /* Match the DoctorPC theme fonts (Questrial body / Quicksand headings, already
       loaded site-wide). Falls back cleanly if the theme vars are absent. */
    --dpb-font-body: var(--global-body-font-family, 'Questrial', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --dpb-font-head: var(--global-heading-font-family, 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);

    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 14px 48px;
    color: var(--dpb-ink);
    font-family: var(--dpb-font-body);
    line-height: 1.45;
    box-sizing: border-box;
}
.dpb-wrap h2, .dpb-wrap h3, .dpb-step-header h2, .dpb-ob-title { font-family: var(--dpb-font-head); }
.dpb-wrap *, .dpb-wrap *::before, .dpb-wrap *::after { box-sizing: border-box; }

/* ══════════════ LAYOUT ══════════════ */
.dpb-wizard {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
}

/* ══════════════ SIDEBAR ══════════════ */
.dpb-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dpb-steps-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--dpb-card);
    border: 1px solid var(--dpb-line);
    border-radius: 0;
    padding: 10px;
    box-shadow: var(--dpb-shadow);
}

.dpb-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    font: inherit;
    color: inherit;
}
.dpb-step-item:hover { background: #fafbfc; }
.dpb-step-item.active {
    background: #fff0f3;
    border-color: var(--dpb-red-lt);
}
.dpb-step-item.complete .dpb-step-num {
    background: #16a34a;
    color: #fff;
}

.dpb-step-num {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    background: #eef0f3;
    color: var(--dpb-muted);
    transition: background .15s, color .15s;
}
.dpb-step-item.active .dpb-step-num { background: var(--dpb-red); color: #fff; }

.dpb-step-info { display: flex; flex-direction: column; min-width: 0; }
.dpb-step-label { font-weight: 600; font-size: 14px; }
.dpb-opt-tag {
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--dpb-muted);
    background: #eef0f3;
    padding: 1px 6px;
    border-radius: 0;
    margin-left: 4px;
}
.dpb-step-sel {
    font-size: 12px;
    color: var(--dpb-red-dk);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

/* ══════════════ BUILD SUMMARY ══════════════ */
.dpb-build-summary {
    background: var(--dpb-card);
    border: 1px solid var(--dpb-line);
    border-radius: 0;
    padding: 16px;
    box-shadow: var(--dpb-shadow);
}
.dpb-build-summary h3 { margin: 0 0 12px; font-size: 16px; }
.dpb-empty-msg { color: var(--dpb-muted); font-size: 13px; margin: 6px 0; }

.dpb-sum-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dpb-line);
}
.dpb-sum-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--dpb-line);
    border-radius: 0;
}
.dpb-sum-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dpb-sum-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--dpb-muted); }
.dpb-sum-name {
    font-size: 13px; font-weight: 600; color: var(--dpb-ink);
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dpb-sum-name:hover { color: var(--dpb-red); }
.dpb-sum-price { font-size: 13px; font-weight: 700; color: var(--dpb-red-dk); }
.dpb-sum-remove {
    flex: 0 0 auto; background: transparent; border: none; cursor: pointer;
    color: var(--dpb-muted); font-size: 14px; padding: 4px; border-radius: 0; line-height: 1;
}
.dpb-sum-remove:hover { color: var(--dpb-red); background: #fff0f3; }

.dpb-summary-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 14px 0 12px; font-size: 15px; font-weight: 600;
}
.dpb-summary-total strong { font-size: 20px; color: var(--dpb-red-dk); }

.dpb-checkout-btn {
    width: 100%;
    background: var(--dpb-red);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.dpb-checkout-btn:hover:not(:disabled) { background: var(--dpb-red-dk); box-shadow: var(--dpb-shadow-h); }
.dpb-checkout-btn:active:not(:disabled) { transform: translateY(1px); }
.dpb-checkout-btn:disabled { background: #d7dae0; color: #fff; cursor: not-allowed; }
.dpb-checkout-note { font-size: 11px; color: var(--dpb-muted); text-align: center; margin: 8px 0 0; }

/* ══════════════ MAIN ══════════════ */
.dpb-main { min-width: 0; }

.dpb-step-header { margin-bottom: 14px; }
.dpb-step-header h2 { margin: 0 0 4px; font-size: 22px; }
.dpb-hint { margin: 0; color: var(--dpb-muted); font-size: 13.5px; max-width: 70ch; }

.dpb-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin-bottom: 16px;
}
.dpb-search {
    flex: 1 1 240px;
    min-width: 200px;
    padding: 11px 14px;
    border: 1px solid var(--dpb-line);
    border-radius: 0;
    font-size: 14px;
    outline: none;
    background: var(--dpb-card);
}
.dpb-search:focus { border-color: var(--dpb-red-lt); box-shadow: 0 0 0 3px rgba(28,34,48,.08); }

.dpb-filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.dpb-filter {
    background: var(--dpb-card);
    border: 1px solid var(--dpb-line);
    border-radius: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dpb-ink);
    cursor: pointer;
    transition: all .15s;
}
.dpb-filter:hover:not(:disabled) { border-color: var(--dpb-red-lt); color: var(--dpb-red); }
.dpb-filter.active { background: var(--dpb-red); border-color: var(--dpb-red); color: #fff; }
.dpb-filter:disabled { opacity: .45; cursor: not-allowed; }

/* ══════════════ PRODUCT GRID ══════════════ */
.dpb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.dpb-loading, .dpb-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--dpb-muted);
    font-size: 15px;
}

.dpb-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--dpb-card);
    border: 1px solid var(--dpb-line);
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.dpb-product-card:hover { border-color: var(--dpb-red-lt); box-shadow: var(--dpb-shadow-h); transform: translateY(-2px); }
.dpb-product-card.selected { border-color: var(--dpb-red); box-shadow: 0 0 0 2px var(--dpb-red) inset; }
.dpb-product-card.oos { opacity: .6; }

.dpb-card-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(255,255,255,.9);
    border-radius: 0; padding: 2px 7px; font-size: 15px; line-height: 1.4;
    box-shadow: var(--dpb-shadow); z-index: 2;
}

.dpb-card-imgwrap {
    background: #fff;
    padding: 14px;
    border-bottom: 1px solid var(--dpb-line);
}
/* ★ THE ANTI-CROP FIX — full image, never cut off ★ */
.dpb-product-img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fff;
}

.dpb-card-body {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px 14px; flex: 1;
}
.dpb-card-name {
    margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
}
.dpb-sock {
    align-self: flex-start;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    padding: 2px 8px; border-radius: 0;
    background: #eef0f3; color: var(--dpb-muted);
}
.dpb-sock.intel { background: #e6f0fb; color: #0b6bcb; }
.dpb-sock.amd   { background: #fdeaea; color: #c0392b; }
.dpb-card-price { margin-top: auto; font-size: 17px; font-weight: 800; color: var(--dpb-red-dk); }

.dpb-select-btn {
    margin: 0 14px 14px;
    background: #fff0f3;
    color: var(--dpb-red-dk);
    border: 1px solid var(--dpb-red-lt);
    border-radius: 0;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.dpb-select-btn:hover:not(:disabled) { background: #ffe0e6; border-color: var(--dpb-red-dk); color: var(--dpb-red-dk); }
.dpb-select-btn.is-selected { background: var(--dpb-red); color: #fff; border-color: var(--dpb-red); }
.dpb-select-btn:disabled { background: #eef0f3; color: var(--dpb-muted); border-color: var(--dpb-line); cursor: not-allowed; }

/* ══════════════ PAGINATION ══════════════ */
.dpb-pagination {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
    gap: 6px; margin-top: 26px;
}
.dpb-page-btn {
    min-width: 38px; height: 38px; padding: 0 10px;
    background: var(--dpb-card); border: 1px solid var(--dpb-line);
    border-radius: 0; font-size: 14px; font-weight: 600; cursor: pointer;
    color: var(--dpb-ink); transition: all .15s;
}
.dpb-page-btn:hover:not(:disabled):not(.active) { border-color: var(--dpb-red-lt); color: var(--dpb-red); }
.dpb-page-btn.active { background: var(--dpb-red); border-color: var(--dpb-red); color: #fff; }
.dpb-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.dpb-page-dots { padding: 0 4px; color: var(--dpb-muted); }

/* ══════════════ SUCCESS SCREEN ══════════════ */
.dpb-screen { padding: 40px 16px; }
.dpb-success-wrap {
    max-width: 520px; margin: 0 auto; text-align: center;
    background: var(--dpb-card); border: 1px solid var(--dpb-line);
    border-radius: 0; padding: 40px 28px; box-shadow: var(--dpb-shadow);
}
.dpb-success-icon { font-size: 56px; line-height: 1; }
.dpb-success-wrap h2 { margin: 14px 0 8px; font-size: 24px; }
.dpb-success-wrap p { color: var(--dpb-muted); margin: 0 0 24px; }
.dpb-success-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dpb-btn-primary, .dpb-btn-secondary {
    text-decoration: none; border-radius: 0; padding: 13px 22px;
    font-size: 14.5px; font-weight: 700; transition: all .15s;
}
.dpb-btn-primary { background: var(--dpb-red); color: #fff; }
.dpb-btn-primary:hover { background: var(--dpb-red-dk); box-shadow: var(--dpb-shadow-h); }
.dpb-btn-secondary { background: #fff; color: var(--dpb-ink); border: 1px solid var(--dpb-line); }
.dpb-btn-secondary:hover { border-color: var(--dpb-red-lt); color: var(--dpb-red); }
.dpb-link-btn {
    display: inline-block; margin-top: 18px; background: none; border: none;
    color: var(--dpb-muted); font-size: 13.5px; cursor: pointer; text-decoration: underline;
}
.dpb-link-btn:hover { color: var(--dpb-red); }

/* ══════════════ TOAST ══════════════ */
.dpb-toast {
    position: fixed; left: 50%; bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: var(--dpb-ink); color: #fff;
    padding: 12px 22px; border-radius: 0;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    opacity: 0; pointer-events: none; z-index: 99999;
    transition: opacity .3s, transform .3s;
}
.dpb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
    .dpb-wizard { grid-template-columns: 1fr; }
    .dpb-sidebar { position: static; }
    .dpb-steps-nav { flex-direction: row; overflow-x: auto; }
    .dpb-step-item { flex: 0 0 auto; }
    .dpb-step-sel { display: none; }
}
@media (max-width: 480px) {
    .dpb-product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .dpb-product-img { height: 140px; }
    .dpb-step-header h2 { font-size: 19px; }
}

/* ══════════════════════════════════════════════════════════════
   ICONS + ONBOARDING (v1.1.0) — emoji replaced with line icons
   ══════════════════════════════════════════════════════════════ */
.dpb-i {
    display: inline-block;
    width: 1em; height: 1em;
    vertical-align: -0.14em;
    flex: 0 0 auto;
    stroke: currentColor;
}

/* Buttons / labels that now hold an icon + text */
.dpb-step-label { display: flex; align-items: center; gap: 8px; }
.dpb-step-ico   { font-size: 17px; color: var(--dpb-red); }
.dpb-step-item.active .dpb-step-ico { color: var(--dpb-red-dk); }
.dpb-num-check  { font-size: 16px; }

.dpb-step-header h2 { display: flex; align-items: center; gap: 10px; }
.dpb-title-ico  { font-size: 24px; color: var(--dpb-red); }

.dpb-filter     { display: inline-flex; align-items: center; gap: 6px; }
.dpb-chip-ico   { font-size: 14px; }

.dpb-card-badge { display: inline-flex; padding: 4px; color: var(--dpb-red); }
.dpb-card-badge .dpb-i { font-size: 16px; }

.dpb-select-btn { display: flex; align-items: center; justify-content: center; gap: 7px; }
.dpb-select-btn .dpb-i { font-size: 16px; }

.dpb-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dpb-checkout-btn .dpb-i { font-size: 18px; }

.dpb-btn-primary { display: inline-flex; align-items: center; gap: 7px; }
.dpb-btn-primary .dpb-i { font-size: 17px; }

.dpb-sum-remove .dpb-i { font-size: 14px; }

/* Search field with leading icon */
.dpb-search-wrap { position: relative; flex: 1 1 240px; min-width: 200px; display: flex; }
.dpb-search-wrap .dpb-search { flex: 1; padding-left: 40px; }
.dpb-search-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    font-size: 17px; color: var(--dpb-muted); pointer-events: none;
}

/* Empty state with icon */
.dpb-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dpb-empty-ico { font-size: 40px; color: var(--dpb-line); }

/* Success check icon (green) */
.dpb-success-icon { display: inline-flex; color: #16a34a; }
.dpb-success-icon .dpb-i { font-size: 60px; }

/* Profile chip in the step header */
.dpb-step-headtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dpb-profile-chip {
    font-size: 12.5px; font-weight: 600; color: var(--dpb-red-dk);
    background: #fff0f3; border: 1px solid var(--dpb-red-lt);
    padding: 5px 12px; border-radius: 0; white-space: nowrap;
}

/* ── Onboarding modal ── */
.dpb-ob-overlay {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 25, 40, .55); backdrop-filter: blur(3px);
    padding: 20px;
}
.dpb-ob-modal {
    background: var(--dpb-card);
    border-radius: 0;
    padding: 34px 30px 24px;
    width: 100%; max-width: 560px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    animation: dpb-ob-in .28s ease;
}
@keyframes dpb-ob-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.dpb-ob-icon {
    display: inline-flex; color: var(--dpb-red);
    background: #fff0f3; padding: 14px; border-radius: 0;
}
.dpb-ob-icon .dpb-i { font-size: 30px; }
.dpb-ob-title { margin: 16px 0 6px; font-size: 24px; }
.dpb-ob-sub   { margin: 0 0 22px; color: var(--dpb-muted); font-size: 14px; }
.dpb-ob-label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.dpb-ob-cards {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left;
}
.dpb-ob-cards-3 { grid-template-columns: repeat(3, 1fr); }
.dpb-ob-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--dpb-card); border: 1.5px solid var(--dpb-line);
    border-radius: 0; padding: 16px 14px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .1s; font: inherit;
}
.dpb-ob-card:hover { border-color: var(--dpb-red); box-shadow: var(--dpb-shadow-h); transform: translateY(-2px); }
.dpb-ob-card strong { font-size: 14.5px; color: var(--dpb-ink); }
.dpb-ob-card small  { font-size: 12px; color: var(--dpb-muted); }
.dpb-ob-cardicon { font-size: 26px; color: var(--dpb-red); margin-bottom: 4px; }
.dpb-ob-skip {
    margin-top: 22px; background: none; border: none; cursor: pointer;
    color: var(--dpb-muted); font-size: 13px; text-decoration: underline;
}
.dpb-ob-skip:hover { color: var(--dpb-red); }
#dpb-ob-back { margin-top: 16px; }

@media (max-width: 480px) {
    .dpb-ob-cards, .dpb-ob-cards-3 { grid-template-columns: 1fr 1fr; }
    .dpb-ob-modal { padding: 26px 18px 20px; }
    .dpb-ob-card { padding: 13px 11px; }
}

/* ══════════════ AI ADVISOR ══════════════ */
.dpb-ai-fab {
    position: fixed; left: 22px; bottom: 24px; z-index: 997;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--dpb-red); color: #fff;
    border: none; border-radius: 0; padding: 13px 20px;
    font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: transform .15s, box-shadow .15s;
}
.dpb-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.dpb-ai-fab .dpb-i { font-size: 18px; }

.dpb-ai-panel {
    position: fixed; left: 22px; bottom: 24px; z-index: 999;
    width: 360px; max-width: calc(100vw - 44px); height: 520px; max-height: calc(100vh - 48px);
    display: none; flex-direction: column;
    background: var(--dpb-card); border: 1px solid var(--dpb-line);
    border-radius: 0; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.dpb-ai-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: var(--dpb-red); color: #fff;
}
.dpb-ai-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.dpb-ai-title .dpb-i { font-size: 18px; }
.dpb-ai-close { background: rgba(255,255,255,.18); border: none; color: #fff; cursor: pointer;
    width: 30px; height: 30px; border-radius: 0; display: grid; place-items: center; }
.dpb-ai-close:hover { background: rgba(255,255,255,.32); }
.dpb-ai-close .dpb-i { font-size: 16px; }

.dpb-ai-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--dpb-bg); }
.dpb-ai-msg { max-width: 82%; padding: 10px 13px; border-radius: 0; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.dpb-ai-msg.bot  { align-self: flex-start; background: var(--dpb-card); border: 1px solid var(--dpb-line); border-bottom-left-radius: 4px; }
.dpb-ai-msg.user { align-self: flex-end; background: var(--dpb-red); color: #fff; border-bottom-right-radius: 4px; }
.dpb-ai-msg.thinking { color: var(--dpb-muted); font-style: italic; }

.dpb-ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--dpb-line); background: var(--dpb-card); }
.dpb-ai-input { flex: 1; padding: 11px 14px; border: 1px solid var(--dpb-line); border-radius: 0; font: inherit; font-size: 13.5px; outline: none; }
.dpb-ai-input:focus { border-color: var(--dpb-red-lt); box-shadow: 0 0 0 3px rgba(28,34,48,.08); }
.dpb-ai-send { flex: 0 0 auto; width: 42px; border: none; border-radius: 0; background: var(--dpb-red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.dpb-ai-send:hover { background: var(--dpb-red-dk); }
.dpb-ai-send .dpb-i { font-size: 18px; }

@media (max-width: 480px) {
    .dpb-ai-panel { left: 12px; right: 12px; bottom: 12px; width: auto; height: 70vh; }
    .dpb-ai-fab { left: 16px; bottom: 18px; }
}

/* ══════════════════════════════════════════════════════════════
   DESIGN REFRESH v1.2.0 — progress, complete prompt, polish, responsive
   ══════════════════════════════════════════════════════════════ */

/* ── Build progress bar ── */
.dpb-progress { height: 7px; background: var(--dpb-line); border-radius: 0; overflow: hidden; margin: 2px 0 6px; }
.dpb-progress-bar { height: 100%; width: 0; border-radius: 0;
    background: var(--dpb-red); transition: width .4s ease; }
.dpb-progress-label { font-size: 11.5px; color: var(--dpb-muted); margin: 0 0 14px; font-weight: 600; }

/* ── Premium buttons (gradient + lift) ── */
.dpb-checkout-btn:not(:disabled),
.dpb-btn-primary,
.dpb-ai-fab { background: var(--dpb-red); }
.dpb-checkout-btn:not(:disabled):hover,
.dpb-btn-primary:hover { background: var(--dpb-red-dk); }

/* ── Product cards: refined ── */
.dpb-product-card { border-width: 1.5px; }
.dpb-card-imgwrap { padding: 16px 16px 10px; }
.dpb-product-img { height: 168px; }
.dpb-card-badge {
    top: 10px; left: 10px; padding: 3px 9px; border-radius: 0;
    background: #fff0f3; color: var(--dpb-red-dk); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; box-shadow: none;
    align-items: center; gap: 4px;
}
.dpb-card-badge .dpb-i { font-size: 13px; }
.dpb-card-price { font-size: 18px; }
.dpb-select-btn { margin: 0 12px 12px; padding: 11px; border-radius: 0; }

/* ── Sidebar step polish ── */
.dpb-step-item { border-radius: 0; }
.dpb-step-item.active { box-shadow: none; }
.dpb-build-summary { border-radius: 0; }

/* ── Complete prompt modal ── */
.dpb-complete-modal { max-width: 460px; }
.dpb-complete-icon {
    display: inline-flex; color: #16a34a; background: #e8f7ee;
    padding: 16px; border-radius: 0;
}
.dpb-complete-icon .dpb-i { font-size: 34px; }
.dpb-complete-modal .dpb-ob-sub strong { color: var(--dpb-red-dk); font-size: 16px; }
.dpb-complete-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.dpb-complete-btns .dpb-btn-primary,
.dpb-complete-btns .dpb-btn-secondary {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer; padding: 14px; border-radius: 0; font: inherit; font-weight: 700; font-size: 15px;
}
.dpb-complete-btns .dpb-btn-secondary { border: 1px solid var(--dpb-line); }
.dpb-complete-btns .dpb-i { font-size: 18px; }

/* ══════════════ RESPONSIVE (refined) ══════════════ */
@media (min-width: 1500px) {
    .dpb-wrap { max-width: 1360px; }
}
/* Tablet / small laptop: sidebar on top, steps become a horizontal strip */
@media (max-width: 960px) {
    .dpb-wizard { grid-template-columns: 1fr; gap: 18px; }
    .dpb-sidebar { position: static; }
    .dpb-steps-nav { flex-direction: row; overflow-x: auto; padding: 8px; gap: 8px; -webkit-overflow-scrolling: touch; }
    .dpb-step-item { flex: 0 0 auto; flex-direction: column; align-items: center; gap: 6px; min-width: 92px; text-align: center; padding: 10px 8px; }
    .dpb-step-label { flex-direction: column; gap: 4px; font-size: 12px; }
    .dpb-step-sel, .dpb-opt-tag { display: none; }
    .dpb-build-summary { position: sticky; top: 12px; }
}
/* Phones */
@media (max-width: 600px) {
    .dpb-wrap { padding: 6px 10px 40px; }
    .dpb-toolbar { flex-direction: column; align-items: stretch; }
    .dpb-search-wrap { flex: 1 1 auto; }
    .dpb-filter-group { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .dpb-filter { flex: 0 0 auto; }
    .dpb-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dpb-product-img { height: 130px; }
    .dpb-card-name { font-size: 12.5px; min-height: 2.5em; }
    .dpb-card-price { font-size: 15px; }
    .dpb-select-btn { font-size: 12.5px; padding: 9px; }
    .dpb-step-header h2 { font-size: 18px; }
    .dpb-title-ico { font-size: 20px; }
    .dpb-step-headtop { gap: 8px; }
    .dpb-ob-title { font-size: 20px; }
}
@media (max-width: 360px) {
    .dpb-product-grid { grid-template-columns: 1fr; }
    .dpb-product-img { height: 160px; }
}

/* ══════════════════════════════════════════════════════════════
   v1.3.0 — HERO + SHOOTING STARS · MOBILE BOTTOM BAR · RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

.dpb-wrap { -webkit-tap-highlight-color: transparent; }
.dpb-wrap button, .dpb-wrap a { touch-action: manipulation; }

/* ── Hero band with starfield + shooting stars ── */
.dpb-hero {
    position: relative;
    overflow: hidden;
    margin: 6px 0 22px;
    padding: clamp(28px, 5vw, 44px) clamp(18px, 4vw, 42px);
    text-align: center;
    color: #fff;
    background:
        radial-gradient(900px 320px at 85% -30%, rgba(255, 92, 120, .38), transparent 70%),
        radial-gradient(700px 300px at 0% 120%, rgba(236, 31, 79, .30), transparent 70%),
        linear-gradient(130deg, #230611 0%, #47101f 55%, #6e1228 100%);
}

.dpb-hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.dpb-kicker {
    font-size: 11px; font-weight: 800; letter-spacing: .22em;
    color: #ffc4cf; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    padding: 6px 14px; border-radius: 0;
}
.dpb-hero h1 {
    margin: 0; color: #fff;
    font-family: var(--dpb-font-head);
    font-size: clamp(24px, 4.6vw, 40px);
    font-weight: 800; letter-spacing: -.01em;
}
.dpb-hero h1 em {
    font-style: normal; color: #ff5c78;
}
.dpb-hero p { margin: 0; max-width: 58ch; color: #f2ccd6; font-size: clamp(13px, 1.6vw, 15.5px); }

/* ── Wattage estimate line ── */
.dpb-watt-line {
    font-size: 12.5px; font-weight: 600; text-align: center;
    color: var(--dpb-muted); margin: -4px 0 10px; min-height: 1em;
}
.dpb-watt-line b { color: var(--dpb-red-dk); }
.dpb-watt-line span { color: #e5484d; font-weight: 700; }
.dpb-watt-line.bad span { display: inline-block; animation: dpb-pulse 1.6s ease-in-out infinite; }
@keyframes dpb-pulse { 50% { opacity: .55; } }

/* ── Onboarding fits short screens (iPhone SE etc.) ── */
.dpb-ob-modal {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ══════════════ MOBILE / TABLET (< 961px): BOTTOM BAR LAYOUT ══════════════ */
@media (max-width: 960px) {

    /* The sticky summary pinned over the grid was unusable — it becomes a
       fixed bottom bar instead: total + checkout always reachable. */
    .dpb-sidebar { position: static; }

    .dpb-build-summary {
        position: fixed;
        left: 0; right: 0; bottom: 0; z-index: 996;
        margin: 0;
        border-radius: 0;
        border: 1px solid var(--dpb-line);
        border-bottom: none;
        box-shadow: 0 -2px 12px rgba(0,0,0,.08);
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 12px;
        max-height: 82vh;
        overflow-y: auto;
    }
    /* collapsed by default: only header, total and checkout stay visible */
    .dpb-build-summary .dpb-progress,
    .dpb-build-summary .dpb-progress-label,
    .dpb-build-summary .dpb-summary-items,
    .dpb-build-summary .dpb-watt-line,
    .dpb-build-summary .dpb-checkout-note { display: none; }

    .dpb-build-summary h3 {
        margin: 0; cursor: pointer; user-select: none;
        display: inline-flex; align-items: center; gap: 7px;
        font-size: 14.5px;
    }
    .dpb-build-summary h3::after {
        content: ""; width: 9px; height: 9px; flex: 0 0 auto;
        border-right: 2px solid var(--dpb-red); border-bottom: 2px solid var(--dpb-red);
        transform: rotate(45deg) translateY(-2px);
        transition: transform .2s;
    }
    .dpb-build-summary.dpb-open h3::after { transform: rotate(-135deg) translateY(-1px); }

    .dpb-summary-total { margin: 0; font-size: 13.5px; white-space: nowrap; }
    .dpb-summary-total strong { font-size: 19px; }

    .dpb-checkout-btn {
        width: auto; padding: 12px 20px; font-size: 14px;
        border-radius: 0; white-space: nowrap;
    }

    /* expanded state reveals details between the header row and the edge */
    .dpb-build-summary.dpb-open .dpb-progress,
    .dpb-build-summary.dpb-open .dpb-progress-label,
    .dpb-build-summary.dpb-open .dpb-watt-line,
    .dpb-build-summary.dpb-open .dpb-checkout-note {
        display: block; grid-column: 1 / -1;
    }
    .dpb-build-summary.dpb-open .dpb-progress { margin-top: 4px; }
    .dpb-build-summary.dpb-open .dpb-summary-items {
        display: block; grid-column: 1 / -1;
        max-height: 36vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    }

    /* room so the bar never covers the theme footer */
    .dpb-wrap { padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important; }

    /* AI bubble floats above the bar */
    .dpb-ai-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
    .dpb-toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* ══════════════ PHONES (< 600px) ══════════════ */
@media (max-width: 600px) {
    .dpb-wrap { padding-left: 10px; padding-right: 10px; }

    .dpb-hero { border-radius: 0; margin-bottom: 16px; }

    /* steps strip stays thumb-scrollable */
    .dpb-steps-nav { scrollbar-width: none; }
    .dpb-steps-nav::-webkit-scrollbar { display: none; }

    .dpb-product-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

    .dpb-build-summary { padding-left: 12px; padding-right: 12px; gap: 8px; }
    .dpb-summary-total strong { font-size: 17px; }
    .dpb-checkout-btn { padding: 11px 16px; font-size: 13.5px; }
    .dpb-ai-fab { padding: 11px 16px; font-size: 13px; }
}

/* very narrow: single column cards */
@media (max-width: 374px) {
    .dpb-product-grid { grid-template-columns: 1fr; }
    .dpb-product-img { height: 170px; }
}

/* ══════════════ AI PICKS — "Add to Build" chips (v1.3.1) ══════════════ */
.dpb-ai-picks {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: -2px 0 4px;
}
.dpb-ai-pick {
    display: flex; align-items: center; gap: 9px;
    background: var(--dpb-card);
    border: 1.5px solid var(--dpb-line);
    border-radius: 0;
    padding: 7px 9px;
    cursor: pointer; text-align: left; font: inherit;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.dpb-ai-pick:hover { border-color: var(--dpb-red-lt); box-shadow: var(--dpb-shadow-h); transform: translateY(-1px); }
.dpb-ai-pick img {
    width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto;
    background: #fff; border: 1px solid var(--dpb-line); border-radius: 0;
}
.dpb-ai-pick-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.dpb-ai-pick-name {
    font-size: 12px; font-weight: 650; color: var(--dpb-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dpb-ai-pick-price { font-size: 11.5px; font-weight: 800; color: var(--dpb-red-dk); }
.dpb-ai-pick-btn {
    display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
    background: #fff0f3; color: var(--dpb-red-dk);
    border: 1px solid var(--dpb-red-lt); border-radius: 0;
    padding: 6px 11px; font-size: 11.5px; font-weight: 750; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.dpb-ai-pick:hover .dpb-ai-pick-btn { background: #ffe0e6; border-color: var(--dpb-red-dk); color: var(--dpb-red-dk); }
.dpb-ai-pick.done { opacity: .75; }
.dpb-ai-pick.done .dpb-ai-pick-btn { background: #16a34a; border-color: #16a34a; color: #fff; }
.dpb-ai-pick-btn .dpb-i { font-size: 13px; }
@media (max-width: 480px) {
    .dpb-ai-picks { max-width: 100%; }
    .dpb-ai-pick-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .dpb-ai-pick-btn { padding: 6px 9px; font-size: 11px; }
}

/* ══════════════ COMPATIBILITY TOGGLE (v1.3.2) ══════════════ */
/* Distinct from brand chips: green = "your build agrees with these results" */
.dpb-compat { color: var(--dpb-muted); }
.dpb-compat .dpb-chip-ico { color: #16a34a; }
.dpb-compat.on {
    background: #e8f7ee;
    border-color: #16a34a;
    color: #15803d;
}
.dpb-compat.on .dpb-chip-ico { color: #15803d; }
.dpb-compat:hover:not(.on) { border-color: #16a34a; color: #15803d; }

/* ══════════════ TITLE REVEAL ON HOVER (v1.3.4) ══════════════ */
/* Long names are clamped to 2 lines; hovering the card reveals the full title */
.dpb-product-card:hover .dpb-card-name,
.dpb-product-card:focus-within .dpb-card-name {
    -webkit-line-clamp: 99;
    line-clamp: 99;
}

/* ══════════════ v1.3.6 — STARS BACK · NEUTRAL HOVER · DOCKED AI SIDEBAR ══════════════ */

/* ── product hover: neutral (Shopify), red stays on the Select button only ── */
.dpb-product-card:hover {
    border-color: #c9ced8;
    box-shadow: none;
    transform: none;
}

/* ── hero starfield + shooting stars restored on the flat dark banner ── */
.dpb-hero::before, .dpb-hero::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background-repeat: repeat;
}
.dpb-hero::before {
    background-image:
        radial-gradient(1.4px 1.4px at 22px 34px, rgba(255,255,255,.95), transparent 55%),
        radial-gradient(1.1px 1.1px at 87px 12px, rgba(255,214,222,.85), transparent 55%),
        radial-gradient(1px 1px at 143px 71px, rgba(255,255,255,.75), transparent 55%);
    background-size: 171px 97px;
    animation: dpb-twinkle 3.4s ease-in-out infinite alternate;
    opacity: .8;
}
.dpb-hero::after {
    background-image:
        radial-gradient(1px 1px at 54px 84px, rgba(255,255,255,.65), transparent 55%),
        radial-gradient(1.2px 1.2px at 118px 41px, rgba(255,190,203,.7), transparent 55%),
        radial-gradient(.9px .9px at 9px 9px, rgba(255,255,255,.55), transparent 55%);
    background-size: 137px 113px;
    animation: dpb-twinkle 2.6s ease-in-out infinite alternate-reverse;
    opacity: .7;
}
@keyframes dpb-twinkle { from { opacity: .35; } to { opacity: .9; } }

.dpb-shoot {
    position: absolute;
    width: 150px; height: 2px;
    border-radius: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
    transform: rotate(-33deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
.dpb-shoot.s1 { top: 16%; left: -12%; animation: dpb-shootk 5.2s ease-in infinite; }
.dpb-shoot.s2 { top: 44%; left: -16%; animation: dpb-shootk 6.8s ease-in 2.1s infinite; }
.dpb-shoot.s3 { top: 68%; left: -10%; animation: dpb-shootk 7.5s ease-in 3.9s infinite; }
@keyframes dpb-shootk {
    0%   { transform: rotate(-33deg) translateX(0);     opacity: 0; }
    4%   { opacity: 1; }
    13%  { transform: rotate(-33deg) translateX(560px); opacity: 0; }
    100% { transform: rotate(-33deg) translateX(560px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .dpb-shoot, .dpb-hero::before, .dpb-hero::after { animation: none !important; }
}

/* ── desktop: DocBot docked as a right sidebar everyone can see ── */
@media (min-width: 961px) {
    /* collapsed state = slim vertical tab on the right edge */
    .dpb-ai-fab {
        left: auto; bottom: auto; right: 0; top: 50%;
        transform: translateY(-50%);
        writing-mode: vertical-rl;
        padding: 22px 12px;
        letter-spacing: .08em;
        box-shadow: -2px 0 10px rgba(0,0,0,.10);
    }
    .dpb-ai-fab:hover {
        transform: translateY(-50%);
        box-shadow: -3px 0 14px rgba(0,0,0,.14);
    }
    /* open state = full-height right panel */
    .dpb-ai-panel {
        left: auto; right: 0; top: 0; bottom: 0;
        width: 380px; max-width: 92vw;
        height: 100vh; max-height: none;
        border: 0; border-left: 1px solid var(--dpb-line);
        border-radius: 0;
        box-shadow: -6px 0 24px rgba(0,0,0,.08);
    }
    /* keep the panel clear of the theme's own admin bar edge cases */
    .dpb-ai-panel { top: 32px; height: calc(100vh - 32px); }
    body.admin-bar .dpb-ai-panel { top: 46px; height: calc(100vh - 46px); }

    /* push the builder content out from under the open sidebar */
    body.dpb-ai-open .dpb-wrap { margin-right: 380px; }
}
/* narrower desktops: slimmer panel */
@media (min-width: 961px) and (max-width: 1250px) {
    .dpb-ai-panel { width: 320px; }
    body.dpb-ai-open .dpb-wrap { margin-right: 320px; }
}

/* ══════════════ v1.3.8 — DRAWER POLISH ══════════════ */
/* Backdrop dims the page while the chat is open (all viewports) */
.dpb-ai-backdrop {
    position: fixed; inset: 0; z-index: 998;
    background: rgba(15, 17, 23, .45);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.dpb-ai-backdrop.show { opacity: 1; pointer-events: auto; }

/* Undo v1.3.7 content-shift experiment — drawer overlays again, cleanly */
@media (min-width: 961px) {
    body.dpb-ai-open .dpb-wrap { margin-right: 0; }
    .dpb-ai-panel {
        top: 0 !important; height: 100vh !important;
        width: 380px;
        box-shadow: -6px 0 24px rgba(0,0,0,.08);
    }
    body.admin-bar .dpb-ai-panel { top: 32px !important; height: calc(100vh - 32px) !important; }

    /* collapsed state: tidy horizontal tab flush with the right edge */
    .dpb-ai-fab {
        left: auto; right: 0; top: 50%; bottom: auto;
        transform: translateY(-50%);
        writing-mode: horizontal-tb;
        padding: 14px 18px;
        font-size: 13.5px;
        box-shadow: 0 4px 16px rgba(0,0,0,.12);
    }
    .dpb-ai-fab:hover {
        transform: translateY(-50%) translateX(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,.16);
    }
    body.admin-bar .dpb-ai-fab { top: calc(50% + 16px); }
}

/* ══════════════ v1.4.0 — WIN THE Z-FIGHT vs WPFront NOTICE BAR (z 99999) ══════════════ */
.dpb-ai-fab      { z-index: 100000 !important; }
.dpb-ai-backdrop { z-index: 100001 !important; }
.dpb-ai-panel    { z-index: 100002 !important; }
.dpb-toast       { z-index: 100003 !important; }

/* ══════════════ v1.5.0 — THINKING SPINNER ══════════════ */
.dpb-dots {
    display: inline-flex; gap: 5px; align-items: center; padding: 2px 0;
}
.dpb-dots i {
    width: 7px; height: 7px;
    border-radius: 50%;           /* circles OK — avatar-style accent, not a corner radius */
    background: var(--dpb-red);
    opacity: .3;
    animation: dpb-dot 1.2s ease-in-out infinite;
}
.dpb-dots i:nth-child(2) { animation-delay: .15s; }
.dpb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dpb-dot {
    0%, 60%, 100% { opacity: .25; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-4px); }
}

/* ══════════════ v1.5.2 — KILL ALL REMAINING WHITE HOVER ══════════════ */
/* No dpb element should ever flash white on hover. Neutral border only. */
.dpb-product-card:hover,
.dpb-ob-card:hover,
.dpb-ai-pick:hover {
    border-color: #c9ced8 !important;
    box-shadow: none !important;
    background: inherit !important;
    transform: none !important;
}
.dpb-select-btn:hover:not(:disabled),
.dpb-ai-pick:hover .dpb-ai-pick-btn {
    color: var(--dpb-red-dk) !important;
}
/* close / remove buttons: no white flash */
.dpb-ai-close:hover,
.dpb-sum-remove:hover {
    background: #f3f4f6 !important;
    color: inherit !important;
}
/* filters / page buttons: red text only, no background flash */
.dpb-filter:hover:not(:disabled),
.dpb-page-btn:hover:not(:disabled) {
    background: transparent !important;
}
/* hero kicker / h1 em: keep original colors on hover */
.dpb-hero:hover * { color: inherit !important; }
