/* ==========================================
   PRODUCTS PAGE STYLES
   ========================================== */

.page-header {
    padding: 8rem var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.products-section {
    padding: var(--spacing-2xl) 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

/* ==========================================
   FILTERS SIDEBAR
   ========================================== */
.filters-sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    width: 80%;
    max-width: 250px;
    height: 100vh;
    
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
   
    transition: var(--transition-base);
}

.filters-sidebar.active {
    left: 0;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.filters-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.filters-close {
    font-size: 2rem;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
}

.filters-close:hover {
    color: var(--text-primary);
}

.filter-group {
    margin-bottom: var(--spacing-xl);
}

.filter-group h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.filter-option:hover {
    background: var(--bg-secondary);
}

.filter-option input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.filter-option span {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* ==========================================
   PRODUCTS TOOLBAR
   ========================================== */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
}

.filters-toggle:hover {
    background: var(--primary);
    color: white;
}

.products-count {
    font-weight: 600;
    color: var(--text-secondary);
}

.sort-dropdown select {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.sort-dropdown select:hover {
    border-color: var(--primary);
}

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==========================================
   NO PRODUCTS MESSAGE
   ========================================== */
.no-products {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-secondary);
}

.no-products svg {
    margin: 0 auto var(--spacing-lg);
    color: var(--text-light);
}

.no-products h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.no-products p {
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (min-width: 768px) {
    .filters-toggle {
        display: none;
    }
    
    .filters-sidebar {
        position: static;
        left: auto;
        width: auto;
        height: auto;
        max-width: none;
        box-shadow: none;
        padding: 0;
        overflow-y: visible;
    }
    
    .filters-close {
        display: none;
    }
    
    .products-layout {
        grid-template-columns: 260px 1fr;
    }
    
    .filters-sidebar {
        position: sticky;
        top: calc(var(--spacing-2xl) + 80px);
        height: fit-content;
    }
}

@media (min-width: 1024px) {
    .products-layout {
        grid-template-columns: 280px 1fr;
    }
}
