:root {
     --font-main: miui, system-ui, -apple-system, BlinkMacSystemFont,
                 ".SFNSText-Regular", Helvetica, Arial, sans-serif, serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    --header-color: #d71920;
}


/* Top bar */
.top-bar {
  background-color: #000;
  color: rgb(255, 247, 167);
  font-size: 0.75em;
  padding: 6px 0;
}

.top-bar a {
  color: rgb(255, 247, 167);
  text-decoration: none;
  font-weight: 700;
  line-height: 21px;
}

.top-bar a:hover { text-decoration: underline; }

.top-bar i {
  color: rgb(255, 247, 167);

}

.main-header {
  background-color: var(--header-color);
  color: #fff;
  padding: 10px 0;
}
.main-header .logo {
  font-size: 1.4rem;
  font-weight: bold;
  background-color: #ff6600;
  padding: 5px 12px;
  border-radius: 8px;
  color: #fff;
}
.main-header .search-bar input {
  border-radius: 25px 0 0 25px;
  border: none;
  padding-left: 15px;
}
.main-header .search-bar button {
  border-radius: 0 25px 25px 0;
  border: none;
  background-color: #fff;
  color: #333;
}


.main-header a {
  color: #fff;
  margin-left: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
}
.main-header a:hover { text-decoration: underline; }
.main-header .icons i { font-size: 1.1rem; margin-right: 5px; }


.temu-green-bar {
  background: #0a8f14;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.temu-green-left,
.temu-green-right { display: flex; align-items: center; }

.temu-green-bar a {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
    align-items: center;


}

.temu-green-bar a:last-child { margin-right: 0; }

.temu-green-bar a i { margin-right: 6px; font-size: 1rem; }


.temu-green-bar span.separator {
  margin-right: 20px;
  color: rgba(255, 255, 255, 0.4);
}

.temu-green-box {
  border: 2px solid #0a8f14;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;

}

.temu-green-box a {
  color: #0a8f14;
  text-decoration: none;
  font-weight: 600;
  align-items: center;
}

.temu-green-box span {
  color: #0a8f14;
  margin-left: 2px;
}


.temu-green-box a i {
    color: #0a8f14;
    margin: 5px;
    font-size: 1rem;
}

.temu-green-box i.fa-bell {
    color: #0a8f14;
    margin-right: 8px;
}

.banner-orange { background-color: #ff7b00; }


/* Banner section bleu */
.banner {
  background: #0027b8;
  padding: 15px;
  text-align: center;
  color: white;
}
.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.banner-content .logo { height: 35px; }
.banner-content p {
  margin-left: 20px;
  font-size: 20px;
  font-weight: 600;
}

/* Titres de section */
.interests-section {
    text-align: center;
    margin: 10px 0;

}

.small-title {
  color: #ff6a00;
  font-weight: bold;
  text-transform: uppercase;
}
.main-title { font-weight: 800; margin-top: 5px; }

/* Categories scroll (garde les deux patterns : .category-wrapper + .category-scroll) */
.category-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 90%;
  margin: 20px auto;
}
.categories {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 15px 0;
  scroll-behavior: smooth;
}
.categories::-webkit-scrollbar { display: none; }

/* Alternative container nommée category-scroll (gardée) */
.category-scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}
.category-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  padding: 0 40px;
}
.category-scroll::-webkit-scrollbar { display: none; }

/* category-item (fusion des deux définitions) */
.category-item {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 10px 25px;
  font-size: 16px;
  margin-right: 15px;
  border-radius: 30px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
}
.category-item:hover { background: #f3f3f3; }

/* Scroll buttons (fusionnées) */
.scroll-btn {
  position: absolute;
  background: #ffffff;
  border: 1px solid #ddd;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #000;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  transition: 0.2s;
}
.scroll-btn.left { left: 5px; margin-right: 10px; }
.scroll-btn.right { right: 5px; margin-left: 10px; }
.scroll-btn:hover { background: #f2f2f2; }

/* petites tailles utilitaires */
.btn-xs {
  padding: 0.15rem 0.3rem;
  font-size: 0.7rem;
  line-height: 1.2;
  border-radius: 0.2rem;
}

/* Produits / grille */
.products-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  padding: 20px;
  width: 95%;
  margin: auto;
}

/* Product card (TOUS les styles fusionnés en un seul bloc) */
.product-card {
  background: white;
  border-radius: 8px;
   padding: 5px; 
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    padding: 0.8em;
    transform: translateY(-6px); /* effet surélévation */
  /*  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);  relief */
}

/* Product image 
.product-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
} */


/* Product image */
.product-img {
  position: relative;
  width: 100%;
  /*  aspect-ratio: 1 / 1; */
  overflow: hidden;
  border-radius: 8px;
}

.product2-img {
  aspect-ratio: 1 / 1;
}


.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-img:hover img { transform: scale(1.15); }




/* Badge (fusion des infos pertinentes) */
.badgeAvant {
  position: absolute;
  bottom: 5px;
  background: rgba(159, 54, 239, 0.509);
  color: rgb(0, 0, 0);
  padding: 2px 3px;
  font-size: 10px;
    font-weight: bold;
}

.badgePromo {
  position: absolute;
  bottom: 5px;
   right: 5px;
  background: rgba(134, 0, 0, 0.5);
  color: rgb(0, 0, 0);
  padding: 2px 3px;
  font-size: 10px;
font-weight: bold;
}

.badgeFlash {
  position: absolute;
  bottom: 5px;
  right: 4px;
font-weight: bold;
  background: rgba(255, 140, 0, 0.498);
  color: rgb(0, 0, 0);
  padding: 2px 3px;
  font-size: 10px;


}

.badgeLineAvant {

  background: rgb(30, 168, 3);
  color: rgb(255, 255, 255);
  padding: 2px 3px;
  font-size: 10px;
   font-weight: 500;
   line-height: 18px;

}

.badgeLinePromo {

  background: #E72525;
  color: rgb(255, 255, 255);
  padding: 2px 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
}

.badgeLineFlash {

font-weight: bold;
  background: rgb(255, 140, 0);
  color: rgb(255, 255, 255);
  padding: 2px 3px;
  font-size: 10px;
   font-weight: 500;
  line-height: 18px;

}

/* Titres / prix / meta */
.product-title {
  font-size: 14px;
  margin: 2px 0;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-5-per-line {
    flex: 0 0 20%;
    max-width: 20%;
}

.product-title a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #333;
    text-decoration: none;
    transition: 0.3s ease;
}

.product-title a:hover {
    color: #d35400;            /* Change la couleur au survol */
    transform: scale(1.05);    /* Légère animation d’agrandissement */
}


.price {
  font-size: 0.88em;
  line-height: 20px;
  font-weight: 600;
  color: #ff6a00;
}
.price small { margin-left: 8px; }

.fa-fire{
    color: #ff6a00;
}


.sales {
    font-size: 0.7em;
    background: linear-gradient(90deg, #ff781859, #fff3e0);
    color: #ff6a00;
    margin-left: 8px;


}


.old-price { font-size: 13px; text-decoration: line-through; color: #777; }
.tag { font-size: 12px; color: green; margin: 3px 0; }
.rating { font-size: 18px; margin: 2px 0; }

/* Cart button : règle générale + override dans product-card si nécessaire */


.cart-btn {
  border: none;
  background-color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.product-card .cart-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
}

.cart-outline {
    position: absolute;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    right: 5px;
    background: #ff6a00;
    border: 1px solid #ff6a00;
    border-radius: 50%;
    padding: 5px;
}

.cart-outline:hover {
    background: #fff;
    border: 2px solid #fff;
    color:#ff6a00;
    padding: 5px;
}
.text-mark {
    color: #555555;
     font-size:1em;
    width: 100%;

}

.text-marquee {
    color: #555555;
    font-size: 1em;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
   /*animation: marquee 12s linear infinite;*/
   animation: stopAtCenter 12s linear infinite;
}


@keyframes stopAtCenter {
  0% {
        transform: translateX(150%); /* Départ hors champ à droite */
    }
    30% {
        transform: translateX(0); /* Arrivée au centre (position naturelle) */
    }
    70% {
        transform: translateX(0); /* Pause au centre (reste immobile de 30% à 70%) */
    }
    100% {
        transform: translateX(150%); /* Départ vers la gauche hors champ */
    }
}

/* Animation avec temps d'arrêt au début
@keyframes marquee {
    0% {
        transform: translateX(0); 
    }

    20% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}



@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
 */

/* Show more */
.show-more-wrapper { text-align: center; margin-top: 20px; }
.show-more-btn {
  background: #ff6a00;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 28px;
  font-size: 16px;
  cursor: pointer;
}
.show-more-btn:hover { opacity: 0.85; }

/* Temu-Evri banner */
.temu-evri-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #002b9a;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
}
.temu-evri-banner .left {
  display: flex;
  align-items: center;
  background: #0080cb;
  padding: 10px 18px;
  border-radius: 4px 0 0 4px;
  font-size: 22px;
}
.temu { color: #ff6a00; }
.x { margin: 0 6px; }
.evri { color: #ffffff; }
.temu-evri-banner .right { display: flex; align-items: center; margin-left: 15px; }
.temu-evri-banner .text { font-size: 20px; }
.arrow { margin-left: 12px; font-size: 26px; }

/* Petites utilitaires restantes */
.top-green { background-color: #009900; font-size: 14px; }
.alert-success {
  background-color: #e8f8e4;
  border: 1px solid #4caf50;
  color: #256d28;
}

.text-orange {
    color: #ff6600;
}

.categories_name {
    font-size: 12px;          /* Petite taille */
    color: #333;              /* Couleur sombre */
    width: 100%;
    max-width: 150px;         /* Optionnel selon ton design */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;  /* Met "..." à la fin */
}


a {
    text-decoration: none !important;
    color: #333;
    font-weight: 400;
}

a:hover {
    color: #ff7b00;
}

/* footer */
.custom-footer {
    background-color: #111;
    color: #fff;
    padding-top: 50px;
    padding-bottom: 20px;
    font-size: 0.85rem;
}

.custom-footer h6 {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1rem;
}

.custom-footer ul {
    list-style: none;
    padding: 0;
}

.custom-footer ul li {
    margin-bottom: 10px;
}

.custom-footer a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.custom-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Boîte orange "Vendre sur Temu" */
.seller-box {
    border: 1px solid #444;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.btn-orange {
    background-color: #ff6000;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    padding: 8px 20px;
    border: none;
}

/* App download buttons */
.app-btn {
    border: 1px solid #555;
    border-radius: 30px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    color: white !important;
    margin-bottom: 10px;
}

/* Icônes sociales */
.social-icons i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: white;
    cursor: pointer;
}

/* Sections logos de paiement et certificats */
.bottom-sections {
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 5px;
}

.badge-placeholder {
    background: #eee;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
    display: inline-block;
    margin: 2px;
}

.copyright-bar {
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.75rem;
    color: #777;
}

.seller-box {
    /* L'ordre est crucial : le dégradé est "au-dessus" de l'image */
    background-image:
        linear-gradient(to right, #000000f6 30%, rgba(0,0,0,0) 80%),
        url('/boutique/newversion/img/slider/nsss.png'); /* Remplacez par votre chemin reel */

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    border: 1px solid #444;
    border-radius: 15px;
    padding: 30px;
    min-height: 80px; /* Ajustez selon vos besoins */
    overflow: hidden;
    position: relative;
}

/* Style du bouton pour correspondre à la capture */
.btn-orange {
    background-color: #ff6000;
    color: white !important;
    border-radius: 30px;
    padding: 10px 30px;
    border: none;
    text-decoration: none !important;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-orange:hover {
    transform: scale(1.05);
    background-color: #e65600;
}

/* Responsivité pour mobile */
@media (max-width: 768px) {
    .seller-box {
        background-image:
            linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.5)),
            url('/img/slider/nsss.png');
        text-align: center;
        justify-content: center;
    }
}

/* Moyen  de paiment et de secrurité */

.badge-img {
    height: 32px;
    width: auto;
    background-color: #fff;
    padding: 4px 8px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 4px; /* Petit arrondi comme sur l'image */
    object-fit: contain;
    display: inline-block;
}

/* Effet au survol (optionnel) */
.badge-img:hover {
    filter: brightness(0.9);
    cursor: pointer;
}

/* Pour les logos très larges (ex: Klarna ou Google Pay) */
.badge-img[alt="Klarna"], .badge-img[alt="Google Pay"] {
    padding: 4px 12px;
}

.sticky-side-menu {
    position: fixed;
    right: 0px;
    bottom: 50px; /* Ajustez la hauteur selon votre footer */
    z-index: 1050; /* Pour rester au-dessus du contenu */
    background-color: #fff;
    border-radius: 12px 0px 0px  12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 50px; /* Largeur fixe pour l'alignement */

}

.side-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    color: #333;
    text-decoration: none !important;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

/* Supprimer la bordure du dernier élément */
.side-item:last-child {
    border-bottom: none;
}

.side-item:hover {
    background-color: #f8f8f8;
    color: #ff6000; /* Orange Temu au survol */
}

.side-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.side-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Masquer sur très petits écrans si nécessaire */
@media (max-width: 576px) {
    .sticky-side-menu {
        right: 10px;
        width: 60px;
    }
}




/*Catégories Positionnement pour que le menu s'étende sur toute la largeur de la navbar */
/* Permet au menu de sortir des limites de la colonne */
/* Force le menu à ignorer la largeur de la colonne col-4 */
.has-megamenu {
    position: static !important;
}

.megamenu {
    position: absolute !important;
    width: 100vw !important; /* Prend toute la largeur de l'écran */
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    z-index: 9999 !important;
    display: none; /* Caché par défaut */
}

/* Affiche le menu quand on ajoute la classe .show (géré par Bootstrap ou JS) */
.has-megamenu.show .megamenu,
.has-megamenu:hover .megamenu {
    display: block;
}

/* Style des liens à gauche */
.category-sidebar .nav-link.active {
    background-color: #fff !important;
    color: #ff6000 !important;
}
.sliding-container {
    position: relative;
    overflow: hidden;
    min-height: 40px; /* S'assure que la barre a une hauteur fixe */
}

.ribbon-link {
    position: absolute;
    top: 0;
    right: 0; /* Ancré à droite sur le bouton */
    height: 100%;
    width: 0; /* Largeur nulle au départ */
    background: #000;

    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15; /* Au-dessus de tout */
    white-space: nowrap;
    text-decoration: none !important;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
    border-radius: 50px 0 0 50px; /* Arrondi à gauche */
}

.ribbon-link a {
    color: linear-gradient(270deg, #ffc107 0%, #ff8800 100%);
}
.ribbon-link a:hover {
    color: #fff;
}

/* Déclenchement au survol du bouton "Participer" */
/* Note : On utilise l'ancêtre commun pour déclencher l'animation */
.sliding-container:hover .ribbon-link {
    width: 100%; /* S'étend jusqu'à la gauche */
}

/* Petit effet de brillance au survol du ruban lui-même */
.ribbon-link:hover {
    background: #000;
    filter: brightness(1.1);
}

.trigger-button {
    position: relative;
    z-index: 20; /* Toujours au-dessus du ruban pour rester visible */
}


.text-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 100%;
}

.typing-text {
    position: absolute;
    white-space: nowrap;
    font-weight: 500;
    color: #155724;
    opacity: 0;

    /* Centrage absolu */
    left: 50%;
    transform: translateX(-50%);

    /* Animation de dévoilement central (18s total, 6s par texte) */
    animation: center-reveal 18s infinite ease-in-out;
}

/* Décalage pour l'enchaînement */
.t1 { animation-delay: 0s; }
.t2 { animation-delay: 6s; }
.t3 { animation-delay: 12s; }

@keyframes center-reveal {
    0% {
        opacity: 0;
        clip-path: inset(0 50% 0 50%); /* Caché au centre (droite et gauche à 50%) */
    }
    5% {
        opacity: 1;
    }
    15% {
        clip-path: inset(0 0% 0 0%); /* Totalement ouvert */
        opacity: 1;
    }
    30% {
        clip-path: inset(0 0% 0 0%);
        opacity: 1;
    }
    35% {
        opacity: 0;
        clip-path: inset(0 50% 0 50%);
    }
    100% {
        opacity: 0;
    }
}

/* Force le menu à ignorer la largeur de la colonne col-4 */
.has-megamenu {
    position: static !important;
}

.megamenu {
    position: absolute !important;
    width: 100vw !important; /* Prend toute la largeur de l'écran */
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    z-index: 9999;
    display: none; /* Caché par défaut */
}

/* Affiche le menu quand on ajoute la classe .show (géré par Bootstrap ou JS) */
.has-megamenu.show .megamenu,
.has-megamenu:hover .megamenu {
    display: block;
}

/* Style des liens à gauche */
.category-sidebar .nav-link.active {
    background-color: #fff !important;
    color: #ff6000 !important;
}

/* Conteneur principal */
.social-login {
    margin-top: 25px;
    margin-bottom: 20px;
}

/* Style du bouton Google */
.social-login .google.btn {
    background-color: #EA4234;
    color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Coins arrondis modernes */
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Effet au survol */
.social-login .google.btn:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    color: #EA4234;
}

/* Icône Google */
.icon-google {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ajustement pour mobile */
@media (max-width: 576px) {
    .social-login .google.btn {
        width: 100%; /* Prend toute la largeur sur petit écran */
    }
}

