/* SP Catalog Plugin CSS */

/* Vehicle Selector */
.sp-vehicle-selector { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(44,53,57,.08); }
.sp-vs-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #e0e2e7; }
.sp-vs-tab { background: none; border: none; padding: 10px 20px; font-size: 15px; font-family: inherit; color: #8a9299; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.sp-vs-tab.active { color: #1B6FE4; border-bottom-color: #1B6FE4; font-weight: 600; }
.sp-vs-panel { display: none; }
.sp-vs-panel.active { display: block; }
.sp-vs-dropdowns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .sp-vs-dropdowns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sp-vs-dropdowns { grid-template-columns: 1fr; } }
.sp-vs-select { width: 100%; padding: 10px 12px; border: 1.5px solid #e0e2e7; border-radius: 8px; font-size: 14px; font-family: inherit; color: #2C3539; background: #fff; cursor: pointer; }
.sp-vs-select:disabled { opacity: .5; cursor: not-allowed; }
.sp-vs-select:focus { outline: none; border-color: #1B6FE4; }
.sp-search-form { display: flex; gap: 10px; }
.sp-search-input { flex: 1; padding: 10px 16px; border: 1.5px solid #e0e2e7; border-radius: 8px; font-size: 15px; font-family: inherit; color: #2C3539; }
.sp-search-input:focus { outline: none; border-color: #1B6FE4; }

/* Buttons */
.sp-btn-primary { background: #1B6FE4; color: #fff; border: none; padding: 11px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .2s; }
.sp-btn-primary:hover { background: #1558BE; }
.sp-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.sp-btn-sm { background: #1B6FE4; color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-family: inherit; cursor: pointer; }
.sp-btn-atc { background: #1B6FE4; color: #fff; border: none; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .2s; white-space: nowrap; }
.sp-btn-atc:hover { background: #1558BE; }
.sp-btn-atc:disabled { opacity: .6; cursor: not-allowed; }

/* Catalog layout */
.sp-catalog-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.sp-catalog-layout { display: grid !important; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 20px; }
@media (max-width: 900px) { .sp-catalog-layout { grid-template-columns: 1fr; } .sp-catalog-sidebar { display: none; } }

/* Category tabs */
.sp-category-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.sp-cat-tab { background: #F7F8FA; border: 1.5px solid #e0e2e7; color: #2C3539; padding: 5px 12px; border-radius: 16px; font-size: 12px; font-family: inherit; cursor: pointer; transition: all .2s; white-space: nowrap; }
.sp-cat-tab.active, .sp-cat-tab:hover { background: #1B6FE4; border-color: #1B6FE4; color: #fff; }

/* Sidebar */
.sp-catalog-sidebar { }
.sp-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,31,61,.45); z-index: 999; }
.sp-sidebar-overlay.visible { display: block; }
.sp-filter-group { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(44,53,57,.06); }
.sp-filter-heading { font-size: 13px; font-weight: 700; color: #2C3539; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.sp-filter-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.sp-filter-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2C3539; cursor: pointer; padding: 3px 0; }
.sp-filter-item input { accent-color: #1B6FE4; }
.sp-filter-count { margin-left: auto; font-size: 11px; color: #8a9299; background: #F7F8FA; padding: 1px 6px; border-radius: 10px; }
.sp-price-range { display: flex; align-items: center; gap: 8px; }
.sp-price-input { width: 70px; padding: 6px 8px; border: 1.5px solid #e0e2e7; border-radius: 6px; font-size: 13px; }

/* Parts grid */
.sp-parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .sp-parts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .sp-parts-grid { grid-template-columns: 1fr; } }
.sp-part-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(44,53,57,.07); transition: box-shadow .2s, transform .2s; }
.sp-part-card:hover { box-shadow: 0 8px 24px rgba(44,53,57,.14); transform: translateY(-2px); }
.sp-part-card-img { background: #F7F9FC; }
.sp-part-card-img svg { width: 100%; display: block; }
.sp-part-card-body { padding: 14px; }
.sp-part-card-mfr { font-size: 11px; color: #1B6FE4; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; min-height: 20px; display: flex; align-items: center; }
.sp-card-brand-logo { height: 20px; max-width: 80px; object-fit: contain; display: block; }
.sp-part-card-name { font-size: 14px; font-weight: 600; color: #2C3539; margin: 0 0 4px; line-height: 1.35; }
.sp-part-card-name a { color: inherit; text-decoration: none; }
.sp-part-card-name a:hover { color: #1B6FE4; }
.sp-part-card-sku { font-size: 12px; color: #8a9299; margin: 0 0 12px; }
.sp-part-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-part-card-price { font-size: 16px; font-weight: 700; color: #0F1F3D; }

/* Loading / empty / error */
.sp-loading, .sp-empty, .sp-error { padding: 48px; text-align: center; color: #8a9299; font-size: 15px; grid-column: 1 / -1; }

/* Search meta */
.sp-search-meta { font-size: 14px; color: #8a9299; margin: 0 0 16px; }

/* Pagination */
.sp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.sp-page-btn { background: #fff; border: 1.5px solid #e0e2e7; color: #2C3539; padding: 7px 14px; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all .2s; font-family: inherit; }
.sp-page-btn:hover, .sp-page-btn.active { background: #1B6FE4; border-color: #1B6FE4; color: #fff; }

/* Part Detail Page */
.sp-container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.sp-pdp { padding: 32px 16px; }
.sp-breadcrumb { font-size: 13px; color: #8a9299; margin-bottom: 24px; }
.sp-breadcrumb a { color: #8a9299; text-decoration: none; }
.sp-breadcrumb a:hover { color: #1B6FE4; }
.sp-pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 768px) { .sp-pdp-grid { grid-template-columns: 1fr; gap: 24px; } }
.sp-part-image-placeholder svg { width: 100%; height: auto; border-radius: 12px; }
.sp-pdp-manufacturer { font-size: 12px; color: #1B6FE4; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.sp-pdp-title { font-size: 26px; font-weight: 700; color: #2C3539; margin: 0 0 20px; line-height: 1.3; font-family: "Barlow Condensed", sans-serif; }
.sp-pdp-meta { border: 1px solid #e0e2e7; border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.sp-pdp-meta-row { display: flex; padding: 10px 16px; border-bottom: 1px solid #e0e2e7; font-size: 14px; }
.sp-pdp-meta-row:last-child { border-bottom: none; }
.sp-pdp-meta-row span { color: #8a9299; width: 120px; flex-shrink: 0; }
.sp-pdp-meta-row strong { color: #2C3539; }
.sp-pdp-price { margin-bottom: 24px; }
.sp-pdp-price-value { font-size: 32px; font-weight: 700; color: #0F1F3D; }
.sp-pdp-price-eur { font-size: 14px; color: #8a9299; margin-left: 12px; }
.sp-pdp-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.sp-qty-wrap { display: flex; align-items: center; border: 1.5px solid #e0e2e7; border-radius: 8px; overflow: hidden; }
.sp-qty-btn { background: #F7F8FA; border: none; width: 36px; height: 40px; font-size: 18px; cursor: pointer; color: #2C3539; transition: background .2s; }
.sp-qty-btn:hover { background: #e0e2e7; }
.sp-qty-input { width: 48px; height: 40px; border: none; text-align: center; font-size: 15px; font-family: inherit; }
.sp-trust-badges { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #8a9299; }
.sp-trust-badges span { background: #F7F8FA; padding: 4px 10px; border-radius: 4px; }
.sp-atc-message { padding: 10px 16px; border-radius: 8px; font-size: 14px; margin-top: 12px; }
.sp-atc-success { background: #e8f5e9; color: #2e7d32; }

/* Catalog page wrapper */
.sp-catalog-page { min-height: 60vh; }

/* PDP gallery */
.sp-pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.sp-pdp-main-img-wrap { border: 1.5px solid #CBD5E1; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; min-height: 300px; overflow: hidden; }
.sp-pdp-photo { width: 100%; max-height: 380px; object-fit: contain; padding: 12px; display: block; }
.sp-pdp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-pdp-thumb { width: 68px; height: 68px; object-fit: contain; padding: 4px; border: 2px solid #CBD5E1; border-radius: 6px; background: #fff; cursor: pointer; transition: border-color .18s; }
.sp-pdp-thumb.active, .sp-pdp-thumb:hover { border-color: #1B6FE4; }
.sp-part-card-img { background: #F7F9FC !important; }
.sp-part-card-mfr { color: #1B6FE4 !important; }
.sp-part-card-price { color: #0F1F3D !important; }

/* Vehicle banner */
.sp-vehicle-banner {
    background: #EBF2FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 12px 18px;
}
.sp-vehicle-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0F1F3D;
}
.sp-vehicle-banner-inner svg { color: #1B6FE4; flex-shrink: 0; }
.sp-vehicle-banner-inner span { flex: 1; }
.sp-vehicle-change {
    font-size: 12px;
    font-weight: 500;
    color: #1B6FE4;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #1B6FE4;
    border-radius: 4px;
    white-space: nowrap;
    transition: background .15s;
}
.sp-vehicle-change:hover { background: #1B6FE4; color: #fff; }

/* Sidebar filter buttons (replaces radio inputs) */
.sp-filter-list { display: flex; flex-direction: column; gap: 2px; }
.sp-filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 10px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #1E293B;
    text-align: left;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.sp-filter-btn:hover { background: #F1F5F9; color: #0F1F3D; }
.sp-filter-btn.active {
    background: #EBF2FF;
    color: #1B6FE4;
    font-weight: 600;
}
.sp-filter-btn.active .sp-filter-count { color: #1B6FE4; }
.sp-filter-count {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 400;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Hide manufacturer filter group when viewing by vehicle (cats only) */
.sp-catalog-wrap[data-ktype]:not([data-ktype="0"]) #sp-filter-group-mfr { display: none; }

/* OEM groups */
.sp-oem-group { margin-bottom: 20px; }
.sp-oem-group:last-child { margin-bottom: 0; }
.sp-oem-group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748B;
    margin: 0 0 8px;
}
.sp-oem-tag--oe { background: #F0FDF4 !important; border-color: #BBF7D0 !important; }
.sp-oem-tag--oe em { color: #16A34A !important; }

/* Vehicle compatibility table */
.sp-compat-count {
    font-size: 13px;
    font-weight: 400;
    color: #64748B;
    margin-left: 8px;
}
.sp-compat-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}
.sp-compat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}
.sp-compat-table thead tr {
    background: #F7F9FC;
}
.sp-compat-table th {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    white-space: nowrap;
}
.sp-compat-table td {
    padding: 9px 14px;
    color: #1E293B;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: top;
}
.sp-compat-table tbody tr:last-child td { border-bottom: none; }
.sp-compat-table tbody tr:hover td { background: #F7F9FC; }
.sp-compat-table td:first-child { font-weight: 600; color: #0F1F3D; }
.sp-compat-table td:nth-child(2) { color: #334155; }

/* ── PDP v4 ─────────────────────────────────────────────── */
.sp-pdp { max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px; }

/* Brand bar */
.sp-pdp-brand-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sp-pdp-manufacturer { font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: #1B6FE4; }
.sp-pdp-brand-logo-link { display: flex; align-items: center; text-decoration: none; }
.sp-pdp-brand-logo { height: 28px; max-width: 100px; object-fit: contain; display: block; }
.sp-pdp-cat-badge { font-size: 11px; font-weight: 600; background: #EBF2FF; color: #1558BE;
    border-radius: 4px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .06em; }

/* Title */
.sp-pdp-title { font-size: 26px; font-weight: 700; color: #0F1F3D; margin: 0 0 10px;
    line-height: 1.25; font-family: 'Barlow Condensed', sans-serif; }

/* Part number row */
.sp-pdp-id-row { display: flex; align-items: center; gap: 6px; font-size: 13px;
    color: #64748B; margin-bottom: 10px; flex-wrap: wrap; }
.sp-pdp-id-label { color: #94A3B8; }
.sp-pdp-id-value { color: #1E293B; font-weight: 600; font-family: monospace; font-size: 13px; }
.sp-pdp-id-sep { color: #CBD5E1; }

/* Fitting position badge */
.sp-pdp-badge-row { margin-bottom: 12px; }
.sp-pdp-fit-badge { display: inline-block; background: #FFF7ED; border: 1px solid #FED7AA;
    color: #C2410C; border-radius: 4px; padding: 3px 10px; font-size: 12px; font-weight: 600; }

/* Price block */
.sp-pdp-price-block { background: #F7F9FC; border: 1px solid #E2E8F0; border-radius: 10px;
    padding: 16px 20px; margin-bottom: 20px; }
.sp-pdp-price-value { font-size: 36px; font-weight: 800; color: #0F1F3D;
    font-family: 'Barlow Condensed', sans-serif; letter-spacing: -.01em; margin-bottom: 8px; }
.sp-pdp-stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.sp-in-stock  { color: #16A34A; }
.sp-out-stock { color: #DC2626; }

/* Actions */
.sp-pdp-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.sp-qty-wrap { display: flex; align-items: center; border: 1.5px solid #CBD5E1;
    border-radius: 8px; overflow: hidden; background: #fff; }
.sp-qty-btn { width: 36px; height: 44px; background: none; border: none; font-size: 18px;
    color: #334155; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-qty-btn:hover { background: #F1F5F9; }
.sp-qty-input { width: 48px; height: 44px; border: none; border-left: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0; text-align: center; font-size: 15px; font-weight: 600;
    color: #0F1F3D; outline: none; }
.sp-btn-primary { height: 44px; padding: 0 24px; background: #1B6FE4; color: #fff;
    border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: background .15s; flex: 1; }
.sp-btn-primary:hover { background: #1558BE; }
.sp-atc-message { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 8px; }
.sp-atc-success { background: #DCFCE7; color: #16A34A; }
.sp-atc-error   { background: #FEE2E2; color: #DC2626; }

/* Trust strip */
.sp-pdp-trust { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 0 0;
    border-top: 1px solid #E2E8F0; }
.sp-pdp-trust span { display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #64748B; font-weight: 500; }
.sp-pdp-trust svg { color: #1B6FE4; flex-shrink: 0; }

/* Specs box (below image) */
.sp-pdp-specs-box { margin-top: 20px; border: 1px solid #E2E8F0; border-radius: 8px; overflow: hidden; }
.sp-pdp-specs-title { font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #64748B; padding: 10px 14px 8px;
    background: #F7F9FC; border-bottom: 1px solid #E2E8F0; margin: 0; }
.sp-pdp-specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sp-pdp-specs-table tr:not(:last-child) td { border-bottom: 1px solid #F1F5F9; }
.sp-pdp-specs-table td { padding: 8px 14px; color: #334155; }
.sp-pdp-specs-table td:first-child { color: #94A3B8; font-weight: 500; width: 50%; }
.sp-pdp-specs-table td:last-child { font-weight: 600; color: #0F1F3D; }
.sp-pdp-specs-table .sp-spec-note { color: #64748B; font-style: italic; font-weight: 400; }

/* Tabs */
.sp-pdp-tabs { display: flex; gap: 0; border-bottom: 2px solid #E2E8F0; margin: 36px 0 0; }
.sp-pdp-tab { background: none; border: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px; padding: 12px 20px; font-size: 14px; font-weight: 600;
    color: #64748B; cursor: pointer; display: flex; align-items: center; gap: 6px;
    font-family: inherit; transition: color .15s, border-color .15s; }
.sp-pdp-tab:hover { color: #0F1F3D; }
.sp-pdp-tab.active { color: #1B6FE4; border-bottom-color: #1B6FE4; }
.sp-tab-count { background: #EBF2FF; color: #1B6FE4; font-size: 11px;
    padding: 1px 6px; border-radius: 10px; font-weight: 700; }

/* Tab panels */
.sp-pdp-tab-panel { display: none; padding: 28px 0; }
.sp-pdp-tab-panel.active { display: block; }
.sp-pdp-description { font-size: 15px; line-height: 1.75; color: #334155; max-width: 820px; }
.sp-pdp-description table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.sp-pdp-description table th,
.sp-pdp-description table td { padding: 9px 12px; border: 1px solid #E2E8F0; text-align: left; }
.sp-pdp-description table th { background: #F7F9FC; font-weight: 600; }

/* OEM groups */
.sp-oem-group { margin-bottom: 24px; }
.sp-oem-group-title { font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #94A3B8; margin: 0 0 10px; }
.sp-pdp-oem-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-oem-tag { display: inline-flex; align-items: center; gap: 0; background: #F7F9FC;
    border: 1px solid #E2E8F0; border-radius: 5px; padding: 4px 10px; font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, monospace; color: #334155; }
.sp-oem-tag em { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: #94A3B8; margin-right: 5px; letter-spacing: .04em; padding-right: 5px;
    border-right: 1px solid #E2E8F0; }
.sp-oem-tag--oe { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }

/* Fitment table */
.sp-compat-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid #E2E8F0; }
.sp-compat-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
.sp-compat-table thead tr { background: #F7F9FC; }
.sp-compat-table th { padding: 10px 14px; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: .06em; color: #64748B;
    border-bottom: 2px solid #E2E8F0; text-align: left; white-space: nowrap; }
.sp-compat-table td { padding: 8px 14px; color: #334155; border-bottom: 1px solid #F1F5F9; }
.sp-compat-table tbody tr:last-child td { border-bottom: none; }
.sp-compat-table tbody tr:hover td { background: #F7F9FC; }
.sp-compat-table td:first-child { font-weight: 700; color: #0F1F3D; }
.sp-compat-table td:nth-child(2) { color: #334155; font-weight: 600; }
.sp-compat-table .sp-compat-group-start td { border-top: 2px solid #E2E8F0; }
.sp-compat-table td:nth-child(5),
.sp-compat-table td:nth-child(6),
.sp-compat-table td:nth-child(7) { text-align: right; color: #64748B; }

/* Responsive */
@media (max-width: 768px) {
    .sp-pdp-title { font-size: 20px; }
    .sp-pdp-price-value { font-size: 28px; }
    .sp-pdp-actions { flex-wrap: wrap; }
    .sp-pdp-tabs { overflow-x: auto; }
    .sp-pdp-tab { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
}

/* ── Mobile fixes ─────────────────────────────────────────── */

/* Vehicle banner — mobile */
.sp-vehicle-banner {
    background: #EBF2FF; border: 1px solid #BFDBFE;
    border-radius: 8px; margin-bottom: 16px; padding: 10px 14px;
}
.sp-vehicle-banner-inner {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #0F1F3D;
    flex-wrap: wrap;
}
.sp-vehicle-banner-inner svg { color: #1B6FE4; flex-shrink: 0; }
.sp-vehicle-banner-inner span { flex: 1; min-width: 0; }
.sp-vehicle-change {
    font-size: 12px; font-weight: 500; color: #1B6FE4;
    text-decoration: none; padding: 3px 10px;
    border: 1px solid #1B6FE4; border-radius: 4px; white-space: nowrap;
    transition: background .15s;
}
.sp-vehicle-change:hover { background: #1B6FE4; color: #fff; }

/* Mobile filter bar — hidden on desktop */
.sp-mobile-filter-bar { display: none; }

@media (max-width: 900px) {
    /* Show filter bar */
    .sp-mobile-filter-bar {
        display: flex; align-items: center; gap: 10px;
        margin-bottom: 12px; padding: 0 4px;
    }
    .sp-filter-toggle {
        display: flex; align-items: center; gap: 8px;
        padding: 10px 20px; background: #fff; border: 1.5px solid #E2E8F0;
        border-radius: 24px; font-size: 14px; font-weight: 600; color: #1E293B;
        cursor: pointer; font-family: inherit;
        box-shadow: 0 1px 4px rgba(15,31,61,.08);
        transition: background .15s, border-color .15s, box-shadow .15s;
    }
    .sp-filter-toggle:hover { border-color: #1B6FE4; color: #1B6FE4; }
    .sp-filter-toggle.active {
        background: #1B6FE4; color: #fff; border-color: #1B6FE4;
        box-shadow: 0 2px 8px rgba(27,111,228,.30);
    }
    .sp-filter-toggle.active svg { stroke: #fff; }
    .sp-active-filter-label { font-size: 13px; color: #1B6FE4; font-weight: 600; }

    /* Sidebar hidden by default on mobile */
    .sp-catalog-sidebar {
        position: fixed !important; top: 0; left: 0; height: 100vh;
        width: 300px; max-width: 85vw; background: #fff;
        z-index: 1000; overflow-y: auto; padding: 0 16px 24px;
        transform: translateX(-110%); transition: transform .28s cubic-bezier(.4,0,.2,1);
        box-shadow: 4px 0 24px rgba(15,31,61,.15);
    }
    .sp-catalog-sidebar.open { transform: translateX(0); display: block !important; }

    /* Overlay */
    .sp-sidebar-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(15,31,61,.45); z-index: 999;
    }
    .sp-sidebar-overlay.visible { display: block; }

    /* Sidebar close row */
    .sp-sidebar-close-row {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 0 12px; border-bottom: 1px solid #E2E8F0; margin-bottom: 12px;
    }
    .sp-sidebar-title-label { font-size: 16px; font-weight: 700; color: #0F1F3D; }
    .sp-sidebar-close {
        background: none; border: none; font-size: 18px; cursor: pointer;
        color: #64748B; padding: 4px; line-height: 1;
    }

    /* Reset layout to single column */
    .sp-catalog-layout { grid-template-columns: 1fr !important; }

    /* Part cards: 2 columns on mobile */
    .sp-parts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .sp-part-card-img { height: 140px !important; }
    .sp-part-card-body { padding: 10px !important; }
    .sp-part-card-name { font-size: 13px !important; -webkit-line-clamp: 2; }
    .sp-part-card-sku { display: none; }
    .sp-part-card-price { font-size: 15px !important; }
    .sp-btn-atc { font-size: 12px !important; padding: 7px 10px !important; }
}

@media (max-width: 480px) {
    .sp-parts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .sp-part-card-img { height: 120px !important; }
}

/* ── PDP mobile ──────────────────────────────────────────── */

/* Specs box below grid (applies at all sizes) */
.sp-pdp-specs-box {
    margin-top: 0; border: 1px solid #E2E8F0;
    border-radius: 8px; overflow: hidden;
}

@media (max-width: 768px) {
    .sp-pdp { padding: 12px 16px 40px; }
    .sp-pdp-grid { grid-template-columns: 1fr !important; gap: 0 !important; }

    /* Image: constrain height */
    .sp-pdp-main-img-wrap { min-height: 220px !important; max-height: 280px; }
    .sp-pdp-photo { max-height: 260px !important; }
    .sp-pdp-thumbs { gap: 6px !important; }
    .sp-pdp-thumb { width: 52px !important; height: 52px !important; }

    /* Info section */
    .sp-pdp-info { padding-top: 16px; }
    .sp-pdp-title { font-size: 20px !important; }
    .sp-pdp-price-value { font-size: 28px !important; }
    .sp-pdp-price-block { padding: 12px 14px !important; }

    /* Actions: stack qty + button */
    .sp-pdp-actions { flex-wrap: wrap !important; }
    .sp-btn-primary { flex: 1 1 100% !important; justify-content: center; }

    /* Trust strip: 2 per row */
    .sp-pdp-trust { gap: 12px !important; }
    .sp-pdp-trust span { flex: 1 1 calc(50% - 8px); font-size: 11px !important; }

    /* Specs below info */
    .sp-pdp-specs-box { margin-top: 20px; }

    /* Tabs */
    .sp-pdp-tabs { gap: 0 !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sp-pdp-tab { padding: 10px 14px !important; font-size: 13px !important; white-space: nowrap; }

    /* Compat table: let it scroll horizontally */
    .sp-compat-table { font-size: 12px !important; }
    .sp-compat-table th, .sp-compat-table td { padding: 7px 10px !important; }

    /* Breadcrumb: mobile — hide Home/Parts/separator, show only parent category + current */
    .sp-breadcrumb {
        font-size: 12px;
        display: flex; align-items: center; flex-wrap: nowrap;
        overflow: hidden; white-space: nowrap;
    }
    /* Hide Home, Parts, and their separators — show only last category link */
    .sp-breadcrumb .sp-bc-home,
    .sp-breadcrumb .sp-bc-parts,
    .sp-breadcrumb .sp-bc-sep-home,
    .sp-breadcrumb .sp-bc-sep-parts { display: none; }
    /* Parent category link becomes a back chevron */
    .sp-breadcrumb .sp-bc-cat::before {
        content: '\2039\00a0'; font-size: 16px; line-height: 1;
    }
    /* Hide cat separator and current part name — category link acts as back button */
    .sp-breadcrumb .sp-bc-sep-cat,
    .sp-breadcrumb > span:last-child { display: none; }

    /* OEM tags: smaller on mobile */
    .sp-oem-tag { font-size: 11px !important; padding: 3px 7px !important; }
}

/* Filter group headings */
.sp-filter-group { margin-bottom: 20px; }
.sp-filter-heading {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #94A3B8; margin: 0 0 8px; padding: 0;
}

/* Sidebar close row: hidden on desktop */
.sp-sidebar-close-row { display: none; }

/* Category back/breadcrumb button */
.sp-filter-btn--back {
    width: 100%; text-align: left; color: #1B6FE4 !important;
    background: none !important; border-color: transparent !important;
    font-size: 12px !important; padding: 6px 10px !important;
    margin-bottom: 4px; font-weight: 600;
}
.sp-filter-btn--back:hover { background: #EBF2FF !important; }
