.wc-custom-filter-sidebar {
    position: sticky;
    top: 120px;
    grid-column: 1;
    grid-row: 1 / span 10;
    width: 288px;
    float: none;
    margin: 0;
    align-self: start;
    max-height: calc(90vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wc-custom-filter-sidebar-item {
    background: #fff;
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.wc-custom-filter-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wc-custom-filter-sidebar__head strong {
    font-size: 14px;
    color: #1a1a1a;
}

.wc-custom-filter-clear {
    border: 0;
    background: transparent;
    color: #116133;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.wc-custom-filter-clear:hover {
    background-color: transparent;
    color: #116133;
    text-decoration: underline;
}

.wc-custom-filter-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border-color);
}

.wc-custom-filter-section:last-child {
    border-bottom: 0;
}

.wc-custom-filter-label {
    margin: 0 0 8px;
    padding: 0 4px;
    color: #6b7280;
    font: 10px/1.3 monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wc-custom-filter-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 4px;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 13px;
    line-height: 1.35;
}

.wc-custom-filter-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin: 0 0 2px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    color: #1a1a1a;
    font-weight: 500;
    font-family: var(--card-font);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    transition: background-color .15s ease, color .15s ease;
}

.wc-custom-filter-brand:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.wc-custom-filter-brand.is-selected {
    background: #116133;
    color: #fff;
}

.wc-custom-filter-line input {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #116133;
    flex: 0 0 auto;
}

.wc-custom-filter-brand-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wc-custom-filter-grow {
    flex: 1;
    min-width: 0;
}

.wc-custom-filter-count {
    color: #6b7280;
    font: 11px monospace;
}

.wc-custom-filter-brand.is-selected .wc-custom-filter-count {
    color: rgba(255, 255, 255, .7);
}

.wc-custom-filter-brand-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    background: #e8a020;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.wc-custom-filter-brand:nth-of-type(4n) .wc-custom-filter-brand-icon {
    background: #e8192c;
}

.wc-custom-filter-brand:nth-of-type(6n) .wc-custom-filter-brand-icon {
    background: #0057a8;
}

.wc-custom-filter-brand:nth-of-type(8n) .wc-custom-filter-brand-icon {
    background: #4a7c59;
}

.wc-custom-price-range {
    position: relative;
    height: 22px;
    margin: 18px 8px 6px;
}

.wc-custom-price-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 6px;
    border-radius: 99px;
    background: var(--card-border-color);
    cursor: pointer;
    touch-action: none;
}

.wc-custom-price-track span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 99px;
    background: #116133;
}

.wc-custom-price-thumb {
    position: absolute;
    top: 3px;
    width: 14px;
    height: 14px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #116133;
    box-sizing: border-box;
    z-index: 5;
    pointer-events: auto;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
    touch-action: none;
}

.wc-custom-price-thumb:active {
    cursor: grabbing;
}

.wc-custom-price-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wc-custom-price-values {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    color: #6b7280;
    font: 12px monospace;
}

.wc-custom-catalog-layout {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.wc-custom-filter-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    display: none;
}

.wc-custom-filter-sidebar__header h3 {
    font-size: 18px;
    margin: 0;
}

.wc-custom-filter-sidebar__header .wc-custom-filter-sidebar__close {
    width: 18px;
    height: 18px;
    border: 0;
    padding: 0;
    background-color: transparent;
    color: #1a1a1a;
}

.wc-custom-catalog-toolbar,
ul.products,
.wc-custom-list-header,
.woocommerce-pagination {
    grid-column: 2;
    min-width: 0;
}

.wc-custom-catalog-toolbar {
    clear: none;
    margin-left: 0;
}

ul.products {
    margin-left: 0;
}

.woocommerce-pagination {
    margin-left: 0;
}

.wc-custom-list-header {
    margin-left: 0;
}

@media (max-width: 1024px) {

    .wc-custom-filter-open:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        --color-black: #000;
        background-color:color-mix(in oklab,var(--color-black)40%,transparent);
        z-index: 111;
    }

    .wc-custom-filter-sidebar__header {
        display: flex;
    }

    .wc-custom-filter-sidebar__head {
        display: none;
    }

    .wc-custom-catalog-layout {
        display: block;
    }

    .wc-custom-filter-sidebar {
        display: none;
        position: fixed;
        z-index: 99999;
        right: 0;
        top: 0;
        height: 100%;
        overflow: auto;
        border-radius: 0;
    }

    body.wc-custom-filter-open .wc-custom-filter-sidebar {
        display: block;
    }
}

/* body.wc-custom-catalog-loading .wc-custom-filter-sidebar,
body.wc-custom-catalog-loading .wc-custom-catalog-toolbar,
body.wc-custom-catalog-loading ul.products {
    transition: opacity .15s ease;
    opacity: .55;
} */

body.wc-custom-catalog-loading .wc-custom-filter-sidebar,
body.wc-custom-catalog-loading .wc-custom-catalog-toolbar {
    pointer-events: none;
}




/* Brand product search */

.wc-custom-filter-brand-search {
    margin-bottom: 16px;
}

.wc-custom-filter-brand-search .wc-custom-filter-label {
    display: block;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #6B7280;
}

.wc-custom-filter-brand-search__field {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc-custom-filter-brand-search__field:focus-within {
    border-color: #15803D;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.10);
}

.wc-custom-filter-brand-search__field svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.wc-custom-brand-search {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #111827;
    font-size: 13px;
    line-height: normal;
}

.wc-custom-brand-search::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

.wc-custom-brand-search::-webkit-search-cancel-button {
    display: none;
}


.wc-custom-filter-brand-search__field {
    position: relative;
}

.wc-custom-brand-search-clear {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin-right: -4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.wc-custom-brand-search-clear:hover {
    background: #F3F4F6;
    color: #374151;
}

.wc-custom-brand-search-clear[hidden] {
    display: none !important;
}

