/* EP - Boucle produit : prix au-dessus du titre + ligne de notation.
   Charge par wp-content/mu-plugins/ep-avis-boucle-produit.php */

/* ---- Prix en pastille, centre, au-dessus du titre ---- */
.ep-price-top { text-align: center; margin: 0 0 14px; }

.ep-price-top .price {
  display: inline-block !important;
  padding: 8px 24px;
  border: 1px solid #00a07f;
  background: #e7ff25;
  border-radius: 999px;

  color: #1f2a37 !important;
  font-size: 22px !important;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 !important;
}
.ep-price-top .price .amount,
.ep-price-top .price bdi,
.ep-price-top .price ins { color: inherit !important; font-size: inherit !important; text-decoration: none; }
.ep-price-top .price del { opacity: .5; font-size: 16px !important; font-weight: 600; }


/* ---- Titre produit ---- */
.et_pb_shop ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  line-height: 1.3em;
  padding: 1px 8px !important;
}
/* ---- Ligne de notation ---- */
.ep-rating-row {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  margin: 10px 0 0;
  padding: 0 8px;
  width: 100%;
}
.ep-rating-row--empty { display: block !important; min-height: 24px; margin: 10px 0 0; padding: 0 8px; }

.ep-rating-left {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.ep-rating-score {
  font-size: 13px;
  font-weight: 700;
  color: #1f2a37;
  line-height: 1;
  white-space: nowrap;
}

.ep-rating-stars { display: inline-flex !important; align-items: center; line-height: 1; }

.ep-rating-row .star-rating {
  float: none !important;
  display: inline-block !important;
  width: 5.4em !important;
  font-size: 13px !important;
  height: 1.4em !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  top: 0 !important;
}
.ep-rating-row .star-rating::before { color: #dcdcdc !important; }
.ep-rating-row .star-rating span::before { color: #f5a623 !important; }

.ep-rating-count {
  flex: 0 0 auto;
  font-size: 13px;
  color: #6b7280;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.ep-rating-count:hover { color: #1f2a37; text-decoration: underline; }

@media (max-width: 480px) {
  .ep-rating-score, .ep-rating-count { font-size: 12px; }
  .ep-rating-row .star-rating { font-size: 12px !important; }
  .ep-rating-row { gap: 6px; }
  .ep-rating-left { gap: 6px; }
  .ep-price-top .price { font-size: 18px !important; padding: 7px 18px; }
}


/* ---- Etoiles or sur la fiche produit (onglet Avis + note sous le titre) ---- */
.woocommerce #reviews .star-rating::before,
.woocommerce #reviews .comment-form-rating .stars a::before,
.woocommerce div.product .woocommerce-product-rating .star-rating::before,
.et_pb_wc_tabs .star-rating::before,
.et_pb_wc_rating .star-rating::before {
  color: #dcdcdc !important;
}

.woocommerce #reviews .star-rating span::before,
.woocommerce div.product .woocommerce-product-rating .star-rating span::before,
.et_pb_wc_tabs .star-rating span::before,
.et_pb_wc_rating .star-rating span::before {
  color: #f5a623 !important;
}

/* Etoiles du formulaire de notation */
.woocommerce #review_form #respond p.stars a,
.woocommerce #review_form #respond p.stars a::before,
.woocommerce p.stars a::before {
  color: #f5a623 !important;
}
.woocommerce p.stars.selected a.active ~ a::before,
.woocommerce p.stars a:hover ~ a::before {
  color: #dcdcdc !important;
}

/* Onglets produit : 3 onglets sur une ligne */
.et_pb_wc_tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  width: 33.33% !important;
  text-align: center;
}

@media (max-width: 767px) {
  .et_pb_wc_tabs ul.tabs li,
  .woocommerce div.product .woocommerce-tabs ul.tabs li { width: 100% !important; }
}
