/* ============================================================
   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;
    width: 40%;
    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: 431px 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: 375px;
    position: sticky;
    grid-row: span 6;
    top: 200px;
    left: 0;
}

.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: 72px 0 12px;
    text-align: center;
    background: #F8F8F9;
    margin-bottom: 80px;
    position: relative;
}

.csb-content {
    max-width: 1195px;
    margin: 0 auto;
}

.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: 46px !important;
}

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

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

/* ============================================================
   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;
}

.csb-filter-shortcode form .wpce-field {
    width: 269px;
    margin: 0;
    text-align: left;
    min-height: 89px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 71px !important;
    position: relative;
    padding: 5px 16px;
    background: #121212;
    border-radius: 10px;
}

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

.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: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;
}

.wpce-field.wpce-field-buttons input[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 0px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100% !important;
    min-width: unset !important;
    width: unset !important;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 18px;
}

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

/* ============================================================
   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;
    flex: 1 1 auto;
    max-width: 250px;
    background: #F8F8F9;
}

.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 {
    text-transform: uppercase;
    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%;
    padding: 8px 20px;
    margin-bottom: 24px;
    background: #F8F8F9;
    box-sizing: border-box;
    order: 3;
    border-top: 1.03px solid #E6E6E6;
    border-bottom: 1.03px solid #E6E6E6;
}

.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: 8px;
}

.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 {
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    text-transform: uppercase;
    color: #121212;
    margin-bottom: 16px;
}

.shop-selected-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

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

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

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

.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: 18px;
    line-height: 29px;
    text-align: center;
    text-transform: uppercase;
    color: #121212;
    cursor: pointer;
    background: transparent;
}

.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: #159ed8;
    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;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 18px;
    line-height: 29px;
    color: #555555;
}

.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: #159ed8;
    border-color: #159ed8;
}

.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 0;
}

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

.woocommerce-pagination ul.page-numbers li .page-numbers {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 54px;
    padding: 0 !important;
    margin: 0 !important;
    background: #f4f6f7;
    color: #111;
    border: 0 !important;
    border-radius: 5px;
    font-size: 19.8px;
    font-weight: 400;
    line-height: 31.9px;
    text-decoration: none;
    clip-path: polygon(0 0, 78% 0, 100% 100%, 22% 100%);
    transition: all 0.2s ease;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current {
    background: #f4f6f7;
    color: #111;
}

.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
    background: #e9edef;
    color: #111;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.dots {
    display: none !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.prev {
    font-size: 0;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.prev::before {
    content: "‹";
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    position: relative;
    top: -2px;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.next {
    font-size: 0;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.next::before {
    content: "›";
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    position: relative;
    top: -2px;
}

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


/* ============================================================
   16. RESPONSIVE — TOOLBAR (max-width: 1240px)
   ============================================================ */

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

}


@media (max-width: 1200px) {

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

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

    .wpce-field.wpce-field-buttons input[type="submit"] {
        width: 100% !important;
        margin: 0 auto;
        min-height: 36px !important;
    }
	.csb-filter-shortcode form .wpce-field.wpce-field-buttons {
		min-height: unset;
	}
    .csb-filter-shortcode form {
        flex-wrap: wrap;
    }

    .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;
    }

    /* Apply button (sticky at bottom) */
    .shop-filter-apply-btn-wrap {
        display: block;
        position: sticky;
        bottom: 0;
        margin-top: 24px;
        padding-top: 16px;
        background: #fff;
    }

    .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%;
    }	
	
}

@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;
    }
}

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

@media (max-width: 575px) {
	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;
        font-size: 12px;
        height: 39px;
    }
}

/* ============================================================
   15. 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;
    }
}