.category-page-row .sidebar-inner.col-inner {
    position: sticky;
    top: 120px;
}

.custom-filter-sidebar {
    background: #fff;
    border-radius: 10px;
    /* padding: 20px; */
    /* box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08); */
    border: 1px solid #0000001A;
}

.custom-filter-sidebar .filter-title {
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid #0000001A;
    padding-bottom: 8px;
    margin-bottom: 15px;
    padding: 10px 20px 5px 20px;
    background: linear-gradient(133.92deg, #064D5C 1.88%, #1E7680 50.94%, #41A2A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-filter-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    max-height: 80vh;
    overflow-y: scroll; 
    overflow-x: hidden;
}

.product-filter-wrapper > .filter-block {
    padding: 15px 0;
    border-bottom: 0.25px solid #BBBBBB;
}
.product-filter-wrapper>.filter-block:last-child{
    border-bottom: none;
}

.filter-heading {
    margin-bottom: 10px;
}
#amlab-filter-form .flex-start-content  label .item-inner{
    justify-content: flex-end;
}
#amlab-filter-form label {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 3px;
}   
#amlab-filter-form label.color-item,
#amlab-filter-form label.material-item{
    display: flex;
    align-items: center;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
}
#amlab-filter-form label .item-inner{
    display: flex;
    align-items: center;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    width: 100%;
}
#amlab-filter-form label .item-inner img{
    width: 24px;
    aspect-ratio: 1 / 1;
}
.woo-price-slider {
    margin-top: 10px;
}

#amlab-filter-form input[type=checkbox] {
    margin-bottom: 4px;
}

.amlab-filter-brand .brand-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.amlab-filter-brand .brand-item {
    position: relative;
    cursor: pointer;
    text-align: center;
    margin-bottom: 0;

}

/* Ẩn checkbox */
.amlab-filter-brand .brand-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Style ảnh */
.amlab-filter-brand .brand-item img {
    width: 100%;
    aspect-ratio: 2 / 1;
    /* giữ vuông đều */
    object-fit: contain;
    border: 1px solid #e0e0e0;
    padding: 4px;
    background: #fff;
    transition: 0.2s ease;
    border-radius: 6px;
    overflow: hidden;
    /* border-color: #FF9900; */
}

.product-filter-wrapper .accordion-title.active .icon-angle-down {
    transform: rotate(180deg);
}


/* Khi chọn → viền cam */
.amlab-filter-brand .brand-item input[type="checkbox"]:checked+img,
.amlab-filter-brand .brand-item:hover {
    border-color: #FF9900;
    /* box-shadow: 0 0 0 1px rgba(255, 97, 23, 0.3); */
}

.amlab-filter-brand .brand-item:has(input[type="checkbox"]:checked)::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: url('../images/checked.png') center/contain no-repeat;
    z-index: 6;
}

.amlab-filter-brand .brand-item:has(input[type="checkbox"]:checked)::before {
    content: '';
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 16px;
    background: linear-gradient(133.92deg, #064D5C 1.88%, #1E7680 50.94%, #41A2A5 100%);
    border-bottom-left-radius: 6px;
    border-top-right-radius: 6px;
    z-index: 5;
}

.widget_price_filter .price_slider_amount button {
    display: none !important;
}

@media only screen and (max-width: 48em) {

    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    /* Ẩn filter mặc định */
    .category-page-row .large-3 {
        display: none;
    }

    .filter-lightbox .large-3 {
        padding: 0 !important;

    }

    .woocommerce-result-count {
        margin-right: 10px;
        font-size: 14px !important;
    }

    .amlab-dropdown-label {
        font-size: 14px;
    }

    /* Lightbox overlay */
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .amlab-dropdown-menu li a {
        font-size: 14px;
    }

    /* Container lightbox filter */
    .filter-lightbox {
        background: #fff;
        border-radius: 16px 16px 0 0;
        /* padding: 20px; */
        width: 100%;
        max-width: 100vw;
        height: 85vh;
        overflow-y: hidden;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        position: relative;
        animation: fadeInUp 0.3s ease;
        top: 105px;
    }

    .product-filter-wrapper {
        max-height: 85vh;
        top: 64px;
    }

    .custom-filter-sidebar {
        border: none;
        padding: 0;
    }

    .filter-mobile-footer {
        position: fixed;
        bottom: 0;
        width: 100vw;
        background: #fff;
    }

    .custom-filter-sidebar .filter-title {
        position: absolute;
        top: 0;
        z-index: 1025;
        min-height: 64px;
        background: linear-gradient(133.92deg, #064D5C 1.88%, #1E7680 50.94%, #41A2A5 100%);
        align-self: center;
        align-content: center;
        padding: 0 15px !important;
        color: #fff;
        margin-bottom: 0;
        -webkit-text-fill-color: #fff;
    }

    /* .custom-filter-sidebar .filter-block,
    .custom-filter-sidebar .accordion {
        padding: 0 15px;
    } */

    .amlab_custom_select_option {
        display: none !important;
    }

    /* Nút đóng */
    .filter-lightbox .close-filter {
        position: absolute;
        top: -3px;
        right: 10px;
        font-size: 40px;
        color: #fff;
        cursor: pointer;
        z-index: 1030;
    }

    /* Hiệu ứng */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    /* Khi active */
    .filter-overlay.active {
        display: flex;
    }

    body.drawer-open {
        overflow: hidden;
    }

    .amlab_custom_render .btn_filter {
        padding: 2px 6px;
        border-radius: 5px;
        background: linear-gradient(133.92deg, #064D5C 1.88%, #1E7680 50.94%, #41A2A5 100%);
        position: relative;
    }

    .amlab_custom_render .btn_filter span {
        color: #fff;
        font-weight: 500;
    }

    .btn_filter .filter-count {
        position: absolute;
        top: -4px;
        right: -6px;
        background: #1E7680;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        padding: 3px 5px;
        border-radius: 999px;
        min-width: 16px;
        text-align: center;
    }

    .filter-mobile-footer {
        border: 0.25px solid #ADADAD;
        display: flex;
        gap: 20px;
        padding: 10px 15px;

    }

    .filter-mobile-footer button {
        text-transform: capitalize;
        border-radius: 99px;
        flex: 0 0 48%;
        margin: 0;
        font-size: 16px;
    }

    .filter-mobile-footer button.btn_clear_filter {
        border: 1px solid #1E7680;
        color: #1E7680;
        background: transparent;
    }

    .filter-mobile-footer button.btn_apply_filter {
        background: linear-gradient(133.92deg, #064D5C 1.88%, #1E7680 50.94%, #41A2A5 100%);
        color: #fff;
        font-weight: 600;
    }

    .amlab-filter-brand .brand-list {
        grid-template-columns: repeat(3, 1fr);
    }
}