/*
Theme Name: Astra Child
Description: Thème enfant d'Astra
Template: astra
Version: 1.0
*/

@import url("../astra/style.css");

/* Vos CSS personnalisés ici */




/*virer le texte dans les catégories*/
body.tax-product_cat .ast-container > h1, 
body.tax-product_cat .ast-container > p {
    display: none !important;
}

.ast-onsale-card {
	display: none !important;
}

input[name="wcj_empty_cart"] {
    display: none !important;
}



/* Suivre les breakpoints d'Astra */
@media (min-width: 922px) {
    /* Desktop - correspond aux breakpoints Astra */
    
    /* Enlever padding du header */
    .main-header-bar {
        padding: 0 !important;
    }

    /* Padding gauche pour l'élément du panier */
    .menu-item.wpmenucartli.wpmenucart-display-right {
        padding-left: 20px !important;
    }
    
    .ast-woocommerce-container {
        padding-top: 0px !important;
        
    }


/* Menu fond flou*/

:root {
    --ast-global-color-4: rgba(255, 255, 255, 0.1) !important;
    --ast-global-color-5: rgba(255, 255, 255, 0.1) !important;
}

.site-primary-header-wrap {
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.site-primary-header-wrap:hover {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background: rgba(180, 180, 180, 0.1) !important;
    background-color: rgba(180, 180, 180, 0.1) !important;
}
}




















/* bandeau séries */


/* Container principal du bandeau séries */
.bandeau-series-container {
    width: 100%;
    background: #f8f9fa;
    padding: 20px 0 0 0;
    margin-bottom: 0;
    overflow-x: auto;
    position: relative;
    z-index: 99;
    /* Pour forcer la position sous le header */
    clear: both;
}

/* Slider des séries */
.series-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    min-width: 100%;
    padding: 0 20px;
    margin-bottom: 10px;
}

/* Items de série */
.serie-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Effet hover sur les séries non-courantes */
.serie-item:not(:nth-child(1)):hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 1 !important;
}

/* Noms des séries (liens) */
.serie-nom-link {
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.serie-nom-link:hover {
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
    text-decoration: none !important;
    transform: scale(1.05);
}

/* Nom de la série courante */
.serie-nom-current {
    text-align: center;
    position: relative;
}

/* Animation de pulsation pour la série courante */
@keyframes pulse-current {
    0% { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 12px 35px rgba(0,0,0,0.4); }
    100% { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
}

.serie-item:has(.serie-nom-current) {
    animation: pulse-current 2s ease-in-out infinite;
}

/* Badge "Série actuelle" */
.serie-nom-current div {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 1024px) {
    .series-slider {
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    .serie-item {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .bandeau-series-container {
        padding: 15px 0 0 0;
    }
    
    .series-slider {
        gap: 10px;
        padding: 0 15px;
    }
    
    /* Ajuster les tailles sur mobile */
    .serie-item:has(.serie-nom-current) {
        flex: 0 0 250px !important;
        height: 150px !important;
        transform: scale(1.05);
    }
    
    .serie-item:not(:has(.serie-nom-current)) {
        flex: 0 0 150px !important;
        height: 100px !important;
    }
    
    .serie-nom-current {
        font-size: 18px !important;
        padding: 10px 15px !important;
    }
    
    .serie-nom-link {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 480px) {
    .serie-item:has(.serie-nom-current) {
        flex: 0 0 200px !important;
        height: 120px !important;
    }
    
    .serie-item:not(:has(.serie-nom-current)) {
        flex: 0 0 120px !important;
        height: 80px !important;
    }
    
    .serie-nom-current {
        font-size: 16px !important;
        padding: 8px 12px !important;
    }
    
    .serie-nom-link {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }
}

/* Scrollbar styling pour le container */
.bandeau-series-container::-webkit-scrollbar {
    height: 6px;
}

.bandeau-series-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.bandeau-series-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}

.bandeau-series-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}