/**
 * Advanced Filters & Sidebar Styles
 * Fully Responsive, No longhand borders
 */

.filter-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 15px;
    align-items: start;
}

/* Sidebar Styling */
.filter-sidebar {
    background: var(--card-bg, #ffffff);
    padding: 25px;
    border-radius: var(--border-radius, 8px);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 90px; /* Stays fixed while scrolling */
}

.filter-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color, #0056b3);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #444;
}

/* Search Box */
.filter-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-search:focus {
    border-color: var(--primary-color, #0056b3);
}

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
}

/* Category Checkboxes */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.font-bold {
    font-weight: 600;
    color: #222;
}

.subcategory-list {
    margin: 8px 0 0 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Main Products Area */
.products-area {
    width: 100%;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 1.1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.loader {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color, #0056b3);
    padding: 20px;
}

/* Responsive Layout */
@media screen and (max-width: 992px) {
    .filter-page-layout {
        grid-template-columns: 1fr; /* Sidebar stacks on top */
    }
    
    .filter-sidebar {
        position: relative;
        top: 0;
    }
}