/* === BLOCAGE GLOBAL DU SCROLL HORIZONTAL PAGE === */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

/* === CONTAINMENT GLOBAL POUR BLOQUER SCROLL HORIZONTAL === */
.category-banner-wrapper {
  position: relative;
  padding: 0;
  margin: 20px auto 5px;
  max-width: 100%;
  overflow-x: hidden;
}

/* === SLIDER HORIZONTAL === */
.product-cat-banner {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 0 20px 12px;
  margin: 0 auto;
  scrollbar-width: none;
}
.product-cat-banner::-webkit-scrollbar {
  display: none;
}

/* === CARTES CATÉGORIE === */
.cat-card {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
  text-decoration: none;
  color: #333;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.2s;
}
.cat-card-image {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  margin-bottom: 6px;
}
.cat-card-label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 0 4px;
  text-align: center;
}
.cat-card:hover {
  transform: translateY(-4px);
}

/* === CARTE “RETOUR” === */
html body .cat-card.back-card .cat-card-image {
  background-color: #f79a6d !important;
  background-image: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.cat-card.back-card .cat-card-image::before {
  content: "←";
  font-size: 20px;
  color: #fff !important;
}
.cat-card.back-card .cat-card-label {
  color: #f79a6d !important;
}

/* === LIGNE DE SÉPARATION DISCRÈTE === */
.category-banner-wrapper::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

/* === BOUTONS FLÈCHES MOBILE === */
.slider-button {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  line-height: 0.8;
  padding: 0;
}
.slider-button.prev { left: 8px; }
.slider-button.next { right: 8px; }

/* affichage uniquement en mobile */
@media (max-width: 768px) {
  .category-banner-wrapper { position: relative; }
  .slider-button { display: block; }
}

/* === Bouton “Retour” sur Single Product === */
.single-product .product-cat-buttons {
  justify-content: flex-start !important;
  margin-bottom: 20px;
}
.single-product .cat-button.back-button {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.single-product .cat-button.back-button:hover {
  background: #e0e0e0;
  color: #000;
}