/* =========================================================================
 * Thème Fabre - Vignette produit (catalog/_partials/miniatures/product.tpl)
 * Mesures relevées sur la vignette leo_koreni du site d'origine.
 * ========================================================================= */
.fabre-product__card {
  position: relative;
  margin: 10px 0 30px;
  background-color: #fff;
  border-radius: 7px;
}
.fabre-product--outstock .fabre-product__card {
  background-color: #ddd;
}
/* Pastille de remise (leo_koreni) : verte, texte et bord rouges, en haut à gauche de la carte */
.fabre-product .product-flags {
  position: absolute;
  top: 8px;
  left: 5px;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.fabre-product .product-flags .badge.discount {
  padding: 3px 5px;
  font-family: var(--fabre-font-btn);
  font-size: 12px;
  font-weight: 400;
  line-height: 13px;
  color: #d9534f;
  background: var(--fabre-green);
  border: 1px solid #d9534f;
  border-radius: 4px;
}

/* Pas de pastille « Rupture de stock » (absente du site d'origine en 1.7.6) : la carte grisée suffit */
.fabre-product .product-flags .out_of_stock {
  display: none;
}

.fabre-product__image {
  position: relative;
  padding: 10px 5% 0;
}

/* Photo carrée recadrée */
.fabre-product__thumb {
  position: relative;
  display: block;
}
.fabre-product__thumb::after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.fabre-product__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bouton panier centré, 30px au-dessus du bas de la photo */
.fabre-product__actions {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  text-align: center;
  line-height: 0;
}
.fabre-product__actions form {
  display: inline-block;
}
.fabre-product__quickview,
.fabre-product__cart {
  display: inline-block;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--fabre-dark);
  text-align: center;
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 0;
  transition: all 0.3s;
}
.fabre-product__quickview .ti,
.fabre-product__cart .ti {
  font-size: 20px;
  line-height: 38px;
}
.fabre-product__quickview:hover,
.fabre-product__quickview:focus,
.fabre-product__cart:hover,
.fabre-product__cart:focus {
  color: #fff;
  background-color: var(--fabre-orange);
  border-color: var(--fabre-orange);
}

.fabre-product__meta {
  display: block;
  padding: 20px 5px;
  text-align: center;
}

.fabre-product__title {
  min-height: 40px;
  margin: 5px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 17.6px;
}
.fabre-product__title a {
  color: var(--fabre-dark);
  text-decoration: none;
}
.fabre-product__title a:hover {
  color: var(--fabre-green);
}

.fabre-product__prices {
  font-size: 14px;
  line-height: 17.5px;
  min-height: 23.5px; /* hauteur de ligne du bloc prix d'origine (prix 16px dans une ligne 14px) */
}
.fabre-product__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--fabre-orange);
}
.fabre-product__regular-price {
  margin-left: 0;
  font-size: 13px;
  color: var(--fabre-text-light);
  text-decoration: line-through;
}

/* Survol de la carte (leo_koreni) : ombre, photo principale estompée, 2e photo qui se déplie
 * depuis le bord gauche, boutons qui remontent en fondu l'un après l'autre (>= 992px) */
.fabre-product__card {
  transition: box-shadow 0.4s;
}
.fabre-product:hover .fabre-product__card {
  box-shadow: 0 3px 10px 0 rgba(102, 102, 102, 0.25);
}
.fabre-product__img:not(.fabre-product__img--hover) {
  transition: opacity 0.5s;
}
.fabre-product:hover .fabre-product__img:not(.fabre-product__img--hover) {
  opacity: 0.4;
}
.fabre-product__img--hover {
  visibility: hidden;
  opacity: 0;
  transform: rotateY(-90deg);
  transform-origin: left center;
  transition: all 0.6s ease-in-out;
}
.fabre-product:hover .fabre-product__img--hover {
  visibility: visible;
  opacity: 1;
  transform: none;
}

@media (min-width: 992px) {
  .fabre-product__actions > * {
    visibility: hidden;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease;
  }
  .fabre-product__actions > :nth-child(1) {
    transition-delay: 0.1s;
  }
  .fabre-product__actions > :nth-child(2) {
    transition-delay: 0.2s;
  }
  .fabre-product:hover .fabre-product__actions > *,
  .fabre-product__actions > :focus-within {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}

/* Aperçu rapide masqué sur mobile, comme les deux boutons sous 426px */
@media (max-width: 767px) {
  .fabre-product__quickview {
    display: none;
  }
}
@media (max-width: 425px) {
  .fabre-product__actions {
    display: none;
  }
}

/* Sous 992px, les listes du site d'origine ne sont plus des carrousels : pas de marge haute */
@media (max-width: 991px) {
  .fabre-product__card {
    margin-top: 0;
  }
}

/* Petits écrans (custom.css d'origine) */
@media (max-width: 425px) {
  .fabre-product__meta {
    padding: 10px;
  }
  .fabre-product__title {
    font-size: 13px;
  }
}

/* Clients Pro (classe posée par le module linovcheckpro) : pas de promotions affichées, comme le site d'origine
   (tarifs Pro négociés : pastille de remise, prix barré et « Économisez » masqués) */
.linov-group-pro .product-flags .discount,
.linov-group-pro .fabre-product__regular-price,
.linov-group-pro .product__regular-price,
.linov-group-pro .product__discount-percentage,
.linov-group-pro .product__discount-amount {
  display: none;
}
