﻿/* ==========================
   CATALOG LAYOUT
========================== */

#productArea {
    width: 100%;
}

/* ==========================
   FILTER SIDEBAR
========================== */

#filterSidebar {
    position: fixed;
    top: 0;
    left: -340px;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    z-index: 99999;
    transition: left .3s ease;
    box-shadow: 0 0 25px rgba(0,0,0,.18);
}

    #filterSidebar.show {
        left: 0;
    }

/* ==========================
   OVERLAY
========================== */

#filterOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

    #filterOverlay.show {
        opacity: 1;
        visibility: visible;
    }

/* ==========================
   FILTER BUTTON
========================== */

#toggleFilters {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    margin: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ececec;
}

    .filter-header h4 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
    }
.filter-close {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

    .filter-close:hover {
        color: #198754;
    }
.filter-group {
    margin-bottom: 22px;
}

    .filter-group h6 {
        margin-bottom: 10px;
        font-weight: 600;
    }
    .filter-group input {
        height: 45px;
        border-radius: 10px;
    }
.filter-card .btn-success {
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
}

.filter-card .btn-light {
    height: 46px;
    border-radius: 10px;
}


.accordion-item {
    border: 0;
    border-bottom: 1px solid #ececec;
}

.accordion-button {
    background: #fff;
    font-weight: 600;
    box-shadow: none !important;
    padding: 12px 0;
    font-size: 16px;
}
    .accordion-button::after {
        width: 14px;
        height: 14px;
        background-size: 14px;
    }

    .accordion-button:not(.collapsed) {
        background: #fff;
        color: #198754;
    }

.accordion-body {
    padding: 8px 0 12px;
    max-height: 220px;
    overflow-y: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: .2s;
}

    .filter-option:hover {
        background: #f5faf6;
        border-radius: 8px;
    }

    .filter-option input {
        accent-color: #198754;
        margin: 0;
    }
.filter-card {
    padding: 18px;
}

.filter-group {
    margin-bottom: 18px;
}
.accordion-body::-webkit-scrollbar {
    width: 6px;
}

.accordion-body::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 20px;
}

    .accordion-body::-webkit-scrollbar-thumb:hover {
        background: #198754;
    }

#applyFilters:disabled {
    opacity: .55;
    cursor: not-allowed;
}
/* ==========================
   DESKTOP
========================== */

@media (min-width:992px) {

    #filterSidebar {
        width: 340px;
    }
}
@media(max-width:768px) {

    #toggleFilters {
        left: 10px;
        top: 65px;
        width: auto;
    }
    #filterSidebar {
        width: 300px;
        left: -300px;
        max-width: 90vw;
    }
}

