﻿.filter-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.filter-checkbox tr td {
    display: flex;
    align-items: center;
}

.filter-sidebar a:hover {
    color: #711A28;
}

.filter-checkbox tr td:hover label {
    color: #711A28;
}

.filter-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    margin-top: 0;
}

.filter-checkbox {
    width: 100%;
}

    .filter-checkbox label {
        display: block;
        padding: 6px 0;
        font-size: 15px;
        color: #555;
        cursor: pointer;
        font-family: 'K2D-MEDIUM';
    }

    .filter-checkbox input[type="checkbox"] {
        margin-right: 8px;
        accent-color: #e74c3c;
    }

.price-slider {
    margin: 20px 0;
}

#slider-range {
    height: 6px;
    background: #ddd;
    border: none;
    margin: 15px 0;
}

#price-range {
    font-weight: 500;
    color: #e74c3c;
    font-size: 15px;
}

.btn-apply {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

    .btn-apply:hover {
        background: #c0392b;
        transform: translateY(-2px);
    }

.top-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 5px;
    border: 1.05px solid #D6D6D6;
}

.full-products-child {
    display: flex;
}

.list-l-sort-pro {
    width: 250px;
}

.r-full-wid-pro-child {
    flex: 1 1 0;
    margin-left: 15px;
}

.filter-sidebar a {
    display: block;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #711A28;
}

.title-category.cate-title-childdd {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-filter-bar span {
    color: #333;
    font-family: 'K2D-Bold';
}

.top-filter-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14.5px;
    background-color: #fff;
    box-shadow: 0 0 5px #ccc;
    color: #333;
    opacity: 1 !important;
    outline: 0;
}

.btn-clear {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 15px;
    width: 100%;
    transition: all 0.3s;
    font-family: 'K2D-MEDIUM';
    font-size: 16px;
}

    .btn-clear:hover {
        background-color: #c82333;
        transform: translateY(-2px);
    }

.filter-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: #333;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Responsive */
@media (max-width: 768px) {
    .filter-sidebar {
        position: static;
    }

    .btn-clear {
        padding: 12px 16px;
    }
}
/* ====================== ACCORDION MOBILE ====================== */
.filter-accordion .accordion-item {
    border-bottom: 1px solid #eee;
}
.filter-accordion {
    background: #fffbe8;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    padding-top: 0;
}
.accordion-header {
    padding: 14px 0;
    font-weight: 600;
    color: #711a28;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16.5px;
    font-family: 'K2D-BOLD';
}

.accordion-content {
    display: block;
    padding-bottom: 10px;
}

.accordion-item.active .accordion-content {
    display: none;
}

.accordion-header .arrow {
    transition: transform 0.3s;
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

/* Floating Filter Button */
.floating-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    border: none;
    cursor: pointer;
}

    .floating-filter-btn:hover {
        background: #c0392b;
        transform: scale(1.08);
    }

/* Mobile */
@media (max-width: 992px) {
    .floating-filter-btn {
        display: flex;
    }

    .full-products-child {
        display: flex;
        flex-direction: column-reverse;
    }

    .filter-sidebar {
        position: static;
    }

    .r-full-wid-pro-child {
        margin: 0;
        margin-bottom: 15px;
    }

    .list-l-sort-pro {
        width: 100%;
    }

    .filter-sidebar a {
        display: inline-flex;
        padding-top: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
        margin-right: 8px;
    }

    .filter-accordion {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 26px;
        row-gap: 10px;
        background: #fffbe8;
        padding: 10px 15px;
        margin-top: 15px;
        border-radius: 6px;
    }

    .filter-sidebar a span {
        padding-left: 4px;
    }

    .top-filter-bar {
        width: 205px;
    }
}