/* ============================================================
   PRODUCT ARCHIVE — FULL CSS
   Includes: Layout, Toolbar, Filter Sidebar, Banner, Vehicle
   ============================================================ */

/* ============================================================
   1. GLOBAL LAYOUT
   ============================================================ */
/* 
main#main:has(.woocommerce-no-products-found) {
    display: block !important;
    text-align: center;
    margin: 0 auto;
} */

#main {
    position: relative;
}

#shop-right-sidebar {
    float: right;
    width: 260px;
    margin-left: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

#main ul.products {
    width: calc(100% - 300px);
    float: left;
    box-sizing: border-box;
}

#main .woocommerce-pagination,
#main .storefront-sorting {
    clear: both;
}

/* ============================================================
   2. GRID LAYOUT (Shop + Product Taxonomy Pages)
   ============================================================ */

.post-type-archive-product main#main,
.tax-product_cat main#main,
.tax-product_tag main#main,
.tax-product_brand main#main {
    display: grid;
    grid-template-columns: 344px 1fr;
    margin: 0 auto;
    align-items: start;
    padding-bottom: 120px;
}

.post-type-archive-product main#main aside#shop-sidebar,
.tax-product_cat main#main aside#shop-sidebar,
.tax-product_tag main#main aside#shop-sidebar,
.tax-product_brand main#main aside#shop-sidebar {
    order: 1;
    width: 325px;
    position: sticky;
    grid-row: span 6;
    top: 200px;
    left: 0;
    height: 90vh;
    overflow: auto;
    padding: 24px !important;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: #00000026 #00000008;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.post-type-archive-product main#main .woocommerce-notices-wrapper,
.tax-product_cat main#main .woocommerce-notices-wrapper,
.tax-product_tag main#main .woocommerce-notices-wrapper,
.tax-product_brand main#main .woocommerce-notices-wrapper {
    order: 2;
}

.post-type-archive-product main#main p.woocommerce-result-count,
.tax-product_cat main#main p.woocommerce-result-count,
.tax-product_tag main#main p.woocommerce-result-count,
.tax-product_brand main#main p.woocommerce-result-count {
    order: 3;
    display: none;
}

.post-type-archive-product main#main form.woocommerce-ordering,
.tax-product_cat main#main form.woocommerce-ordering,
.tax-product_tag main#main form.woocommerce-ordering,
.tax-product_brand main#main form.woocommerce-ordering {
    order: 4;
    display: none;
}

.post-type-archive-product main#main ul.products,
.tax-product_cat main#main ul.products,
.tax-product_tag main#main ul.products,
.tax-product_brand main#main ul.products {
    order: 5;
    width: 100%;
}

.post-type-archive-product main#main nav.woocommerce-pagination,
.tax-product_cat main#main nav.woocommerce-pagination,
.tax-product_tag main#main nav.woocommerce-pagination,
.tax-product_brand main#main nav.woocommerce-pagination {
    margin: -10px 0 0 0;
    order: 6;
}

/* ============================================================
   3. TOP BANNER
   ============================================================ */

.custom-shop-banner-wrapper {
    padding: 64px 0 34px;
    text-align: center;
    background: #F8F8F9;
    margin-bottom: 40px;
    position: relative;
    border-bottom: 1px solid #D9D9D9;
}

.csb-title {
    font-family: var(--primary-font);
    font-weight: 500;
    font-size: 56px;
    line-height: 61.5px;
    letter-spacing: -0.3px;
    text-align: center;
    color: #121212;
    margin: 0 0 16px 0;
}

.csb-breadcrumbs {
    font-family: var(--primary-font);
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    text-transform: uppercase;
}

.custom-shop-banner-wrapper .woocommerce-breadcrumb {
    color: #555555;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.csb-breadcrumbs nav.woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px !important;
    line-height: 22px;
    text-align: center;
    text-transform: uppercase;
    gap: 10px;
    color: #555555;
    text-decoration: none !important;
    margin-bottom: 20px !important;
}
.csb-description p:not(:last-child) {
    margin-bottom: 15px;
} 

.csb-breadcrumbs nav.woocommerce-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.csb-vb-header.slct_vc {
    margin-bottom: 8px;
}

span.csb-sep img {
    height: 10px;
}

/* ============================================================
   4. VEHICLE FILTER SHORTCODE (WPCE)
   ============================================================ */

.csb-filter-shortcode {
    padding: 8px;
    background: #ffff;
    border: 1px solid #E6E6E6;
    border-radius: 16px;
}

.csb-filter-shortcode form {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.csb-filter-shortcode form input[type="hidden"] {
    display: none;
}

.csb-filter-shortcode form .wpce-clearfix {
    display: none;
}

.halo-multi-option-notice {
    background: tomato;
    color: #fff;
    padding: 5px 15px;
    border-radius: 18px;
    order: 3;
    margin-bottom: 15px;
}

.csb-filter-shortcode form .wpce-field {
    width: 24%;
    margin: 0;
    text-align: left;
    min-height: 89px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 5px 16px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.csb-filter-shortcode form .wpce-field.is-next {
    padding-left: 71px !important;
    background: #121212;
}

.csb-filter-shortcode form .select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 0;
    border-radius: 4px;
}

.csb-filter-shortcode form .wpce-field label {
    color: #374151;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}

.csb-filter-shortcode form .wpce-field.is-next label {
    color: #fff;
    margin: 0;
}

.csb-filter-shortcode form .wpce-field select {
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 18px;
    line-height: 29px;
    border-radius: 7px;
    background: #000;
    color: #fff;
    outline: 0;
    cursor: pointer;
}

.csb-filter-shortcode form .wpce-field select[disabled="disabled"] {
    opacity: 30%;
}

.csb-filter-shortcode form .wpce-field.is-next:before {
    content: '';
    width: 45px;
    height: 45px;
    position: absolute;
    left: 16px;
    background: url(/wp-content/uploads/2026/09/transport_15028427-1-2.png) no-repeat center;
}

.csb-filter-shortcode form .wpce-field.wpce-field-buttons {
    background: transparent !important;
    padding: 0 !important;
    width: unset;
}

.wpce-field.wpce-field-buttons::before {
    display: none;
}

.csb-filter-shortcode form .wpce-field.is-next .select2-selection.select2-selection--single {
    background: #121212;
}

.csb-filter-shortcode form .wpce-field.is-next .select2-selection.select2-selection--single > span {
    color: #fff;
    font-size: 18px;
}

.wpce-field.wpce-field-buttons:has(input.wpce-reset-search) {
    gap: 5px;
}

.wpce-field.wpce-field-buttons:has(input.wpce-reset-search) input[type="submit"],
input.wpce-reset-search {
    height: 40px !important;
    min-height: unset !important;
    border-radius: 10px !important;
    margin: 0;
}

.wpce-field.wpce-field-buttons input[type="submit"] {
    color: #fff;
    border: 1px solid #121212;
    border-radius: 0px 10px 10px 0px;
    padding: 0 15px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 106px !important;
    min-width: unset !important;
    width: unset !important;
    cursor: pointer;
    font-size: 16px;
    background: url(/wp-content/uploads/2026/10/Group.png) no-repeat 14px center;
    background-color: #121212;
    text-transform: uppercase;
    margin: -10px -10px -10px 0px;
    font-family: var(--primary-font);
    FONT-WEIGHT: 500;
}

input.wpce-reset-search {
    background: tomato;
    color: #fff;
    border: 1px solid;
    border-radius: 10px !important;
    font-family: var(--body-font);
    font-size: 18px;
    text-transform: uppercase !important;
}

/* ============================================================
   5. VEHICLE SELECTED BAR
   ============================================================ */

div#csb-vehicle-selected {
    width: 100%;
}

.csb-vehicle-bar .wrapper {
    margin-top: 17px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    animation: csbFadeIn 0.3s ease-out;
    box-shadow: 0px 9px 13px 0px #00000014;
    text-align: left;
    justify-content: center;
}

@keyframes csbFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.csb-vb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b2c44 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 22px !important;
}

.csb-vb-header svg {
    color: var(--primary);
    flex-shrink: 0;
}

.csb-vb-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    justify-content: center;
}

.csb-vb-card {
    border-radius: 10px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8F8F9;
    width: 24.4% !important;
}

.csb-vb-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csb-vb-card-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.csb-vb-card-label {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    color: #1F2937;
}

.csb-vb-card-value {
    font-weight: 400;
    font-size: 18px;
    line-height: 29px;
    color: #1F2937;
}

.csb-vb-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}

.csb-vb-btn {
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 26px !important;
    padding: 0 14px;
    border-radius: 50px;
    gap: 8px;
    text-decoration: none;
}

.csb-vb-change {
    color: var(--primary);
    background: #ffffff;
    border-color: var(--primary);
}

.csb-vb-change:hover {
    background: var(--primary);
    color: #ffffff !important;
}

.csb-vb-btn:hover img {
    filter: brightness(0) invert(1);
}

.custom-shop-banner-wrapper:has(div#csb-vehicle-selected[style="display: block;"]) .csb-filter-shortcode {
    display: none;
}

.custom-shop-banner-wrapper:has(div#csb-vehicle-selected[style="display: block;"]) .csb-vb-header.slct_vc {
    display: none;
}

/* ============================================================
   6. CSB LOADER
   ============================================================ */

.csb-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(247, 248, 250, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: csbLoaderFadeIn 0.2s ease-out;
}

@keyframes csbLoaderFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.csb-loader-round {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid #e6eef5;
    border-top-color: var(--primary, #0090D1);
    animation: csbSpin 0.8s linear infinite;
}

@keyframes csbSpin {
    to {
        transform: rotate(360deg);
    }
}

.csb-loader-text {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0b2c44;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   7. SHOP TOOLBAR
   ============================================================ */

.custom-sorting form.woocommerce-ordering {
    display: block !important;
}

.custom-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
    background: #F8F8F9;
    box-sizing: border-box;
    order: 3;
}

.custom-product-count,
.custom-per-page,
.custom-sorting {
    display: flex;
    align-items: center;
    gap: 7px;
}

.custom-product-count {
    width: max-content;
}

.count-label,
.custom-shop-toolbar .wrapper {
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 32px;
    color: #121212;
}

.toolbar-label,
.count-value {
    color: #121212;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 18px;
    line-height: 29px;
}

.custom-per-page select,
.custom-sorting select {
    height: 42px;
    padding: 0 26px 0 16px;
    border-radius: 50px;
    color: #555555;
    cursor: pointer;
    outline: none;
    border: 1px solid #E6E6E6;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    background-color: #fff !important;
    appearance: none;
    background: url(https://halo.zillionera.com/wp-content/uploads/2026/09/Vector-4.png) no-repeat center right 10px;
}

.custom-per-page select {
    min-width: 81px;
}

.custom-sorting select {
    min-width: 180px;
}

.custom-sorting .woocommerce-ordering {
    margin: 0;
    float: none;
}

.custom-sorting .woocommerce-ordering select {
    margin: 0;
}

/* ============================================================
   8. CATEGORY FILTER SIDEBAR
   ============================================================ */

.shop-filter-heading,
.shop-filter-section-title {
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 17px;
    line-height: 26px;
    color: #121212;
    margin-bottom: 28px;
}

.shop-selected-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    justify-content: space-between;
}

.shop-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 11px;
    background: transparent;
    border-radius: 500px;
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
    color: #555555;
    border: 1px solid #E6E6E6;
}

.shop-filter-chip:hover {
    color: #222;
}

.chip-close {
    font-size: 14px;
    line-height: 1;
    color: #111111;
}

.shop-clear-filters {
    color: #121212;
    text-decoration: underline;
    white-space: nowrap;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

.shop-category-group {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 16px;
    margin-bottom: 31.5px;
}

.shop-category-toggle {
    width: 100%;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 26px;
    text-align: center;
    color: #121212;
    cursor: pointer;
    background: transparent;
    text-align: left;
}

.shop-category-toggle:hover {
    background: transparent;
    color: #222;
}

.shop-category-title {
    display: block;
}

.shop-category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    transition: transform .25s ease;
}

.shop-category-group.is-open .shop-category-arrow {
    transform: rotate(180deg);
}

.shop-category-children {
    display: none;
    margin-top: 16px;
    flex-direction: column;
    gap: 8px;
}

.shop-category-group.is-open .shop-category-children {
    display: flex;
    padding: 0;
}

.shop-category-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    cursor: pointer;
    box-sizing: border-box;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 18px;
    line-height: 29px;
    color: #555555;
    padding: 0 !important;
}

.shop-category-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 10px;
    border-radius: 3px;
    position: relative;
    background: #fff;
    box-sizing: border-box;
    border: 1px solid #555555;
}

.shop-category-checkbox input:checked + .custom-checkbox {
    background: #121212;
    border-color: #121212;
}

.shop-category-checkbox input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.category-name {
    flex: 1;
    line-height: 1.4;
}

.category-count {
    color: #888888;
    margin-left: 10px;
    white-space: nowrap;
}

.shop-category-checkbox:hover .category-name {
    color: #222;
}

/* ============================================================
   9. WPCE SEARCH SUMMARY
   ============================================================ */

.wpce-search-summary {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #ddd;
    background: #fff;
}

.wpce-search-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.wpce-search-summary-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.wpce-search-summary-values span {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 14px;
}

.wpce-change-filter {
    border: 1px solid #222;
    background: #222;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 3px;
}

.wpce-change-filter:hover {
    opacity: .9;
}

/* ============================================================
   10. MOBILE FILTER TOGGLE / OVERLAY (hidden on desktop)
   ============================================================ */

#shop-filter-toggle,
#shop-filter-overlay,
.shop-filter-close,
.shop-filter-mobile-header,
.shop-filter-apply-btn-wrap {
    display: none;
}

/* ============================================================
   11. WOOCOMMERCE ORDERING SELECT
   ============================================================ */

.woocommerce .woocommerce-ordering select {
    border: 1px solid #E6E6E6;
    min-height: 42px;
    min-width: 216px;
    border-radius: 50px;
    padding: 5px 26px 5px 16px;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    outline: 0;
    background: url(https://halo.zillionera.com/wp-content/uploads/2026/09/Vector-4.png) no-repeat center right 10px;
    cursor: pointer;
    appearance: none;
}

/* ============================================================
   12. WOOCOMMERCE PAGINATION
   ============================================================ */

.woocommerce-pagination {
    width: 100%;
    margin: 50px 0 20px;
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: 0 !important;
    flex-wrap: wrap;
    gap: 15px 12px; /* 15px row gap, 12px column gap */
}

.woocommerce-pagination ul.page-numbers li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Base shape for regular numbers */
.woocommerce-pagination ul.page-numbers li .page-numbers {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 48px !important;
}

/* Active state (Blue) */
.woocommerce-pagination ul.page-numbers li .page-numbers.current,
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
    background: #121212 !important;
    color: #fff !important;
}

/* --- Prev / Next Arrow Styling (Removes parallelogram shape) --- */

/* NOTE: removed global "span.page-numbers.current" override — it is now handled in Section 12 */

/* ============================================================
   13. PRODUCT GRID — BORDER RADIUS
   ============================================================ */

.post-type-archive.post-type-archive-product {
    background: #f8f8f9;
}

ul.products li.product:first-child {
    border-radius: 8px 0 0 0;
}

ul.products li.product:last-child {
    border-radius: 0 0 8px 0;
}

ul.products li.product:nth-child(4) {
    border-radius: 0 8px 0 0;
}

ul.products li.product:nth-last-child(4) {
    border-radius: 0 0 0 8px;
}

/* ============================================================
   14. RESPONSIVE — TOOLBAR (max-width: 1680px)
   ============================================================ */
.csb-description {
    max-width: 1050px;
    margin: 25px auto 25px auto;
}
.woocommerce-no-products-found {
    order: 3;
} 
main#main:has(.woocommerce-no-products-found) .custom-shop-toolbar {
    display: none;
} 
.csb-category-wrapper {
    order: 2;
}
.csb-category-title {
    margin-bottom: 25px;
    color: #121212;
    FONT-WEIGHT: 500;
} 
/* ============================================================
   MAIN CATEGORY WRAPPER (Soft UI + Layout)
   ============================================================ */
.csb-category-wrapper {
    margin: 0px 0 40px;
}

/* 1) Main Category Title */
.csb-category-title {margin-bottom: 25px;color: #121212;FONT-WEIGHT: 500;}

/* 2) Category Description */
.csb-category-description {
    margin: 0 0 28px;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.65;
}
.csb-category-description p {
    margin: 0 0 10px;
}
.csb-category-description p:last-child {
    margin-bottom: 0;
}
.csb-category-description img {
    max-width: 100%;
    height: auto;
}

/* 3) Subcategory Grid & Cards */
.csb-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.csb-subcat-card {
    display: flex;
    flex-direction: column;
    background: #ffffff; /* Card pops against the grey wrapper */
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E6E6E6;
    transition: all 0.3s ease;
}

.csb-subcat-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        8px 8px 20px rgba(174, 184, 204, 0.35),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.csb-subcat-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #e9edf3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csb-subcat-card-media img {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    display: block;
}

.csb-subcat-card-media-placeholder {
    display: block; 
    width: 40%; 
    height: 40%;
    border-radius: 50%; 
    background: #d8dee8;
}

.csb-subcat-card-body { 
    padding: 14px 6px 6px; 
    text-align: center; 
}

.csb-subcat-card-title {
    margin: 0 0 6px;
    font-size: 15px; 
    font-weight: 600;
    line-height: 1.3; 
    color: #1f2a37;
}

.csb-subcat-card-count { 
    font-size: 12px; 
    color: #6b7280; 
}
.csb-category-description p {
    margin-bottom: 15px !important;
} 
h3.cat_title {
    margin-bottom: 20px;
}
/* Responsive */



@media (max-width: 991px) {

    .csb-category-title { font-size: 24px; }
    .csb-category-description { margin-bottom: 20px; }
    .csb-subcategory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .csb-subcat-card { padding: 10px; border-radius: 12px; }
    .csb-subcat-card-title { font-size: 13px; }
}

@media (max-width: 1680px) {
    ul.products li.product {
        border-radius: 0;
    }

    ul.products li.product:first-child {
        border-radius: 8px 0 0 0;
    }

    ul.products li.product:last-child {
        border-radius: 0 0 8px 0;
    }

    ul.products li.product:nth-child(3) {
        border-radius: 0 8px 0 0;
    }

    ul.products li.product:nth-last-child(3) {
        border-radius: 0 0 0 8px;
    }

    ul.products li.product:nth-child(4) {
        border-radius: 0;
    }

    .custom-shop-banner-wrapper {
        padding: 50px 0 32px;
        margin-bottom: 31px;
    }

    .post-type-archive-product main#main aside#shop-sidebar,
    .tax-product_cat main#main aside#shop-sidebar,
    .tax-product_tag main#main aside#shop-sidebar,
    .tax-product_brand main#main aside#shop-sidebar {
        width: 255px;
        padding: 18px !important;
        text-align: left;
        top: 150px;
    }

    .csb-title {
        font-size: 44px;
        letter-spacing: -0.24px !important;
        margin: 0 0 12px 0;
    }

    .csb-breadcrumbs nav.woocommerce-breadcrumb {
        margin-bottom: 16px !important;
    }

    .csb-vb-header.csb-vb-header {
        font-size: 14px;
        line-height: 17.38px;
    }

    ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .toolbar-label,
    .count-value {
        font-size: 14px;
    }

    .custom-per-page select,
    .woocommerce .woocommerce-ordering select {
        min-width: 56px;
        font-size: 14px;
    }

    .shop-filter-chip {
        font-size: 14px;
    }

    .shop-clear-filters {
        font-size: 14px;
    }

    li.product .price {
        font-size: 18px !important;
        margin-top: 12px !important;
    }

    .csb-filter-shortcode form .wpce-field {
        min-height: 75px;
    }

    .csb-filter-shortcode form .wpce-field.is-next .select2-selection.select2-selection--single > span {
        font-size: 16px !important;
    }

    .wpce-field.wpce-field-buttons input[type="submit"] {
        height: 89px !important;
        font-size: 13px;
    }

    .shop-filter-heading,
    .shop-filter-section-title {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .custom-checkbox {
        width: 14px;
        height: 14px;
        min-width: 14px;
    }

    .shop-category-checkbox input:checked + .custom-checkbox::after {
        left: 4px;
        width: 3px;
        height: 5px;
    }

    .shop-category-group {
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .shop-category-toggle {
        font-size: 15px;
    }

    .shop-category-children {
        margin-top: 12px;
    }

    .post-type-archive-product main#main,
    .tax-product_cat main#main,
    .tax-product_tag main#main,
    .tax-product_brand main#main {
        grid-template-columns: 270px 1fr;
    }

    .shop-category-arrow {
        width: 10px;
    }

    .csb-vb-card-value {
        font-size: 15px;
    }

    .csb-vb-card-label {
        font-size: 12px;
    }

    .csb-vb-cards {
        margin-bottom: 8px;
    }

    .shop-category-checkbox {
        font-size: 14px;
    }

    .shop-category-group.is-open .shop-category-children {
        display: flex;
        padding: 0;
        gap: 0;
    }
}

@media (max-width: 1240px) {
    .woocommerce ul.products li.product .woocommerce-placeholder {
        height: auto;
    }
}

@media (max-width: 1200px) {
    .wpce-field.wpce-field-buttons:has(input.wpce-reset-search) input[type="submit"],
    input.wpce-reset-search {
        width: 20% !important;
        min-width: 200px !IMPORTANT;
    }

    .csb-filter-shortcode form .wpce-field.is-next {
        padding-left: 16px !important;
    }

    /* WPCE vehicle filter adjustments */
    .csb-vb-card {
        min-width: unset;
        width: 24% !important;
    }

    .wpce-field.wpce-field-buttons input[type="submit"] {
        width: 20% !important;
        margin: 0 auto;
        min-height: 36px !important;
        min-width: 140px !important;
        height: unset !important;
        border-radius: 10px !important;
    }

    .csb-filter-shortcode form .wpce-field.wpce-field-buttons {
        min-height: unset;
        align-items: center;
        width: 100%;
        flex-direction: row;
    }

    .csb-filter-shortcode form {
        flex-wrap: wrap;
        gap: 15px 5px;
    }

    .csb-filter-shortcode form .wpce-field {
        padding: 16px !important;
        width: 49.7%;
    }

    .csb-filter-shortcode form .wpce-field:before {
        display: none;
    }

    /* Toolbar */
    .custom-product-count {
        display: none;
    }

    /* Hide desktop heading, show mobile header */
    .shop-filter-heading-desktop {
        display: none !important;
    }

    /* Filter toggle button */
    #shop-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 22px;
        background: #121212;
        color: #fff;
        border: 0;
        border-radius: 50px;
        font-family: var(--body-font);
        font-weight: 500;
        font-size: 16px;
        line-height: 26px;
        cursor: pointer;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    #shop-filter-toggle:hover {
        background: #333;
    }

    #shop-filter-toggle svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Overlay backdrop */
    #shop-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }

    #shop-filter-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Off-canvas sidebar */
    .post-type-archive-product main#main aside#shop-sidebar,
    .post-type-archive-product main#main #shop-sidebar,
    .tax-product_cat main#main aside#shop-sidebar,
    .tax-product_cat main#main #shop-sidebar,
    .tax-product_tag main#main aside#shop-sidebar,
    .tax-product_tag main#main #shop-sidebar,
    .tax-product_brand main#main aside#shop-sidebar,
    .tax-product_brand main#main #shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 340px !important;
        max-width: 88vw !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 9999 !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(-105%);
        transition: transform .35s cubic-bezier(0.22, 0.61, 0.36, 1);
        overflow-y: auto;
        padding: 24px 20px 100px !important;
        box-sizing: border-box;
        grid-row: auto !important;
        order: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    #shop-sidebar.is-open,
    .shop-category-sidebar.is-open {
        transform: translateX(0) !important;
    }

    /* Mobile slidebar header */
    .shop-filter-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid #e8e8e8;
        position: relative;
    }

    .shop-filter-mobile-header .shop-filter-heading {
        margin-bottom: 0;
        font-size: 18px;
    }

    /* Close button inside slidebar */
    .shop-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 0;
        background: #f2f2f2;
        color: #121212;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        flex-shrink: 0;
    }

    .shop-filter-close:hover {
        background: #e5e5e5;
    }

    .shop-filter-apply {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 20px;
        background: var(--primary, #0090D1);
        color: #fff;
        border: 0;
        border-radius: 10px;
        font-family: var(--body-font);
        font-weight: 600;
        font-size: 16px;
        line-height: 26px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .shop-filter-apply:hover {
        filter: brightness(0.95);
    }

    /* Restore block layout on mobile */
    .post-type-archive-product main#main,
    .tax-product_cat main#main,
    .tax-product_tag main#main,
    .tax-product_brand main#main {
        display: block !important;
    }

    .post-type-archive-product main#main ul.products,
    .tax-product_cat main#main ul.products,
    .tax-product_tag main#main ul.products,
    .tax-product_brand main#main ul.products {
        width: 100% !important;
        float: none !important;
    }

    /* Hide the toggle when slidebar is open */
    body.shop-filter-open #shop-filter-toggle {
        visibility: hidden;
    }
}

@media (max-width: 991px) {
    .csb-filter-shortcode form .wpce-field {
        width: 49.55%;
    }

    ul.products li.product:first-child {
        border-radius: 8px 0 0 0;
    }

    ul.products li.product:last-child {
        border-radius: 0 0 8px 0;
    }

    ul.products li.product:nth-child(2) {
        border-radius: 0 8px 0 0;
    }

    ul.products li.product:nth-last-child(2) {
        border-radius: 0 0 0 8px;
    }
}

@media (max-width: 768px) {
    #shop-right-sidebar {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
    }

    #main ul.products {
        width: 100%;
        float: none;
    }

    .csb-vb-cards {
        gap: 10px;
    }

    .csb-vb-card {
        min-width: 100%;
        max-width: 100%;
    }

    .csb-vb-actions {
        flex-direction: column;
        gap: 10px;
    }

    .csb-vb-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .custom-shop-toolbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
    }

    .custom-product-count {
        width: 100%;
        margin-right: 0;
    }

    .custom-per-page,
    .custom-sorting {
        flex: 1;
    }

    .custom-per-page select,
    .custom-sorting select {
        width: 100%;
        min-width: 0;
    }

    .csb-filter-shortcode form .wpce-field {
        width: 100% !important;
    }
}

/* ============================================================
   15. RESPONSIVE — SMALL (max-width: 575px)
   ============================================================ */

@media (max-width: 575px) {

    .csb-filter-shortcode form .wpce-field.wpce-field-buttons {
        flex-direction: column-reverse;
    }

    main#main:has(.woocommerce-no-products-found) {
        width: 90%;
    }

    .woocommerce .woocommerce-ordering select {
        min-width: 136px;
    }

    .toolbar-label,
    .count-value {
        font-size: 14px;
    }

    .csb-filter-shortcode form .wpce-field {
        min-height: 50px;
    }

    .wpce-field.wpce-field-buttons input[type="submit"] {
        min-height: 40px !important;
        width: 100% !important;
    }

    .post-type-archive-product main#main ul.products li.product,
    .tax-product_cat main#main ul.products li.product,
    .tax-product_tag main#main ul.products li.product,
    .tax-product_brand main#main ul.products li.product {
        width: 100%;
    }

    .csb-title {
        font-size: 36px;
    }

    .woocommerce-pagination ul.page-numbers li .page-numbers {
        width: 39px;
        height: 39px;
        font-size: 12px;
    }

    .custom-shop-banner-wrapper {
        padding: 40px 0 40px;
    }

    .csb-title {
        font-size: 36px !important;
    }
}

/* ============================================================
   16. RESPONSIVE — SMALL PHONES (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {

    .post-type-archive-product main#main aside#shop-sidebar,
    .post-type-archive-product main#main #shop-sidebar,
    .tax-product_cat main#main aside#shop-sidebar,
    .tax-product_cat main#main #shop-sidebar,
    .tax-product_tag main#main aside#shop-sidebar,
    .tax-product_tag main#main #shop-sidebar,
    .tax-product_brand main#main aside#shop-sidebar,
    .tax-product_brand main#main #shop-sidebar {
        width: 92vw !important;
        max-width: 92vw !important;
    }
}