/* assets/css/product.css */

/* ------------------------------------------------------------------
   Galerie produit
   ------------------------------------------------------------------ */
.product-gallery {
  width: 100%;
  max-width: 340px;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 14px 8px;
}
.product-gallery-main {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 10px;
}
.product-gallery-main img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}
.product-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.product-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #bbb;
  cursor: pointer;
  background: #fff;
  border-radius: 4px;
  transition: border 0.15s;
}
.product-thumbs img:hover {
  border: 1.5px solid #007bff;
}

/* ------------------------------------------------------------------
   Fiche produit (page product.php)
   ------------------------------------------------------------------ */
.product-main {
  /* Permet de pousser le footer en bas */
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
}

/* Conteneur interne pour la carte produit */
.product-main .product-container {
  flex: none;
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Adapter la structure HTML : envelopper .product-layout dans .product-container */

.product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.product-details {
  flex: 1;
  min-width: 220px;
}
.product-details h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.product-details .price-ticket {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.product-details .lang,
.product-details .stock-info {
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 1.02rem;
}
.product-details .desc {
  margin-bottom: 1.5rem;
  color: #444;
}
.product-details form {
  margin-bottom: 1.5rem;
}
.product-details .stock-ok {
  color: #008000;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.product-details .stock-out {
  color: #b00;
  font-weight: bold;
  font-size: 1.1rem;
}
.product-details .back-link {
  color: #007bff;
  font-size: 1.03rem;
  display: inline-block;
  margin-top: 8px;
}

/* ------------------------------------------------------------------
   Tickets fidélité – ajustement final
   ------------------------------------------------------------------ */
.price-ticket {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.price-ticket .ticket-count {
  margin: 0;
}
.price-ticket .ticket-img {
  width: 2.2em;
  height: auto;
  margin: 0;
  margin-left: 0.2em;
}

/* ------------------------------------------------------------------
   Responsive fiche produit
   ------------------------------------------------------------------ */
@media (max-width: 800px) {
  .product-layout {
    flex-direction: column;
    gap: 1rem;
  }
}
