/* =====================================================================
   FICHE PRODUIT (produit.php) - style "pro 3D"
   Les composants communs (.box3d, polices, --font-hero...) viennent de
   vitrine3d.css, charge juste avant ce fichier.
   Selecteurs utilises par assets/js/product.js a conserver : #galleryMain,
   .product-gallery-main, .gallery-thumb(.active), .lightbox-*, .product-tab,
   .product-tab-panel, #qtyInput, #btnAjouterPanier, #btnPartager.
   ===================================================================== */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: var(--space-8);
}

/* ==================== Galerie ==================== */
.product-gallery { position: sticky; top: calc(var(--header-height) + 60px); }
.product-gallery-main {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(62, 166, 255, 0.12), transparent 70%),
    #0b0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 80px -40px rgba(0, 0, 0, 0.95),
    0 30px 70px -40px rgba(62, 166, 255, 0.4);
}
/* Lisere degrade autour de la photo */
.product-gallery-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(167, 139, 255, 0.7), rgba(0, 212, 255, 0.2) 35%, transparent 60%, rgba(0, 212, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.55;
  pointer-events: none;
}
.product-gallery-main img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.25s ease-out, opacity 0.15s ease;
  cursor: zoom-in;
}
@media (hover: hover) and (pointer: fine) {
  .product-gallery-main:hover img { transform: scale(1.6); }
}
.gallery-zoom-btn {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  z-index: 4;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(10, 13, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--dur-fast) var(--ease-bounce);
}
.gallery-zoom-btn svg { width: 18px; height: 18px; }
.gallery-zoom-btn:hover { background: var(--primary-gradient); border-color: transparent; transform: scale(1.08); }
.product-gallery-main .product-card-promo { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 4; }

.product-gallery-thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-4); overflow-x: auto; padding: 4px 2px var(--space-2); }
.gallery-thumb {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f18;
  padding: 0;
  opacity: 0.65;
  transition: transform var(--dur-fast) var(--ease-bounce), border-color var(--dur-fast) ease, opacity var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.gallery-thumb:hover { transform: translateY(-3px); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 10px 24px -10px rgba(0, 212, 255, 0.6);
}

/* ==================== Lightbox photo (plein ecran) ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(4, 5, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-8) 6.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-main { max-width: 900px; max-height: 78vh; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-main img {
  max-width: 100%; max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  background: #0b0f18;
  transform: scale(0.96);
  opacity: 0;
  transition: transform var(--dur-fast) var(--ease-snap), opacity var(--dur-fast) ease;
}
.lightbox-overlay.open .lightbox-main img { transform: scale(1); opacity: 1; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--dur-fast) var(--ease-bounce);
}
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--primary-gradient); border-color: transparent; }
.lightbox-close { top: var(--space-5); right: var(--space-5); }
.lightbox-prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-counter {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}
.lightbox-thumbs {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  max-width: 90vw;
  overflow-x: auto;
  padding: var(--space-1);
}
.lightbox-thumb {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #0b0f18;
  padding: 0;
  opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
}
.lightbox-thumb:hover { opacity: 0.9; }
.lightbox-thumb.active { opacity: 1; border-color: var(--primary-2); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .lightbox-overlay { padding: var(--space-4) var(--space-4) 6rem; }
  .lightbox-prev { left: var(--space-2); }
  .lightbox-next { right: var(--space-2); }
  .lightbox-close { top: var(--space-3); right: var(--space-3); }
}

/* ==================== Colonne infos ==================== */
.product-info .product-card-brand {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 var(--space-3);
  background: #fff;
  border-radius: 10px;
  margin-bottom: var(--space-2);
}
.product-brand-logo img { height: 18px; width: auto; max-width: 110px; object-fit: contain; display: block; }

.product-info h1 {
  margin: var(--space-3) 0 var(--space-3);
  font-family: var(--font-hero);
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

/* Bloc prix + stock en verre */
.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: var(--space-5) 0 var(--space-4);
}
.product-price .price-now {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem) !important;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.product-price-savings { margin: calc(var(--space-2) * -1) 0 var(--space-3); color: var(--success); font-size: 0.88rem; font-weight: 600; }

.product-info > .badge-success,
.product-info > .badge-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.product-info > .badge-success::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.product-stock-urgency {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-3);
  color: var(--warning);
  font-weight: 700;
  font-size: 0.84rem;
}
.product-stock-urgency svg { width: 16px; height: 16px; flex-shrink: 0; }

.product-highlight-box {
  position: relative;
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  padding-left: calc(var(--space-5) + var(--space-2));
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), #121725;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.product-highlight-box::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary-gradient);
  box-shadow: 0 0 12px var(--led-soft);
}
.product-highlight-box p { margin: 0; line-height: 1.65; color: var(--text); }

/* ==================== Cartes "Configuration" en 3D ==================== */
.product-config-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--space-6) 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
}
.product-config-title::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.product-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.product-config-card {
  position: relative;
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 55%), #111623;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -26px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-config-card:hover { border-color: rgba(0, 212, 255, 0.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 50px -26px rgba(62, 166, 255, 0.5); }
.product-config-card.has-badge {
  border-color: rgba(124, 92, 255, 0.45);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 55%), #111623;
}
.product-config-badge {
  position: absolute;
  top: -11px;
  left: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 16px -6px rgba(124, 92, 255, 0.8);
}
.product-config-badge svg { width: 12px; height: 12px; }
.product-config-label { display: block; font-size: 0.74rem; color: var(--text-faint); margin-bottom: 4px; }
.product-config-value { display: block; font-size: 1rem; line-height: 1.3; }

.product-ideal-pour {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 14px;
  font-size: 0.88rem;
}
.product-ideal-pour svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary-2); }

/* ==================== Achat ==================== */
.product-buy-row { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-6); flex-wrap: wrap; }
.product-buy-row .qty-stepper { border-radius: 14px; border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); }
.product-buy-row .qty-stepper button,
.product-buy-row .qty-stepper input { height: 52px; background: transparent; }
.product-buy-row .qty-stepper input { font-family: var(--font-mono); font-weight: 700; }
#btnAjouterPanier {
  flex: 1 1 220px;
  height: 52px;
  border-radius: 14px;
  font-size: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 36px -12px rgba(124, 92, 255, 0.75);
}
.product-buy-row .pca-btn { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }

.product-delivery-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-3);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), #111623;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.product-delivery-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); }
.product-delivery-row svg {
  width: 40px; height: 40px;
  padding: 9px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(62, 166, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(62, 166, 255, 0.2);
  color: #5fb6ff;
}
.product-delivery-row strong { display: block; font-size: 0.9rem; }
.product-delivery-row span { display: block; color: var(--text-muted); font-size: 0.84rem; }
.product-delivery-row-link { border-radius: 12px; transition: background var(--transition); }
.product-delivery-row-link:hover { background: rgba(255, 255, 255, 0.04); }
.product-delivery-row-link:hover strong { color: var(--primary-2); }

/* ==================== "PC cle en main" (PC gaming uniquement) ==================== */
.readykit-strip {
  position: relative;
  isolation: isolate;
  margin-bottom: var(--space-8);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 90% at 0% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 45% 80% at 100% 100%, rgba(0, 212, 255, 0.12), transparent 70%),
    var(--box-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.readykit-title {
  text-align: center;
  margin: 0 0 var(--space-6);
  font-family: var(--font-hero);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  letter-spacing: -0.03em;
}
.readykit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.readykit-item {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.readykit-item:hover { border-color: rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.04); }
.readykit-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-3);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.25), rgba(0, 212, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px -12px rgba(124, 92, 255, 0.7);
  color: #fff;
}
.readykit-icon svg { width: 26px; height: 26px; }
.readykit-icon-logo { background: #fff; padding: 10px; }
.readykit-icon-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.readykit-item h4 { margin-bottom: var(--space-1); font-size: 0.98rem; }
.readykit-item p { font-size: 0.84rem; margin-bottom: 0; color: var(--text-muted); }
@media (max-width: 820px) {
  .readykit-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== Onglets en pilule ==================== */
.product-tabs-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin-bottom: var(--space-5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.product-tab {
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.product-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.product-tab.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(124, 92, 255, 0.8);
}
.product-tab:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.pdp-3d .product-tab-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 55%), #10141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.pdp-3d .product-tab-panel h3 { font-family: var(--font-hero); font-size: 1.2rem; letter-spacing: -0.02em; }

/* Faits cles : 3 tuiles */
.product-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  background: none;
}
.product-detail-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.product-detail-fact span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint) !important;
}
.product-detail-fact strong { font-size: 0.98rem; }

/* Fiche technique */
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.specs-table tr { background: transparent; }
.specs-table tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.specs-table tr:hover { background: rgba(0, 212, 255, 0.05); }
.specs-table th, .specs-table td {
  padding: 0.95rem var(--space-4);
  text-align: left;
  white-space: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-table th {
  width: 36%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.specs-table td { color: var(--text); font-weight: 500; }

/* ==================== Avis ==================== */
.review-item { padding: var(--space-4) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.review-item:last-child { border-bottom: none; }
.review-item-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); flex-wrap: wrap; }
.review-form { margin-bottom: var(--space-5); }
.avis-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.avis-summary-score { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-width: 160px; }
.avis-summary-number { font-family: var(--font-hero); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.avis-summary-bars { display: flex; flex-direction: column; gap: var(--space-2); }
.avis-bar-row { display: grid; grid-template-columns: 60px 1fr 30px; align-items: center; gap: var(--space-3); font-size: 0.85rem; }
.avis-bar-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.avis-bar-fill { height: 100%; background: var(--primary-gradient); border-radius: 99px; }
.review-list-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.avis-sort-form { display: flex; align-items: center; gap: var(--space-2); }
.avis-sort-form select { width: auto; }

/* ==================== Performances en jeu (FPS) ==================== */
.fps-intro { font-size: 0.85rem; margin-bottom: var(--space-4); }
.fps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-4);
}
.fps-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast) ease;
}
.fps-tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.9); }
.fps-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}
.fps-tile-name {
  position: absolute;
  top: var(--space-3); left: var(--space-3); right: var(--space-3);
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}
.fps-tile-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(10, 13, 19, 0.9);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.fps-tile-badge small { font-family: var(--font-base); font-weight: 600; font-size: 0.68rem; color: var(--text-faint); }

/* ==================== Contenu riche produit (fiche "showcase" optionnelle) ==================== */
.produit-riche { overflow: hidden; }
.produit-riche-hero { text-align: center; max-width: 720px; margin: 0 auto var(--space-8); }
.produit-riche-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: var(--space-3);
}
.produit-riche-title { font-family: var(--font-hero); font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 var(--space-3); color: var(--text); }
.produit-riche-subtitle { font-size: 1.05rem; font-weight: 600; color: var(--text-muted); margin-bottom: var(--space-5); }
.produit-riche-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.produit-riche-specs div { text-align: center; }
.produit-riche-specs span { display: block; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 4px; }
.produit-riche-specs strong { font-size: 0.95rem; color: var(--text); }
.produit-riche-section {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.produit-riche-section.reverse { flex-direction: row-reverse; }
.produit-riche-section img { width: 45%; flex-shrink: 0; border-radius: 16px; object-fit: cover; }
.produit-riche-section-text { flex: 1; }
.produit-riche-section-text h2 { font-family: var(--font-hero); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 var(--space-4); color: var(--text); }
.produit-riche-section-text p { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin: 0; }
.produit-riche-accent { color: var(--primary-2); font-weight: 700; }

/* ==================== Produits similaires ==================== */
.pdp-section-head h2 { margin: 0; font-family: var(--font-hero); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -0.03em; }

/* ==================== Barre d'achat collee en bas d'ecran ==================== */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 10px 0;
  background: #0b0e17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.buybar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.85) 25%, rgba(0, 212, 255, 0.85) 75%, transparent);
}
.buybar.is-visible { transform: none; visibility: visible; transition: transform 0.35s var(--ease-out); }
.buybar-inner { display: flex; align-items: center; gap: var(--space-4); }
.buybar-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #0b0f18; flex-shrink: 0; }
.buybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.buybar-info strong { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-info span { font-family: var(--font-hero); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.buybar-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 1.4rem; border-radius: 12px; white-space: nowrap; }
.buybar-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.buybar-btn.is-success { background: var(--success); }
/* Le bouton "retour en haut" et la barre du comparateur remontent au-dessus de la barre d'achat */
body.has-buybar .back-to-top { bottom: 88px; }
body.has-buybar .compare-bar { bottom: 68px; }
@media (max-width: 480px) {
  .buybar-img { display: none; }
  .buybar-btn { padding: 0 1rem; }
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media (max-width: 640px) {
  .avis-summary { grid-template-columns: 1fr; }
  .product-tabs-nav { display: flex; }
  .product-tab { flex: 1; padding: 0.65rem 0.6rem; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .product-config-grid { grid-template-columns: 1fr; }
  .product-stock-urgency { margin: var(--space-2) 0 0; }
}
@media (max-width: 760px) {
  .produit-riche { padding: var(--space-6) var(--space-4); }
  .produit-riche-specs { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); }
  .produit-riche-section, .produit-riche-section.reverse { flex-direction: column; gap: var(--space-4); }
  .produit-riche-section img { width: 100%; }
}
