
.category-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.category-menu {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    flex: 1;
}
.ajax_add_to_cart{
    background:rgb(15, 168, 192)!important ;
}
.category-menu ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-item {
    flex: 0 0 auto;
    margin: 0 10px;
}

.scroll-button {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scroll-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.scroll-button svg {
    display: block;
}

#scroll-left{
    margin-right: -10px;
    z-index: 9;
    
}
#scroll-right{
    margin-left: -10px;
    z-index: 9;
    
}
/*html, body {
    overflow-x: hidden; 
}

*/
#carte .content{
    display: flex;
    gap: 20px;
    min-width: 80%;
    max-width: 80%;
    margin: 0 auto;

}

#carte{width:100%}

#category-menu {
    overflow-x: auto; /* Permet le défilement horizontal */
    white-space: nowrap; /* Empêche le retour à la ligne */
    padding: 10px 0 10px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)); /* Dégradé de couleur pour l'arrière-plan */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre légère */
    scrollbar-width: thin; /* Barre de défilement fine */
    scrollbar-color: #000!important;
}

#category-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    width: 2500px;
    
    
}


.product-stock {
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.95rem;
}

.product-stock.low-stock {
    color: #d9534f; /* rouge pour stock faible */
}

.product-stock.medium-stock {
    color: #f0ad4e; /* orange pour stock moyen */
}

.product-stock.high-stock {
    color: #5cb85c; /* vert pour stock confortable */
}


/* Styliser la barre de défilement dans Webkit (Chrome, Safari, etc.) */
#category-menu::-webkit-scrollbar {
    height: 8px; /* Hauteur de la barre de défilement */
}

#category-menu::-webkit-scrollbar-thumb {
    background-color: #000; /* Couleur du thumb (partie de la barre qui défile) */
    border-radius: 10px; /* Coins arrondis */
}

#category-menu::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1); /* Couleur de fond de la barre */
}


/* Pour activer le défilement horizontal avec la molette de la souris */
#category-menu {
    scroll-behavior: smooth; /* Smooth scrolling */
}


.category-overlay {
    position: relative;
    display: inline-block;
}

.category-image {
    display: block;
    width: 100%;
    height: auto;
}

.category-overlay::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.category-name {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 5px 0;

    z-index: 99;
}

.category-item {
    cursor: pointer;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    min-width: 80px; /* Taille minimale pour éviter le chevauchement */ 
    position: relative;
    overflow: hidden;
}

.subcategory-title{margin-bottom:20px;margin-top:30px}

.category-item:hover,
.category-item.active {
    background-color: var(--couleur-principale);
    color: white;
}

.category-image {
    width: 250px;
    height: 150px;
    max-height: 150px;
    min-height:150px;
    object-fit: cover;
    border-radius: 50%;
}


#category-menu li:hover {
    background-color:var(--couleur-principale);
}

#carte{
    display: flex;
    flex-direction: column;
}
.content-container {
    padding: 20px;
    overflow: hidden;
    position: relative; /* Assure que le conteneur peut être animé */
    
    transition: left 0.3s ease; /* Animation fluide */
}

#product-container {
    width: 65%;
    display: block; /* Assurez-vous que le produit est affiché */
    margin-top: 30px;
    background: #fff;
    max-height: 700px;
    overflow-y: auto;
    
}

#product-container+div{
    margin-top: 30px;
    width: 30%;
}
.product-item {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.product-img {
 width: 300px!important;
 height: 150px!important;
 max-height: 150px!important;
 min-height:150px!important;
 object-fit: cover;
}

.product-text {
    padding-left: 20px;
    flex-grow: 1;
    text-align: right;
    max-width: 429px;
}

.product-text h4 {
    margin: 0;
}

.product-text p {
    margin: 5px 0;
}

.ajax_add_to_cart {

    color: white!important;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.ajax_add_to_cart:hover {
    background: #0FA8C0!important;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.add_to_cart_button:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-collaterals *
{width:100%!important
}

.woocommerce-cart-form,
.woocommerce-cart-form .shop_table{
    margin-bottom:0px
}

.woocommerce-mini-cart__buttons a:not(.checkout){
    display:none
}

.wc-block-checkout__shipping-method-container .wc-block-checkout__shipping-method-option:first-child {
    display: none !important;
}
.wp-block-woocommerce-checkout>div,
.wp-block-woocommerce-checkout,.wp-block-woocommerce-checkout*{
    max-width:1140px!important
}

.wc-block-components-form>div{
    max-width:100%
}

.added_to_cart{
    display:none!important
}
.mini-cart {
    width: 100%;
    
    padding: 10px 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;

}

.mini-cart h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.cart-items {
    list-style: none;
    padding: 10px 0;
    margin: 0;

}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;  
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.item-thumbnail {
    width: 20%;
    margin-right: 10px;
}

.item-thumbnail img {
    max-width: 50px;
    height: auto;
}

.item-details {
    flex-grow: 1;
    font-size: 13px;
    padding-left: 7px;
}

.item-name {
    display: block;


}

.item-price {
    display: block;
    color: #555;
}

.item-quantity {
    display: block;
    color: #777; /* Couleur de la quantité */
    margin-top: 5px;
}

.remove-item {
    font-size: 16px;
    color: red;
    text-decoration: none;
}

.cart-total {

    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.checkout-btn {
    display: block;
    background-color: #000;
    color: #fff!important;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-top: 10px;
    text-decoration: none!important;
    font-weight: bold;


}

.checkout-btn:hover {
    background-color: rgb(15, 168, 192);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.fa-shopping-basket{color:var(--couleur-cse);}

.cart-day-group ul{
    padding-top:  10px;
}

.select-date-notice{

    background-color:rgba(15, 168, 192, 0.4) ;
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    text-align: center;
    max-width: 500px;
    margin:  30px  auto;
}

.no-plat-chauds{

     background-color: rgba(255, 99, 71, 0.4); /* Tomato clair */
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    text-align: center;
    max-width: 500px;
    margin:  30px  auto;
}

@media (max-width: 600px) {
    #product-container+div{

        display: none;
    }

    #product-container{
        width: 100%;
    }
    .product-item{
        flex-direction: column;
    }

    .product-text h4{
        padding: 8px 0;
    }
    .search{
        display: none!important;
    }

    #carte .content{
  
    min-width: 100%;
    max-width: 100%;
    margin: 0 ;

}

#carte{
    margin-top: 75px;
}

#product-container{
    overflow-y: hidden;
    max-height: 100%;
}
}



@media (max-width: 1390px) {
   .ajax_add_to_cart {
    font-size: 13px; /* réduire pour éviter le saut de ligne */
}
}