/* ==========================================================================
   AQUAVAULT — Styles fiche produit
   ========================================================================== */

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-400); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--ocean); }

.product-hero { padding-top: 130px; padding-bottom: 80px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: flex-start; }

/* Gallery */
.gallery { position: sticky; top: 110px; }
.gallery-main {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: var(--gradient-ocean-soft);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 30px 70px rgba(3, 20, 40, 0.18);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s var(--ease); }
.gallery-main .badge { position: absolute; top: 20px; left: 20px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 76px; height: 76px; border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--ocean); }

/* Info column */
.product-title { margin-bottom: 10px; }
.product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.product-rating a { color: var(--ocean); font-weight: 600; }


.value-props { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.value-props li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); }
.value-props svg { width: 18px; height: 18px; color: var(--ocean); }

.option-block { margin-bottom: 28px; }
.option-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.option-label .selected-value { font-weight: 400; color: var(--gray-500); }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: calc(40px + 1cm); height: calc(40px + 1cm); border-radius: 50%;
  border: 2px solid transparent;
  outline: 2px solid var(--gray-200);
  outline-offset: 3px;
  cursor: pointer;
  transition: outline-color .3s var(--ease), transform .3s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { outline-color: var(--ocean); }
.swatch[data-color="ocean"] { background: linear-gradient(135deg, #0a5cc4, #00d4ff); }
.swatch[data-color="black"] { background: linear-gradient(135deg, #1a1d22, #444b57); }
.swatch[data-color="white"] { background: linear-gradient(135deg, #ffffff, #dbe4ea); }
.swatch[data-color="coral"] { background: linear-gradient(135deg, #ff7a59, #ffb199); }

.qty-row { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.qty-stepper button { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.qty-stepper button:hover { background: var(--gray-50); }
.qty-stepper input { width: 42px; text-align: center; border: none; font-family: var(--font-mono); font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.stock-urgency { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ocean-deep); font-weight: 600; margin-bottom: 10px; }
.stock-urgency svg { width: 16px; height: 16px; color: #e8590c; }
.stock-bar { height: 6px; border-radius: var(--radius-full); background: var(--gray-100); overflow: hidden; margin-bottom: 28px; }
.stock-bar-fill { height: 100%; width: 76%; background: linear-gradient(90deg, #e8590c, #ffb703); border-radius: var(--radius-full); }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 28px; }
.trust-strip-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 12px; color: var(--gray-500); }
.trust-strip-item svg { width: 22px; height: 22px; color: var(--ocean); }

.viewers-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); }
.viewers-note .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fb344; }

/* Accordions produit */
.product-accordions { margin-top: 12px; }

/* Sticky Add To Cart bar */
.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -8px 30px rgba(6,20,40,0.08);
  padding: 14px 0;
}
.sticky-atc .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sticky-atc-info { display: flex; align-items: center; gap: 14px; }
.sticky-atc-info .mini-visual { width: 40px; height: 50px; border-radius: 10px; object-fit: cover; background: var(--gradient-ocean); flex-shrink: 0; }
.sticky-atc-info strong { font-size: 14px; display: block; }
.sticky-atc-info span { font-size: 13px; color: var(--gray-500); }
@media (max-width: 620px) { .sticky-atc-info span { display: none; } }

/* Cross-sell */
.upsell-grid { grid-template-columns: repeat(3, 1fr); }
.upsell-card { display: flex; flex-direction: column; }
.upsell-visual { aspect-ratio: 1/0.8; border-radius: var(--radius-sm); background: var(--gray-50); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.upsell-visual svg { width: 44px; height: 44px; color: var(--ocean); }
.upsell-card h4 { font-size: 15px; margin-bottom: 6px; }
.upsell-card .stars svg { width: 12px; height: 12px; }
.upsell-price { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.upsell-price strong { font-size: 17px; }
.upsell-price span { font-size: 12px; font-weight: 600; color: var(--gray-400); }

/* Reviews detail */
.reviews-summary { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.reviews-score { text-align: center; }
.reviews-score .big { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; font-size: 64px; font-weight: 700; letter-spacing: -0.02em; }
.reviews-score .stars { justify-content: center; margin: 10px 0; }
.reviews-score span { font-size: 13px; color: var(--gray-500); }
.rating-bars { display: flex; flex-direction: column; gap: 10px; }
.rating-bar-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray-500); }
.rating-bar-row .label { width: 46px; flex-shrink: 0; }
.rating-bar-track { flex: 1; height: 8px; border-radius: var(--radius-full); background: var(--gray-100); overflow: hidden; }
.rating-bar-fill { height: 100%; background: linear-gradient(90deg, #ffb703, #ff9f1c); border-radius: var(--radius-full); }
.rating-bar-row .count { width: 34px; text-align: right; flex-shrink: 0; }

.review-filters { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.review-filter { padding: 10px 18px; border-radius: var(--radius-full); border: 1.5px solid var(--gray-200); font-size: 13px; font-weight: 600; transition: all .3s var(--ease); }
.review-filter.is-active, .review-filter:hover { border-color: var(--ocean); color: var(--ocean); background: rgba(10,92,196,0.05); }

.review-list { display: flex; flex-direction: column; gap: 0; }
.review-item { padding: 28px 0; border-bottom: 1px solid var(--gray-100); }
.review-item-head { display: flex; align-items: center; justify-content: between; gap: 16px; margin-bottom: 12px; }
.review-item-meta { flex: 1; }
.review-item-meta .name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.review-item-meta .date { font-size: 12px; color: var(--gray-400); }
.review-item p { font-size: 14px; color: var(--gray-700); line-height: 1.65; margin: 12px 0; }
.review-helpful { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-400); }
.review-helpful button { font-weight: 600; color: var(--gray-500); }
.review-helpful button:hover { color: var(--ocean); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { position: static; }
  .reviews-summary { grid-template-columns: 1fr; gap: 32px; }
  .trust-strip { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .upsell-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .swatch { width: 52px; height: 52px; }
}
