/* Control Dashboard Header Layout */
.woo-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #111111;
    margin-bottom: 35px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.woo-filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.woo-results-wrapper {
    font-weight: 500;
}

.woo-orderby-select {
    border: none;
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding-right: 15px;
}

.woo-orderby-select:focus {
    outline: none;
}

/* Sliding Panel Infrastructure */
.woo-ajax-sidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: 380px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    z-index: 99999;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    padding: 40px 30px;
}

.woo-ajax-sidebar.is-open {
    left: 0;
}

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

#waaf-sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* Minimal Accordion Menus */
.filter-accordion {
    border-bottom: 1px solid #eaeaea;
    padding: 16px 0;
}

.filter-accordion-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.filter-accordion-content {
    display: none;
    padding-top: 15px;
}

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

.filter-term-list li {
    margin-bottom: 10px;
}

.filter-term-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* Background Dismissal Layer */
.woo-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.woo-filter-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Footer & Clear Button Layout */
.waaf-sidebar-footer {
    margin-top: 10px;        /* Brings the button slightly closer to the list */
    padding-top: 20px;
    border-top: none !important; /* Erases the extra second line completely */
    display: flex;
    justify-content: center;
}

.waaf-clear-btn {
    width: 100%;
    padding: 16px;
    background-color: #bcae82; /* Matches your premium gold/khaki branding */
    color: #111111;
    border: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.waaf-clear-btn:hover {
    background-color: #a89a70;
}

/* Keep this as is so the line after "SIDE PANELS" remains */
.filter-accordion {
    border-bottom: 1px solid #eaeaea;
    padding: 16px 0;
}

/* Mobile Layout for Control Bar */
@media (max-width: 768px) {
    .woo-control-bar {
        flex-wrap: wrap;
        row-gap: 15px;
    }
    
    .woo-filter-toggle-btn {
        order: 1;
    }
    
    .woo-control-right {
        order: 2;
    }

    /* Force the results count to a new line and give it some breathing room */
    .woo-results-wrapper {
        order: 3;
        width: 100%;
        text-align: left;
        margin-top: 5px;
        padding-top: 15px;
        border-top: 1px solid #eaeaea; /* Adds a clean divider line */
    }
}