/* =============================================================================
   io_bagagerie - fiche valise (refonte bagagerie, 03/12/2026)
   Chargé UNIQUEMENT sur les fiches valises suivies par le module, quand l'affichage
   est actif (aperçu ou en ligne). Toutes les règles sont scopées sous #product.
   Typographie et boutons repris de la fiche actuelle (product-refonte.css) ;
   Cuir #8A5A2E pour le nom de la gamme (charte, touche bagagerie).
   ============================================================================= */

/* --- Titre : gamme, titre court, sous-titre -------------------------------- */
#product .product-description-block .io-bag-surtitre {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8A5A2E;
  margin: 0 0 4px;
}
#product .product-description-block .io-bag-sous-titre {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 4px;
}

/* --- Sélecteur de format (liens vers les autres fiches de la gamme) -------- */
#product .io-bag-formats {
  margin: 20px 0 0;
}
#product .io-bag-formats .pdp-variant-head {
  margin-bottom: 9px;
}
#product .io-bag-formats-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#product .io-bag-formats-liste li {
  margin: 0;
}
#product .io-bag-format {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 52px;
  padding: 6px 12px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #111;
  text-decoration: none;
  transition: border-color .15s ease;
}
#product .io-bag-format:hover,
#product .io-bag-format:focus {
  border-color: #111;
  color: #111;
  text-decoration: none;
}
#product .io-bag-format.is-actif {
  background: #111;
  border-color: #111;
  color: #fff;
}
#product .io-bag-format-nom {
  font-family: "Manrope", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
#product .io-bag-format-prix {
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  line-height: 1.3;
  color: #666;
  white-space: nowrap;
}
#product .io-bag-format.is-actif .io-bag-format-prix {
  color: #d9d9d9;
}
#product .io-bag-economie {
  font-family: "Manrope", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #8A5A2E;
  margin: 4px 0 0;
}

/* --- Phrase cabine sous le bouton d'ajout au panier ------------------------ */
#product .io-bag-cabine {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  margin: 10px 0 0;
}

/* --- Le lien "Guide des tailles" mène au guide des vêtements : masqué ------ */
/* !important : product-refonte.css pose display:inline-block sur la variante
   --standalone avec la même spécificité, et peut passer après dans le paquet CSS. */
#product .product-variants .pdp-size-guide {
  display: none !important;
}

/* --- Tableau Détails ------------------------------------------------------- */
#product .io-bag-tableau {
  width: 100%;
  border-collapse: collapse;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 8px;
}
#product .io-bag-tableau,
#product .io-bag-tableau tbody,
#product .io-bag-tableau tr {
  border: 0;
}
#product .io-bag-tableau th,
#product .io-bag-tableau td {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  text-align: left;
}
#product .io-bag-tableau th {
  width: 42%;
  padding-right: 12px;
  font-weight: 600;
  color: #111;
}
#product .io-bag-tableau td {
  color: #444;
}

/* --- Bloc "La gamme" + offre du set ---------------------------------------- */
#product .io-bag-bloc-gamme {
  width: 100%;
  margin: 32px 0 0;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}
#product .io-bag-gamme-titre {
  font-family: "Bebas Neue Pro", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 16px;
}
#product .io-bag-cartes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#product .io-bag-carte {
  margin: 0;
}
#product .io-bag-carte a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #111;
  text-decoration: none;
}
#product .io-bag-carte-photo {
  position: relative;
  display: block;
  aspect-ratio: 366 / 529;
  background: #f5f5f5;
  margin-bottom: 8px;
  overflow: hidden;
}
#product .io-bag-carte-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#product .io-bag-carte.is-ici .io-bag-carte-photo {
  outline: 1.5px solid #111;
  outline-offset: -1.5px;
}
#product .io-bag-carte-ici {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  background: #111;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
}
#product .io-bag-carte-nom {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
}
#product .io-bag-carte-volume {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  color: #666;
}
#product .io-bag-carte-prix {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  color: #111;
}
#product .io-bag-carte-prix s {
  color: #999;
  margin-right: 4px;
}
#product .io-bag-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 20px 0 0;
  padding: 16px 20px;
  background: #F0ECE5;
}
#product .io-bag-set-texte {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #111;
  margin: 0;
}
#product .io-bag-set-bouton {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #111;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}
#product .io-bag-set-bouton:hover,
#product .io-bag-set-bouton:focus {
  background: #111;
  color: #fff;
  text-decoration: none;
}

/* --- Vignettes de liste (catégorie, recherche, filtres) -------------------- */
/* Pas de #product : les vignettes vivent sur #category, #search et les pages as4. */
.product-miniature .io-bag-vignette-gamme {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8A5A2E;
  margin: 0 0 2px;
}
.product-miniature .io-bag-vignette-format {
  display: block;
}

/* --- Mobile : formats et cartes défilent à l'horizontale ------------------- */
@media (max-width: 991.98px) {
  #product .io-bag-formats-liste {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  #product .io-bag-formats-liste::-webkit-scrollbar {
    display: none;
  }
  #product .io-bag-formats-liste li {
    flex: 0 0 auto;
  }
  #product .io-bag-cartes {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    scrollbar-width: none;
  }
  #product .io-bag-cartes::-webkit-scrollbar {
    display: none;
  }
  #product .io-bag-carte {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }
  #product .io-bag-set-bouton {
    width: 100%;
    text-align: center;
  }
}
