/* ═══════════════════════════════════════════════════════════════
   Parts List  (pl-)
   Faithful translation of fr-results.jsx + fr-results-cards.jsx
   + fr-mobile-results.jsx
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens (matches FR object in fr-data.jsx) ── */
:root {
    --pl-green:    #10B981;
    --pl-green-dk: #0B3D2E;
    --pl-green-dk2:#14532D;
    --pl-green-lt: #34D399;
    --pl-ink:      #0F172A;
    --pl-ink2:     #64748B;
    --pl-bg:       #ffffff;
    --pl-bg2:      #F8FAFC;
    --pl-line:     #E2E8F0;
    --pl-warn:     #F59E0B;
    --pl-grad:     linear-gradient(135deg,#10B981 0%,#047857 100%);
    --pl-r-btn:    12px;
    --pl-r-card:   16px;
    --pl-r-modal:  24px;
    --nh-h:        68px;   /* desktop nav height */
    --nh-h-mob:    58px;   /* mobile nav height  */
}

/* box-sizing reset for all pl- elements */
.pl-ctx-bar, .pl-ctx-bar *,
.pl-mob-top, .pl-mob-top *,
.pl-mob-toolbar, .pl-mob-toolbar *,
.pl-mob-chips, .pl-mob-chips *,
.pl-page, .pl-page *,
.pl-modal-overlay, .pl-modal-overlay *,
.pl-compare-bar, .pl-compare-bar *,
.pl-sheet-overlay, .pl-sheet-overlay * { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════
   NAV OVERRIDE — solid dark green + sticky on parts page
   (matches RHeader in fr-results.jsx)
   ══════════════════════════════════════════════════════ */
body:has(.pl-page) .nh-header {
    background: var(--pl-green-dk) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
}
body:has(.pl-page) main { padding-top: 0 !important; }

/* ══════════════════════════════════════════════════════
   DESKTOP CONTEXT BAR
   (matches RVehicleBar in fr-results.jsx)
   sticky, white, below nav
   ══════════════════════════════════════════════════════ */
.pl-ctx-bar {
    position: sticky;
    top: var(--nh-h);
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--pl-line);
    box-shadow: 0 1px 0 rgba(15,23,42,.04);
    font-family: 'Geist','Inter',system-ui,sans-serif;
}
.pl-ctx-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.pl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pl-ink2);
    white-space: nowrap;
    flex-shrink: 0;
}
.pl-breadcrumb a { color: var(--pl-ink2); text-decoration: none; }
.pl-breadcrumb span { color: var(--pl-ink); font-weight: 600; }
.pl-vehicle-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 14px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.40);
    border-radius: 999px;
    flex-shrink: 0;
}
.pl-vehicle-pill span {
    font-size: 13px;
    color: var(--pl-green-dk2);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}
.pl-vehicle-modify {
    background: #fff;
    color: var(--pl-green-dk);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.pl-ctx-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-r-btn);
    padding: 0 14px;
    width: 320px;
    background: #fff;
    color: var(--pl-ink2);
    flex-shrink: 0;
}
.pl-ctx-search input {
    border: none;
    outline: none;
    padding: 11px 0;
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 13.5px;
    color: var(--pl-ink);
    width: 100%;
    background: transparent;
}

/* ══════════════════════════════════════════════════════
   MOBILE: vehicle bar (dark green, attached to nav)
   (matches the bottom section of MrHeader)
   ══════════════════════════════════════════════════════ */
.pl-mob-top {
    display: none; /* shown on mobile only */
    background: var(--pl-green-dk);
    padding: 0 16px 14px;
    position: sticky;
    top: var(--nh-h-mob);
    z-index: 39;
    font-family: 'Geist','Inter',system-ui,sans-serif;
}
.pl-mob-top-empty { padding-bottom: 0; }
.pl-mob-vehicle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 12px;
}
.pl-mob-vehicle span {
    flex: 1;
    font-size: 12.5px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-mob-modify {
    border: none;
    background: rgba(255,255,255,.16);
    color: #fff;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   MOBILE: sticky toolbar  (count + sort + filter buttons)
   (matches MrToolbar in fr-mobile-results.jsx)
   ══════════════════════════════════════════════════════ */
.pl-mob-toolbar {
    display: none; /* shown on mobile only */
    position: sticky;
    top: var(--nh-h-mob); /* adjusted in responsive section */
    z-index: 30;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pl-line);
    padding: 11px 16px;
    align-items: center;
    gap: 10px;
    font-family: 'Geist','Inter',system-ui,sans-serif;
}
.pl-mob-count { font-size: 13.5px; font-weight: 700; color: var(--pl-ink); }
.pl-mob-count span { color: var(--pl-ink2); font-weight: 500; }
.pl-mob-toolbar-actions { margin-left: auto; display: flex; gap: 8px; }
.pl-mob-trig {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid var(--pl-line);
    background: #fff;
    color: var(--pl-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
}
.pl-mob-trig.has-filters {
    background: var(--pl-green-dk);
    color: #fff;
    border-color: transparent;
}
.pl-mob-trig.has-filters svg path { stroke: #fff; }

/* ══════════════════════════════════════════════════════
   MOBILE: active chips row (horizontal scroll)
   ══════════════════════════════════════════════════════ */
.pl-mob-chips {
    display: none;
    padding: 10px 16px 0;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pl-mob-chips::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════════════
   PAGE BODY (sidebar + main)
   max-width 1440, padding 28px 40px 80px
   (matches rs.wrap in fr-results-cards.jsx)
   ══════════════════════════════════════════════════════ */
.pl-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 40px 120px;
    display: flex;
    gap: 36px;
    align-items: flex-start;
    background: var(--pl-bg2);
    color: var(--pl-ink);
    font-family: 'Geist','Inter',system-ui,sans-serif;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
   width 264, sticky top 70 (below ctx bar + nav)
   (matches RSidebar in fr-results.jsx)
   ══════════════════════════════════════════════════════ */
.pl-sidebar {
    width: 264px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: calc(var(--nh-h) + 62px + 8px); /* nav + ctx bar + gap */
    max-height: calc(100vh - var(--nh-h) - 62px - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--pl-line) transparent;
}
.pl-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.pl-sidebar-head h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--pl-ink);
    letter-spacing: -.01em;
}
.pl-reset-btn {
    border: none;
    background: none;
    color: var(--pl-green);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

/* ── Facet sections ── */
.pl-facet {
    border-bottom: 1px solid var(--pl-line);
    padding: 18px 4px;
}
.pl-facet-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pl-ink);
    user-select: none;
}
.pl-caret { color: var(--pl-ink2); flex-shrink: 0; transition: transform .15s; }
.pl-facet.is-open .pl-caret { transform: rotate(0deg); }
.pl-facet:not(.is-open) .pl-caret { transform: rotate(-90deg); }
.pl-facet-body { margin-top: 14px; display: flex; flex-direction: column; }
.pl-facet-scroll { max-height: 230px; overflow-y: auto; overflow-x: hidden; }

/* ── Compat toggle ── */
.pl-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pl-toggle {
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: var(--pl-line);
    position: relative;
    transition: background .15s;
    flex-shrink: 0;
    cursor: pointer;
}
.pl-toggle.is-on { background: var(--pl-green); }
.pl-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    transition: left .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.pl-toggle.is-on .pl-toggle-thumb { left: 19px; }
.pl-toggle-label { font-size: 13.5px; color: var(--pl-ink); }
.pl-toggle-sub { font-size: 12px; color: var(--pl-ink2); display: block; }

/* ── Check rows (category / brand / grade) ── */
.pl-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--pl-ink);
}
.pl-check-label { flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.pl-facet-count { font-size: 12px; color: var(--pl-ink2); opacity: .7; }
.pl-show-more {
    align-self: flex-start;
    margin-top: 6px;
    border: none;
    background: none;
    color: var(--pl-green);
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

/* ── Price slider ── */
.pl-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--pl-ink2);
    margin-bottom: 8px;
}
.pl-price-val { color: var(--pl-green-dk); font-weight: 700; }

/* ══════════════════════════════════════════════════════
   MAIN COLUMN
   ══════════════════════════════════════════════════════ */
.pl-main { flex: 1; min-width: 0; }

/* ── Desktop toolbar ── */
.pl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}
.pl-result-count {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.02em;
    color: var(--pl-ink);
}
.pl-result-for { color: var(--pl-ink2); font-weight: 500; }
.pl-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Sort dropdown (custom button, no <select>) ── */
.pl-sort-wrap { position: relative; }
.pl-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--pl-line);
    background: #fff;
    color: var(--pl-ink);
    padding: 10px 14px;
    border-radius: var(--pl-r-btn);
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}
.pl-sort-prefix { color: var(--pl-ink2); }
.pl-sort-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    box-shadow: 0 18px 50px -16px rgba(15,23,42,.3);
    overflow: hidden;
    min-width: 200px;
}
.pl-sort-opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    border: none;
    background: #fff;
    color: var(--pl-ink);
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    cursor: pointer;
}
.pl-sort-opt:hover { background: var(--pl-bg2); }
.pl-sort-opt.is-active { background: var(--pl-bg2); color: var(--pl-green-dk); font-weight: 600; }
.pl-sort-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
}

/* ── Segmented controls (density + view) ── */
.pl-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 11px;
    background: var(--pl-bg2);
    border: 1px solid var(--pl-line);
}
.pl-seg-btn {
    padding: 9px 12px;
    border: none;
    cursor: pointer;
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    background: transparent;
    color: var(--pl-ink2);
    border-radius: 8px;
    transition: background .12s, color .12s, box-shadow .12s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.pl-seg-btn.is-active {
    background: #fff;
    color: var(--pl-green-dk);
    box-shadow: 0 1px 2px rgba(15,23,42,.10);
}
.pl-seg-icon { padding: 9px; }

/* ── Desktop active filter chips ── */
.pl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
}
.pl-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px 6px 12px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.40);
    border-radius: 999px;
    font-size: 13px;
    color: var(--pl-green-dk2);
    font-weight: 500;
}
.pl-chip-x {
    border: none;
    background: none;
    color: var(--pl-green-dk2);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    opacity: .7;
    padding: 0;
}
.pl-chip-clear {
    border: none;
    background: none;
    color: var(--pl-ink2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    margin-left: 4px;
    padding: 0;
}

/* ── Empty state ── */
.pl-empty {
    padding: 80px 0;
    text-align: center;
    color: var(--pl-ink2);
}
.pl-empty-icon { margin-bottom: 14px; opacity: .5; }
.pl-empty h3 { font-size: 20px; color: var(--pl-ink); margin: 0 0 8px; }
.pl-empty p  { font-size: 14px; margin: 0 0 18px; }
.pl-empty-reset {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    border-radius: var(--pl-r-btn);
    background: var(--pl-green-dk);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ══════════════════════════════════════════════════════
   STRIPE PLACEHOLDER + CATEGORY ICON
   (matches RsImg in fr-results-cards.jsx)
   ══════════════════════════════════════════════════════ */
.pl-stripe {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(16,185,129,.05) 0 9px,
        rgba(16,185,129,.11) 9px 18px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pl-stripe svg { opacity: .18; }
.pl-stripe-tall { min-height: 340px; }

/* ══════════════════════════════════════════════════════
   SHARED ATOMS
   ══════════════════════════════════════════════════════ */
.pl-price-big  { font-size: 24px; font-weight: 700; color: var(--pl-green-dk); letter-spacing: -.02em; line-height: 1; }
.pl-price-ttc  { font-size: 10.5px; color: var(--pl-ink2); opacity: .75; }
.pl-mono       { font-family: 'Geist Mono',ui-monospace,monospace; font-size: 11.5px; color: var(--pl-ink2); }
.pl-dot        { opacity: .4; }

/* Grade badges (matches RsGradeBadge) */
.pl-grade {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pl-grade.is-recond  { background: rgba(4,120,87,.10);   color: #047857; border: 1px solid rgba(4,120,87,.30); }
.pl-grade.is-grade-a { background: rgba(16,185,129,.10);  color: #10B981; border: 1px solid rgba(16,185,129,.30); }
.pl-grade.is-grade-b { background: rgba(100,116,139,.08); color: #64748B; border: 1px solid rgba(100,116,139,.25); }
.pl-grade.is-solid   { color: #fff; border: none; }
.pl-grade.is-recond.is-solid  { background: #047857; }
.pl-grade.is-grade-a.is-solid { background: #10B981; }
.pl-grade.is-grade-b.is-solid { background: #64748B; }

/* Compat pill (matches RsCompat compact) */
.pl-compat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(16,185,129,.10);
    border: 1px solid rgba(16,185,129,.40);
    color: var(--pl-green-dk2);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Stock */
.stock-in  { color: #059669; }
.stock-low { color: #d97706; }
.stock-out { color: #64748B; }

/* Heart button (matches RsHeart) */
.pl-heart {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid var(--pl-line);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .12s, background .12s;
}
.pl-heart.is-on  { border-color: var(--pl-green); background: rgba(16,185,129,.10); }
.pl-heart-abs {
    position: absolute;
    top: 10px;
    right: 10px;
    /* rs-heart-pos: hides when compat is hovered */
    transition: opacity .18s ease, transform .18s ease;
}
.pl-heart-lg { width: 48px; height: 48px; border-radius: var(--pl-r-btn); }

/* Quick-view icon button */
.pl-qv-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--pl-r-btn);
    border: 1px solid var(--pl-line);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pl-ink);
    flex-shrink: 0;
}
.pl-qv-btn:hover { border-color: var(--pl-green); }

/* Cart icon button (card) */
.pl-cart-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--pl-r-btn);
    border: none;
    background: var(--pl-grad);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -8px rgba(16,185,129,.6);
}
.pl-cart-icon.is-added { background: #047857; }

/* Cart text button (list row) */
.pl-cart-row {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--pl-r-btn);
    border: none;
    background: var(--pl-grad);
    color: #fff;
    cursor: pointer;
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px -6px rgba(16,185,129,.6);
    white-space: nowrap;
}
.pl-cart-row.is-added { background: #047857; }

/* Compat expand badge (matches rs-compat-exp + hover CSS) */
.pl-compat-exp {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    cursor: default;
    background: #fff;
    border: 1px solid rgba(16,185,129,.55);
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(8,46,34,.12);
    transition: gap .2s ease, padding .2s ease;
}
.pl-compat-exp-lbl {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pl-green-dk2);
    transition: max-width .28s ease, opacity .2s ease, margin .2s ease;
}
.pl-compat-exp:hover { gap: 6px; padding: 5px 12px 5px 5px; }
.pl-compat-exp:hover .pl-compat-exp-lbl { max-width: 240px; opacity: 1; margin-left: 2px; }
/* hide heart when compat is hovered (rs-compat-pos:hover ~ rs-heart-pos) */
.pl-compat-exp:hover ~ .pl-heart-abs { opacity: 0; transform: scale(.85); pointer-events: none; }

/* ══════════════════════════════════════════════════════
   GRID VIEW
   (matches repeat(cols,1fr) gap:16 in fr-results.jsx)
   ══════════════════════════════════════════════════════ */
.pl-grid { display: grid; gap: 16px; }
.pl-grid-comfortable { grid-template-columns: repeat(3,1fr); }
.pl-grid-compact     { grid-template-columns: repeat(4,1fr); }

/* ── Card (matches RsCard in fr-results-cards.jsx) ── */
.pl-card {
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
    transition: border-color .15s, box-shadow .15s;
}
.pl-card.is-selected {
    border-color: var(--pl-green);
    box-shadow: 0 0 0 1px var(--pl-green);
}
.pl-card-img {
    position: relative;
    border-bottom: 1px solid var(--pl-line);
    cursor: pointer;
    height: 168px;
    overflow: hidden;
    flex-shrink: 0;
}
.pl-card-img > img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.pl-card:hover .pl-card-img > img { transform: scale(1.04); }
.pl-card-img > .pl-stripe { height: 168px; }

.pl-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.pl-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.pl-card-brand { font-size: 11.5px; color: var(--pl-ink2); font-weight: 500; }
.pl-card-oem   { font-size: 10px; color: var(--pl-ink2); opacity: .7; font-family: 'Geist Mono',ui-monospace,monospace; letter-spacing: .06em; white-space: nowrap; }
.pl-card-name  { font-size: 15.5px; font-weight: 600; margin: 0; color: var(--pl-ink); line-height: 1.32; letter-spacing: -.01em; }
.pl-card-name a { color: inherit; text-decoration: none; }
.pl-card-name a:hover { color: var(--pl-green-dk); }
.pl-card-vehicle { font-size: 12.5px; color: var(--pl-ink2); }
.pl-card-more { font-size: 11px; color: var(--pl-green); font-weight: 600; margin-left: 4px; }
.pl-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pl-line);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.pl-card-btns { display: flex; gap: 8px; }
.pl-cmp-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    cursor: pointer;
    font-size: 12px;
    color: var(--pl-ink2);
    user-select: none;
}

/* ══════════════════════════════════════════════════════
   LIST VIEW
   (matches RsRow grid in fr-results-cards.jsx)
   22px 96px 1fr 150px 130px auto
   ══════════════════════════════════════════════════════ */
.pl-list { display: flex; flex-direction: column; gap: 10px; }

.pl-row {
    display: grid;
    grid-template-columns: 22px 96px 1fr 120px 130px auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    padding: 12px;
    transition: border-color .12s;
}
.pl-row.is-selected { border-color: var(--pl-green); box-shadow: 0 0 0 1px var(--pl-green); }
.pl-row-cb { cursor: pointer; justify-self: center; }
.pl-row-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--pl-line);
    cursor: pointer;
    height: 72px;
}
.pl-row-img img { width: 100%; height: 72px; object-fit: cover; display: block; }
.pl-row-img .pl-stripe { height: 72px; }
.pl-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-row-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-row-name {
    font-size: 14.5px;
    font-weight: 600;
    margin: 2px 0 0;
    color: var(--pl-ink);
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-row-name:hover { color: var(--pl-green-dk); }
.pl-row-meta { font-size: 12px; color: var(--pl-ink2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pl-row-seller { font-size: 12px; color: var(--pl-ink2); }
.pl-row-price { text-align: right; }
.pl-row-price .pl-price-big { font-size: 21px; }
.pl-row-actions { display: flex; gap: 8px; align-items: center; }

/* ══════════════════════════════════════════════════════
   PAGINATION
   (matches RPager in fr-results.jsx)
   ══════════════════════════════════════════════════════ */
.pl-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pl-pager-btn {
    min-width: 40px;
    height: 40px;
    border-radius: var(--pl-r-btn);
    border: 1px solid var(--pl-line);
    background: #fff;
    color: var(--pl-ink);
    cursor: pointer;
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    transition: background .12s, color .12s, border-color .12s;
    user-select: none;
}
.pl-pager-btn.is-active { background: var(--pl-green-dk); color: #fff; border-color: var(--pl-green-dk); }
.pl-pager-btn:disabled  { color: var(--pl-line); cursor: not-allowed; }
.pl-pager-btn:not(:disabled):not(.is-active):hover { border-color: var(--pl-green); color: var(--pl-green-dk); }
.pl-pager-arrow { min-width: 40px; padding: 0; }
.pl-pager-ellipsis { width: 32px; text-align: center; color: var(--pl-ink2); font-size: 15px; user-select: none; }

/* ══════════════════════════════════════════════════════
   QUICK-VIEW MODAL
   (matches RsQuickView in fr-results-cards.jsx)
   fixed overlay, grid 1fr 1fr, border-radius 24
   ══════════════════════════════════════════════════════ */
.pl-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8,46,34,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.pl-modal {
    width: min(900px,96vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--pl-r-modal);
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 40px 100px -30px rgba(8,46,34,.6);
}
.pl-modal-img-pane {
    position: relative;
    border-right: 1px solid var(--pl-line);
    min-height: 360px;
    overflow: hidden;
}
.pl-modal-img-pane .pl-stripe { height: 100%; min-height: 360px; }
.pl-modal-img-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-modal-detail { padding: 28px; display: flex; flex-direction: column; }
.pl-modal-topline { display: flex; justify-content: space-between; align-items: flex-start; }
.pl-modal-brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pl-green);
}
.pl-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--pl-line);
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    color: var(--pl-ink2);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pl-modal-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 4px; color: var(--pl-ink); line-height: 1.15; }
.pl-modal-price-row { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; }
.pl-modal-price { font-size: 38px; font-weight: 700; color: var(--pl-green-dk); letter-spacing: -.03em; line-height: 1; }
.pl-modal-specs { border: 1px solid var(--pl-line); border-radius: 14px; overflow: hidden; }
.pl-spec-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 14px; }
.pl-spec-row:nth-child(even) { background: var(--pl-bg2); }
.pl-spec-k { font-size: 12px; color: var(--pl-ink2); }
.pl-spec-v { font-size: 12.5px; color: var(--pl-ink); font-weight: 500; }
.pl-modal-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 22px; }
.pl-modal-cart {
    flex: 1;
    height: 48px;
    border-radius: var(--pl-r-btn);
    border: none;
    background: var(--pl-grad);
    color: #fff;
    cursor: pointer;
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 24px -10px rgba(16,185,129,.6);
}
.pl-modal-fulllink {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--pl-ink2);
    text-decoration: none;
    font-weight: 500;
}
.pl-modal-fulllink:hover { color: var(--pl-green-dk); }

/* ══════════════════════════════════════════════════════
   COMPARE BAR
   (matches RsCompareBar in fr-results-cards.jsx)
   fixed bottom, dark green pill
   ══════════════════════════════════════════════════════ */
.pl-compare-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 22px;
    background: var(--pl-green-dk);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -20px rgba(8,46,34,.7);
    max-width: min(1100px,94vw);
    font-family: 'Geist','Inter',system-ui,sans-serif;
}
.pl-compare-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pl-green-lt);
    flex-shrink: 0;
    white-space: nowrap;
}
.pl-compare-items { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-compare-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    font-size: 12.5px;
    color: #fff;
}
.pl-compare-item span { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-compare-item button { border: none; background: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 15px; line-height: 1; }
.pl-compare-actions { display: flex; gap: 8px; margin-left: 4px; flex-shrink: 0; }
.pl-compare-clear {
    height: 40px; padding: 0 14px;
    border-radius: var(--pl-r-btn);
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}
.pl-compare-go {
    height: 40px; padding: 0 18px;
    border-radius: var(--pl-r-btn);
    border: none;
    background: #fff;
    color: var(--pl-green-dk);
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pl-compare-go:disabled { background: rgba(255,255,255,.3); cursor: not-allowed; }

/* ══════════════════════════════════════════════════════
   MOBILE BOTTOM SHEETS
   (matches MrSheet in fr-mobile-results.jsx)
   ══════════════════════════════════════════════════════ */
.pl-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(8,46,34,.5);
    display: flex;
    align-items: flex-end;
    font-family: 'Geist','Inter',system-ui,sans-serif;
}
.pl-sheet {
    width: 100%;
    max-height: 86%;
    background: #fff;
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pl-sheet-tall { max-height: 92%; }
.pl-sheet-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--pl-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.pl-sheet-header h3 { font-size: 17px; font-weight: 700; margin: 0; color: var(--pl-ink); }
.pl-sheet-close {
    width: 32px; height: 32px;
    border-radius: 9px;
    border: 1px solid var(--pl-line);
    background: #fff;
    cursor: pointer;
    font-size: 17px;
    color: var(--pl-ink2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pl-sheet-body { padding: 18px; overflow-y: auto; flex: 1; }
.pl-sheet-footer {
    padding: 14px;
    border-top: 1px solid var(--pl-line);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Sort sheet options */
.pl-sheet-sort-opt {
    width: 100%;
    text-align: left;
    padding: 14px 4px;
    border: none;
    border-bottom: 1px solid var(--pl-line);
    background: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--pl-ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pl-sheet-sort-opt.is-active { font-weight: 700; color: var(--pl-green-dk); }

/* Filter sheet section title */
.pl-sheet-section-title {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pl-ink);
    margin-bottom: 4px;
}

/* Mobile check rows */
.pl-mob-check {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    cursor: pointer;
    font-size: 14.5px;
    color: var(--pl-ink);
    border-bottom: 1px solid var(--pl-line);
}

/* Sheet footer buttons */
.pl-sheet-reset {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 18px;
    border-radius: var(--pl-r-btn);
    border: 1px solid var(--pl-line);
    background: #fff;
    color: var(--pl-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.pl-sheet-apply {
    flex: 1;
    height: 48px;
    border-radius: var(--pl-r-btn);
    border: none;
    background: var(--pl-grad);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .pl-grid-comfortable { grid-template-columns: repeat(2,1fr); }
    .pl-grid-compact     { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
    .pl-ctx-inner { padding: 12px 20px; }
    .pl-ctx-search { width: 220px; }
    .pl-page { padding: 20px 20px 120px; gap: 24px; }
    .pl-grid-comfortable { grid-template-columns: repeat(2,1fr); }
    .pl-grid-compact     { grid-template-columns: repeat(2,1fr); }
}

/* ── Tablet/mobile breakpoint: hide desktop sidebar, show mobile UI ── */
@media (max-width: 768px) {
    /* Show mobile elements */
    .pl-mob-top     { display: block; }
    .pl-mob-toolbar { display: flex; }
    .pl-mob-chips   { display: flex; }

    /* Hide desktop elements */
    .pl-ctx-bar  { display: none; }
    .pl-sidebar  { display: none; }
    .pl-toolbar .pl-seg,
    .pl-toolbar .pl-sort-wrap { display: none; }

    /* Mobile toolbar: sticks below vehicle bar (if shown) */
    /* We rely on js-free approach: vehicle bar is sticky,
       toolbar is also sticky and stacks naturally */

    /* Page body: remove flex gap, full width */
    .pl-page {
        padding: 14px 0 120px;
        display: block;
    }
    .pl-main { padding: 0 16px; }

    /* Mobile toolbar: result count + filter button (full width) */
    .pl-toolbar {
        margin-bottom: 12px;
        flex-wrap: nowrap;
    }
    .pl-result-count { font-size: 18px; }
    .pl-result-for { font-size: 16px; }

    /* Cards: 2 columns */
    .pl-grid-comfortable,
    .pl-grid-compact { grid-template-columns: repeat(2,1fr); gap: 10px; }

    /* List rows simplified */
    .pl-row {
        grid-template-columns: 72px 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .pl-row-cb     { display: none; }
    .pl-row-seller { display: none; }
    .pl-row-price  { grid-column: 2; }
    .pl-row-actions { grid-column: 3; grid-row: 1/3; }
    .pl-row-price .pl-price-big { font-size: 18px; }

    /* Modal: single column */
    .pl-modal { grid-template-columns: 1fr; }
    .pl-modal-img-pane { min-height: 220px; border-right: none; border-bottom: 1px solid var(--pl-line); }
    .pl-modal-img-pane .pl-stripe { min-height: 220px; }
    .pl-modal-name { font-size: 20px; }
    .pl-modal-price { font-size: 28px; }

    /* Compare bar */
    .pl-compare-items { display: none; }

    /* Mobile vehicle bar sticky top */
    .pl-mob-top { top: var(--nh-h-mob); }
    .pl-mob-toolbar { top: var(--nh-h-mob); }
}

@media (max-width: 480px) {
    /* Single column cards on very small screens */
    .pl-grid-comfortable,
    .pl-grid-compact { grid-template-columns: 1fr; gap: 10px; }

    /* MrCard layout: horizontal (matches fr-mobile-results.jsx MrCard) */
    .pl-card {
        flex-direction: row;
        min-height: 116px;
    }
    .pl-card-img {
        width: 116px;
        height: auto;
        min-height: 116px;
        flex-shrink: 0;
        border-right: 1px solid var(--pl-line);
        border-bottom: none;
    }
    .pl-card-img > img   { height: 100%; width: 116px; object-fit: cover; }
    .pl-card-img > .pl-stripe { height: 100%; min-height: 116px; }
    .pl-compat-exp       { display: none; } /* no hover expand on touch */
    .pl-heart-abs        { top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 8px; }
    .pl-card-body        { padding: 10px 12px; gap: 4px; }
    .pl-card-brand       { font-size: 11px; }
    .pl-card-name        { font-size: 14px; }
    .pl-card-vehicle     { font-size: 11.5px; }
    .pl-card-footer      { padding-top: 8px; }
    .pl-card-footer .pl-price-big { font-size: 19px; }
    .pl-cart-icon        { width: 36px; height: 36px; }

    /* hide condition badge in mobile cards */
    .pl-card-grade-text  { display: none; }

    /* show compare label on mobile as compact chip */
    .pl-cmp-label {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        color: var(--pl-ink2);
        border: 1px solid var(--pl-line);
        border-radius: 6px;
        padding: 3px 7px;
        cursor: pointer;
        user-select: none;
        margin-top: auto;
        width: fit-content;
    }
    .pl-cmp-text { display: none; }

    .pl-mob-toolbar { top: var(--nh-h-mob); }
}

/* ═══════════════════════════════════════════════════════════════
   Parts Catalog  (pc-)  ← kept for Detail page + legacy
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   Parts Catalog  (pc-)  ← kept for backwards compatibility
   ═══════════════════════════════════════════════════════════════ */
:root {
    --pc-green: #0f3d2e;
    --pc-green-strong: #1f6f5a;
    --pc-blue: #2f5d8c;
    --pc-blue-light: #4a7fb5;
    --pc-amber: #f59e0b;
    --pc-surface: #ffffff;
    --pc-surface-alt: #f5f7f9;
    --pc-border: #e5e7eb;
    --pc-text: #101828;
    --pc-text-muted: #667085;
    --pc-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
    --pc-shadow-strong: 0 22px 44px rgba(16, 24, 40, 0.1);
}

.pc-page,
.pc-page * {
    box-sizing: border-box;
}

.pc-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 24px 72px;
    color: var(--pc-text);
    font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

body {
    background: #f5f7f9;
}

.pc-page a {
    text-decoration: none;
}

.pc-hero,
.pc-toolbar,
.pc-active-filters,
.pc-sidebar-card,
.pc-results-head,
.pc-empty-state,
.pc-card {
    border: 1px solid var(--pc-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--pc-shadow);
}

.pc-hero,
.pc-toolbar,
.pc-sidebar-card,
.pc-results-head,
.pc-empty-state {
    border-radius: 24px;
}

.pc-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    padding: 28px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #071810 0%, #0f3d2e 45%, #162d52 100%);
    color: #fff;
}

.pc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.pc-hero::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 127, 181, 0.3), transparent 70%);
    pointer-events: none;
}

.pc-hero > * {
    position: relative;
    z-index: 1;
}

.pc-hero-copy {
    max-width: 760px;
}

.pc-hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pc-hero-stat {
    min-width: 132px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.pc-hero-stat strong {
    display: block;
    font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
}

.pc-hero-stat span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pc-kicker,
.pc-mini-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pc-kicker {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.pc-mini-kicker {
    color: var(--pc-text-muted);
    font-size: 11px;
}

.pc-hero h1,
.pc-results-head h2,
.pc-sidebar-head h2 {
    margin: 10px 0 0;
    font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.96;
}

.pc-hero p {
    max-width: 640px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.pc-hero-meta {
    min-width: 180px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: right;
    backdrop-filter: blur(12px);
}

.pc-hero-meta strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.pc-hero-meta span {
    display: block;
    margin-top: 6px;
    opacity: 0.72;
}

.pc-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    padding: 16px;
}

.pc-search-form {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
}

.pc-search-shell {
    display: grid;
    gap: 6px;
    flex: 1;
}

.pc-search-label,
.pc-field label {
    color: var(--pc-text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pc-search-shell input,
.pc-field input,
.pc-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    background: var(--pc-surface-alt);
    color: var(--pc-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pc-search-shell input:focus,
.pc-field input:focus,
.pc-field select:focus {
    border-color: rgba(47, 93, 140, 0.34);
    box-shadow: 0 0 0 4px rgba(74, 127, 181, 0.12);
    background: #fff;
    outline: none;
}

.pc-primary-action,
.pc-secondary-action,
.pc-filter-shortcut,
.pc-clear-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pc-primary-action {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid var(--pc-green);
    background: var(--pc-green);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 61, 46, 0.2);
}

.pc-primary-action::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.pc-primary-action:hover {
    background: var(--pc-green-strong);
    border-color: var(--pc-green-strong);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 61, 46, 0.24);
}

.pc-primary-action:hover::after {
    left: 150%;
}

.pc-secondary-action,
.pc-filter-shortcut,
.pc-clear-link {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--pc-border);
    background: #fff;
    color: var(--pc-text);
}

.pc-toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pc-active-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
}

.pc-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 61, 46, 0.06);
    color: var(--pc-green);
    font-size: 13px;
    font-weight: 700;
}

.pc-chip-clear {
    background: rgba(16, 24, 40, 0.05);
    color: var(--pc-text);
}

.pc-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.pc-sidebar {
    align-self: start;
    position: sticky;
    top: 20px;
}

.pc-sidebar-card {
    padding: 20px;
    border-radius: 28px;
}

.pc-sidebar-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.pc-filter-form {
    display: grid;
    gap: 14px;
}

.pc-field {
    display: grid;
    gap: 8px;
}

.pc-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pc-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.pc-results {
    min-width: 0;
}

.pc-results-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    padding: 18px 22px;
}

.pc-results-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pc-results-note {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(47, 93, 140, 0.06);
    color: var(--pc-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.pc-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border-radius: 24px;
    color: inherit;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

.pc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 61, 46, 0.18);
    box-shadow: var(--pc-shadow-strong);
}

.pc-card-media {
    background: #f7f8fa;
}

.pc-card-image,
.pc-card-placeholder {
    width: 100%;
    height: 240px;
}

.pc-card-image {
    display: block;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-card:hover .pc-card-image {
    transform: scale(1.04);
}

.pc-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-text-muted);
    font-weight: 700;
}

.pc-card-body {
    display: grid;
    gap: 12px;
    padding: 18px 18px 12px;
}

.pc-card-topline,
.pc-card-footer,
.pc-card-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pc-card-topline {
    align-items: start;
}

.pc-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pc-card-condition,
.pc-card-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pc-card-condition {
    background: rgba(15, 61, 46, 0.08);
    color: var(--pc-green);
}

.pc-card-stock.is-in {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.pc-card-stock.is-low {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    animation: pcLowStockPulse 1.8s ease-in-out infinite;
}

.pc-card-stock.is-out {
    background: rgba(107, 114, 128, 0.12);
    color: #6b7280;
}

.pc-card-sku {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: var(--pc-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.pc-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.pc-card-category,
.pc-card-fitment,
.pc-card p {
    color: var(--pc-text-muted);
}

.pc-card-category,
.pc-card-fitment {
    font-size: 13px;
    font-weight: 700;
}

.pc-card p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

.pc-card-footer {
    padding: 0 18px 18px;
}

.pc-card-footer strong {
    font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
}

.pc-card-link {
    color: var(--pc-green);
    font-size: 13px;
    font-weight: 800;
    transition: color 0.18s ease;
}

.pc-card:hover .pc-card-link {
    color: var(--pc-green-strong);
}

.pc-empty-state {
    padding: 42px 28px;
    text-align: center;
}

.pc-empty-state h2 {
    margin: 0 0 10px;
    font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
    font-size: 2.2rem;
}

.pc-empty-state p {
    margin: 0 0 18px;
    color: var(--pc-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   Part Detail  (pd-)  — faithful translation of fr-detail.jsx
   ═══════════════════════════════════════════════════════════════ */

/* Nav override: dark green + sticky */
body:has(.pd-page) .nh-header {
    background: var(--pl-green-dk) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
}
body:has(.pd-page) main { padding-top: 0 !important; }

/* ── Breadcrumb bar ── */
.pd-breadcrumb-bar {
    border-bottom: 1px solid var(--pl-line);
    background: #fff;
    font-family: 'Geist','Inter',system-ui,sans-serif;
}
.pd-breadcrumb-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 13px 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--pl-ink2);
    flex-wrap: wrap;
    box-sizing: border-box;
}
.pd-breadcrumb-inner a { color: var(--pl-ink2); text-decoration: none; }
.pd-breadcrumb-inner a:hover { color: var(--pl-green-dk); }
.pd-bc-sep { opacity: .4; }
.pd-bc-current {
    color: var(--pl-ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}
.pd-bc-back {
    margin-left: auto;
    color: var(--pl-green) !important;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Page wrapper ── */
.pd-page {
    background: var(--pl-bg2);
    min-height: 60vh;
    color: var(--pl-ink);
    font-family: 'Geist','Inter',system-ui,sans-serif;
    padding-bottom: 80px;
}
.pd-page, .pd-page * { box-sizing: border-box; }

/* ── Two-column shell ── */
.pd-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 40px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: flex-start;
}

/* ── Gallery column ── */
.pd-gallery-col {
    position: sticky;
    top: calc(var(--nh-h, 68px) + 20px);
    display: flex;
    flex-direction: column;
}
.pd-gallery-main {
    position: relative;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-r-card);
    overflow: hidden;
    background: #fff;
    aspect-ratio: 4 / 3;
}
.pd-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-gallery-placeholder,
.pd-stripe {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(16,185,129,.05) 0 9px,
        rgba(16,185,129,.11) 9px 18px
    );
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-stripe svg { opacity: .18; }

/* Compatibility badge (top-left of gallery) */
.pd-compat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16,185,129,.55);
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(8,46,34,.12);
    cursor: default;
    transition: gap .2s ease, padding .2s ease;
}
.pd-compat-badge-lbl {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pl-green-dk2);
    transition: max-width .28s ease, opacity .2s ease;
}
.pd-compat-badge:hover { gap: 6px; padding: 5px 12px 5px 5px; }
.pd-compat-badge:hover .pd-compat-badge-lbl { max-width: 200px; opacity: 1; }

/* Save button (top-right of gallery) */
.pd-gallery-save {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--pl-line);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .12s, background .12s;
    padding: 0;
}
.pd-gallery-save.is-on { border-color: var(--pl-green); background: rgba(16,185,129,.10); }

/* Thumbnails */
.pd-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.pd-thumb {
    flex: 1;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #fff;
    transition: border-color .12s, box-shadow .12s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.is-active {
    border-color: var(--pl-green);
    box-shadow: 0 0 0 1px var(--pl-green);
}

/* ── Buy box ── */
.pd-buybox {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pd-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -4px;
}
.pd-brand-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pl-green);
}
.pd-brand-sep { opacity: .4; font-size: 12px; color: var(--pl-ink2); }
.pd-oem-ref {
    font-size: 12.5px;
    color: var(--pl-ink2);
    opacity: .7;
    font-family: 'Geist Mono',ui-monospace,monospace;
}
.pd-part-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0;
    color: var(--pl-ink);
    line-height: 1.12;
}
.pd-condition-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pd-condition-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pl-green-dk2);
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(16,185,129,.10);
    border: 1px solid rgba(16,185,129,.40);
    white-space: nowrap;
}
.pd-stock-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.pd-stock-badge.stock-in  { background: rgba(16,185,129,.10); color: #059669; border: 1px solid rgba(16,185,129,.30); }
.pd-stock-badge.stock-low { background: rgba(245,158,11,.10); color: #d97706; border: 1px solid rgba(245,158,11,.30); }
.pd-stock-badge.stock-out { background: rgba(100,116,139,.08); color: #64748B; border: 1px solid rgba(100,116,139,.25); }

/* Compatibility card */
.pd-compat-card {
    border: 1px solid rgba(16,185,129,.40);
    background: rgba(16,185,129,.07);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.pd-compat-icon { flex-shrink: 0; margin-top: 1px; }
.pd-compat-title { font-size: 14.5px; font-weight: 600; color: var(--pl-green-dk2); }
.pd-compat-sub   { font-size: 12.5px; color: var(--pl-ink2); margin-top: 3px; }

/* Price + stock row */
.pd-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.pd-price-big {
    font-size: 42px;
    font-weight: 700;
    color: var(--pl-green-dk);
    letter-spacing: -.03em;
    line-height: 1;
}
.pd-price-note { font-size: 12.5px; color: var(--pl-ink2); margin-top: 6px; }
.pd-stock-right { text-align: right; flex-shrink: 0; }
.pd-stock-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}
.pd-stock-line.stock-in  { color: #059669; }
.pd-stock-line.stock-low { color: #d97706; }
.pd-stock-line.stock-out { color: #64748B; }
.pd-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
}
.pd-ships-note { font-size: 12.5px; color: var(--pl-ink2); margin-top: 6px; }

/* Qty + add to cart */
.pd-qty-actions { display: flex; gap: 12px; }
.pd-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-r-btn);
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.pd-qty-btn {
    width: 46px;
    height: 54px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--pl-ink);
    cursor: pointer;
    font-family: inherit;
    transition: background .1s;
}
.pd-qty-btn:hover { background: var(--pl-bg2); }
.pd-qty-val { width: 40px; text-align: center; font-size: 16px; font-weight: 600; color: var(--pl-ink); }
.pd-btn-add-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--pl-grad);
    color: #fff;
    border: none;
    padding: 16px 22px;
    border-radius: var(--pl-r-btn);
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 28px -12px rgba(16,185,129,.6);
    transition: opacity .15s;
    white-space: nowrap;
}
.pd-btn-add-cart:disabled { opacity: .6; cursor: not-allowed; }

/* Spinner for loading state */
.pd-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pd-spin .6s linear infinite;
    flex-shrink: 0;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

/* Ghost row (save + back) */
.pd-ghost-row { display: flex; gap: 12px; }
.pd-btn-ghost {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--pl-line);
    background: #fff;
    color: var(--pl-ink);
    padding: 14px 18px;
    border-radius: var(--pl-r-btn);
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .12s;
}
.pd-btn-ghost:hover { border-color: var(--pl-green); color: var(--pl-ink); }
.pd-btn-ghost.is-fav { border-color: var(--pl-green); background: rgba(16,185,129,.06); }

/* Trust grid */
.pd-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.pd-trust-card {
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
}
.pd-trust-label { font-size: 11px; color: var(--pl-ink2); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pd-trust-value { font-size: 13.5px; color: var(--pl-ink); font-weight: 600; }

/* ── Tabs ── */
.pd-tabs-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 40px 0;
}
.pd-tabs-inner {
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-r-card);
    overflow: hidden;
    background: #fff;
}
.pd-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--pl-line);
    background: var(--pl-bg2);
}
.pd-tab-btn {
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-ink2);
    cursor: pointer;
    transition: color .12s, background .12s;
    white-space: nowrap;
}
.pd-tab-btn.is-active {
    background: #fff;
    border-bottom-color: var(--pl-green);
    color: var(--pl-green-dk);
}
.pd-tab-content { padding: 28px; }
.pd-desc-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pl-ink2);
    margin: 0;
    max-width: 760px;
}

/* Compatibility tab */
.pd-fit-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--pl-green-dk2);
    font-weight: 600;
}
.pd-fit-list { display: flex; flex-direction: column; }
.pd-fit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--pl-line);
    font-size: 14px;
    color: var(--pl-ink);
}
.pd-fit-diamond {
    width: 7px;
    height: 7px;
    background: var(--pl-green);
    border-radius: 2px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Warranty tab */
.pd-warr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
}
.pd-warr-title { font-size: 15px; font-weight: 700; color: var(--pl-ink); margin: 0 0 8px; }
.pd-warr-body  { font-size: 13.5px; line-height: 1.6; color: var(--pl-ink2); margin: 0; }

/* ── Similar parts ── */
.pd-similar-section {
    max-width: 1320px;
    margin: 56px auto 0;
    padding: 0 40px;
}
.pd-similar-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 20px;
    color: var(--pl-ink);
}
.pd-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.pd-sim-card {
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-r-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
}
.pd-sim-card:hover { border-color: var(--pl-green); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.pd-sim-img {
    position: relative;
    border-bottom: 1px solid var(--pl-line);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.pd-sim-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.pd-sim-card:hover .pd-sim-img img { transform: scale(1.04); }
.pd-sim-img .pd-stripe { height: 100%; }
.pd-sim-compat { position: absolute; top: 8px; left: 8px; }
.pd-sim-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pd-sim-brand { font-size: 11.5px; color: var(--pl-ink2); }
.pd-sim-name  { font-size: 15.5px; font-weight: 600; margin: 0; color: var(--pl-ink); line-height: 1.32; letter-spacing: -.01em; }
.pd-sim-price { font-size: 20px; font-weight: 700; color: var(--pl-green-dk); letter-spacing: -.02em; margin-top: 4px; }

/* ── Loading / not-found states ── */
.pd-loading {
    padding: 80px 40px;
    text-align: center;
    color: var(--pl-ink2);
    font-family: 'Geist','Inter',system-ui,sans-serif;
    font-size: 15px;
    background: var(--pl-bg2);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-not-found {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
    font-family: 'Geist','Inter',system-ui,sans-serif;
}
.pd-not-found h1 { font-size: 28px; color: var(--pl-ink); margin: 0 0 12px; }
.pd-not-found p  { font-size: 15px; color: var(--pl-ink2); margin: 0 0 24px; }
.pd-btn-primary-sm {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: var(--pl-r-btn);
    background: var(--pl-green-dk);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Geist','Inter',system-ui,sans-serif;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pd-shell { grid-template-columns: 1fr; gap: 24px; padding: 20px 24px; }
    .pd-gallery-col { position: static; }
    .pd-tabs-wrap { padding: 8px 24px 0; }
    .pd-similar-section { padding: 0 24px; }
    .pd-similar-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pd-breadcrumb-inner { padding: 12px 16px; }
    .pd-shell { padding: 16px; }
    .pd-tabs-wrap { padding: 8px 16px 0; }
    .pd-similar-section { padding: 0 16px; margin-top: 32px; }
    .pd-similar-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pd-part-title { font-size: 24px; }
    .pd-price-big { font-size: 32px; }
    .pd-warr-grid { grid-template-columns: 1fr; }
    .pd-bc-back { display: none; }
    .pd-tab-btn { padding: 13px 16px; font-size: 13px; }
}
@media (max-width: 480px) {
    .pd-similar-grid { grid-template-columns: 1fr; }
    .pd-trust-grid { grid-template-columns: 1fr; }
    .pd-ghost-row { flex-direction: column; }
    .pd-part-title { font-size: 22px; }
}

@keyframes pcLowStockPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.08);
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-primary-action,
    .pc-card,
    .pc-card-image,
    .pc-card-stock.is-low {
        transition: none;
        animation: none;
        transform: none;
    }
}

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

    .pc-sidebar {
        position: static;
    }

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

}

@media (max-width: 760px) {
    .pc-page {
        padding: 18px 16px 56px;
    }

    .pc-hero,
    .pc-toolbar,
    .pc-sidebar-card,
    .pc-results-head,
    .pc-empty-state {
        padding: 18px;
    }

    .pc-hero,
    .pc-toolbar,
    .pc-search-form,
    .pc-field-grid,
    .pc-filter-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .pc-hero {
        gap: 18px;
    }

    .pc-hero-stats {
        gap: 10px;
    }

    .pc-hero-stat {
        min-width: calc(50% - 5px);
    }

    .pc-hero-meta {
        min-width: 0;
        text-align: left;
    }

    .pc-toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .pc-toolbar-actions > * {
        flex: 1 1 0;
    }

    .pc-grid {
        grid-template-columns: 1fr;
    }

    .pc-card-image,
    .pc-card-placeholder {
        height: 220px;
    }

    .pc-results-meta {
        align-items: flex-start;
    }
}

/* ── Catalog card favorite overlay ───────────────────────── */

.pc-card-wrap {
    position: relative;
}

.pc-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.15s, background 0.15s, transform 0.1s;
    padding: 0;
}

.pc-card-fav svg {
    width: 14px;
    height: 14px;
}

.pc-card-fav:hover {
    color: #ef4444;
    background: #fff;
    transform: scale(1.1);
}

.pc-card-fav.is-active {
    color: #ef4444;
    background: #fff;
    border-color: #fca5a5;
}

/* ── Part detail favorite button ─────────────────────────── */

.pd-fav-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.pd-fav-btn svg {
    width: 20px;
    height: 20px;
}

.pd-fav-btn:hover {
    color: #ef4444;
    border-color: #fca5a5;
}

.pd-fav-btn.is-active {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fca5a5;
}
