.lpb-product-card {
  position: relative;
  background: transparent;
  font-family: var(--wp--preset--font-family--body, inherit);
}

.lpb-product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.lpb-product-card__media {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}
.woocommerce ul.products li.product .lpb-product-card a img{
  margin:0px;
}

.lpb-product-card__image img,
.lpb-product-card__image picture {
  display: block;
  width: 100%;
}

.lpb-product-card__image img {
  object-fit: cover;
}

.lpb-product-card__main-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.lpb-product-card__title {
  padding: 0 0 7px;
  font-size: 1.2em;
  line-height: 1.3;
  font-weight: 400;
  color: var(--wp--preset--color--primary, #0c2d4a);
  margin-block-end:0px !important;
}

@media (max-width: 768px) {
    .lpb-product-card__title {
        font-size: 0.8em;
    }
    .categoryStarsMain .categoryStars{
      width: 45%;
      max-width: 60%;
    }
}

.lpb-product-card__title p {
  margin: 0;
}

.woocommerce ul.products li.product .lpb-product-card__title strong {
  display: inline;
}

.lpb-product-card__price {
  font-size: 1.1em;
  line-height: 1;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #0c2d4a);
  white-space: nowrap;
}

.lpb-product-card__price .woocommerce-Price-currencySymbol {
  margin-left: 1px;
}

/* Avis */

.categoryStarsMain .categoryStars{
  width: 25%;
  max-width: 33%;
  height: 11px;
}

.steavisgarantisStar svg.note{
  max-width: 100%;
}

.categoryStarsMain .categoryStarsStr{
  top: 0px;
}

:is(.lpb-product-card, .lpb-product-rating) .steavisgarantisStar span{
  background : url(../images/etoiles-off.png) left center;
  background-size: contain;
  background-repeat: no-repeat;
  height: 11px;
}

.categoryStars .animate{
  height: 11px;
}

.categoryStars .animate svg{
    display: block;
    height: 11px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.steavisgarantisStar span{
  left: 0.4px;
}

:is(.lpb-product-card, .lpb-product-rating) .categoryStarsMain{
  zoom: 0.7;
  margin: 0;
}

:is(.lpb-product-card, .lpb-product-rating) .categoryStarsMain .categoryStars{
  margin: 0;
}


.has-background :is(.lpb-product-card, .lpb-product-rating) .categoryStars svg{
  fill: #FFFFFF;
}

:is(.lpb-product-card, .lpb-product-rating) .categoryStars svg{
  fill: #ADC2F5;
}

:is(.lpb-product-card, .lpb-product-rating) .categoryStarsStr {
  padding-left: 10px;
  font-size: 1em;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  color :#ADC2F5
}

.single-product :is(.lpb-product-card, .lpb-product-rating) .categoryStarsStr {
  font-weight: 400;
  color : initial;
  text-decoration: underline;
}

.has-background :is(.lpb-product-card, .lpb-product-rating) .categoryStarsStr {
  color: #FFFFFF;
}

/* Le même composant d'avis est utilisé comme bouton sur la fiche produit. */
button.lpb-product-rating {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 75%;
}

/* Bouton panier masqué sur cette carte */
.lpb-product-card__cart {
  display: none;
}
/* Nuage TOG sur les cartes produit (pages catégorie) : même texte, mêmes couleurs
   et même vague que le nuage de la fiche produit, en plus petit, en bas à droite. */
.lpb-product-card__tog {
  position: absolute;
  right: .75em;
  bottom: .75em;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: .6em 1.1em;
  white-space: pre;
  color: var(--lpb-badge-color, #fff);
  font-size: .62em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  pointer-events: none;
  isolation: isolate;
}
.lpb-product-card__tog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--lpb-badge-bg, #12294a);
  -webkit-mask: url('../../assets/images/waves/wave-3.svg') center / 100% 100% no-repeat;
  mask: url('../../assets/images/waves/wave-3.svg') center / 100% 100% no-repeat;
}
@media (max-width: 768px) {
  .lpb-product-card__tog { right: .4em; bottom: .4em; min-height: 37px; padding: .4em .7em; font-size: .5em; }
}

/* Étoiles des avis : deux SVG identiques superposés (vides dessous, pleines
   coupées au pourcentage de la note), à taille fixe → plus de décalage.
   --lpb-stars-h = hauteur affichée des étoiles. Le bloc d'avis des cartes et
   de la fiche est réduit (zoom .7) : la hauteur est compensée pour rester exacte. */
.steavisgarantisStar { --lpb-stars-h: 1.1em; --lpb-stars-zoom: 1; }
:is(.lpb-product-card, .lpb-product-rating) .steavisgarantisStar { --lpb-stars-zoom: .7; }
.steavisgarantisStar .categoryStars {
  position: relative;
  width: calc(var(--lpb-stars-h) / var(--lpb-stars-zoom) * 102 / 19);
  max-width: none;
  height: calc(var(--lpb-stars-h) / var(--lpb-stars-zoom));
}
.steavisgarantisStar .categoryStars svg.note {
  display: block;
  width: calc(var(--lpb-stars-h) / var(--lpb-stars-zoom) * 102 / 19);
  max-width: none;
  height: calc(var(--lpb-stars-h) / var(--lpb-stars-zoom));
}
.steavisgarantisStar .categoryStars .animate {
  position: absolute !important;
  top: 0;
  left: 0;
  height: 100%;
}
.steavisgarantisStar .categoryStars svg.note { fill: #adc2f5; }
.steavisgarantisStar .categoryStars svg.note.note--off { fill: #e3e5f3; }
/* Les étoiles sont un <use> du même dessin : la couleur se met sur le <svg> et les tracés en héritent. */
.has-background .steavisgarantisStar .categoryStars svg.note:not(.note--off) { fill: #fff; }
@media (max-width: 768px) {
  .steavisgarantisStar .categoryStars { width: calc(var(--lpb-stars-h) / var(--lpb-stars-zoom) * 102 / 19); max-width: none; }
}
.steavisgarantisStar.categoryStarsMain { display: flex; align-items: center; }
.steavisgarantisStar.categoryStarsMain .categoryStarsStr { position: static; top: auto; white-space: nowrap; }

/* Carte produit : le titre garde sa largeur. Une fourchette de prix
   (« 89€ – 99€ ») passe sur 2 lignes : « 89€ – » puis « 99€ ». */
.lpb-product-card__main-row { grid-template-columns: minmax(0, 1fr) auto; }
.lpb-product-card__price {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  align-items: baseline;
  row-gap: .15em;
}
.lpb-product-card__price > span[aria-hidden="true"]:not(.woocommerce-Price-amount) { white-space: pre; }
