/* ============================================================
   PRODUCTS PAGE STYLES - BRAND LEVEL
   ============================================================ */

/* Products Hero */
.products-hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--stone) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--stone);
}

.products-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    font-weight: 300;
}

/* Products Main Section */
.products-main {
    padding: 3rem 0 5rem;
    background: white;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* ============================================================
   SIDEBAR FILTERS (Desktop)
   ============================================================ */

.filters-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.filters-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--charcoal);
}

.filters-clear {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters-clear:hover {
    color: var(--charcoal);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.938rem;
    color: var(--slate);
    transition: color 0.3s ease;
}

.filter-checkbox:hover {
    color: var(--charcoal);
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* Mobile Filters Toggle (Hidden on Desktop) */
.mobile-filters-toggle {
    display: none;
}

/* ============================================================
   PRODUCTS CONTENT AREA
   ============================================================ */

.products-content {
    min-height: 500px;
}

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--stone);
}

.results-count {
    color: var(--slate);
    font-size: 0.938rem;
}

.results-count span {
    font-weight: 600;
    color: var(--charcoal);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-controls label {
    font-size: 0.938rem;
    color: var(--slate);
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--stone);
    border-radius: var(--radius-md);
    background: white;
    font-family: var(--font-body);
    font-size: 0.938rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-controls select:hover {
    border-color: var(--gold);
}

.sort-controls select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 112, 0.1);
}

/* ============================================================
   BRAND CARDS GRID - 3 PER ROW (ORIGINAL DESIGN)
   ============================================================ */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.brand-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--stone);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.brand-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio - ORIGINAL */
    background: linear-gradient(135deg, var(--stone) 0%, var(--cream) 100%);
    overflow: hidden;
}

/* For actual brand logo images - centered like original text */
.brand-image > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* For text placeholders (if used) */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-placeholder-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    padding: 1rem;
    line-height: 1.2;
}

.brand-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.brand-category {
    font-size: 0.875rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.brand-description {
    font-size: 0.938rem;
    color: var(--slate);
    line-height: 1.6;
    flex: 1;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results p {
    font-size: 1.125rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

/* ============================================================
   PRODUCTS CTA
   ============================================================ */

.products-cta {
    background: linear-gradient(135deg, var(--gold) 0%, #B8935A 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.products-cta h2 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.products-cta p {
    font-size: 1.188rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .products-layout {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }
}

/* Mobile (Below 768px) */
@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Hide sidebar, show mobile toggle */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        padding: 2rem;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    
    .filters-sidebar.mobile-active {
        left: 0;
    }
    
    .mobile-filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.875rem 1.5rem;
        background: var(--gold);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .mobile-filters-toggle:hover {
        background: var(--charcoal);
    }
    
    .filter-icon {
        font-size: 1.25rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sort-controls {
        width: 100%;
    }
    
    .sort-controls select {
        flex: 1;
    }
}

/* Small Mobile (Below 480px) */
@media (max-width: 480px) {
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-card {
        max-width: 100%;
    }
    
    .filters-sidebar {
        width: 90%;
    }
    
    .products-cta h2 {
        font-size: 2rem;
    }
    
    .products-cta p {
        font-size: 1.063rem;
    }
}
