.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 {
    text-transform: uppercase;
    border-bottom: 1px solid #0000001A;
    padding-bottom: 8px;
    margin-bottom: 15px;
    padding: 10px 20px 5px 20px;
}
.product-filter-wrapper{
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    max-height: 80vh;
    overflow-y: scroll;
    overflow-x: hidden;
}
.filter-block { 
    margin-bottom: 15px;
    
}

.filter-heading {
    margin-bottom: 10px;
}

#amlab-filter-form label{
    display: block;
    font-size: 16px;
    cursor: pointer;
    font-weight: 400;
    text-transform: capitalize;
}

.woo-price-slider {
    margin-top: 10px;
}

#amlab-filter-form input[type=checkbox]{
    margin-bottom: 10px;
}
.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(90deg, #FF6117, #FF9900);
    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: 0px;
        /* padding: 20px; */
        width: 100%;
        max-width: 100vw;
        height: 73vh;
        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: 60vh;
        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(90deg, #FF6117, #FF9900);
        align-self: center;
        align-content: center;
        padding: 0 15px !important;
        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(90deg, #FF6117, #FF9900);
        position: relative;
    }

    .amlab_custom_render .btn_filter span {
        color: #fff;
        font-weight: 500;
    }
    .btn_filter .filter-count {
        position: absolute;
        top: -4px;
        right: -6px;
        background: #ff4b2b;
        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: 8px;
        flex: 0 0 48%;
        margin: 0;
        font-size: 16px;
    }
    .filter-mobile-footer button.btn_clear_filter{
        border: 1px solid #FF6117;
        color: #FF6117;
        background: transparent;
    }
    .filter-mobile-footer button.btn_apply_filter{
        background: linear-gradient(90deg, #FF6117, #FF9900);
        color: #fff;
        font-weight: 600;
    }
    .amlab-filter-brand .brand-list {
        grid-template-columns: repeat(3, 1fr);
    }
}