/* ==========================================================================
   Shop with Filters Layout
   ========================================================================== */

.fab-shop-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
}

/* Sidebar */
.fab-shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 10px;
}

.fab-shop-sidebar::-webkit-scrollbar { width: 4px; }
.fab-shop-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.fab-sidebar-header {
    display: none;
}

.fab-sidebar-filters .bapf_sfilter {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.fab-sidebar-filters .bapf_head {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 8px;
}

.fab-sidebar-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* Main content */
.fab-shop-main {
    flex: 1;
    min-width: 0;
}

/* Filter toggle (mobile only) */
.fab-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    margin-bottom: 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.fab-filter-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.fab-filter-close {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

/* ==========================================================================
   Mobile (< 980px)
   ========================================================================== */
@media (max-width: 980px) {
    .fab-shop-layout {
        flex-direction: column;
    }

    .fab-filter-toggle {
        display: inline-flex;
    }

    .fab-shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        max-height: 100vh;
        background: #fff;
        z-index: 9999;
        padding: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        overflow-y: auto;
    }

    .fab-shop-sidebar.fab-sidebar-open {
        display: block;
    }

    .fab-filter-overlay.fab-overlay-show {
        display: block;
    }

    .fab-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }

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

    .fab-filter-close {
        display: block;
    }

    .fab-sidebar-filters {
        padding: 16px 20px;
    }
}
