/* all.css */
.shop_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10%;
    padding-bottom: 5%;
    padding-top: 5%;
}

.shop_header_image {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    margin: 0;
}
.shop_header_video{
width: 74%; /* Prend toute la largeur de l'écran */
    max-width: 74%; /* Évite les débordements */
    height: auto; /* Conserve les proportions */
    object-fit: cover; /* S'assure que la vidéo remplit l'espace sans déformation */
    position: absolute;
    z-index: 1; /* Derrière le texte si nécessaire */
}
.shop_header_text {
    width: auto;
    display: flex;
    flex-direction: column;
    margin: 0;
        z-index: 2; /* Derrière le texte si nécessaire */
}

.shop_header_text h1, .shop_header_text p {
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', Arial, sans-serif;
}

.menu_top {
    width: 100%;
    height: 10px;
    background: linear-gradient(30deg, #ff69b4, #ffb347, #ffe066);
}

.h1_multitcolors {
    font-weight: 800;
    font-size: 5.0rem;
    background: linear-gradient(30deg, #ff69b4, #ffb347, #ffe066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0;
    text-align: left;
    width: auto;
    padding-left: 0;
    box-sizing: border-box;
}


.shop_content {
    margin-left: 13%;
    margin-right: 13%;
    width: 74%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
        overflow: hidden; /* Empêche tout débordement */
}

.products_list {
    margin-bottom: 20px;
    width: 100%;
}

.product_list_content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    overflow: visible;
}

.product_list_content img {
    flex: 1 1 200px;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.product_list_content img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 1%;
    padding-bottom: 1%;
}

/* Conteneur pour les dégradés fixes sur mobile */
.carousel-gradient-container {
    position: relative;
    width: 100%;
}

.carousel-inner {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
    overflow: visible;
}

.carousel-item {
    flex: 0 0 24%;
    max-width: 24%;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    max-height: 350px;
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.carousel-controls {
    display: flex;
    gap: 8px;
    padding-right: 1%;
}

.carousel-control {
    background: #2c2632;
    font-family: sans-serif;
    color: #fff;
    border: 2px solid #2c2632;
    padding: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: #ffffff;
    color: #2c2632;
}

.carousel-control:disabled {
    background: transparent;
    color: #2c2632;
    border: 2px solid #2c2632;
    cursor: not-allowed;
}

.carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    z-index: 5;
    pointer-events: none;
    border-radius: 10px 0 0 10px; /* Arrondi pour correspondre aux images */
}

.carousel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    z-index: 5;
    pointer-events: none;
    border-radius: 0 10px 10px 0; /* Arrondi pour correspondre aux images */
}

.carousel.hide-left-gradient::before {
    display: none;
}

.carousel.hide-right-gradient::after {
    display: none;
}

.shop_categories {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
    padding-bottom: 5%;
    padding-top: 0.5%;
}



.shop_categories_bubble {
    height: 30px;
    flex: 1 1 200px;
    max-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7e798b;
    border: 1.8px solid #2C123B;
    border-radius: 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.shop_categories_bubble.active {
    background: #2c2632;
    color: #ffffff;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.shop_categories_bubble:hover {
    transform: scale(1.05);
    color: #ffffff;
    background: #2C123B;
}

.category_grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.category_grid.active {
    display: grid;
}



.category_grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.3s ease;
    vertical-align: top; /* Évite les espaces indésirables */
    line-height: 0; /* Supprime les espaces de ligne */
    max-width: 100%;
}

.category_grid .image-container {

}

.category_grid .image-container:hover img {
    transform: scale(1.05);
}





.shop_freeproduct{
    width: 92%;
    height: 200px;
    display: flex;
    flex-direction: row;
    padding-left: 8%;
    align-items: center;
    border-radius: 20px;
    margin-bottom: 20px;
    justify-content: space-between; /* Distribue les blocs équitablement */
    opacity: 1;

}

.freeproduct_texts{
    display: flex;
    flex-direction: column;
}

.freeproduct_button{
    width: 100%;
    max-width: 200px;
    background-color: #FFFFFF;
    padding: 7px;
    border-radius: 20px;
    color: #FF31D2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 5%;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #FFFFFF;
}
.freeproduct_button:hover{
    box-shadow: 0 10px 16px rgba(45, 37, 91, 0.15);
    background-color: #FF31D2;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}
.freeproduct_image{
    width: 40%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 1;
    padding-bottom: 5%;
}






.overlays_display_image img{
    width: 100%;
    height: auto;
    display: flex;
    object-fit: cover;
    align-items: center;
    justify-content: center;
    padding-top: 15%;
    margin-bottom: -26%;
}







/* Media Queries pour écrans plus petits */
@media (max-width: 1024px) {
    .shop_content {
        margin-left: 12%;
        margin-right: 12%;
        width: 76%;
        gap: 40px;
    }

    .product_list_content img {
        flex: 1 1 180px;
        max-height: 180px;
    }

    .carousel-item {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .carousel-item img {
        max-height: 300px;
    }

    .shop_categories_bubble {
        flex: 1 1 180px;
        max-width: 220px;
        height: 30px;
    }

    .h1_categories {
        font-size: 1.5rem;
    }

    .category_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px; /* Maintient l'espacement constant */
    }
    
    .category_grid .image-container {
        aspect-ratio: 1; /* Maintient le ratio carré */
    }
}

@media (max-width: 768px) {
    .shop_content {
        margin-left: 12%;
        margin-right: 12%;
        width: 76%;
        gap: 30px;
    }
.shop_header_video{
    display: none;
}
    .product_list_content {
        flex-direction: column;
        align-items: center;
    }

    .product_list_content img {
        flex: 1 1 100%;
        max-height: 160px;
    }

    .carousel-item {
        flex: 0 0 49%;
        max-width: 49%;
    }

    .carousel-item img {
        max-height: 150px;
    }

    .shop_categories_bubble {
        flex: 1 1 150px;
        max-width: 200px;
        height: 30px;
        font-size: 0.85rem;
    }

    .h1_categories {
        font-size: 1.3rem;
    }

    .category_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Maintient l'espacement constant */
    }
    
    .category_grid .image-container {
        aspect-ratio: 1; /* Maintient le ratio carré */
    }
    .freeproduct_image{
        display: none;
          }
}

@media (max-width: 480px) {
    .shop_content {
        margin-left: 5%;
        margin-right: 5%;
        width: 90%;
        gap: 20px;
    }

    .product_list_content img {
        max-height: 140px;
        border-radius: 20px;

    }
    .carousel-control{
        display: none;
    }

    .carousel-item {
        flex: 0 0 100%;

    }

    .carousel-item img {
        max-height: 100px;
    }

    .shop_categories_bubble {
        flex: 1 1 120px;
        max-width: 160px;
        height: 30px;
        font-size: 0.8rem;
    }

    .h1_categories {
        font-size: 1.2rem;
    }

    .category_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Maintient l'espacement constant */
    }
    
    .category_grid .image-container {
        aspect-ratio: 1; /* Maintient le ratio carré */
    }

}

/* Ajout du scroll fluide pour mobile */
@media (max-width: 768px) {
    .carousel {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Pour iOS */
        scrollbar-width: none; /* Pour Firefox */
        -ms-overflow-style: none; /* Pour IE/Edge */
        scroll-snap-type: x mandatory; /* Améliore le snap lors du scroll */
        touch-action: pan-x; /* Optimise les gestes tactiles horizontaux */
    }
    
    .carousel::-webkit-scrollbar {
        display: none; /* Pour Chrome/Safari */
    }
    
    .carousel-inner {
        transition: none; /* Désactive la transition CSS sur mobile pour permettre le scroll natif */
        gap: 15px;
        padding: 0 10px; /* Ajoute un peu d'espace sur les côtés */
        display: flex;
        flex-wrap: nowrap; /* Empêche le retour à la ligne */
    }
    
    .carousel-item {
        flex: 0 0 auto; /* Permet aux éléments de ne pas être contraints */
        min-width: 200px; /* Largeur minimale pour les éléments */
        scroll-snap-align: start; /* Améliore le snap lors du scroll */
        touch-action: pan-x; /* Optimise les gestes tactiles */
    }
    
    .carousel-item img {
        pointer-events: none; /* Évite les conflits avec le scroll */
    }
    
    /* Supprimer complètement les dégradés sur mobile */
    .carousel::before,
    .carousel::after {
        display: none;
    }

    .category_product_item{
        width: 50%;
    }
}

@media (max-width: 480px) {
    .carousel {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        touch-action: pan-x;
    }
    
    .carousel::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-inner {
        transition: none;
        gap: 12px;
        padding: 0 8px;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .carousel-item {
        flex: 0 0 auto;
        min-width: 180px;
        scroll-snap-align: start;
        touch-action: pan-x;
    }
    
    .carousel-item img {
        max-height: 140px;
        pointer-events: none;
    }
}