/* =============================================
   AFRIJUS — Page Détail Produit
   ============================================= */
.produit-detail-page { padding-top: 0; }

.detail-breadcrumb {
  padding: 16px 5%;
  font-size: 0.85rem;
  color: var(--gris);
  display: flex; gap: 8px; align-items: center;
  margin-top: var(--header-h);
}
.detail-breadcrumb a { color: var(--vert); text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }

/* ── HERO ── */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 30px 5% 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── GALERIE ── */
.detail-gallery { display: flex; flex-direction: column; gap: 14px; }

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vert-pale);
  cursor: zoom-in;
  box-shadow: var(--shadow-lg);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-main:hover img { transform: scale(1.05); }
.gallery-zoom-hint {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,0.55); color: white;
  padding: 6px 12px; border-radius: 50px;
  font-size: 0.78rem; backdrop-filter: blur(4px);
  pointer-events: none;
}

.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px;
  border-radius: 10px; overflow: hidden;
  cursor: pointer; border: 3px solid transparent;
  transition: border-color 0.2s;
}
.thumb.active { border-color: var(--vert); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--rouge); color: white;
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── INFOS ── */
.detail-info { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }

.detail-category {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--vert); background: var(--vert-pale);
  padding: 4px 14px; border-radius: 50px;
  display: inline-block;
}
.detail-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; color: var(--noir);
  line-height: 1.15;
}
.detail-price-row { display: flex; align-items: baseline; gap: 10px; }
.detail-price {
  font-size: 2.2rem; font-weight: 900;
  color: var(--rouge);
}
.detail-price small { font-size: 1rem; }
.detail-volume { color: var(--gris); font-size: 0.95rem; }

.detail-desc { color: #444; line-height: 1.75; font-size: 1.02rem; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tag {
  background: var(--vert-pale); color: var(--vert-fonce);
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
}

/* ── ACTIONS ── */
.detail-actions { display: flex; flex-direction: column; gap: 16px; }

.qty-selector {
  display: flex; align-items: center; gap: 0;
  width: fit-content;
  border: 2px solid var(--vert-clair); border-radius: 50px; overflow: hidden;
}
.qty-btn {
  background: var(--vert-pale); border: none; cursor: pointer;
  width: 44px; height: 44px; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; color: var(--vert-fonce); font-weight: 700;
}
.qty-btn:hover { background: var(--vert-clair); color: white; }
#prodQty {
  width: 56px; text-align: center; border: none;
  font-size: 1.1rem; font-weight: 700; color: var(--noir);
  background: white;
}

.detail-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-add-cart {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--vert); color: white;
  border: none; border-radius: 50px;
  padding: 15px 28px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  min-width: 180px;
}
.btn-add-cart:hover { background: var(--vert-fonce); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-wa-detail {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: white;
  border-radius: 50px; padding: 15px 28px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: var(--transition); min-width: 180px;
}
.btn-wa-detail:hover { background: #1DA851; transform: translateY(-2px); box-shadow: var(--shadow); }

.cart-toast {
  background: var(--vert-pale); border: 2px solid var(--vert-clair);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--vert-fonce);
  animation: toastIn 0.3s ease;
}
.cart-toast.hidden { display: none; }
.cart-toast a { color: var(--vert); text-decoration: underline; }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ── ZOOM MODAL ── */
.zoom-modal {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.zoom-modal.hidden { display: none; }
.zoom-modal img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 12px; object-fit: contain;
  animation: zoomIn 0.25s ease;
}
@keyframes zoomIn { from { transform:scale(0.85); opacity:0; } to { transform:none; opacity:1; } }
.zoom-close {
  position: fixed; top: 20px; right: 24px;
  background: white; border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── PRODUITS SIMILAIRES ── */
.detail-similaires { padding: 60px 5%; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .detail-hero { grid-template-columns: 1fr; gap: 30px; padding: 20px 5% 40px; }
  .detail-btns { flex-direction: column; }
  .btn-add-cart, .btn-wa-detail { min-width: unset; }
}
