@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

/* Main layout containers */
.kit-builder-article,
.kit-builder-article * {
    box-sizing: border-box;
}

.kit-builder-article {
    --pa-shell-yellow: #FFFF00;
    --pa-shell-charcoal: #1a1a1a;
    --pa-shell-charcoal-hover: #2d2d2d;
    --pa-shell-line: rgba(17, 17, 17, 0.10);
    --pa-shell-ghost-line: rgba(245, 245, 245, 0.30);
    color: #2a2a2a;
    font-family: 'Barlow', sans-serif;
}

.container {
    max-width: none;
    padding: 0;
}

.product-header-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

@media (min-width: 768px) {
    .product-header-flex {
        flex-direction: row;
    }

    .image-column {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .details-column {
        flex: 1;
    }
}

.image-column {
    width: 100%;
    background: #f3f3f3;
    padding: 0;
    border-radius: 0;
    border: 1px solid var(--pa-shell-line);
    overflow: hidden;
}

.details-column {
    width: 100%;
    background: #fff;
    border-radius: 0;
    border: 1px solid var(--pa-shell-line);
}

.details-column h1 {
    padding: 16px 18px;
    margin: 0;
    border-bottom: none;
    background-color: #404040;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.96;
    text-transform: none;
}

.details-column-body {
    padding: 20px;
}

.kit-builder-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 992px) {
    .kit-builder-grid {
        flex-direction: row;
    }
}

.kit-column {
    flex: 1;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--pa-shell-line);
}

.kit-column h2 {
    padding: 16px 18px;
    margin: 0;
    border-bottom: none;
    background-color: #404040;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.96;
    text-transform: none;
}

/* Kit Summary Panel */
.kit-summary {
    flex: 0 0 320px;
    position: sticky;
    top: 130px;
    border: 1px solid var(--pa-shell-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    height: fit-content;
}

.kit-summary h2 {
    padding: 16px 18px;
    margin: 0;
    border-bottom: none;
    background-color: #404040;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.96;
    text-transform: none;
}

.kit-summary-body {
    padding: 16px;
}

/* Category & Part Cards */
.product-group-title {
    background: #1a1a1a;
    border-bottom: none;
    border-top: none;
    color: #ffffff !important;
    display: block;
    padding: 12px 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 6px 0 12px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    width: 100%;
}

.product-group-title::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: bold;
}

.product-group-title.active::after {
    content: '-';
}

.product-group-content.collapsed {
    display: none;
}

.part-card {
    border: 1px solid var(--pa-shell-line);
    border-radius: 0;
    padding: 0;
    margin: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 15px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    background-color: #fff;
    box-shadow: none;
}

.part-card:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 0, 0.42);
    transform: translateY(-4px);
}

.part-card:hover .part-card-header,
.part-card:hover .part-card-product-type,
.part-card:hover .part-card-specs,
.part-card:hover .part-card-pricing .price {
    color: #f5f5f5;
}

.part-card.selected {
    border-color: rgba(255, 255, 0, 0.55);
    background-color: #fffde8;
}

.part-card-header {
    grid-column: 1;
    grid-row: 1;
    color: #111111;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.part-card-product-type {
    grid-column: 1;
    grid-row: 2;
    color: #2a2a2a;
    font-size: 17px;
    font-weight: 600;
}

.part-card-specs {
    color: #2a2a2a;
    font-size: 15px;
    line-height: 1.45;
}

.part-card-pricing {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 100px;
}

.part-card-pricing .price {
    color: #111111;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.stock-status {
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    margin-top: 5px;
    display: inline-block;
}

.stock-status.in-stock {
    background-color: #28a745;
}

.stock-status.ex-manufacturer {
    background-color: #6c757d;
}

.part-card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: stretch;
    padding: 16px;
}

.part-card-image {
    width: 80px;
    height: 80px;
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.part-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.part-card-main-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.part-card-notes {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.85em;
    color: red;
    margin-top: 8px;
}

/* Part Actions */
.part-card-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--pa-shell-line);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.add-part-btn,
.view-product-btn,
.part-added-indicator,
.remove-part-btn {
    flex: 1;
    border-radius: 0;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: none;
}

.add-part-btn {
    background-color: #FFFF00;
    border: 1px solid #FFFF00;
    color: #000;
}

.add-part-btn:hover {
    background-color: #d9d900;
    border-color: #d9d900;
    color: #111111;
}

.view-product-btn {
    background-color: #1a1a1a;
    border: 1px solid var(--pa-shell-ghost-line);
}

.view-product-btn:hover {
    background-color: #2d2d2d;
    border-color: rgba(245, 245, 245, 0.30);
    color: #fff;
}

.part-qty-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 0;
}

.part-added-indicator {
    display: none;
    background-color: #1a1a1a;
    border: 1px solid var(--pa-shell-ghost-line);
    color: #fff;
    cursor: default;
}

.part-added-indicator .fa-check {
    margin-right: 5px;
}

.remove-part-btn {
    display: none;
    background-color: #1a1a1a;
    border: 1px solid var(--pa-shell-ghost-line);
}

.remove-part-btn:hover {
    background-color: #2d2d2d;
}

.part-card-badge-container {
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: 5px;
    margin-bottom: 5px;
}

/* Labels */
.part-card-optional-label,
.part-card-required-label,
.part-card-recommended-label {
    padding: 6px 10px;
    border-radius: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    width: auto;
}

.part-card-optional-label {
    background-color: rgba(17, 17, 17, 0.10);
}

.part-card-required-label {
    background-color: rgba(255, 255, 0, 0.18);
}

.part-card-recommended-label {
    background-color: rgba(255, 255, 0, 0.18);
}

.part-sub-group-title {
    font-size: 1em;
    font-weight: bold;
    color: #555;
    padding: 15px 10px 5px;
    margin: 10px 0 0 0;
    border-top: 1px dashed #ccc;
}

/* Filters */
#global-filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    padding: 14px 16px 18px;
    border-bottom: none;
    background: transparent;
}

.filter-group h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 15px;
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .filter-controls {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .filter-controls {
        grid-template-columns: 1fr;
    }
}

.filter-controls label {
    color: #111111;
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.filter-controls select {
    padding: 10px 28px 10px 8px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 0;
    display: block;
    margin-top: 10px;
    width: 100%;
    min-height: 48px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

/* Summary Items */
.summary-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.summary-group-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #111111;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.summary-item-specs {
    font-size: 0.85em;
    color: #555;
    margin-top: 4px;
}

.summary-remove-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    padding: 0 0 0 15px;
    line-height: 1;
    flex-shrink: 0;
}

.summary-remove-btn:hover {
    color: #c82333;
}

.summary-item-details {
    flex-grow: 1;
}

.summary-total {
    color: #111111;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-align: right;
}

/* Buttons */
.add-to-cart-btn {
    background-color: #ffff00;
    color: #000;
    border: 1px solid #ffff00;
    border-radius: 0;
    padding: 15px;
    width: 100%;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 15px;
}

.clear-all-btn {
    background-color: #1a1a1a;
    color: #f5f5f5;
    border: 1px solid var(--pa-shell-ghost-line);
    border-radius: 0;
    padding: 8px;
    width: 100%;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.add-to-cart-btn:hover {
    background-color: #d9d900;
    color: #111111;
}

/* Visibility classes */
#front-suspension-container .product-list-section,
#rear-suspension-container .product-list-section,
.template-hidden {
    display: none;
}

/* Vehicle Header Styles */
.vehicle-title {
    margin: 0;
    padding: 0;
    color: #111111;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.96;
}

.vehicle-years {
    margin-top: 10px;
    color: #2a2a2a;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.open-search-btn {
    margin-top: 20px;
    padding: 12px 24px;
    border: 1px solid var(--pa-shell-ghost-line);
    border-radius: 0;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #1a1a1a;
    color: #fff;
}

.open-search-btn:hover {
    background-color: #2d2d2d;
    color: #fff;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* No Kits Message */
.no-kits-container {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--pa-shell-line);
    border-radius: 0;
    margin-top: 30px;
}

.no-kits-title {
    font-size: 1.5em;
    color: #333;
}

.padded-message {
    padding: 20px;
}
/* ============= SuspKit Vehicle Selector Modal (append) ============= */
/* ========================================================================
 * SuspKit Inline Vehicle Selector Modal
 * Pure-CSS, no Bootstrap/Tailwind deps, scoped to .susp-kit-veh-modal*
 * Matches existing kit builder palette:
 *   Primary yellow #FFFF00 (same as open-search-btn), hover dark #404040
 *   Cards: white bg, 1px #ddd border, 8px radius, 2-10px box-shadow
 *   Text base color #333, muted #666
 * ======================================================================== */

#susp-kit-vehicle-modal-root {
    position: static;
}

.susp-kit-veh-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.susp-kit-veh-modal[hidden] {
    display: none !important;
}

.susp-kit-veh-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(1px);
    cursor: pointer;
}

.susp-kit-veh-modal__dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 0;
    border: 1px solid var(--pa-shell-line);
    box-shadow: none;
    width: min(1100px, 100%);
    max-height: min(88vh, 960px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.susp-kit-veh-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: none;
    background: #404040;
}

.susp-kit-veh-modal__title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.susp-kit-veh-modal__close {
    background: transparent;
    border: none;
    font-size: 2em;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 0;
}
.susp-kit-veh-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.susp-kit-veh-modal__body {
    padding: 22px 24px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.susp-kit-veh-modal__columns {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
}

@media (max-width: 820px) {
    .susp-kit-veh-modal__columns {
        grid-template-columns: 1fr;
    }
    .susp-kit-veh-modal__dialog {
        max-height: 92vh;
    }
}

.susp-kit-veh-modal__steps-hint {
    margin: 0 0 14px;
    color: #666;
    font-size: 0.95em;
}

.susp-kit-veh-step {
    border: 1px solid var(--pa-shell-line);
    border-radius: 0;
    padding: 14px;
    margin-bottom: 14px;
    background: #fff;
}

.susp-kit-veh-step--disabled {
    opacity: 0.55;
    background: #fafafa;
}

.susp-kit-veh-step__label {
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 10px;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.susp-kit-veh-step__clear {
    background: #f0f0f0;
    border: none;
    color: #888;
    font-size: 1.4em;
    line-height: 1;
    border-radius: 0;
    padding: 0 8px;
    cursor: pointer;
    margin-left: 10px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.susp-kit-veh-step__clear:hover {
    background: #e5e5e5;
    color: #333;
}

.susp-kit-veh-step__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.susp-kit-veh-stepchip {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.15s ease;
    font-size: 0.95em;
    color: #333;
}
.susp-kit-veh-stepchip:hover {
    border-color: #888;
    background: #f5f5f5;
}
.susp-kit-veh-stepchip.is-active {
    background: #FFFF00;
    border-color: #000;
    color: #000;
    font-weight: 700;
    box-shadow: none;
}
.susp-kit-veh-stepchip__label {
    line-height: 1.1;
}
.susp-kit-veh-stepchip__count {
    font-size: 0.8em;
    color: #888;
    background: #f5f5f5;
    border-radius: 0;
    padding: 2px 7px;
    line-height: 1.2;
}
.susp-kit-veh-stepchip.is-active .susp-kit-veh-stepchip__count {
    background: #000;
    color: #FFFF00;
}

.susp-kit-veh-step__empty {
    color: #b00020;
    font-size: 0.9em;
    margin: 4px 2px 0;
}
.susp-kit-veh-step__empty--muted {
    color: #999;
    font-style: italic;
}

/* ---------- Matches list (right column) ---------- */

.susp-kit-veh-matches__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.susp-kit-veh-matches__header h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #222;
}
.susp-kit-veh-matches__count {
    color: #666;
    font-size: 0.9em;
}

.susp-kit-veh-matches__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 48vh;
    overflow-y: auto;
    padding-right: 4px;
}

.susp-kit-veh-match {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 12px 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.susp-kit-veh-match:hover {
    border-color: #888;
    background: #fafafa;
    transform: translateX(2px);
}
.susp-kit-veh-match.is-selected {
    border: 2px solid #000;
    background: #fffddf;
    padding: 11px 13px;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.35);
}
.susp-kit-veh-match__title {
    font-weight: 700;
    font-size: 1.02em;
    color: #222;
    line-height: 1.25;
    margin: 0 0 4px;
}
.susp-kit-veh-match__details {
    color: #555;
    font-size: 0.88em;
    line-height: 1.35;
}

.susp-kit-veh-matches__empty {
    padding: 18px;
    text-align: center;
    color: #777;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 0;
    font-size: 0.95em;
}

/* ---------- Recent / Previous selections strip ---------- */

.susp-kit-veh-recent {
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.susp-kit-veh-recent h3 {
    margin: 0 0 10px;
    font-size: 1em;
    font-weight: 700;
    color: #444;
}
.susp-kit-veh-recent__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.susp-kit-veh-recent__item {
    text-align: left;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.susp-kit-veh-recent__item:hover {
    background: #FFFF00;
    border-color: #000;
}
.susp-kit-veh-recent__title {
    font-weight: 700;
    font-size: 0.95em;
    color: #222;
    line-height: 1.2;
    margin: 0 0 3px;
}
.susp-kit-veh-recent__details {
    font-size: 0.8em;
    color: #666;
    line-height: 1.3;
}

/* ---------- Footer actions bar ---------- */

.susp-kit-veh-modal__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.susp-kit-veh-btn {
    border-radius: 0;
    cursor: pointer;
    font-size: 0.98em;
    font-weight: 600;
    padding: 10px 18px;
    font-family: 'Barlow Condensed', sans-serif;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.susp-kit-veh-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.susp-kit-veh-btn--primary {
    background: #FFFF00;
    color: #111111;
    border: 1px solid #FFFF00;
}
.susp-kit-veh-btn--primary:hover:not([disabled]) {
    background: #d9d900;
    border-color: #d9d900;
    color: #111111;
}

.susp-kit-veh-btn--ghost {
    background: #1a1a1a;
    color: #f5f5f5;
    border: 1px solid var(--pa-shell-ghost-line);
}
.susp-kit-veh-btn--ghost:hover {
    background: #2d2d2d;
    color: #f5f5f5;
    border-color: rgba(245, 245, 245, 0.30);
}

/* ---------- Loading overlay ---------- */

.susp-kit-veh-modal.is-loading .susp-kit-veh-modal__dialog::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    backdrop-filter: blur(1px);
    z-index: 2;
}

.susp-kit-veh-modal.is-loading .susp-kit-veh-modal__dialog::before {
    content: "";
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    z-index: 3;
    animation: susp-kit-spin 0.9s linear infinite;
}

@keyframes susp-kit-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Vehicle Selector — Current Selection card (preload always-shown)
   ============================================================ */

.susp-kit-veh-current {
    border: 2px solid #d0d000;
    background: #ffffe0;
    margin-bottom: 16px;
    border-radius: 0;
}

.susp-kit-veh-current.is-selected {
    background: #FFFF00;
    border-color: #000000;
}

.susp-kit-veh-current__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #d0d000;
    background: rgba(0,0,0,0.03);
    border-radius: 0;
}

.susp-kit-veh-current.is-selected .susp-kit-veh-current__header {
    border-bottom-color: #000;
    background: rgba(0,0,0,0.05);
}

.susp-kit-veh-current__header h3 {
    margin: 0;
    font-size: 1.02em;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #111;
    text-transform: none;
}

.susp-kit-veh-current__badge {
    background: #000;
    color: #FFFF00;
    font-weight: 700;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 0;
}

.susp-kit-veh-current__body {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 0;
}

.susp-kit-veh-current__body:hover {
    background: rgba(255,255,255,0.5);
}

.susp-kit-veh-current.is-selected .susp-kit-veh-current__body:hover {
    background: rgba(0,0,0,0.03);
}

.susp-kit-veh-current__actions {
    padding: 6px 12px 10px 12px;
    display: flex;
    justify-content: flex-end;
    border-radius: 0;
}

/* All modal corners right-angle per UI rules */
.susp-kit-veh-modal__dialog,
.susp-kit-veh-modal__header,
.susp-kit-veh-modal__body,
.susp-kit-veh-step,
.susp-kit-veh-stepchip,
.susp-kit-veh-match,
.susp-kit-veh-matches__empty,
.susp-kit-veh-recent__item,
.susp-kit-veh-modal__close {
    border-radius: 0 !important;
}
/* ==========================================================================
   Custom Kit / Summary list — two distinct columns
   Part Number (left) | Price (right-aligned, flush with total)
   ========================================================================== */

.kit-summary-body {
    /* Explicit horizontal padding so price column right-edge == total right-edge.
       Default .kit-summary-body already has padding:10px; keep parity. */
    padding: 12px 14px;
}

/* Wrapper around part rows (replaces bare #summary-items) */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-empty {
    margin: 0;
    padding: 6px 0;
    color: #666;
    font-size: 0.9em;
}

/* Optional column header row (Part No. / Price)  – hidden if not needed,
   but structure is ready. We enable it for clarity since user asked for
   "distinct columns". */
.summary-list__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 6px 0 8px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #222;
}

.summary-list__header .summary-list__header-price {
    text-align: right;
    /* width matches the .summary-cell--price minimum width below so it
       stays perfectly flush with the price column */
    flex: 0 0 auto;
    min-width: 78px;
}

/* Each part row — two-cell flex row */
.summary-line-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.summary-line-item:last-child {
    border-bottom: none;
}

.summary-cell {
    min-width: 0;
}

.summary-cell--part {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.summary-part-name {
    font-weight: bold;
    color: #111;
    font-size: 0.92em;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.summary-part-meta {
    font-size: 0.82em;
    color: #555;
    line-height: 1.4;
}

.summary-sku {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    letter-spacing: 0.01em;
}

.summary-qty {
    color: #333;
}

.summary-cell--price {
    flex: 0 0 auto;
    /* Fixed minimum width so every row's $ signs vertically align,
       and the right edge matches the Total right-edge exactly. */
    min-width: 78px;
    text-align: right;
    padding-top: 1px;
}

.summary-price {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    font-size: 0.95em;
    color: #111;
    display: inline-block;
    /* right-align inside flex cell (redundant with cell align but defensive) */
    text-align: right;
    white-space: nowrap;
}

/* Summary Total — already text-align:right; ensure it's flush with the
   price column by using the same right padding as .kit-summary-body. */
.summary-total {
    padding-top: 8px;
    padding-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.kit-summary-body hr {
    margin: 10px 0;
    border: none;
    border-top: 2px solid #333;
}

/* Enforce right-angle UI on summary panel (match the modal rule on L1056) */
.kit-summary,
.kit-summary h2,
.kit-summary .add-to-cart-btn,
.kit-summary .clear-all-btn {
    border-radius: 0 !important;
}
/* ==========================================================================
   Out of Stock part cards + OOS card actions UI
   ========================================================================== */

.part-card--oos {
    opacity: 0.75;
    filter: grayscale(0.2);
    position: relative;
}

.part-card--oos::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.25);
    border-radius: 0;
}

.part-card-oos-label {
    background: #dc2626;
    color: #fff;
    font-weight: bold;
    font-size: 0.8em;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    display: inline-block;
    text-transform: uppercase;
    border-radius: 0;
}

.add-part-btn--oos {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    border: 1px solid #e5e7eb !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    font-weight: bold;
}

.add-part-btn--oos .fa {
    margin-right: 4px;
}

.enquire-part-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    min-height: 42px;
    background: #1a1a1a;
    color: #f5f5f5;
    border: 1px solid var(--pa-shell-ghost-line);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 0;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.enquire-part-btn:hover,
.enquire-part-btn:focus-visible {
    background: #2d2d2d;
    border-color: rgba(245, 245, 245, 0.30);
    color: #f5f5f5;
    text-decoration: none;
}

.enquire-part-btn .fa {
    font-size: 0.9em;
}

/* Make sure right-angle UI applies to OOS + enquire buttons too */
.part-card-oos-label,
.add-part-btn--oos,
.enquire-part-btn {
    border-radius: 0 !important;
}
/* Vehicle image zero top/bottom margins (user requested) */
.vehicle-image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block;
    vertical-align: top;
    line-height: 0;
    border: 0;
    outline: 0;
}

.image-column {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0;
    border-radius: 0 !important;
}

.image-column .vehicle-image:only-child {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Final builder-specific overrides
   Keeps the suspension builder in the same visual system as the storefront
   while beating broader page typography rules.
   ========================================================================== */

.kit-builder-article .details-column h1,
.kit-builder-article .kit-column > h2,
.kit-builder-article .kit-summary > h2 {
    -webkit-text-fill-color: #ffffff !important;
    background: #404040 !important;
    color: #ffffff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 0.96 !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    text-transform: none !important;
}

.kit-builder-article .details-column h1 {
    font-size: 34px !important;
}

.kit-builder-article .kit-column > h2,
.kit-builder-article .kit-summary > h2 {
    font-size: 28px !important;
}

.kit-builder-article .details-column,
.kit-builder-article .image-column,
.kit-builder-article .kit-column,
.kit-builder-article .kit-summary,
.kit-builder-article .part-card {
    border-radius: 0 !important;
    overflow: hidden;
}

.kit-builder-article .product-header-flex {
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.kit-builder-article .filter-group,
.kit-builder-article .kit-summary-body {
    padding-top: 14px !important;
}

.kit-builder-article .filter-controls {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
}

.kit-builder-article .filter-controls select {
    font-size: 14px !important;
    padding: 10px 28px 10px 8px !important;
}

.kit-builder-article .product-group-title {
    background: #1a1a1a !important;
    border-bottom: none !important;
    border-top: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    display: block !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
    margin: 6px 0 12px !important;
    padding: 12px 16px !important;
    width: 100% !important;
}

.kit-builder-article .product-group-title::after {
    right: 16px !important;
}

.kit-builder-article .vehicle-title {
    color: #111111 !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 0.96 !important;
    margin: 0 0 8px !important;
}

.kit-builder-article .vehicle-subtitle,
.kit-builder-article .vehicle-years {
    color: #2a2a2a !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
}

.kit-builder-article .part-card:hover .part-card-header,
.kit-builder-article .part-card:hover .part-card-product-type,
.kit-builder-article .part-card:hover .part-card-specs,
.kit-builder-article .part-card:hover .part-card-pricing,
.kit-builder-article .part-card:hover .part-card-pricing .price {
    color: #f5f5f5 !important;
}

@media (min-width: 768px) {
    .kit-builder-article .product-header-flex {
        align-items: stretch !important;
    }

    .kit-builder-article .details-column {
        display: flex;
        flex-direction: column;
    }

    .kit-builder-article .image-column {
        align-self: stretch !important;
        display: block;
        min-height: 0;
        position: relative;
    }

    .kit-builder-article .vehicle-image {
        height: 100% !important;
        inset: 0;
        margin: 0 !important;
        min-height: 0 !important;
        object-fit: cover;
        object-position: center center;
        position: absolute;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .kit-builder-article .vehicle-image {
        height: auto !important;
        min-height: 0 !important;
        position: static;
        width: 100% !important;
    }
}

/* User-requested tweaks: hide OOS red badge label completely from cards;
   do NOT darken (black) cards on hover — keep white background, keep
   yellow accent border + lift effect, keep dark text so it's readable. */

.part-card-oos-label,
.part-card .part-card-oos-label,
.part-card-badge-container .part-card-oos-label {
    display: none !important;
}

.part-card:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.part-card:hover .part-card-header,
.part-card:hover .part-card-product-type,
.part-card:hover .part-card-specs,
.part-card:hover .part-card-pricing,
.part-card:hover .part-card-pricing .price,
.kit-builder-article .part-card:hover .part-card-header,
.kit-builder-article .part-card:hover .part-card-product-type,
.kit-builder-article .part-card:hover .part-card-specs,
.kit-builder-article .part-card:hover .part-card-pricing,
.kit-builder-article .part-card:hover .part-card-pricing .price {
    color: #111111 !important;
}

.kit-builder-article .part-card:hover .part-card-product-type,
.kit-builder-article .part-card:hover .part-card-specs {
    color: #2a2a2a !important;
}

/* ==========================================================================
   Add-to-Cart → "Check Stock" state (when ANY saved kit part is OOS)
   Uses PatrolApart official brand blue #009fdc background with white text.
   ========================================================================== */

.add-to-cart-btn--check-stock {
    background-color: #009fdc !important; /* PatrolApart official brand blue */
    border-color: #0085b9 !important;
    color: #ffffff !important;
    transition: background-color 90ms ease-out, transform 90ms ease-out, border-color 90ms ease-out;
}

.add-to-cart-btn--check-stock:hover,
.add-to-cart-btn--check-stock:focus-visible {
    background-color: #0078a5 !important; /* 12% darker brand blue on hover/focus */
    border-color: #00688e !important;
    color: #ffffff !important;
}

.add-to-cart-btn--check-stock:active {
    background-color: #00688e !important;
    border-color: #005877 !important;
    transform: translateY(0);
}

.add-to-cart-btn--check-stock .fa,
.add-to-cart-btn--check-stock svg {
    color: #e0f2fe !important; /* sky-50, pale blue-tinted icon to pop */
    margin-right: 10px;
}

/* Right-angle rule (consistent with other components) */
.add-to-cart-btn--check-stock {
    border-radius: 0 !important;
}

/* ==========================================================================
   Part-card action buttons — CSS FALLBACK visibility rules
   These ensure the user ALWAYS sees clickable actions (Add + View at minimum)
   even if builder.js hasn't run yet, or if a JS error prevents setCardState
   from toggling. The JS runtime then overrides these display values with
   element.style.display = 'none' / '' as selections change.
   ========================================================================== */

/* Default: NOT selected yet → Add btn visible, Remove/Added hidden, View always visible */
.part-card .add-part-btn,
.part-card .btn-add {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.part-card .remove-part-btn,
.part-card .btn-remove,
.part-card .part-added-indicator,
.part-card .part-selected-indicator {
    display: none !important;
}
.part-card .view-product-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* When card is marked ".selected" (either by JS or even by stale HTML on reload)
   → Remove + Added visible, Add hidden, View still visible (never hide). */
.part-card.selected .add-part-btn,
.part-card.selected .btn-add {
    display: none !important;
}
.part-card.selected .remove-part-btn,
.part-card.selected .btn-remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.part-card.selected .part-added-indicator,
.part-card.selected .part-selected-indicator {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.part-card.selected .view-product-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Safety: even if PHP earlier left an element with "template-hidden" class
   by accident (because sprintf truncated before toggle), un-hide the whole
   row so at least SOME action renders. */
.part-card-actions > button:not(.hidden) {
    visibility: visible !important;
    opacity: 1 !important;
}
.part-card .template-hidden.part-card .add-part-btn,
.part-card .template-hidden.part-card .view-product-btn {
    visibility: visible !important;
}

/* ==========================================================================
   Custom Kit summary row layout
   Line 1: SKU (bold, mono) + optional quantity tag (inline with SKU)
   Lines 2..N: Product details (underneath SKU) — same text/format/order
               that appears on the product card under the part number:
                 - Product type (Coil Springs / Shock Absorbers etc.)
                 - "Lift: X" | "Weight: YYY-YYYkg" spec line
                 - Extra subtitle if present (Constant Load etc.)
   ========================================================================== */

.summary-line-item {
    border-bottom: 1px solid #d1d5db;
    padding-top: 12px;
    padding-bottom: 12px;
}

.summary-line-item:last-child {
    border-bottom: none;
}

.summary-part-name {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.summary-part-name .summary-qty {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.summary-part-meta {
    margin-top: 4px;
    line-height: 1.4;
}

.summary-part-meta-line {
    font-size: 13px;
    color: #4b5563; /* gray-600, matches card product-type text color */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 1px 0;
}

.summary-part-meta-line:first-child {
    color: #1f2937; /* gray-800 — product type is a shade darker than specs */
    font-weight: 500;
}

/* ==========================================================================
   Custom Kit Summary Total Row Sizing
   User request: "this total is way too big"
   Receipt-style visual hierarchy:
     - Wrapper: 1px solid grey top divider, 24px top margin (gap from last part line)
     - Label "Total:" 18px/600 (same visual weight as SKU lines)
     - Dollar value: 24px/700 tabular-nums (slightly larger than SKU, not massive)
   ========================================================================== */

/* Hide any leftover <hr> above total (moved border to wrapper for controlled spacing) */
.kit-summary .kit-summary-body > hr,
.kit-summary-body > hr {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Total row wrapper: label left, value right, baseline align so label baseline matches value */
.kit-summary .summary-total,
#kit-summary .summary-total,
.kit-summary-body .summary-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 12px !important;
    padding: 14px 0 !important;
    margin-top: 24px !important;
    border-top: 1px solid #d1d5db !important;
    line-height: 1 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    color: #111111 !important;
}

/* Total label "Total:" — matches SKU line weight: 18px bold, dark, normal font (not mono) */
.kit-summary .summary-total-label,
.summary-total .summary-total-label {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Dollar value span: only slightly larger than SKU, tabular so digits don't bounce */
.kit-summary #summary-total,
.kit-summary .summary-total #summary-total,
.summary-total > #summary-total {
    font-size: 24px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
    -moz-font-feature-settings: "tnum" on !important;
    -webkit-font-feature-settings: "tnum" on !important;
    font-feature-settings: "tnum" on !important;
    text-align: right !important;
    justify-content: flex-end !important;
    color: #111111 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    /* Defensive: override any CRAZY inherited sizes from CMS product header classes */
    font-stretch: normal !important;
    font-style: normal !important;
}

/* ==========================================================================
   Title blocks: pure solid BLACK background (not grey)
   Applies to: Your Selected Vehicle / Front Suspension / Rear Suspension / Your Custom Kit
   User preference: "section titles styled as full-width black blocks with white text"
   ========================================================================== */

/* Override base rules (L66, L104, L130 grey #404040 → black #000) */
.details-column h1,
.kit-column h2,
.kit-summary h2 {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Override final builder-specific overrides (L1443 grey #404040 → black #000)
   Must beat .kit-builder-article .details-column h1 etc. specificity */
.kit-builder-article .details-column h1,
.kit-builder-article .kit-column > h2,
.kit-builder-article .kit-summary > h2 {
    background-color: #000000 !important;
    background: #000000 !important;
    /* Keep existing white text / barlow / sizing untouched */
}

/* ==========================================================================
   Front + Rear grouped as GROUP A (product-side), Custom Kit as GROUP B (tally-side)
   Old: .kit-builder-grid had 3 flat children: [front][rear][summary]
   New: .kit-builder-grid has 2 grouped children:
        [GROUP A: .kit-product-columns = [front][rear]]  [GROUP B: .kit-summary = [tally]]
   ========================================================================== */

/* GROUP A wrapper: Front + Rear share this cell inside the top-level grid */
.kit-product-columns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0; /* prevent flex content blowout */
}

/* ≥ 992px desktop: GROUP A wrapper becomes row so Front + Rear sit SIDE BY SIDE
   (50/50 inside GROUP A, while GROUP B stays its own 320px fixed right column) */
@media (min-width: 992px) {
    .kit-product-columns {
        flex-direction: row;
    }
    /* Inside GROUP A, Front and Rear share the wrapper equally */
    .kit-product-columns > .kit-column {
        flex: 1 1 50%;
        min-width: 0; /* allow product-card truncation inside flex subcell */
    }
    /* Also ensure top-level grid GROUP A fills available space against GROUP B */
    .kit-builder-grid > .kit-product-columns {
        flex: 1 1 0%;
    }
    .kit-builder-grid > .kit-summary {
        flex: 0 0 320px; /* keep existing fixed tally width */
    }
}



