/* Bareshoes.fr — Versions d'un modèle (fiche produit), style inspiré d'Adidas :
   « Version : Terra » présenté comme « Taille : 40 », rangée de vignettes sans cadre, barre noire sous la version affichée. */
.bhs-coloris { clear: both; width: 100%; margin: 6px 0 20px; padding-top: 4px; }
/* même présentation que « Taille : 40 » (classe control-label du thème) */
#product .bhs-coloris .bhs-coloris__titre { margin: 0 0 10px; }
#product .bhs-coloris .bhs-coloris__titre .control-label { font-size: 14px; font-weight: 500; line-height: 24px; letter-spacing: .5px; color: #000; }
#product .bhs-coloris .bhs-coloris__titre strong { font-weight: 700; color: #000; }
.bhs-coloris__liste { display: flex; flex-wrap: wrap; gap: 10px 6px; margin: 0; padding: 0 0 2px; list-style: none; }
.bhs-coloris__liste::-webkit-scrollbar { display: none; }
.bhs-coloris__liste li { flex: none; margin: 0; padding: 0; scroll-snap-align: start; }
.bhs-coloris__item { position: relative; display: block; width: 76px; padding-bottom: 7px; text-decoration: none; }
.bhs-coloris__item img { display: block; width: 76px; height: 81px; object-fit: cover; background: #f4f4f2; transition: opacity .2s ease; }
/* barre sous la vignette : noire pour la version affichée, grise au survol */
.bhs-coloris__item::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; transition: background .2s ease; }
.bhs-coloris__item:hover::before { background: #bdbdbd; }
.bhs-coloris__item.is-actuel::before { background: #141414; }
.bhs-coloris__item:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }
/* version épuisée : grisée et barrée, mais cliquable (alerte de retour en stock) */
.bhs-coloris__item.is-epuise img { opacity: .45; filter: grayscale(.4); }
.bhs-coloris__item.is-epuise::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 81px; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(20, 20, 20, .45) 50%, transparent calc(50% + 1px)); pointer-events: none; }
.bhs-coloris__sans-photo { display: flex; align-items: center; justify-content: center; width: 76px; height: 81px; padding: 4px; background: #f4f4f2; font-size: 10px; line-height: 1.2; text-align: center; color: #5e5e5e; }
@media (max-width: 767px) {
  /* téléphone : une seule rangée qui défile au doigt */
  .bhs-coloris__liste { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bhs-coloris__item, .bhs-coloris__item img, .bhs-coloris__sans-photo { width: 68px; }
  .bhs-coloris__item img, .bhs-coloris__sans-photo, .bhs-coloris__item.is-epuise::after { height: 72px; }
}
@media (prefers-reduced-motion: reduce) { .bhs-coloris__item::before, .bhs-coloris__item img { transition: none; } }
/* Quand le bloc est affiché, la ligne « Couleur : … » de PrestaShop (une seule pastille, rien à choisir) est masquée.
   Le champ reste dans le formulaire (ajout au panier) et la couleur sert toujours au filtre des rayons. */
.bhs-coloris ~ .product-variants .product-variants-item:has(.input-color) { display: none; }
