/* ===================================
   COLLECTION PAGE - HEADER & LAYOUT FIX
   =================================== */

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    color: #e74c3c;
}

nav a.active {
    color: #e74c3c;
    font-weight: 600;
}

/* Collection Hero */
.collection-hero {
    height: 35vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #95a5a6;
    margin-top: 80px;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out, opacity 0.5s;
    color: white;
    text-align: center;
}

.collection-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 27, 61, 0.4);
    z-index: 1;
}

.collection-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.8s, opacity 0.5s;
    letter-spacing: 2px;
    margin: 0;
}

/* Filter Bar */
.filter-bar {
    padding: 2rem 5%;
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #eee;
    background: white;
    flex-wrap: wrap;
    align-items: center;
}

.filter-item {
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7f8c8d;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-item:hover {
    color: #2c3e50;
}

.filter-item.active {
    color: #2c3e50;
    border-bottom-color: #e74c3c;
    font-weight: 600;
}

.highlight-filter {
    color: #e74c3c !important;
    font-weight: 700 !important;
}

/* Section Products - Override */
.section-products {
    padding: 4rem 5% !important;
    background: #fafafa !important;
}

/* Product Grid - Ensure proper layout */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
        flex-wrap: wrap;
    }

    .logo a {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.85rem;
    }

    .collection-hero {
        height: 25vh;
        min-height: 200px;
        margin-top: 100px;
    }

    .collection-hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .filter-bar {
        padding: 1.5rem 4%;
        gap: 1rem;
    }

    .filter-item {
        font-size: 0.8rem;
    }

    .section-products {
        padding: 3rem 4% !important;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .collection-hero h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}