
.shop-intro-section {
    height: 650px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
}

/* Make the intro video fixed so it stays put while scrolling */
.shop-intro-video {
    position: fixed; /* changed from absolute to fixed */
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: brightness(0.7) grayscale(1) contrast(1.2);
    z-index: -2; /* place behind overlay */
    pointer-events: none; /* allow clicks through the video */
}

.shop-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #050413, #050413aa, #050413);
    z-index: -1; /* overlay sits above video but below content */
}

/* overlay already defined above with z-index -1; removed duplicate */

.shop-intro-content {
    position: relative;
    z-index: 1;
}

.shop-title {
    font-family: 'Title', sans-serif;
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.shop-description {
    font-family: 'Regular', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Section principale de la boutique */
.shop-main-section {
    padding: 60px 20px;
    background-color: var(--bg-primary);
}

.shop-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

/* Filtres sur la gauche (comportement de défilement normal) */
.shop-filters {
    flex: 0 0 250px;
}

.filters-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filters-list li {
    margin-bottom: 5px;
}

.filter-link {
    font-family: 'Regular', sans-serif;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    padding: 10px 20px;
    border-left: 3px solid transparent;
    border-radius: 0 5px 5px 0;
}

.filter-link:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.filter-link.active {
    color: var(--text-color);
    border-left: 3px solid var(--text-color);
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

/* Grille des produits */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0; /* Caché par défaut pour l'animation d'entrée */
}

.product-image-wrapper {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-family: 'Title', sans-serif;
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.product-brand {
    font-family: 'Regular', sans-serif;
    color: var(--text-muted);
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pousse le pied de page en bas de la carte */
}

.product-price {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0; /* Retrait du margin-left: auto */
}

.product-buy-button {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product-buy-button:hover {
    background: var(--btn-bg-hover);
}

/* Responsive */
@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }

    .shop-filters {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .filters-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-link {
        border-radius: 5px;
        border-left: none;
    }

    .filter-link.active {
        border-left: none;
        border-bottom: 2px solid var(--text-color);
    }
}

@media (max-width: 768px) {
    .shop-intro-section {
        height: 400px;
    }

    /* On small screens, hide the fixed background video for performance and layout stability */
    .shop-intro-video {
        display: none;
    }

    /* Use a static fallback background (could be a poster image) */
    .shop-intro-section {
        background: url('../images/placeholder-ambiance-dj.svg') center/cover no-repeat;
    }

    .shop-title {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}
