/* Styles spécifiques à la page Products */

.recommendations {
  padding: 2rem;
  background-color: #fff;
}

.recommendations h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

.recommend-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.recommend-nav a {
  text-decoration: none;
  color: #0078d7;
  font-weight: bold;
}

.recommend-nav .active {
  border-bottom: 2px solid #0078d7;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff3b3f;
  color: white;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 3px;
}

.sold-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #555;
  color: white;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 3px;
}

.stars {
  color: gold;
  font-size: 1rem;
  margin: 0.5rem 0;
}

.price .old {
  text-decoration: line-through;
  color: #999;
}

.price .new {
  color: #0078d7;
  font-weight: bold;
  margin-left: 0.5rem;
}





/* ===== Supprimer TOUT soulignage dans les cartes produits ===== */

/* Cas 1 : la carte EST un lien */
a.product-card,
a.product-card:link,
a.product-card:visited,
a.product-card:hover,
a.product-card:focus,
a.product-card:active {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  background-image: none !important;  /* au cas où le soulignage est simulé */
  border-bottom: 0 !important;        /* certains thèmes font un border-bottom */
  box-shadow: none !important;         /* certains thèmes simulent l’underline en shadow */
  color: inherit !important;
}

/* Cas 2 : la carte est un <div> et contient des liens */
.product-card a,
.product-card a:link,
.product-card a:visited,
.product-card a:hover,
.product-card a:focus,
.product-card a:active {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* Cibler précisément tes éléments listés (titres, étoiles, prix) */
.product-card h3,
.product-card .stars,
.product-card .price,
.product-card .price .old,
.product-card .price .new,
.product-card h3:hover {
  text-decoration: none !important;
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Renforcer la spécificité côté page Produits */
body.page-template-page-products .products .product-card,
body.page-template-page-products .products .product-card *,
body.page-template-page-products .products a,
body.page-template-page-products .products a:hover {
  text-decoration: none !important;
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}



/* Garder l'ancien prix barré, même si on supprime les soulignages ailleurs */
.product-card .price .old {
  text-decoration: line-through !important;
  text-decoration-thickness: 2px;   /* optionnel : trait un peu plus visible */
  text-decoration-color: #ef4444;   /* optionnel : même rouge que ton old price */
}



/* === Couleur rouge pour l'ancien prix === */
.products .price .old {
  color: red !important;
}
