

/* =========================================================
   SEARCH RESULTS HEADER
========================================================= */
.search-results-header {
    background: linear-gradient(180deg, #f0f5fb 0%, #e8eef6 100%);
    border-bottom: 1px solid #d4dce8;
    padding: 1.5rem 0 1.25rem;
}

.search-results-meta {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.search-results-icon {
    font-size: 2rem;
    color: #4a73a8;
    flex-shrink: 0;
}

.search-results-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #17263a;
    margin: 0 0 0.15rem;
    line-height: 1.2;
}

.search-results-query {
    color: var(--cs-blue);
}

.search-results-count {
    font-size: 0.95rem;
    color: #5a6e85;
    font-weight: 600;
    margin: 0;
}

.search-results-fallback {
    display: inline-block;
    margin: 0.65rem 0 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #eff6ff;
    color: #174a83;
    font-size: 0.92rem;
    font-weight: 700;
}

/* =========================================================
   LISTING PAGE
========================================================= */
.listing-section {
    padding-bottom: 2rem;
}

.listing-controls {
    border-bottom: 1px solid var(--cs-border);
    border-top: 1px solid var(--cs-border);
    background: #fff;
}

.results-count,
.sort-wrap,
.view-controls {
    min-height: 72px;
    display: flex;
    align-items: center;
}

.results-count {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0 1.25rem 0 0;
}

.sort-wrap {
    gap: 0.75rem;
    border-left: 1px solid var(--cs-border);
    border-right: 1px solid var(--cs-border);
    padding: 0 1rem;
}

    .sort-wrap label {
        font-size: 1.1rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .sort-wrap .form-select {
        max-width: 220px;
        border: none;
        box-shadow: none;
        font-size: 1rem;
    }

.view-controls {
    justify-content: flex-end;
    gap: 0;
    padding-left: 1rem;
}

.view-btn,
.text-control {
    border: 1px solid var(--cs-border);
    border-radius: 0;
    background: #fff;
    min-width: 44px;
    min-height: 38px;
    color: #526275;
    font-weight: 700;
}

    .view-btn.active {
        color: var(--cs-blue);
        background: #f4f8ff;
    }

.text-control {
    padding: 0.45rem 0.85rem;
}

.filter-sidebar {
    border-right: 1px solid var(--cs-border);
    padding: 1rem 1.25rem 0 0;
    position: sticky;
    top: 150px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.filter-header {
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid #edf1f4;
}

    .filter-header h2 {
        font-size: 2rem;
        font-weight: 800;
        margin: 0;
    }

.compare-link {
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    color: #f28a18;
}

.filter-group {
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid #edf1f4;
}

    .filter-group h3 {
        font-size: 1.1rem;
        font-weight: 800;
        margin-bottom: 0.9rem;
        color: #1c2a3f;
    }

.filter-options {
    display: grid;
    gap: 0.65rem;
}

.filter-group.is-collapsed .filter-options .form-check:nth-of-type(n+7) {
    display: none;
}

.filter-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cs-blue);
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-more-btn:hover {
    color: var(--cs-blue-dark);
    text-decoration: underline;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #eef4fb;
    color: #5a6777;
    font-size: 0.72rem;
    font-weight: 800;
}

.filter-empty {
    padding: 1rem 0;
    color: #6b7787;
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 1px solid #edf1f4;
}

.filter-group[hidden],
.form-check[hidden] {
    display: none !important;
}

.form-check {
    margin-bottom: 0;
}

.form-check-input {
    border-radius: 2px;
}

.form-check-label {
    color: #465466;
    font-size: 1rem;
}

.btn-reset {
    margin-top: 1.25rem;
    background: #15458f;
    color: #fff;
    border-radius: 2px;
    border: none;
    font-weight: 800;
    padding: 0.85rem 1rem;
}

    .btn-reset:hover {
        color: #fff;
        background: var(--cs-blue-dark);
    }

.secure-card {
    margin-top: 2rem;
    border: 1px solid #dfe4ea;
    background: linear-gradient(180deg, #fbfcfe 0%, #f1f4f8 100%);
}

.secure-card-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #103a78;
    line-height: 1.15;
    padding: 1rem;
    border-bottom: 1px solid #dfe4ea;
}

.secure-list {
    padding: 1rem;
}

.secure-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #143e7b;
    font-weight: 800;
    margin-bottom: 1rem;
}

    .secure-item:last-child {
        margin-bottom: 0;
    }

    .secure-item i {
        font-size: 1.8rem;
    }

.products-wrap {
    padding-left: 1rem;
}

.product-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card {
    border-radius: 0;
    border: 1px solid #e1e6ec;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.product-col {
    display: flex;
}

.product-image-wrap {
    position: relative;
    margin-bottom: 0.9rem;
    flex: 0 0 auto;
}

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4;
    background: #fff;
}

.product-image-link .img-skeleton {
    width: 100%;
    height: 100%;
}

.product-image-link .product-image {
    transition: transform 0.4s ease;
}

.product-image-link:hover .product-image {
    transform: scale(1.06);
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 40, 95, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-link:hover .product-image-overlay {
    opacity: 1;
}

.product-image-overlay span {
    background: rgba(255, 255, 255, 0.96);
    color: #2b6db6;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.5rem 1.1rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.product-image-link:hover .product-image-overlay span {
    transform: translateY(0);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: 1px solid #e3e7ec;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.product-image-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d8dee6;
    min-width: 44px;
    padding: 0.3rem 0.55rem;
    font-weight: 800;
    color: #4a5768;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.product-seat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

    .product-seat-badge.lounger {
        background: #2b6db6;
        color: #fff;
    }

    .product-seat-badge.bench {
        background: #eef2f7;
        color: #2f3f55;
        border: 1px solid #d9e0e8;
    }

.product-model-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7787;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1c4d90;
    margin-bottom: 0.28rem;
    min-height: 1.55em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.48rem;
    min-height: 1.25rem;
    line-height: 1;
}

.stars {
    color: var(--cs-gold);
    display: inline-flex;
    align-items: center;
    gap: 1px;
    letter-spacing: 0;
    font-size: 0.95rem;
    line-height: 1;
    margin-right: 0;
}

.stars i {
    line-height: 1;
}

.reviews {
    color: #24508f;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    line-height: 1;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 52px;
    margin-bottom: 0.75rem;
}

.product-price-original {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #7d8896;
    margin-bottom: 0.28rem;
}

.product-price-original-label {
    color: #637083;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.product-price-original-value {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    flex-wrap: wrap;
    width: 100%;
}

.product-price-discounted {
    font-size: 1.34rem;
    font-weight: 900;
    color: #131f31;
    line-height: 1.05;
    letter-spacing: 0;
}

.product-discount-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    background: #d71920;
    border: 1px solid #b9141b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.48rem;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
}

.product-card-save-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.48rem 0.9rem;
    background: #d71920;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(215, 25, 32, 0.28);
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.product-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    min-height: 34px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f4f7fb;
    border: 1px solid #e1e6ec;
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    color: #2f3f55;
    font-weight: 700;
    border-radius: 2px;
}

    .meta-item i {
        font-size: 0.9rem;
        color: #0f5bb7;
    }

    .meta-item strong {
        font-weight: 900;
        color: #131f31;
    }

.product-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.7rem;
}

.btn-details {
    background: #15458f;
    color: #fff;
    border-radius: 2px;
    font-weight: 800;
    border: none;
    padding: 0.8rem 1.2rem;
    min-width: 145px;
}

    .btn-details:hover {
        color: #fff;
        background: var(--cs-blue-dark);
    }

.product-compare {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #47586b;
    margin-top: 0.5rem;
}

/* -- Compare pill button -- */
.compare-toggle {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
}

    .compare-toggle input {
        display: none;
    }

.compare-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

    .compare-pill i {
        font-size: 0.78rem;
        transition: transform 0.25s ease;
    }

.compare-toggle:hover .compare-pill {
    border-color: #0052a6;
    color: #0052a6;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(0,82,166,.12);
}

.compare-toggle input:checked ~ .compare-pill {
    border-color: #0052a6;
    background: #0052a6;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,82,166,.3);
    transform: scale(1.05);
}

    .compare-toggle input:checked ~ .compare-pill i {
        transform: rotate(360deg);
    }

@keyframes comparePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.15); }
    70%  { transform: scale(0.97); }
    100% { transform: scale(1.05); }
}

.compare-toggle input:checked ~ .compare-pill {
    animation: comparePop 0.3s ease forwards;
}

.pagination-wrap {
    padding: 1.5rem 0;
}

.pagination .page-link {
    border-radius: 0;
    color: #33465e;
    border: 1px solid #dbe1e8;
    padding: 0.7rem 1rem;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    background: #cfd9ee;
    color: #12376f;
    border-color: #cfd9ee;
}

.pagination .muted-link {
    color: #8a97a8;
}

.checkout-strip {
    border-top: 1px solid #e5eaf0;
    background: linear-gradient(180deg, #f9fbfd 0%, #f3f6f9 100%);
    padding: 1rem 0 1.5rem;
}

.checkout-strip-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .checkout-strip-title .line {
        flex: 1;
        height: 1px;
        background: #cfd8e4;
    }

    .checkout-strip-title .label {
        font-size: 1.15rem;
        font-weight: 900;
        color: #0f3f81;
        white-space: nowrap;
    }

        .checkout-strip-title .label i {
            margin-right: 0.4rem;
        }

.checkout-strip-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.checkout-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #133f7f;
    font-weight: 800;
    font-size: 1rem;
}

    .checkout-pill i {
        font-size: 1.6rem;
    }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (min-width: 1200px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 1199.98px) {
    .nav-icon-link {
        align-items: flex-start;
    }

    .main-menu .nav-link.active::after,
    .main-menu .nav-link:hover::after {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .page-title {
        font-size: 2.35rem;
    }

    .listing-controls {
        padding: 0.75rem 0;
    }

    .results-count,
    .sort-wrap,
    .view-controls {
        min-height: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .sort-wrap {
        border-left: none;
        border-right: none;
        padding-left: 0;
    }

    .view-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-left: 0;
    }

    .products-wrap {
        padding-left: 0;
    }

    .product-col:nth-child(3n) {
        border-right: 1px solid var(--cs-border);
    }

    .product-col:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 2rem;
    }

    .product-col,
    .product-col:nth-child(2n),
    .product-col:nth-child(3n) {
        border-right: none;
    }

    .product-image {
        height: 220px;
    }

    .product-actions,
    .product-compare {
        justify-content: flex-start;
    }

    .checkout-strip-title {
        flex-direction: column;
        gap: 0.5rem;
    }

        .checkout-strip-title .line {
            width: 100%;
        }
}

@media (max-width: 575.98px) {
    .search-form .form-control {
        min-height: 48px;
    }

    .search-form .btn-search {
        min-width: 56px;
    }

    .results-count {
        font-size: 1rem;
    }

    .product-card {
        padding: 1rem;
    }
}

/* Mobile storefront polish for category and model listings */
@media (max-width: 991.98px) {
    .filter-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--cs-border);
        padding: 0.75rem 0 1rem;
        margin-bottom: 1rem;
    }

    .listing-controls {
        gap: 0.75rem;
    }

    .listing-controls > [class*="col-"],
    .listing-controls .results-count,
    .listing-controls .sort-wrap,
    .listing-controls .view-controls {
        width: 100%;
    }

    .listing-controls .form-select {
        max-width: none;
    }

    .products-wrap {
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {
    .category-page .product-card,
    .product-card {
        min-height: 0;
    }

    .product-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        width: 100%;
    }

    .product-actions .btn,
    .product-actions button,
    .product-actions a {
        width: 100%;
    }

    .product-compare {
        width: 100%;
    }

    .checkout-strip-icons {
        grid-template-columns: 1fr;
    }
}
