/* Filters Toggle Button */
.filters-toggle-btn {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.btn-filters {
    width: 100%;
    background-color: #FFB300;
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-filters:hover {
    background-color: #8b3f3b;
    color: white;
}

.btn-filters i {
    margin-right: 8px;
}

/* Filters Overlay */
.filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.filters-overlay.active {
    display: block;
}

/* Sidebar Drawer */
#sidebar-filters {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-close-filters {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-filters:hover {
    color: #a6534e;
}

/* Mobile Sidebar Drawer - Show/Hide Animation */
@media (max-width: 991px) {
    .shop-box-inner {
        position: relative;
    }

    #sidebar-filters {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background-color: #FFFFFF;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        overflow-y: auto;
        padding-top: 0;
    }

    #sidebar-filters.active {
        transform: translateX(0);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    }

    /* Adjust the product category padding */
    .product-categori {
        padding: 15px;
    }
}

/* Desktop - Keep sidebar inline */
@media (min-width: 992px) {
    .filters-toggle-btn,
    .filters-overlay,
    .sidebar-header {
        display: none !important;
    }

    #sidebar-filters {
        position: relative !important;
        transform: translateX(0) !important;
        width: 100% !important;
        height: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }
}
