/* ==========================================================================
   DETAIL_PRODUIT.CSS — Styles propres à la page détail produit / magasin
   (le reset, les variables et l'en-tête/nav/footer viennent de base.css)
   ========================================================================== */

* {
  font-family: 'Montserrat', sans-serif !important;
}

body {
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- FIL D'ARIANE --- */
.breadcrumb-nav {
  background: var(--bg-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-container a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
}

/* --- CONTENU DÉTAIL MAGASIN / PRODUIT --- */
.store-detail-container {
  max-width: 1200px;
  margin: 40px auto 16px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* IMAGE & BADGE */
.product-image-box {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f8fafc;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DÉTAILS PRODUIT & PRIX */
.product-info-box {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-green-dark);
  margin-bottom: 10px;
}

.product-price-tag {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand-orange);
  margin-bottom: 15px;
}

.product-price-tag span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-qty {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin-bottom: 18px;
}

.product-qty span {
  color: var(--text-dark);
  font-weight: 700;
}

.product-description {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* BLOC LOCALISATION */
.location-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-teal);
  margin-bottom: 25px;
}

.location-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand-orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.location-box a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.location-box a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

/* SECTEUR QUANTITÉ & PANIER */
.cart-action-group {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 35px;
}

.btn-add-cart {
  flex: 1;
  height: 45px;
  background: var(--brand-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-add-cart:hover {
  background: var(--brand-green-dark);
}

.btn-buy-now {
  flex: 1;
  height: 45px;
  background: #fff;
  color: var(--brand-orange);
  border: 2px solid var(--brand-orange);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.btn-buy-now:hover {
  background: var(--brand-orange);
  color: #fff;
}

/* FICHE INFORMATIONS ACTEUR / VENDEUR */
.actor-card {
  background: #ffffff;
  border: 2px solid var(--brand-green);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.actor-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.actor-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.actor-title h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-green-dark);
}

.actor-type {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-teal);
  text-transform: uppercase;
}

.actor-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.actor-details-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-weight: 600;
}

.actor-details-list svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand-orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.actor-details-list a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.actor-details-list a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

@media (max-width: 850px) {
  .store-detail-container { grid-template-columns: 1fr; }
}

/* SECTION AVIS SUR CE PRODUIT */
.product-reviews-container {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.product-reviews-header {
  margin-bottom: 16px;
}

.product-reviews-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-green-dark);
}

/* Version compacte de la carte de notation, réservée à la fiche produit
   (la version pleine taille reste inchangée sur la page avis.html) */
.rating-summary-card.compact {
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  padding: 18px 24px;
  margin-bottom: 24px;
}

.rating-summary-card.compact .overall-score-box {
  padding-right: 20px;
}

.rating-summary-card.compact .score-number {
  font-size: 2.2rem;
}

.rating-summary-card.compact .rating-bars-list {
  gap: 4px;
}

/* Lien "voir tous les avis" (variante discrète du bouton orange) */
.more-reviews-link-outline {
  display: inline-block;
  color: var(--brand-green);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--brand-green);
  padding: 9px 18px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.more-reviews-link-outline:hover {
  background: var(--brand-green);
  color: #ffffff;
}

/* MODAL : FORMULAIRE D'AVIS (popup, n'occupe pas de place tant qu'il est fermé) */
.review-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.review-modal-overlay.active {
  display: flex;
}

.review-modal-box {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.review-modal-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-bottom: 18px;
  padding-right: 24px;
}

.review-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.review-modal-close:hover {
  color: var(--brand-orange);
}

@media (max-width: 850px) {
  .rating-summary-card.compact { grid-template-columns: 1fr; text-align: center; }
  .rating-summary-card.compact .overall-score-box { padding: 0; }
}
