/* IMMOGRAV — 06 Fiche produit et miniatures. Version 20261113-r1.
 * Ajouts Claude du 13/11/2026. Chargé après les fichiers 01 à 05.
 */

/* Miniatures : la marque « Immograv » est identique sur tous les produits, on la masque. */
.product-miniature .product-description .product-brand {
  display: none;
}

/* Fiche produit : vignette inutile quand il n'y a qu'une seule image. */
#product .js-qv-mask:not(:has(li + li)) {
  display: none !important;
}

@media (max-width: 767px) {
  /* Fil d'Ariane réduit au lien vers la catégorie parente. */
  #product .breadcrumb li {
    display: none;
  }
  #product .breadcrumb li:nth-last-child(2) {
    display: inline-block;
  }
  #product .breadcrumb li:nth-last-child(2) a::before {
    content: "‹ ";
  }
  #product .breadcrumb li:nth-last-child(2) a::after {
    content: none !important;
  }

  /* Marque et référence masquées sur mobile (restent dans l'onglet Détails). */
  #product .productpage-attributes-items .brand-infos,
  #product .productpage-attributes-items .product-reference {
    display: none;
  }

  /* Prix, choix et bouton remontés avant le texte de présentation. */
  #product .product-information {
    display: flex;
    flex-direction: column;
  }
  #product .product-information > .product-customization { order: 1; }
  #product .product-information > .product-actions { order: 2; }
  #product .product-information > .product-short-description { order: 3; margin-top: 16px; }

  /* Barre d'achat fixe en bas d'écran (créée par immograv-fiche.js). */
  .ig-sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #dfe3e8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
    transform: translateY(110%);
    transition: transform .2s ease;
  }
  .ig-sticky-buy.is-visible {
    transform: translateY(0);
  }
  .ig-sticky-buy__price {
    font-weight: 700;
    font-size: 18px;
    color: #144f83;
    white-space: nowrap;
  }
  .ig-sticky-buy__btn {
    flex: 1;
    max-width: 240px;
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: #b47c2e;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
  }
  body.ig-has-sticky-buy #footer {
    padding-bottom: 70px;
  }
}

/* Encart prix dégressifs (product.tpl, sous le prix). */
.ig-degressif {
  clear: both;
  margin: 12px 0 16px;
  padding: 10px 12px;
  border: 1px solid #d6dde4;
  border-left: 4px solid #b47c2e;
  border-radius: 4px;
  background: #f7f9fb;
  font-size: 14px;
  line-height: 1.4;
}
.ig-degressif__titre {
  margin: 0 0 6px;
  font-weight: 700;
  color: #144f83;
}
.ig-degressif__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ig-degressif__liste li {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.ig-degressif__liste span {
  font-weight: 700;
  color: #b47c2e;
}
.ig-degressif__note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5b6875;
}

/* Prix HT sous le prix TTC (product-prices.tpl et miniatures/product.tpl). */
#product .current-price .ig-prix-ht {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: #5b6875;
}
.product-miniature .product-price-and-shipping .ig-prix-ht {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #5b6875;
}
