/**
 * Mission CRO front-end — Scroll-snap natif sous-catégories HOMEPAGE
 * Scope strict : #index #homepage #categories, mobile < 800px (= frontière JS categories.js).
 * Remplace le rendu Slick mobile (saccadé) par un scroll horizontal natif fluide.
 * Desktop (>= 800px) : inchangé, Slick conservé.
 */

@media (max-width: 799px) {
  #index #homepage #categories .subcategories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 19px rgba(0, 0, 0, 0.1);
    padding: 55px 15px 25px;
    margin: 0 0 25px;
  }

  #index #homepage #categories .subcategories::-webkit-scrollbar {
    display: none;
  }

  #index #homepage #categories .subcategory {
    flex: 0 0 50%;
    box-sizing: border-box;
    scroll-snap-align: start;
    margin-bottom: 0;
    padding: 0 12px;
  }

  #index #homepage #categories .category {
    background-color: transparent;
    width: 100%;
    box-shadow: none;
    margin: 0;
  }

  #index #homepage #categories .carousel-arrows {
    display: none;
  }
}
