.filter-product {
    padding: 30px 0;
}

.filter-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #2b7a44;
    margin-bottom: 25px;
}

.filter-main-bar {
    display: flex;
    align-items: center;
    background: #2b7a44;
    border-radius: 33px;
    /* padding: 5px; */
    margin-bottom: 30px;
    height: 32px;
    position: relative;
    z-index: 10;
}

.filter-dropdown-group {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--color-2);
    color: var(--color-2);
    border-radius: 50px;
    height: 100%;
    flex: 1;
    gap: 10px 0;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    cursor: pointer;
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    height: 100%;
    &:hover {
        .filter-icon {
            transform: rotate(180deg);
        }
    }
    .filter-label {
        display: block;
        width: 100%;
        padding: 5px 0;
    }
}

.filter-item.brand-cate {
    background: var(--color-2);

    color: white;
    .filter-icon {
        background: white;
        color: var(--color-2);
    }
    .filter-label {
        background: var(--color-2);
    }
    @media (min-width: 1290px) {
        border-radius: 50px;
        &:hover {
            .filter-label {
                border-bottom: 1px solid white;
            }
            .filter-dropdown-box {
                top: -1px;
            }
        }
    }
}

.filter-item.supplier {
    background: #fff;
    color: var(--color-2);
    border-radius: 50px;
    height: calc(100% - 4px);
    border: 1px solid transparent;
    .filter-icon {
        background: var(--color-2);
        color: white;
    }
    @media (min-width: 992px) {
        &:hover {
            .filter-dropdown-box.theme-white {
                border-color: var(--color-2);
            }
            .filter-label {
                border-bottom: 1px solid var(--color-2);
            }
            .filter-dropdown-box {
                left: -1px;
            }
        }
    }
}

.filter-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    transition: all 0.3s;
    svg {
    }
}
.filter-search-box {
    display: flex;
    align-items: center;
    padding: 0 15px;
    width: 40%;
    height: 100%;
}

.filter-search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 10px;
    width: 100%;
    height: 100%;
    outline: none;
}

.filter-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-search-box .btn-search {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Horizontal Attribute Rows */
.filter-attribute-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.attribute-row {
    display: flex;
    align-items: center;
}

.row-label {
    width: 200px;
    font-weight: 700;
    color: #2b7a44;
    font-size: 20px;
    flex-shrink: 0;
}

.row-items-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0 30px;
}

.row-items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.row-items::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.attr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    border: 1px solid #c9dfd0;
    border-radius: 20px;
    padding: 6px 15px;
    color: #2b7a44;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    position: relative;
    user-select: none;
    margin-bottom: 0;
}

.attr-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Checked State */
.attr-item:has(input:checked) {
    background: #2b7a44;
    color: #fff;
    border-color: #2b7a44;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-arrow.prev {
    left: 0;
}

.nav-arrow.next {
    right: 0;
}

.nav-arrow:hover {
    color: #2b7a44;
}

@media (max-width: 991px) {
    .filter-main-bar {
        flex-direction: column;
        height: auto;
        border-radius: 15px;
        padding: 5px;
    }
    .filter-dropdown-group {
        width: 100%;
        flex-direction: column;
        background: transparent;
    }
    .filter-item {
        width: 100%;
        height: 100%;
        border-right: none !important;
    }
    .filter-item.brand-cate {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .filter-item.supplier {
        margin: 5px 0;
        border-radius: 10px;
        &.is-active {
            border-radius: 10px 10px 0 0;
        }
    }
    .filter-search-box {
        width: 100%;
        height: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .attribute-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .row-label {
        width: 100%;
    }
    .row-items-wrap {
        width: 100%;
        padding: 0 25px;
    }
}

/* Detailed Dropdown UI */
.dropdown-trigger {
    position: relative;
    z-index: 10;
}

.filter-dropdown-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 0 0 20px 20px;
    z-index: 20;
    overflow: hidden;
    display: none;
    @media (min-width: 1290px) {
        top: -4px;
        padding-top: 40px;
        z-index: -1;
        border-radius: 20px;
    }
}
@media (min-width: 1290px) {
    .dropdown-trigger:hover .filter-dropdown-box {
        display: block;
    }
}

.filter-dropdown-box.show {
    display: block;
}

/* Theme Green (Category) */
.filter-dropdown-box.theme-green {
    background: #2b7a44;
    border: 1px solid #2b7a44;
}

.filter-dropdown-box.theme-green .dropdown-title {
    color: #fff;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
}

.filter-dropdown-box.theme-green .dropdown-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-dropdown-box.theme-green .dropdown-close-icon {
    background: #fff;
    color: #2b7a44;
}

.filter-dropdown-box.theme-green .dropdown-list li {
    color: #fff;
}

.filter-dropdown-box.theme-green .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #fff;
    border: 1px solid #2b7a44;
}

.filter-dropdown-box.theme-green .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Theme White (Brand) */
.filter-dropdown-box.theme-white {
    background: #fff;
    border: 1px solid white;
}

.filter-dropdown-box.theme-white .dropdown-title {
    color: #2b7a44;
    border-bottom: 1px solid #2b7a44;
    padding-bottom: 2px;
}

.filter-dropdown-box.theme-white .dropdown-header {
    border-bottom: 1px solid #eee;
}

.filter-dropdown-box.theme-white .dropdown-close-icon {
    background: #2b7a44;
    color: #fff;
}

.filter-dropdown-box.theme-white .dropdown-list li {
    color: #2b7a44;
}

.filter-dropdown-box.theme-white .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #2b7a44;
    border: 1px solid #fff;
}

.filter-dropdown-box.theme-white .custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px;
}

.dropdown-title {
    font-size: 18px;
    font-weight: 700;
}

.dropdown-close-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-content {
    padding: 10px 25px 20px;
    max-height: 280px;
    overflow-y: auto;
    position: relative;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-list li {
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-list li:hover,
.dropdown-list li.active {
    font-weight: 700;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    border-radius: 10px;
    margin: 10px 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.no-products-found svg {
    display: block;
    margin: 0 auto 20px;
    color: #999;
}

.no-products-found h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-products-found p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.filter-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.filter-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@media screen and (max-width: 992px) {
    .filter-dropdown-box.is-open {
        z-index: 10;
        display: block;
        top: 100%;
    }
    .dropdown-trigger {
        z-index: unset;
    }
}
#paginationWrapper .load-more-btn:empty {
    display: none !important;
}
