/* Categories Page Specific Styles */

.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #005a8b 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.categories-content {
    padding: 3rem 0;
    background: var(--whisper-white);
}

.categories-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
}

.filter-sidebar h3 {
    color: var(--gunmetal-gray);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    color: var(--gunmetal-gray);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #666;
}

.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-blue);
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

/* Main Content */
.categories-main {
    min-height: 600px;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.categories-header h2 {
    color: var(--gunmetal-gray);
    margin: 0;
}

.deal-count {
    color: #666;
    font-size: 0.9rem;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.load-more-section {
    text-align: center;
}

.load-more-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #005a8b;
    transform: translateY(-2px);
}

/* Mobile Responsive */
/* Ensure uniform image size and cover for category deal images */
.coupon-image {
    width: 100%;
    height: 120px; /* Fixed height matching main.css */
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--whisper-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md); /* Uniform padding around logos */
}

.coupon-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keep proportions, no stretching */
    object-position: center;
    display: block;
}
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .categories-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
    }
    
    .categories-main {
        order: 1;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}