/* France Access - Correctif mobile v2.0 (PrestaShop 1.7.5.1, rb_mercado)
   Priorite : restaurer la visibilite des produits dans les carrousels Rubik.
   Ce fichier remplace les regles mobile v1, qui contraignaient .slick-track.
   Aucune regle ne modifie le fonctionnement, largeur ou hauteur des sliders.
*/
@media screen and (max-width: 767px) {
  html, body { max-width: 100%; }
  #wrapper, #content-wrapper, #content, .page-home { min-width: 0; }
  img, video, iframe { max-width: 100%; }

  /* En-tete mobile : ajustements discrets, ne pas reorganiser les widgets. */
  .rb-header .header-mobile .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .rb-header .header-mobile .header-flex > [class*="col-"] { min-width: 0; }
  .rb-header .header-mobile .rbLogo img.logo {
    width: auto;
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
  }
  body { padding-bottom: 55px; }

  /* IMPORTANT : aucun max-width sur .slick-track, .slick-list ou .slick-slider.
     Slick place des largeurs inline pour gerer les translations et les clones.
     Ces regles annulent une ancienne v1 eventuellement encore en cache. */
  .page-home .slick-slider,
  .page-home .slick-list,
  .page-home .slick-track { max-width: none !important; }

  /* Deux produits par ligne UNIQUEMENT pour une liste native de catalogue.
     Pas de modification des carrousels sur la page d'accueil. */
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -5px;
    margin-right: -5px;
  }
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) > .product-style1 {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    margin-bottom: 12px;
    padding: 0 5px;
  }
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) > .product-style1 > article.product-miniature {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) .product-style1 .thumbnail-container {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) .product-style1 .product-thumbnail > img {
    display: block;
    width: 100%;
    max-height: 190px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
  }
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) .product-style1 .product-meta {
    padding: 9px 8px 12px;
    min-width: 0;
  }
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) .product-style1 .product-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized):not(.owl-carousel) .product-style1 .product-price-and-shipping .price {
    font-size: 15px;
    font-weight: 700;
  }

  /* Champs d'inscription qui ne doivent pas depasser l'ecran. */
  #customer-form input:not([type="checkbox"]):not([type="radio"]),
  #customer-form select,
  #customer-form textarea { max-width: 100%; }
}
@media screen and (max-width: 359px) {
  #js-product-list > .rb-product-list.row:not(.slick-slider):not(.slick-initialized) .product-style1 .product-title a { font-size: 11px !important; }
}
