.catalog-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tighten the main product area width and vertical spacing */
.main_product_area.p_100 {
    padding-top: 32px;
    padding-bottom: 48px;
}

.main_product_area .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Car filter CTA */
.car-filter-cta {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.car-filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef2ff;
    color: #0f4bff;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.car-filter-title {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
}

.car-filter-selection {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.car-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.car-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
}

/* Topbar car filter trigger */
.car-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 992px) {
    .car-filter-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sidebar filters - eMAG-like look */
.left_product_sidebar {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    padding: 12px 12px 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.left_product_sidebar .accordion {
    margin: 0;
}

.left_product_sidebar .accordion .card,
.left_product_sidebar .filter-card {
    border: none;
    border-bottom: 1px solid #eef1f6;
    border-radius: 0;
    margin: 0;
    background: transparent;
}

.left_product_sidebar .accordion .card:last-child,
.left_product_sidebar .filter-card:last-child {
    border-bottom: none;
}

.left_product_sidebar .card-header {
    background: transparent;
    padding: 0;
    border: none;
}

.left_product_sidebar .card-header button {
    width: 100%;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left_product_sidebar .card-header button i {
    color: #9ca3af;
    font-size: 13px;
}

.left_product_sidebar .card-header button.collapsed .ti-minus,
.left_product_sidebar .filter-card .filter-toggle[aria-expanded="false"] i.fa {
    display: none;
}

.left_product_sidebar .card-header button:not(.collapsed) .ti-plus {
    display: none;
}

.left_product_sidebar .filter-card .filter-toggle {
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0;
}

.left_product_sidebar .filter-card .filter-toggle i {
    color: #9ca3af;
    font-size: 13px;
}

.left_product_sidebar .filter-card .filter-toggle:hover,
.left_product_sidebar .card-header button:hover {
    color: #0f4bff;
    text-decoration: none;
}

.left_product_sidebar .card-body {
    padding: 0 4px 14px;
    background: transparent;
}

.left_product_sidebar .filter-search {
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid #e5e7ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
}

.left_product_sidebar .filter-search:focus {
    border-color: #0f4bff;
    box-shadow: 0 0 0 3px rgba(15, 75, 255, 0.1);
    outline: none;
}

.filter-drawer__trigger {
    display: none;
}

@media (max-width: 991.98px) {
    .filter-drawer__trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 15px 16px;
        padding: 12px 16px;
        width: calc(100% - 30px);
        background: #0f4bff;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 2px 6px rgba(15, 75, 255, 0.25);
    }

    .filter-drawer {
        position: fixed;
        inset: 0;
        z-index: 1050;
        padding: 0;
        pointer-events: none;
        max-width: none;
        flex: none;
    }

    .filter-drawer__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        opacity: 0;
        transition: opacity 200ms ease;
        pointer-events: none;
    }

    .filter-drawer__panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 420px);
        background: #fff;
        transform: translateX(-100%);
        transition: transform 240ms ease;
        overflow-y: auto;
        box-shadow: 2px 0 18px rgba(0, 0, 0, 0.15);
        pointer-events: auto;
    }

    .filter-drawer.is-open {
        pointer-events: auto;
    }

    .filter-drawer.is-open .filter-drawer__backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .filter-drawer.is-open .filter-drawer__panel {
        transform: translateX(0);
    }

    .filter-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #eef0f4;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
    }

    .filter-drawer__title {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
    }

    .filter-drawer__close {
        background: none;
        border: none;
        font-size: 20px;
        color: #6b7280;
        padding: 4px 8px;
        cursor: pointer;
    }

    body.filter-drawer-open {
        overflow: hidden;
    }

    /* Collapse groups by default on mobile for less scroll */
    .left_product_sidebar .filter-group__body {
        display: none;
    }
    .left_product_sidebar .filter-group__body.show {
        display: block;
    }
}

.left_product_sidebar .filter-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #fff4f4;
    border: 1px solid #f3c7c7;
    border-radius: 8px;
}

.left_product_sidebar .filter-active-bar__summary {
    font-size: 13px;
    font-weight: 600;
    color: #b42d2d;
}

.left_product_sidebar .filter-active-bar__clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #b42d2d;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 120ms ease;
}

.left_product_sidebar .filter-active-bar__clear:hover {
    background: #8e1f1f;
    color: #fff;
    text-decoration: none;
}

.left_product_sidebar .filter-group {
    border-top: 1px solid #eef0f4;
    padding: 4px 0;
}

.left_product_sidebar .filter-group:first-of-type {
    border-top: none;
}

.left_product_sidebar .filter-group__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    text-align: left;
}

.left_product_sidebar .filter-group__header:hover {
    color: #0f4bff;
}

.left_product_sidebar .filter-group__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.left_product_sidebar .filter-group__count {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.left_product_sidebar .filter-group__icon {
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    color: #6b7280;
    line-height: 1;
    width: 16px;
    text-align: center;
}

.left_product_sidebar .filter-group__header[aria-expanded="true"] .filter-group__icon--plus,
.left_product_sidebar .filter-group__header:not(.collapsed) .filter-group__icon--plus {
    display: none;
}

.left_product_sidebar .filter-group__header[aria-expanded="false"] .filter-group__icon--minus,
.left_product_sidebar .filter-group__header.collapsed .filter-group__icon--minus {
    display: none;
}

.left_product_sidebar .filter-group__body {
    padding: 0 4px 12px;
}

.left_product_sidebar .filter-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.left_product_sidebar .filter-chips li {
    margin: 0;
}

.left_product_sidebar .filter-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7ef;
    background: #f5f7fa;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.left_product_sidebar .filter-chip:hover {
    background: #e7ecff;
    border-color: #b7c5ff;
    color: #0f4bff;
}

.left_product_sidebar .filter-chip.is-selected {
    background: #0f4bff;
    border-color: #0f4bff;
    color: #fff;
}

.left_product_sidebar .filter-chip__label {
    font-weight: 600;
}

.left_product_sidebar .filter-chip__count {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}

.left_product_sidebar .filter-chip.is-selected .filter-chip__count,
.left_product_sidebar .filter-chip:hover .filter-chip__count {
    color: inherit;
    opacity: 0.85;
}

.left_product_sidebar .filter-group__more {
    margin-top: 10px;
    padding: 4px 0;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #0f4bff;
    cursor: pointer;
}

.left_product_sidebar .filter-group__more:hover {
    text-decoration: underline;
}

.left_product_sidebar .filter-checkbox-label {
    padding-left: 28px;
    font-size: 13px;
    color: #111827;
}

.left_product_sidebar .filter-checkbox-label .checkmark {
    height: 18px;
    width: 18px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
}

.left_product_sidebar .filter-checkbox-label input:checked ~ .checkmark,
.left_product_sidebar .filter-checkbox-label .filter-checkbox:checked ~ .checkmark {
    background: #0f4bff !important;
    border-color: #0f4bff !important;
}

.left_product_sidebar .filter-checkbox-label input:checked ~ .filter-name,
.left_product_sidebar .filter-checkbox-label .filter-checkbox:checked ~ .filter-name {
    color: #0f4bff;
    font-weight: 600;
}

.left_product_sidebar .filter-checkbox-label .checkmark:after {
    left: 5px;
    top: 2px;
}

.left_product_sidebar #price_wd {
    margin: 8px 4px 12px;
}

/* Price slider cleanup */
.left_product_sidebar .price_wd_inner {
    overflow: visible;
}

.left_product_sidebar .price_wd_inner .ui-slider {
    height: 4px;
    border: none;
    background: #e5e7ef;
    border-radius: 999px;
}

.left_product_sidebar .price_wd_inner .ui-slider .ui-slider-range {
    background: #0f4bff;
    border-radius: 999px;
}

.left_product_sidebar .price_wd_inner label {
    display: block;
    float: none;
    font-size: 12px;
    color: #6b7280;
    margin: 10px 0 6px;
}

.left_product_sidebar input#amount {
    border: 1px solid #e5e7ef;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #111827;
    background: #f8fafc;
    width: 100%;
}

.left_product_sidebar input#amount:focus {
    border-color: #0f4bff;
    outline: none;
}

.left_product_sidebar .price_wd_inner .ui-slider .ui-slider-handle {
    border: 3px solid #fff;
    height: 18px;
    width: 18px;
    background: #0f4bff;
    top: -8px;
    margin-left: -3px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.catalog-topbar {
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.catalog-title h3 {
    margin: 4px 0;
    font-weight: 800;
    font-size: 22px;
    color: #0f172a;
}

.catalog-title .eyebrow {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f0fe;
    color: #0f4bff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.catalog-topbar .topbar-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product_grid_inner {
    margin-bottom: 0;
    overflow: hidden;
}

.product_grid_inner .row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 576px) {
    .product_grid_inner .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .product_grid_inner .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .product_grid_inner .row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .product_grid_inner .row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1px solid #d9e3f0;
    background: #f8fbff;
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.chip i {
    font-size: 12px;
}

.chip:hover {
    border-color: #0f6fff;
    color: #0f6fff;
}

.chip.reset {
    background: #0f6fff;
    color: #fff;
    border-color: #0f6fff;
}

.chip--search {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
    font-weight: 600;
    text-decoration: none;
}

.chip--search:hover {
    background: #fed7aa;
    border-color: #f97316;
    color: #7c2d12;
    text-decoration: none;
}

.topbar-controls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.topbar-controls .control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.topbar-controls label {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.product_grid_inner .product-card.pro {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Keep all product tiles equal height */
.product_grid_inner .col {
    display: flex;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.product_grid_inner .product-card.pro {
    height: 100%;
    width: 100%;
}

.product-card.pro .product-title {
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
}

.product-card.pro .product-meta {
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
}

.product-card.pro .product-rating-section {
    min-height: 20px;
    max-height: 20px;
}

.product-card.pro .product-price {
    min-height: 32px;
    max-height: 32px;
    align-items: center;
    overflow: hidden;
}

.product-card.pro .product-actions {
    margin-top: auto;
}

.product-media {
    position: relative;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    min-height: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.03);
}

.badge-discount {
    position: absolute;
    left: 12px;
    top: 12px;
    background: linear-gradient(135deg, #ff7a18 0%, #af002d 85%);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
}

.badge-stock {
    position: absolute;
    right: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid transparent;
}

.badge-stock.in {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #15803d;
}

.badge-stock.out {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.product-body {
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.product-title:hover {
    color: #0f6fff;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-pill {
    background: #eef2ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.meta-pill.light {
    background: #f3f4f6;
    color: #4b5563;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-size: 12px;
}

.rating.muted {
    color: #9ca3af;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.price-current {
    font-size: 18px;
    font-weight: 800;
    color: #0f6fff;
}

.price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-unavailable {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 600;
}

.product-actions {
    padding: 0 14px 14px;
}

@media (max-width: 992px) {
    .catalog-topbar {
        flex-direction: column;
    }
    .topbar-controls {
        width: 100%;
    }
    .topbar-controls .control {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .product-media {
        min-height: 190px;
        height: 190px;
    }
    .catalog-topbar {
        padding: 14px;
    }
    .catalog-title h3 {
        font-size: 18px;
    }
    .catalog-shell {
        overflow-x: hidden;
    }
    .product_grid_inner .col {
        min-width: 0;
    }
    .product-card.pro {
        min-width: 0;
    }
    .product-body {
        min-width: 0;
        overflow: hidden;
    }
}


