/* ========================================
   STYLES GÉNÉRAUX
   ======================================== */

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

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.shop_content {
    width: 74%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 50px;
    overflow: hidden;
}












/* ========================================
   PRODUITS ET LISTES
   ======================================== */

.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
   ======================================== */

.carousel {
    position: relative;
    width: 100%;
    padding: 1% 0;
}

.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;
}

/* Contrôles du carousel */
.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;
}

/* Dégradés du carousel */
.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;
    will-change: transform;
    transform: translateZ(0);
}

.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;
    will-change: transform;
    transform: translateZ(0);
}

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

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












/* ========================================
   CATÉGORIES
   ======================================== */

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

.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;
    line-height: 0;
    max-width: 100%;
}

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










/* ========================================
   PRODUIT GRATUIT
   ======================================== */

.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;
    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;
    transition: all 0.3s ease;
}

.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%;
}

/* ========================================
   ÉLÉMENTS SPÉCIAUX
   ======================================== */

.commands_header_fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-radius: 10px;
}

.commands_header_content h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.commands_header_content p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

.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
   ======================================== */

/* Écrans très larges */
@media (min-width: 1920px) {
    .shop_content {
        margin-left: auto;
        margin-right: auto;
        max-width: 1420px;
    }
}

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




    
    .carousel-item {
        flex: 0 0 32%;
        max-width: 32%;
    }
    
    .shop_categories_bubble {
        flex: 1 1 180px;
        max-width: 220px;
    }
    
    .h1_categories {
        font-size: 1.5rem;
    }
    
    .category_grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category_grid .image-container {
        aspect-ratio: 1;
    }
}

/* Tablettes */
@media (max-width: 768px) {
    .shop_content {
        margin-left: 12%;
        margin-right: 12%;
        width: 76%;
        gap: 30px;
    }
    
    



    
    .product_list_content {
        flex-direction: column;
        align-items: center;
    }
    
    .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: 15px;
        padding: 0 10px;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .carousel-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        touch-action: pan-x;
    }
    
    .carousel-item img {
        pointer-events: none;
    }
    
    .carousel::before,
    .carousel::after {
        display: none;
    }
    
    .shop_categories_bubble {
        flex: 1 1 150px;
        max-width: 200px;
        font-size: 0.85rem;
    }
    
    .h1_categories {
        font-size: 1.3rem;
    }
    
    .category_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category_grid .image-container {
        aspect-ratio: 1;
    }
    
    .freeproduct_image {
        display: none;
    }
    
    .category_product_item {
        width: 50%;
    }
}

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

    
    .product_list_content img {
        border-radius: 20px;
    }
    
    .carousel-control {
        display: none;
    }
    
    .carousel-inner {
        gap: 12px;
        padding: 0 8px;
    }
    
    .carousel-item img {
        max-height: 140px;
    }
    
    .shop_categories_bubble {
        flex: 1 1 120px;
        max-width: 160px;
        font-size: 0.8rem;
    }
    
    .h1_categories {
        font-size: 1.2rem;
    }
    
    .category_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category_grid .image-container {
        aspect-ratio: 1;
    }
}