@media (max-width: 1240px) {
    #fives-sky {
        display:none;
    }
    #langue{
        display:none;
    }
}


#main_nav {
    display: none;
}
#street-none {
    display: flex;
}
#bn54 {
    display: none;
}

@media only screen and (max-width: 992px) {
    #main_nav {
        display: flex;
    }
    #street-none {
        display: none;
    }
    #bn54 {
        display: flex;
    }

    .main-header a {
        font-size: 0.65rem;
    }
}

@media (max-width:840px) {
    #best-seller {
        display:none;
    }

    #help {
        display: none;
    }

    .price {
        font-size: 0.68em;
        line-height: 15px;
    }

    .old-price {
        font-size: 0.66em;
        line-height: 15px
    }
    .product-title{
        font-size: 0.68em;
    }
}

@media (min-width: 1200px) {
    .col-xl-5th {
        flex: 0 0 20%;
        max-width: 20%;
    }
}




@media only screen and (min-width: 768px) {
    .dateTmWish {
        display: none;
    }
    .allDateTWish {
        visibility: visible;
    }

}



@media only screen and (max-width: 767px) {
    .dateTmWish {
        visibility: visible;
    }
    .allDateTWish {
        display: none;
    }
    #temu-green-bar {
        display: none;
    }
    #main-header{
        display: flex;
    }
    .form-control{
        font-size: 0.8em;
    }
    .form-control::placeholder {
        font-size: 0.8em;
    }

}

    #connexion-mobile {
        display: none;
    }

    #main-header-mob{
        display: none;
    }

    #footer-mob {
        display: none;
    }
    .footer-mob {
        display: none;
    }
  #product-masonry-mobile {
        display:none;
    }

@media only screen and (max-width: 767px) {
    #footer-mob-what {
        display: flex;
    }
    #footer-mob {
        display: flex;
    }
    .footer-mob {
        display: flex;
    }

    #main-header-mob{
        display:  none;
    }

    #connexion-desktop {
        display: none;
    }

    #connexion-mobile {
        display: flex;
    }
    .top-text{
        font-size: 0.70em;

    }

}

#categ-mobile{
    display: none;
}

@media only screen and (max-width: 550px) {
    #cart{
        display: none;
    }
        #categ-destop{
        display: none;
    }
      #categ-mobile{
        display: flex;
    }
    #categ-desktop-two{
        display: none;
    }
    .sticky-side-menu {

        display: none;
    }
    
    .green-bar-mob{
         display: none;
    }


}


@media only screen and (max-width: 450px) {
    #top-bar{
        display: none;
    }
    #connexion-mobile{
        display: none;
    }

    .products-section {
         display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
        align-items: start; /* IMPORTANT */
    }

    /* Le conteneur parent */
    .product-masonry-grid {
        column-count: 2; /* 2 colonnes sur mobile (comme Temu) */
        column-gap: 10px; /* Espace entre les colonnes */
        padding: 10px;
        width: 100%;
    }

    .product-title{
        margin: 1px 0;
        height: 20px;
    }

    /* Chaque item produit */
    .product-item {
        display: block; /* Important */
        width: 100%;
        margin-bottom: 5px; /* Espace vertical entre les cartes */
        break-inside: avoid; /* Empêche la carte de se diviser entre deux colonnes */
    }

    /* On s'assure que l'image respecte le flux */
    .product-img img {
        width: 100%;
        height: auto; /* La hauteur auto crée le décalage si les images varient */
        display: block;
        border-radius: 8px 8px 0 0;
    }
    .temu-green-box {
      border: 1px solid #0a8f14;
      border-top: none;
      border-radius: 0 0 8px 8px;
      padding: 1px 2px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 1rem;
    
    }

}


/* Ajustement pour tablette et desktop */
@media (min-width: 450px) {
    .product-masonry-grid {
        column-count: 2;
    }
    .product-item {
        height: 300px;
    }
    
    .product-img {
      position: relative;
      width: 100%;
        aspect-ratio: 1 / 1;
      overflow: hidden;
      border-radius: 8px;
    }


}

@media (min-width: 468px) {
    .product-masonry-grid {
        column-count: 3;
    }
    .product-item {
        height: 300px;
    }
    .text-marquee
    {
        font-size: 0.4em;
    }

}

@media (min-width: 769px) {
    .product-masonry-grid {
        column-count: 4;
    }
     .text-marquee
    {
        font-size: 0.5em;
    }
    .product-item {
  height: 400px;
}
}

@media (min-width: 1200px) {
    .product-masonry-grid {
        column-count: 5;
    }
}




/* Mobile : max-width Bootstrap = < 768px */
@media (max-width: 767.98px) {

    .custom-footer {
        text-align: center;
    }

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

    .custom-footer .row > div {
        text-align: center;
    }

    /* Centrer les blocs flex */
    .custom-footer .d-flex {
        justify-content: center !important;
    }

    /* Boutons App Store / Google Play */
    .custom-footer .app-btn {
        justify-content: center;
        text-align: center;
    }

    /* Icônes sociales */
    .custom-footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .custom-footer .social-icons i {
        margin-right: 0 !important;
    }

    /* Badges de paiement */
    .custom-footer .badge-img {
        margin: 5px;
    }
}
