/* === CLEON - Boutique (corrigé) === */

.cleon-loader,
.cleon-empty,
.cleon-error {
  text-align: center;
  padding: 4rem;
  font-size: 1.1rem;
  color: #666;
}

/* === GRILLE === */
.cleon-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  row-gap: 2rem;
  column-gap: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.cleon-shop-grid.visible {
  opacity: 1;
}

/* === CARTE PRODUIT === */
.cleon-product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cleon-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* === IMAGE === */
.cleon-img-wrap {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background-color: #f5f5f5;
}

.cleon-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cleon-product-card:hover .cleon-img-wrap img {
  transform: scale(1.05);
}

/* === INFO === */
.cleon-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* === TITRE PRODUIT === */
.cleon-product-card .cleon-info h3,
.cleon-product-card .cleon-info h4,
.cleon-product-card .cleon-info h5 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: #111 !important;
  text-decoration: none !important;
}

/* Supprime décorations d’Elementor sur liens */
.cleon-product-card .cleon-info h3 a,
.cleon-product-card .cleon-info h4 a,
.cleon-product-card .cleon-info h5 a {
  text-decoration: none !important;
  color: inherit !important;
}

/* === SUPPRESSION DESCRIPTIONS === */
.cleon-info .desc {
  display: none;
}

/* === PRIX === */
.cleon-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 600;
  color: #000; /* couleur unifiée pour le prix affiché */
  font-size: 0.95rem; /* prix normal et prix promo identiques */
  margin-top: 0.4rem;
}

/* Prix ancien quand il y a une promo */
.cleon-price .prix-old {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.65rem; /* plus petit que le prix actuel */
  margin-bottom: 0.15rem; /* espace entre ancien et prix actuel */
}

/* Prix promo */
.cleon-price .prix-promo {
  color: #a69a74; /* même couleur que le prix normal */
  font-size: 0.95rem; /* même taille que prix normal */
}


/* === BOUTON === */
.cleon-buy-btn {
  margin: 1rem;
  display: inline-block;
  text-align: center;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  background: #111;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.cleon-buy-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.cleon-buy-btn.disabled {
  background: #eee;
  color: #999;
  cursor: not-allowed;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .cleon-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .cleon-shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === TRIEUR === */
#cleon-sort-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

#cleon-sort {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  cursor: pointer;
}

/* === BOUTON "disabled" MOBILE === */
@media (max-width: 600px) {
  .cleon-buy-btn {
    font-size: 0.75rem;  /* réduit la taille du texte */
    padding: 0.4rem 0.8rem; /* réduit légèrement le padding */
    white-space: normal; /* permet le retour à la ligne si besoin */
    line-height: 1.2; /* compacte le texte sur 2 lignes max */
  }
}

.cleon-product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.cleon-product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.gallery-column {
  flex: 1 1 400px;
  min-width: 300px;
}
.gallery-column .main-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.gallery-column .thumbs-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.gallery-column .thumbs-row .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.gallery-column .thumbs-row .thumb:hover,
.gallery-column .thumbs-row .thumb.active {
  border-color: #111;
}
.info-column {
  flex: 1 1 400px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.prod-ref {
  font-size: 0.9rem;
  color: #777;
}
.prod-cat {
  font-size: 0.9rem;
  color: #777;
}
.cleon-product-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}
.cleon-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cleon-price-block .prix-old {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.8rem;
}
.cleon-price-block .prix-promo,
.cleon-price-block .prix-regular {
  font-size: 1.4rem;
  color: #000;
  font-weight: 700;
}
.cleon-desc-block p {
  font-size: 1rem;
  color: #555;
}
.cleon-buy-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: #111;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.cleon-buy-btn:hover {
  background: #333;
  transform: translateY(-2px);
}
.cleon-buy-btn.disabled {
  background: #eee;
  color: #999;
  cursor: not-allowed;
}
.additional-info {
  margin-top: 3rem;
}
.additional-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.specs-list {
  list-style: none;
  padding: 0;
}
.specs-list li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cleon-product-layout {
    flex-direction: column;
  }
  .cleon-product-title {
    font-size: 1.6rem;
  }
  .cleon-buy-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .gallery-column .thumbs-row .thumb {
    width: 50px;
    height: 50px;
  }
}