/* ============================================================
   PATTES & PRESTIGE — product.css
   ============================================================ */

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--nav-h, 80px) + 1.5rem) 8vw 0;
  font-size: 0.78rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--season-text-accent, #c4748a); }
.breadcrumb span { color: var(--text-light); opacity: 0.5; }
.breadcrumb span:last-child { opacity: 1; color: var(--text-mid); }

/* ── LOADING ── */
.product-loading {
  text-align: center;
  padding: 8rem 2rem;
  color: var(--text-light);
}
.product-loading span { font-size: 3rem; display: block; margin-bottom: 1rem; animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PRODUCT PAGE ── */
.product-page {
  padding: 2.5rem 8vw 6rem;
  position: relative;
  z-index: 1;
}

/* ── LAYOUT PRINCIPAL ── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}

/* ── GALERIE IMAGES ── */
.product-gallery { position: sticky; top: calc(var(--nav-h, 80px) + 20px); }

.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 1;
  position: relative;
}

.product-gallery__placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: filter 0.3s;
}

.product-gallery__emoji { font-size: 7rem; }
.product-gallery__deco  { font-size: 1.8rem; letter-spacing: 8px; opacity: 0.6; }

.product-gallery__badge {
  position: absolute;
  top: 18px; left: 18px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--season-primary, #e8a4b8);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
}

.product-gallery__thumb {
  flex: 1;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
}

.product-gallery__thumb.active {
  border-color: var(--season-primary, #e8a4b8);
  opacity: 1;
}

.product-gallery__thumb-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ── INFOS PRODUIT ── */
.product-info { padding-top: 0.5rem; }

.product-info__season {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--season-text-accent, #c4748a);
  padding: 5px 14px;
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--season-primary, #e8a4b8) 25%, transparent);
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.product-info__name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.product-info__animal {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

/* Prix */
.product-info__pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.product-info__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--text);
}

.product-info__compare {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-info__promo {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(154,187,154,0.2);
  color: #4a7a4a;
  border-radius: 50px;
  border: 1px solid rgba(154,187,154,0.4);
}

/* Stock */
.product-info__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 1.8rem;
}

.stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stock-dot--ok  { background: #7ab87a; box-shadow: 0 0 6px rgba(122,184,122,0.5); }
.stock-dot--low { background: #e0a060; box-shadow: 0 0 6px rgba(224,160,96,0.5); }
.stock-dot--out { background: #c09090; }

/* Description */
.product-info__desc {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Séparateur */
.product-info__sep {
  height: 1px;
  background: rgba(58,47,39,0.08);
  margin: 1.8rem 0;
}

/* Taille */
.product-info__section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  display: block;
}

.size-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.size-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  border: 1px solid rgba(58,47,39,0.18);
  background: rgba(255,255,255,0.4);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.size-btn:hover {
  background: rgba(255,255,255,0.65);
  border-color: color-mix(in srgb, var(--season-primary, #e8a4b8) 40%, transparent);
}

.size-btn.active {
  background: rgba(255,255,255,0.8);
  border-color: var(--season-primary, #e8a4b8);
  color: var(--text);
  font-weight: 400;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--season-primary, #e8a4b8) 18%, transparent);
}

.size-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Quantité + CTA */
.product-info__cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
}

.qty-btn {
  width: 42px; height: 48px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-mid);
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.6); color: var(--text); }

.qty-value {
  width: 44px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border: none;
  background: transparent;
  pointer-events: none;
}

.btn-add-to-cart {
  flex: 1;
  min-width: 180px;
  padding: 15px 28px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
}

.btn-add-to-cart:hover { transform: translateY(-2px); }
.btn-add-to-cart:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-add-to-cart.success {
  background: rgba(154,187,154,0.3) !important;
  border-color: rgba(154,187,154,0.5) !important;
  color: #3a6a3a !important;
}

.btn-wishlist {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.25s var(--ease);
  color: var(--text-light);
  flex-shrink: 0;
}

.btn-wishlist:hover { transform: scale(1.1); background: rgba(255,255,255,0.7); }
.btn-wishlist.active { color: var(--season-primary, #e8a4b8); }

/* Livraison */
.product-info__shipping {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.shipping-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.shipping-item span:first-child { font-size: 1rem; flex-shrink: 0; }

/* ── ONGLETS DÉTAILS ── */
.product-tabs {
  margin-top: 0.5rem;
}

.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(58,47,39,0.1);
  margin-bottom: 1.5rem;
}

.product-tab-btn {
  padding: 10px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-tab-btn:hover { color: var(--text); }

.product-tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--season-primary, #e8a4b8);
  font-weight: 400;
}

.product-tab-panel { display: none; animation: fadeIn 0.3s ease; }
.product-tab-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.product-tab-panel p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.product-details-table {
  width: 100%;
  border-collapse: collapse;
}

.product-details-table tr {
  border-bottom: 1px solid rgba(58,47,39,0.06);
}

.product-details-table td {
  padding: 10px 0;
  font-size: 0.85rem;
}

.product-details-table td:first-child {
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 40%;
}

.product-details-table td:last-child {
  color: var(--text-mid);
  font-weight: 400;
}

/* Avis */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(58,47,39,0.08);
}

.reviews-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.reviews-stars { font-size: 1rem; letter-spacing: 3px; color: var(--jaune, #e8d48a); }
.reviews-count { font-size: 0.8rem; color: var(--text-light); }

.review-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(58,47,39,0.06);
}

.review-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.review-item__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 15%, white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  border: 1px solid color-mix(in srgb, var(--season-primary, #e8a4b8) 20%, transparent);
}

.review-item__name { font-size: 0.85rem; font-weight: 400; }
.review-item__date { font-size: 0.72rem; color: var(--text-light); }
.review-item__stars { font-size: 0.8rem; letter-spacing: 2px; color: var(--jaune, #e8d48a); }
.review-item__text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; font-style: italic; }

/* ── PRODUITS SIMILAIRES ── */
.related-section {
  padding: 0 8vw 8rem;
  position: relative;
  z-index: 1;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* Related cards — version compacte */
.related-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px var(--glass-shadow2), inset 0 1px 0 rgba(255,255,255,0.9);
}

.related-card__img {
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 2.8rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.related-card__deco { font-size: 1rem; letter-spacing: 3px; opacity: 0.6; }

.related-card__info { padding: 1rem 1.2rem; }
.related-card__name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; margin-bottom: 0.3rem; }
.related-card__price { font-size: 0.9rem; color: var(--text-light); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-gallery { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-page { padding: 2rem 5vw 4rem; }
  .related-section { padding: 0 5vw 4rem; }
}

/* ══════════════════════════════════════════════════
   GALLERY SLIDER — flèches + swipe + dots
   ══════════════════════════════════════════════════ */

.product-gallery__main {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.product-gallery__main:active { cursor: grabbing; }

.gallery-track {
  width: 100%; height: 100%;
  position: relative;
  aspect-ratio: 1;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: all;
}

.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* ── FLÈCHES ── */
.gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,252,248,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  box-shadow: 0 4px 16px rgba(160,130,100,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.2s var(--ease);
  z-index: 4;
  opacity: 0;
}

.product-gallery__main:hover .gallery-arrow { opacity: 1; }

/* Sur mobile toujours visibles */
@media (hover: none) {
  .gallery-arrow { opacity: 0.75; }
}

.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

.gallery-arrow:hover {
  background: rgba(255,252,248,0.95);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(160,130,100,0.2);
}

/* ── DOTS ── */
.gallery-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 4;
}

.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  padding: 0;
}

.gallery-dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ── MINIATURES ── */
.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.product-gallery__thumb {
  flex: 1; aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s var(--ease);
  opacity: 0.55;
}

.product-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.product-gallery__thumb.active {
  border-color: var(--season-primary, #e8a4b8);
  opacity: 1;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--season-primary,#e8a4b8) 20%, transparent);
}

.product-gallery__thumb:hover { opacity: 0.85; }

/* ── FORCE COVER sur toutes les images galerie ── */
.gallery-slide,
.gallery-track,
.product-gallery__main {
  height: 100%;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Forcer une hauteur fixe sur la galerie principale */
.product-gallery__main {
  aspect-ratio: 1 / 1;
  min-height: 380px;
}

.gallery-track {
  height: 100%;
  aspect-ratio: unset;
}

.gallery-slide {
  height: 100%;
}

/* ── TAILLE OUT OF STOCK ── */
.size-btn.out {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.size-low {
  font-size: 0.6rem;
  margin-left: 3px;
  vertical-align: super;
}
