/* Mobile Filter Bar */
.mobile-filter-bar {
    display: none;
    position: sticky;
    top: 60px; /* Adjust based on header height */
    z-index: 80;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.mobile-filter-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 15px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    color: #000;
}

.mobile-filter-btn:first-child {
    border-right: 1px solid #eee;
}

.mobile-filter-btn:hover {
    background-color: #f9f9f9;
}

/* Mobile Sidebar Header (Close Button) */
.mobile-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-sidebar-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    color: #000;
}

@media (max-width: 768px) {
    .mobile-filter-bar {
        display: flex;
        margin-left: -30px; /* Counteract main padding */
        margin-right: -30px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .sidebar-left, .sidebar-right {
        display: block !important; /* Override previous display: none */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: #fff;
        z-index: 200;
        padding: 20px 30px;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .sidebar-left.active, .sidebar-right.active {
        transform: translateY(0);
    }

    .mobile-sidebar-header {
        display: flex;
    }
    
    /* Adjust filter lists for mobile touch targets */
    .filter-list a, .nested-filter-list a {
        padding: 8px 0;
        display: block;
        font-size: 14px;
    }
    
    .filter-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
}
