 
/* Verrouiller le scroll horizontal de la page sur mobile */
@media (max-width: 767px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;   /* pas de scroll gauche/droite */
    touch-action: pan-y;             /* autorise le scroll vertical uniquement */
    overscroll-behavior-x: contain;  /* empêche les débordements latéraux */
  }
 
}


/* Style pour la surbrillance de l'élément actif */
.box-items-inner .box-item a.active-menu-item {
    background-color: #FFEA00; /* Jaune pour la surbrillance */
    color: #015BBC !important; /* Bleu pour le texte */
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 234, 0, 0.5);
    transition: all 0.3s ease;
}

/* Style au survol pour tous les éléments */
.box-items-inner .box-item a:hover {
    background-color: rgba(255, 234, 0, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

/* Style par défaut */
.box-items-inner .box-item a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white !important;
}

        .product__item .product-image img {
            max-width: 100%;
            max-height: 200px;
            object-fit: contain;
            width: auto;
            height: auto;
        }
        @media (max-width: 767px) {
            .product__item .product-image {
                height: 150px;
            }
            .product__item .product-image img {
                max-height: 150px;
            }
        }
        .widget-category-list .row {
            flex-wrap: wrap;
        }
        @media (max-width: 991.98px) {
            .widget-category-list .row {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 15px;
            }
            .single-widget-category {
                flex: 0 0 auto;
                margin-right: 10px;
            }
            .category-link {
                display: inline-block;
                padding: 8px 15px;
                border-radius: 20px;
                background: #f5f5f5;
            }
            .widget-category-list .row::-webkit-scrollbar {
                display: none;
            }
            .widget-category-list {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
        }
        .product-action .wishlist-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 50%;
            margin-left: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .product-action .wishlist-btn:hover {
            background: #ff4d4d;
            color: #fff;
        }
        .product-action .wishlist-btn i {
            font-size: 16px;
        }
        .count {
            color: black !important;
        }
        .header__bottom {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .box-items-inner {
            display: flex;
            flex-wrap: nowrap;
            white-space: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .box-items-inner::-webkit-scrollbar {
            display: none;
        }
        .box-item {
            flex: 0 0 auto;
            margin-right: 15px;
            text-align: center;
        }
        @media (max-width: 767px) {
            .box-item {
                min-width: 120px;
            }
        }
        .custom-spinner {
            --size: 30px;
            --first: #005bba;
            --second: #fed500;
            width: 100px;
            height: 100px;
            position: relative;
            animation: spin 3s linear infinite;
        }
        .custom-spinner::before,
        .custom-spinner::after {
            content: "";
            width: var(--size);
            height: var(--size);
            border: 4px solid var(--first);
            border-top: 4px solid var(--second);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: spinRing 1.5s ease-out infinite;
            box-shadow: 0 0 10px var(--first);
        }
        .custom-spinner::before {
            filter: blur(10px);
        }
        @keyframes spinRing {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .amazon-search-bar {
            display: flex;
            align-items: center;
            width: 100%;
            background-color: #fefefe;
            border: 2px solid #fed500;
            border-radius: 4px;
            padding: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .amazon-search-bar select {
            border: none;
            background: none;
            padding: 5px;
            font-size: 14px;
            width: 60px;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23015BBC" d="M2 4l5 5 5-5z"/></svg>') no-repeat right 5px center;
            margin-right: 5px;
        }
        .amazon-search-bar input[type="text"] {
            flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            padding: 5px;
            color: #333;
        }
        .amazon-search-bar button {
            background-color: #fed500;
            border: none;
            padding: 8px 15px;
            color: #015BBC;
            font-weight: bold;
            cursor: pointer;
            border-radius: 0 4px 4px 0;
            transition: background-color 0.3s;
        }
        .amazon-search-bar button:hover {
            background-color: #e6c200;
        }
        .amazon-search-bar .spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #015BBC;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }
        .amazon-search-bar.loading button {
            display: none;
        }
        .amazon-search-bar.loading .spinner {
            display: inline-block;
        }
    
     
    /* Le header passe dans une couche supérieure */
        header.header,
        .header-mid {
        position: relative;
        z-index: 1000; /* > 100 des cartes */
        }

        /* La zone recherche peut être encore au-dessus si besoin */
        .header__search,
        .amazon-search-bar {
        position: relative;
        z-index: 1001;
        overflow: visible; /* éviter tout clipping */
        }
        .header-mid { transform: translateZ(0); } /* nouveau contexte au z-index 1000 */

            .equipment-container {
                position: relative;
                width: 100%;
                height: 100%;
            }
            .equipment-item {
                display: none;
            }
            .equipment-item:first-child {
                display: block;
            }
            @keyframes rotateEquipment {
                0%, 25% { display: none; }
                25.1%, 50% { display: block; }
                50.1%, 100% { display: none; }
            }
            #fryer { animation: rotateEquipment 8s infinite; }
            #oven { animation: rotateEquipment 8s infinite 2s; }
            #table { animation: rotateEquipment 8s infinite 4s; }
            #fridge { animation: rotateEquipment 8s infinite 6s; }
        
      
       .goog-te-gadget-simple img
       {
         display:none;
       }
       .goog-te-gadget-simple
       {
         background-color:#015BBC;
         color:white;
         border:none;
       }
       .goog-te-gadget-simple span
       {
         color:white;
       }
      

        
            .header-mid hr
            {
                display:none;
            }
            .heade-mid-inner hr
            {
                display:none;
            }
        
       
        .header__bottom {
            overflow-x: hidden;
            position: relative;
        }
    
        .menu-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
    
        .box-items-inner {
            display: flex;
            flex-wrap: nowrap;
            white-space: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            width: calc(100% - 100px);
            margin: 0 50px;
        }
    
        .box-items-inner::-webkit-scrollbar {
            display: none;
        }
    
        .box-item {
            flex: 0 0 auto;
            margin-right: 15px;
            text-align: center;
            min-width: 120px;
        }
    
        .scroll-prev-btn, .scroll-next-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: #015BBC;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s;
        }
    
        .scroll-prev-btn {
            left: 0;
        }
    
        .scroll-next-btn {
            right: 0;
        }
    
        .scroll-prev-btn:hover, .scroll-next-btn:hover {
            background-color: #013a7d;
        }
    
        @media (max-width: 767px) {
            .header__bottom {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                margin-top:-20px;
            }
            .box-items-inner {
                width: 100%;
                margin: 0;
            }
            .scroll-prev-btn, .scroll-next-btn {
                display: none !important;
            }
            .header__info
            {
                zoom:0.87;
                margin-top:10px
            }
            .header-inner-start
            {
               margin-left: -20px;
            }
        }
    
        @media (min-width: 768px) {
            .box-items-inner {
                overflow-x: auto;
            }
            .header__info
            {
                zoom:0.8;
            }
            .header__bottom {
                margin-top:0px;
            }
        }
    
    
            #searchLoader {
                position: fixed;
                top: 35%;
                left: 50%;
                transform: translate(-50%, -50%);
                display: flex;
                flex-direction: column;
                align-items: center;
                background: rgba(255, 255, 255, 0.9);
                padding: 20px;
                border-radius: 10px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                z-index: 9999999999;
            }
            .loader-spinner {
                border: 4px solid #f3f3f3;
                border-top: 4px solid #007bff;
                border-radius: 50%;
                width: 40px;
                height: 40px;
                animation: spin 1s linear infinite;
                margin-bottom: 10px;
            }
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }
            #loaderText {
                font-family: Arial, sans-serif;
                font-size: 16px;
                color: #333;
                text-align: center;
            }
        

        
    /* Menu fixe mobile - Amazon/Alibaba style */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: #015BBC;
        border-top: 2px solid #FFEA00;
        display: none;
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    .mobile-bottom-nav .nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: white;
        text-decoration: none;
        flex: 1;
        padding: 5px 0;
        transition: all 0.3s ease;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 20px;
        margin-bottom: 3px;
        color: white;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 10px;
        line-height: 1.2;
    }

    .mobile-bottom-nav .nav-item.active {
        color: #FFEA00;
    }

    .mobile-bottom-nav .nav-item.active i {
        color: #FFEA00;
    }

    .mobile-bottom-nav .nav-item.search-item {
        position: relative;
    }

    .mobile-bottom-nav .search-icon {
        background-color: #FFEA00;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -25px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .mobile-bottom-nav .search-icon i {
        color: #015BBC;
        font-size: 22px;
    }

    /* Barre de recherche mobile */
    .mobile-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1001;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .mobile-search-container {
        background: white;
        width: 90%;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-search-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .mobile-search-header h3 {
        color: #015BBC;
        margin: 0;
        font-size: 18px;
    }

    .mobile-search-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #015BBC;
        cursor: pointer;
    }

    .mobile-search-bar {
        display: flex;
        align-items: center;
        background-color: #f8f8f8;
        border: 2px solid #FFEA00;
        border-radius: 25px;
        padding: 10px 15px;
        margin-bottom: 15px;
    }

    .mobile-search-bar input {
        flex: 1;
        border: none;
        outline: none;
        background: none;
        font-size: 16px;
        padding: 5px;
    }

    .mobile-search-bar button {
        background: #FFEA00;
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #015BBC;
    }

    .mobile-search-categories {
        margin-top: 15px;
    }

    .mobile-search-categories h4 {
        color: #015BBC;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .mobile-category-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-category-tag {
        background: #015BBC;
        color: white;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-category-tag:hover {
        background: #FFEA00;
        color: #015BBC;
    }

    @media (max-width: 767px) {
        .mobile-bottom-nav {
            display: block;
        }
        
        /* Ajuster l'espace en bas pour le contenu principal */
        .body-overlay + div {
            padding-bottom: 70px;
        }
    }
