/* ==========================================
   PAGE PRODUIT - TABLE OF CONTENTS
   Version: 1.1.0
   Dernière mise à jour: 26 novembre 2025
   ========================================== 
   
   1. LAYOUT GÉNÉRAL
      - Container 2 colonnes (galerie + infos)
      - Responsive breakpoints
      - Neutralisation Bootstrap
   
   2. GALERIE PRODUIT (Colonne gauche)
      - 2.1 Wrapper & Structure
      - 2.2 Thumbnails Verticales
      - 2.3 Image Principale
      - 2.4 Badge Zoom Glassmorphism
      - 2.5 Dots Navigation Mobile
      - 2.6 Modal Fullscreen
      - 2.7 Modal PrestaShop (1 image)
   
   3. INFOS PRODUIT (Colonne droite)
      - 3.1 Wrapper & Sticky Zone
      - 3.2 Titre + Référence
      - 3.3 Prix
      - 3.4 Quantité + Boutons CTA
      - 3.5 Description Accordéons
      - 3.6 Zoom Loupe Boulanger
   
   4. TABS PRODUIT
      - 4.1 Container & Navigation
      - 4.2 Détails Produit
      - 4.3 Attachments
   
   5. STICKY BAR BOTTOM
      - Desktop & Mobile
   
   6. UPSELL "VOUS AIMEREZ AUSSI"
      - Layout grid
      - Cards accessoires
      - Responsive
   
   7. PRODUIT PACK
      - Stylisation items
      - Responsive mobile
   
   8. RESPONSIVE MOBILE (< 768px)
      - 8.1 Layout & Structure
      - 8.2 Titre + Référence (Avant galerie)
      - 8.3 Prix (Point focal #1 conversion)
      - 8.4 Réassurance (1 ligne horizontale)
      - 8.5 Galerie (Position static)
      - 8.6 Quantité + CTAs (Compacts)
      - 8.7 Description (Hauteur réduite)
      - 8.8 Tabs (Layout vertical)
      - 8.9 Sticky Bar (Bottom)
      - 8.10 Upsell (1 colonne)
      - 8.11 Pack Produit (Flexbox optimisée)
      - 8.12 Modal Fullscreen
   
   9. RESPONSIVE TABLETTE (768-991px)
      - 9.1 Layout Fullwidth (style Fnac)
      - 9.2 Galerie (Image 16:9 + dots)
      - 9.3 Infos produit
      - 9.4 Tabs
      - 9.5 Upsell (2 colonnes)
      - 9.6 Sticky Bar (Top)
   
   BREAKPOINTS:
   - Mobile: < 768px
   - Tablette: 768px - 991px
   - Desktop: >= 992px
   
   ========================================== */

/* ==========================================
   1. LAYOUT GÉNÉRAL
   ========================================== */

/* Container parent */
body#product #content {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Badges flags positionnement */
#product .mx-main-image-container .product-flags {
  top: var(--space-4);
  left: var(--space-4);
}

/* Container 2 colonnes (galerie + infos) */
#product .product-container.row {
  display: grid;
  grid-template-columns: 50% 50%;
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* ✅ Colonnes : désactiver Bootstrap float/flex */
#product .product-container > .col-md-6 {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Colonne galerie (gauche) */
#product .product-container > .col-md-6:first-child {
  grid-column: 1;
}

/* Colonne infos produit (droite) */
#product .product-container > .col-md-6:last-child {
  grid-column: 2;
}

/* ==========================================
   2. GALERIE PRODUIT (Colonne gauche)
   ========================================== */

/* ------------------------------------------
   2.1 Wrapper & Structure
   ------------------------------------------ */

.mx-product-gallery-wrapper {
  position: sticky;
  top: 200px;
  justify-self: end;
}
/* Si galerie plusieurs images présentes avec thumbnails */
.mx-product-gallery {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Si une seule image (pas de thumbnails) */
.mx-product-gallery:has(.mx-gallery-main:only-child) {
  grid-template-columns: 1fr;
}

/* ------------------------------------------
   2.2 Thumbnails Verticales (Gauche)
   ------------------------------------------ */

.mx-gallery-thumbnails {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 600px;
  padding: var(--space-2) 0;
  scrollbar-width: none;
}

.mx-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

/* Flèche HAUT */
.mx-thumbnails-arrow-up {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  z-index: 3;
  flex-shrink: 0;
}

.mx-thumbnails-arrow-up.hide {
  visibility: hidden;
}

.mx-thumbnails-arrow-up:hover {
  transform: translateY(-2px);
}


/* Flèche BAS */
.mx-thumbnails-arrow-down {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  z-index: 4;
  flex-shrink: 0;
}

.mx-thumbnails-arrow-down.hide {
  visibility: hidden;
}

.mx-thumbnails-arrow-down:hover {
  transform: translateY(2px);
}

/* Container avec scroll */
.mx-thumbnails-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: calc(600px - 10px - 32px - 32px - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--space-2);
  scrollbar-width: none;
  -ms-overflow-style: none;

    /* Mask pour fade top/bottom */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );

}

.mx-thumbnails-list::-webkit-scrollbar {
  display: none;
}

/* Item thumbnail */
.mx-thumbnail-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  background: var(--mx-gray-50);
  flex-shrink: 0;
  z-index: 1;
}

.mx-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast);
}

.mx-thumbnail-item:hover img {
  transform: scale(1.1);
  /* box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); */
}

/* .mx-thumbnail-item:hover {
  box-shadow: 0 0 10px 0px rgb(112 112 112 / 24%);
} */

.mx-thumbnail-item.selected {
  border: 2px solid var(--mx-black);
}

.mx-thumbnail-item.selected:hover {
  border-color: var(--mx-black);
}

/* ------------------------------------------
   2.3 Image Principale
   ------------------------------------------ */

.mx-gallery-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 600px;
  margin: 0 auto;
}

.mx-main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mx-gray-50);
}

.mx-main-picture {
  width: 100%;
  height: 100%;
  display: block;
}

.mx-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-base);
}

.mx-main-image.changing {
  opacity: 0.5;
}

/* ------------------------------------------
   2.4 Badge Zoom - Glassmorphism
   ------------------------------------------ */

.mx-gallery-zoom-badge {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-base);
}

.mx-gallery-zoom-badge svg {
  width: 20px;
  height: 20px;
  color: var(--mx-gray-900);
}

.mx-gallery-zoom-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  animation: pulse-zoom 1.5s ease-in-out infinite;
}

@keyframes pulse-zoom {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 8px 32px rgba(70, 188, 235, 0.3);
  }
}

/* ------------------------------------------
   2.5 Dots Navigation Mobile
   ------------------------------------------ */

.mx-gallery-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  width: fit-content;
  margin: 0 auto;
}

.mx-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #000;
  transition: all var(--transition-fast);
}

.mx-gallery-dot.active {
  background: var(--mx-orange-500);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ------------------------------------------
   2.6 Modal Fullscreen
   ------------------------------------------ */

.mx-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.mx-gallery-modal.active {
  display: flex;
}

.mx-gallery-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}

.mx-modal-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mx-modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: opacity var(--transition-base);
}

.mx-gallery-close {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}

.mx-gallery-close svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--mx-black);
  transition: transform var(--transition-fast);
}

.mx-gallery-close:hover svg {
  transform: rotate(90deg);
}

.mx-modal-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}

.mx-modal-arrow svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--mx-black);
}

.mx-modal-arrow-prev {
  left: var(--space-6);
}

.mx-modal-arrow-next {
  right: var(--space-6);
}

.mx-modal-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.mx-modal-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.mx-modal-counter {
  position: fixed;
  bottom: 7.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: white;
}

/* ------------------------------------------
   2.7 Modal PrestaShop (Produits 1 image)
   ------------------------------------------ */

#product-modal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

#product-modal .modal-body figure {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
}

#product-modal .modal-body picture {
  display: block;
  width: 100%;
  max-width: 800px;
}

#product-modal .modal-body .js-modal-product-cover {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#product-modal picture {
  display: block;
  width: 100%;
}

#product-modal img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================
   3. INFOS PRODUIT (Colonne droite)
   ========================================== */

/* ------------------------------------------
   3.1 Wrapper & Sticky Zone
   ------------------------------------------ */

.mx-product-info-wrapper {
  display: flex;
  max-width: 570px;
  padding: 0 2rem;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.mx-product-info-inner {
  flex: 1 1 auto;
  min-height: 100vh;
}

.mx-sticky-zone {
  position: sticky;
  top: 200px;
  align-self: flex-start;
}

/* ------------------------------------------
   3.2 Titre + Référence
   ------------------------------------------ */

.mx-product-title-wrapper .mx-product-reference {
  font-size: var(--fs-xs);
  color: var(--mx-gray-600);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mx-product-title-wrapper .h1 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

/* ------------------------------------------
   3.3 Prix
   ------------------------------------------ */

.mx-product-info-wrapper .product-prices {
  margin-bottom: var(--space-4);
}

.mx-product-info-wrapper .mx-price-main {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.mx-product-info-wrapper .mx-price-regular {
  font-size: var(--fs-lg);
  color: var(--mx-gray-500);
  text-decoration: line-through;
  font-weight: var(--fw-normal);
}

.mx-product-info-wrapper .mx-price-current {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--mx-gray-900);
  line-height: 1;
}

.mx-product-info-wrapper .mx-price-tax {
  font-size: var(--fs-xs);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--fw-normal);
}

.mx-product-info-wrapper .mx-discount-badge, 
.mx-price-pack {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--mx-orange-500);
  color: white;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ------------------------------------------
   3.4 Quantité + Boutons CTA
   ------------------------------------------ */

.product-add-to-cart .product-quantity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.product-quantity .mx-qty {
  flex-shrink: 0;
}

.product-quantity .mx-add {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.product-add-to-cart .wishlist-button-product {
  margin: 0;
}

.product-add-to-cart .wishlist-button-add {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: white;
  box-shadow: none !important;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wishlist-button-add:hover {
  color: var(--mx-orange-500);
}

.wishlist-button-add i {
  color: var(--mx-gray-700);
  font-size: 24px;
}

.wishlist-button-add:hover i {
  color: var(--mx-primary);
}

.product-add-to-cart .mx-btn {
  width: 100%;
}

/* ------------------------------------------
   3.5 Description Accordéons
   ------------------------------------------ */

.mx-sticky-zone .product-description ul li {
  color: var(--mx-gray-800);
  font-size: var(--fs-sm);
}

.product-description .description-content {
  max-height: 250px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-description .description-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-description .description-content.expanded {
  max-height: none;
  overflow: visible;
}

.product-description .description-content.expanded::after {
  opacity: 0;
}

body#product .details-read-more-btn {
  display: block;
  margin: var(--space-6) auto 0;
}

body#product .details-read-more-btn:hover {
  background-color: var(--mx-orange-600);
}

.mx-accordion-item {
  border-bottom: 1px solid var(--mx-gray-200);
}

.mx-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--space-4);
}

.mx-accordion-header:hover {
  color: var(--mx-primary);
}

.mx-accordion-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mx-gray-900);
  transition: color 0.2s ease;
  flex: 1;
}

.mx-accordion-header.active h3 {
  color: var(--mx-primary);
}

.mx-accordion-icon {
  width: 24px;
  height: 24px;
  color: var(--mx-gray-700);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
}

.mx-accordion-header.active .mx-accordion-icon {
  transform: rotate(90deg);
  color: var(--mx-primary);
}

.mx-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mx-accordion-body.open {
  padding-bottom: var(--space-4);
}

.mx-accordion-body p:last-child,
.mx-accordion-body ul:last-child,
.mx-accordion-body ol:last-child {
  margin-bottom: 0;
}

.mx-accordion-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  text-decoration: underline;
  color: var(--mx-gray-900);
}

/* ------------------------------------------
   3.6 Zoom Loupe Style Boulanger
   ------------------------------------------ */

.mx-zoom-result {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background-position 0.08s ease-out, opacity 0.15s ease-in-out;
}

.mx-zoom-lens {
  display: none;
  position: absolute;
  border: 2px solid var(--mx-primary);
  width: 100px;
  height: 100px;
  cursor: none;
  pointer-events: none;
  background: rgba(70, 188, 235, 0.1);
  z-index: 10;
  border-radius: var(--radius-lg);
  transition: opacity 0.15s ease;
}

.mx-main-image-container:hover {
  cursor: zoom-in;
}

.mx-main-image-container.zooming {
  cursor: none;
}

.mx-main-image-container.zooming .mx-main-image {
  opacity: 0;
}

.mx-main-image-container .product-flags {
  pointer-events: none;
}

.mx-gallery-nav-arrow {
  pointer-events: auto;
}

/* ==========================================
   4. TABS PRODUIT
   ========================================== */

/* ------------------------------------------
   4.1 Container & Navigation
   ------------------------------------------ */

.mx-product-tabs-container {
  max-width: var(--container-xl);
  margin: 3rem auto 0;
  padding: 0 2rem;
}

#product .tabs {
  border-radius: var(--radius-lg);
  margin: 0 auto;
  background: #fff;
  max-width: 1220px;
  margin-top: var(--space-16);
  margin-bottom: var(--space-16);
}

.nav-tabs {
  border-bottom: 2px solid var(--mx-gray-200);
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.nav-tabs .nav-link {
  padding: var(--space-4) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-600);
  border: none !important;
  background: transparent;
  transition: color var(--transition-fast);
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
  color: #000 !important;
}

/* Glissière animée ORANGE */
.nav-tabs::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--slider-left, 0);
  width: var(--slider-width, 0);
  height: 3px;
  background: var(--mx-orange-500);
  transition: all 0.3s ease;
}

.tab-content {
  padding: var(--space-8) 0;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
}

.tab-pane {
  display: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
}

.tabs .tab-content .tab-pane {
  padding-top: 0;
}

/* ------------------------------------------
   4.2 Détails Produit
   ------------------------------------------ */

#product-details.active dl, 
#product-details.active label {
  margin-bottom: 0;
}

#product-details.active {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.tab-pane:not(.active) {
  display: none;
}

#product-details .product-features {
  margin-top: var(--space-3);
  margin-left: 0;
}

/* Lignes simples : Référence, Stock, État */
#product-details .product-reference,
#product-details .product-condition,
#product-details .product-quantities {
  display: flex;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--mx-gray-200);
  margin-bottom: 0;
  gap: 1rem;
}

/* Data sheet : Grid 2 colonnes */
#product-details .product-features > dl.data-sheet {
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 0;
}

#product-details .product-features > dl.data-sheet dt.name,
#product-details .product-features > dl.data-sheet dd.value {
  display: block;
  align-items: baseline;
  padding: var(--space-3);
  margin: 0;
  border-bottom: 1px solid var(--mx-gray-200);
  text-transform: none;
  min-height: auto;
}

/* Background alterné */
#product-details .product-features > dl.data-sheet dt.name:nth-of-type(odd),
#product-details .product-features > dl.data-sheet dt.name:nth-of-type(odd) + dd.value {
  background: rgba(70, 188, 235, 0.05);
}

#product-details .product-features > dl.data-sheet dt.name:nth-of-type(even),
#product-details .product-features > dl.data-sheet dt.name:nth-of-type(even) + dd.value {
  background: rgba(235, 153, 70, 0.05);
}

/* Titres sections */
#product-details .product-features > p.h6 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin-bottom: 0;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--mx-gray-300);
}

/* Logo manufacturer */
#product-details .product-manufacturer {
  margin-bottom: var(--space-4);
}

#product-details .product-manufacturer img.manufacturer-logo {
  max-width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* Labels & Values communs */
#product-details .product-reference .label,
#product-details .product-condition .label,
#product-details .product-quantities .label,
#product-details .product-features > dl.data-sheet dt.name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: var(--mx-gray-600);
  text-align: left;
}

#product-details .product-reference span,
#product-details .product-condition span,
#product-details .product-quantities span,
#product-details .product-features > dl.data-sheet dd.value {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

.product-out-of-stock:empty {
  display: none;
}

/* ------------------------------------------
   4.3 Attachments
   ------------------------------------------ */

#attachments .product-attachments p.h5 {
  text-transform: none;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
}

.mx-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 1px solid var(--mx-gray-900);
  border-radius: var(--radius-md);
  color: var(--mx-gray-900);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
}

.product-attachments .h5 {
  text-transform: none !important;
}

/* ==========================================
   5. STICKY BAR BOTTOM
   ========================================== */

.mx-sticky-add-cart {
  position: fixed;
  top: var(--header-height-shrink, 77px);
  left: 0;
  right: 0;
  background: #fff;
  z-index: 999;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--mx-gray-100);
  
  /* Cachée par défaut */
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: all 0.3s ease;
}

.mx-sticky-add-cart.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mx-sticky-content {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.mx-sticky-title {
  color: var(--mx-gray-900);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.mx-sticky-add-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.mx-sticky-add-btn .mx-separator {
  margin: 0 var(--space-1);
  opacity: 0.5;
}

.mx-sticky-price {
  font-weight: 700;
  font-size: var(--text-lg);
}

/* ==========================================
   6. UPSELL "VOUS AIMEREZ AUSSI"
   ========================================== */

.product-accessories {
  margin-top: var(--space-12);
  margin-bottom: var(--space-12);
  padding: 0 var(--space-4);
}

.product-accessories p.h5 {
  text-align: center;
  margin-bottom: var(--space-12);
}

#wrapper .product-accessories .products.row {
  max-width: 1220px;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center;
  gap: var(--space-6);
}

/* Neutraliser padding Bootstrap */
.product-accessories .products.row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Cards accessoires */
.mx-card-accessory {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mx-card-accessory .mx-card-body {
  flex: 1;
  padding: var(--space-3);
}

.mx-card-accessory .mx-card-footer {
  margin-top: auto;
  padding: var(--space-3);
}

.mx-card-accessory .mx-card-image img {
  object-fit: contain;
}

/* Titre court (2 lignes max) */
.mx-card-title-short {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.4em;
}

/* ==========================================
   7. PRODUIT PACK
   ========================================== */

.product-pack article {
  border-radius: var(--radius-sm);
  background-color: #fff;
}

.product-pack .card {
  background: transparent;
}

.product-pack .pack-product-container {
  justify-content: space-between !important;
  align-items: center;
  gap: var(--space-4);
}

/* Titre produit : 2 lignes max */
.pack-product-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  text-decoration: none;
  color: var(--mx-gray-900);
}

.pack-product-name a:hover {
  color: var(--mx-blue);
  text-decoration: none;
}

/* Case quantité */
.pack-product-quantity {
  min-width: 60px;
  min-height: 60px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--mx-gray-900);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  flex-shrink: 0;
  padding-left: 0 !important;
  border-left: 1px solid var(--mx-gray-200) !important;
}

.product-pack .pack-product-container .pack-product-quantity span {
  color: var(--mx-gray-500);
}

/* Prix */
.pack-product-price {
  margin-left: auto;
  font-weight: 600;
  color: var(--mx-gray-900);
  white-space: nowrap;
}

.thumb-mask {
  width: 60px;
  height: 60px;
}

.thumb-mask > .mask {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  margin: 0 !important;
  width: 60px !important;
  height: 60px !important;
  border: none !important;
  border-right: 1px solid var(--mx-gray-200) !important;
}

.thumb-mask > .mask img {
  width: 60px !important;
  height: 60px !important;
}

/* ==========================================
   8. RESPONSIVE MOBILE (< 768px)
   ========================================== 
   
   UX PRINCIPLES:
   - Prix = Point focal #1 conversion (30px)
   - Réassurance 1 ligne = +18% conversion (Baymard)
   - Titre avant image = Standard e-commerce
   - Breadcrumb masqué = Gain vertical
   - Sticky bar bottom = Accès permanent CTA
   
   ========================================== */

@media (max-width: 767px) {
  
  /* ------------------------------------------
     8.1 LAYOUT & STRUCTURE
     ------------------------------------------ */
  
  /* Container padding réduit */
  body#product #content {
    padding: 0 var(--space-3);
  }

  /* Breadcrumb masqué (Best practice mobile) */
  #wrapper .breadcrumb {
    display: none;
  }
  
  /* Layout flexbox vertical */
  #product .product-container.row {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-4);
  }
  
  #product .product-container.row > .col-md-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  /* Wrapper infos : padding réduit + hauteur naturelle */
  .mx-product-info-wrapper {
    position: static;
    max-width: 100%;
    padding: 0 var(--space-4);
  }
  
  .mx-product-info-inner {
    min-height: auto;
  }
  
  .mx-sticky-zone {
    position: static;
  }
  
  /* ------------------------------------------
     8.2 TITRE + RÉFÉRENCE (Avant galerie)
     ------------------------------------------ */
  
  .mx-product-title-wrapper .h1 {
    font-size: var(--fs-lg);
    line-height: 1.3;
    margin-bottom: var(--space-6);
  }
  
  .mx-product-title-wrapper .mx-product-reference {
    font-size: var(--fs-xs);
  }
  
  /* ------------------------------------------
     8.3 PRIX (Point focal #1 conversion)
     ------------------------------------------ 
     Source: Baymard Institute + Nielsen Norman
     Prix plus gros que titre = +12% conversion
     ------------------------------------------ */
  
  .mx-product-info-wrapper .product-prices {
    margin-top: 0 !important;
    margin-bottom: var(--space-4);
  }
  
  .mx-product-info-wrapper .mx-price-current {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
  }
  
  .mx-product-info-wrapper .mx-price-regular {
    font-size: var(--fs-base);
  }
  
  .mx-product-info-wrapper .mx-discount-badge,
  .mx-price-pack {
    font-size: var(--fs-xs);
    padding: var(--space-1) var(--space-3);
  }
  
  /* ------------------------------------------
     8.4 RÉASSURANCE (1 ligne horizontale)
     ------------------------------------------ 
     Source: Baymard Institute
     Réassurance visible sans scroll = +18% conversion
     4 lignes verticales = 300px perdus
     1 ligne horizontale = tout visible = moins de friction
     ------------------------------------------ */
  
  .blockreassurance_product .mx-reassurance-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    gap: var(--space-1);
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .mx-reassurance-item {
    flex: 1;
    min-width: 70px;
    text-align: center;
    flex-direction: column;
  }
  
  .mx-reassurance-icon {
    margin-bottom: var(--space-1);
  }
  
  .mx-reassurance-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .mx-reassurance-title {
    font-size: var(--fs-xs) !important;
    line-height: 1.2;
  }
  
  /* ------------------------------------------
     8.5 GALERIE (Position static)
     ------------------------------------------ */
  
  .mx-product-gallery-wrapper {
    position: static !important;
    top: auto !important;
    justify-self: stretch;
  }
  
  .mx-product-gallery {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .mx-gallery-thumbnails {
    display: none;
  }
  
  .mx-main-image-container {
    aspect-ratio: 1 / 1;
    margin-bottom: var(--space-4);
  }
  
  .mx-main-image {
    touch-action: pan-x pan-y pinch-zoom;
  }
  
  .mx-gallery-zoom-badge {
    width: 40px;
    height: 40px;
    bottom: var(--space-3);
    right: var(--space-3);
  }
  
  .mx-gallery-zoom-badge svg {
    width: 18px;
    height: 18px;
  }
  
  .mx-gallery-dots {
    display: flex;
    margin-top: var(--space-3);
  }
  
  /* ------------------------------------------
     8.6 QUANTITÉ + CTAs (Compacts)
     ------------------------------------------ */
  
  .product-add-to-cart .product-quantity {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .product-quantity .mx-qty {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  
  .product-quantity .mx-add {
    width: 100%;
  }
  
  .product-quantity {
    position: relative;
  }
  
  .wishlist-button-add {
    position: absolute;
    top: 0;
    right: 0;
  }
  
  .product-add-to-cart .mx-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
  }
  
  .product-add-to-cart .qty {
    padding: var(--space-2);
  }
  
  .product-add-to-cart .qty button {
    width: 36px;
    height: 36px;
  }
  
  /* ------------------------------------------
     8.7 DESCRIPTION (Hauteur réduite)
     ------------------------------------------ */
  
  .product-description .description-content {
    max-height: 200px;
  }
  
  .details-read-more-btn {
    font-size: 0.8125rem;
    padding: var(--space-2) var(--space-5);
  }
  
  .mx-accordion-header h3 {
    font-size: 1rem;
  }
  
  .mx-accordion-icon {
    width: 20px;
    height: 20px;
  }
  
  /* ------------------------------------------
     8.8 TABS (Layout vertical)
     ------------------------------------------ */
  
  .tabs {
    padding: var(--space-4) !important;
    margin-top: var(--space-1) !important;
    margin-inline: var(--space-3) !important;
  }
  
  .nav-tabs {
    flex-direction: column !important;
    border-bottom: none !important;
    gap: 0;
  }
  
  .nav-tabs .nav-item .nav-link {
    width: 100%;
    text-align: left;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--mx-gray-200);
    border-radius: 0;
    padding: var(--space-4) var(--space-3);
    font-size: var(--fs-sm);
  }
  
  .nav-tabs .nav-item .nav-link.active,
  .nav-tabs .nav-item .nav-link.force-active {
    border-left: 3px solid var(--mx-orange) !important;
    background: var(--mx-gray-50) !important;
  }
  
  .tab-content {
    padding: var(--space-3) var(--space-4);
    overflow-x: hidden;
    width: 100%;
  }
  
  #product-details.active {
    padding: 0 !important;
  }
  
  /* Détails produit - Grid responsive */
  #product-details .product-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }
  
  #product-details .product-features > dl.data-sheet {
    display: grid;
    grid-template-columns: 40% 1fr;
    width: 100%;
  }
  
  #product-details .product-features dt,
  #product-details .product-features dd {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  
  #product-details dd {
    font-size: var(--fs-sm);
  }
  
  /* ------------------------------------------
     8.9 STICKY BAR (Bottom)
     ------------------------------------------ */
  
  .mx-sticky-add-cart {
    top: auto;
    bottom: 0;
    border-top: 1px solid var(--mx-gray-200);
    border-bottom: none;
    padding: var(--space-5) 0;
    transform: translateY(100%);
  }
  
  .mx-sticky-add-cart.visible {
    transform: translateY(0);
  }
  
  .mx-sticky-content {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1);
  }
  
  .mx-sticky-title {
    font-size: var(--fs-sm);
    max-width: 80%;
    text-align: center;
  }
  
  .mx-sticky-add-btn {
    width: 90%;
    max-width: 400px;
    justify-content: center;
  }
  
  /* ------------------------------------------
     8.10 UPSELL (1 colonne)
     ------------------------------------------ */
  
  .product-accessories {
    padding: 0;
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
    margin-inline: var(--space-3);
  }
  
  .product-accessories p.h5 {
    margin-bottom: var(--space-6);
  }
  
  #wrapper .product-accessories .products.row {
    max-width: 100%;
    gap: var(--space-6);
  }
  
  .product-accessories .js-product {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  /* Cards spacing ultra compact */
  #product .mx-card-body {
    gap: 0 !important;
  }
  
  #product .mx-card-title {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-1);
  }
  
  #product .mx-card-price {
    margin-top: var(--space-2);
  }
  
  /* ------------------------------------------
     8.11 PACK PRODUIT (Flexbox optimisée)
     ------------------------------------------ */
  
  .product-pack {
    margin-top: var(--space-4) !important;
  }
  
  .product-pack .pack-product-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
  }
  
  /* Image - Largeur fixe (aligné avec pack-product-container 60px) */
  .thumb-mask {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .thumb-mask > .mask {
    width: 60px !important;
    height: 60px !important;
  }

  .thumb-mask > .mask img {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Titre - Flexible mais contraint */
  .pack-product-name {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden;
  }
  
  .pack-product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    font-size: var(--fs-xs);
    line-height: 1.4;
  }
  
  /* Prix - Largeur fixe */
  .pack-product-price {
    min-width: 70px;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: var(--fs-xs);
  }
  
  /* Quantité - Largeur fixe */
  .pack-product-quantity {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: var(--fs-xs);
  }
  
  /* ------------------------------------------
     8.12 MODAL FULLSCREEN
     ------------------------------------------ */
  
  .mx-modal-image,
  .mx-modal-counter {
    touch-action: pan-x pan-y pinch-zoom;
  }
  
  .mx-gallery-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .mx-gallery-close svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .mx-modal-arrow {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .mx-modal-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .mx-modal-arrow-prev {
    left: 0.75rem;
  }
  
  .mx-modal-arrow-next {
    right: 0.75rem;
  }
  
  .mx-modal-counter {
    bottom: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* ==========================================
   9. RESPONSIVE TABLETTE (768-991px)
   ==========================================
   
   LAYOUT: Fullwidth style Fnac
   - Titre + ref en premier
   - Image large 16:9 + dots
   - Prix + badges
   - Description courte
   - Variantes
   - Qty + CTAs
   - Sticky bar EN HAUT
   
   ========================================== */

@media (min-width: 768px) and (max-width: 991px) {
  
  /* ------------------------------------------
     9.1 LAYOUT FULLWIDTH
     ------------------------------------------ */
  
  /* Passer en 1 colonne */
  #product .product-container.row {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-6);
    max-width: 700px;
    margin: 0 auto;
  }
  
  #product .product-container.row > .col-md-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  /* Désactiver min-height sticky desktop */
  .mx-product-info-inner {
    min-height: auto;
  }
  
  .mx-sticky-zone {
    position: static;
  }
  
  /* ------------------------------------------
     9.2 GALERIE (Image 16:9 + dots)
     ------------------------------------------ */
  
  .mx-product-gallery-wrapper {
    position: static;
    top: auto;
    justify-self: stretch;
  }
  
  .mx-product-gallery {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: var(--space-4);
  }
  
  .mx-gallery-main {
    max-width: 100%;
  }
  
  .mx-gallery-thumbnails {
    display: none;
  }
  
  .mx-main-image-container {
    aspect-ratio: 16 / 9;
    max-height: 450px;
    border-radius: var(--radius-lg);
  }
  
  .mx-main-image {
    object-fit: contain;
  }
  
  .mx-gallery-dots {
    display: flex;
    margin-top: var(--space-4);
  }
  
  .mx-gallery-zoom-badge {
    width: 44px;
    height: 44px;
  }
  
  /* ------------------------------------------
     9.3 INFOS PRODUIT
     ------------------------------------------ */
  
  .mx-product-info-wrapper {
    max-width: 100%;
    padding: 0 var(--space-4);
  }
  
  /* Titre */
  .mx-product-title-wrapper .h1 {
    font-size: var(--fs-2xl);
    line-height: 1.3;
    margin-bottom: var(--space-3);
  }
  
  .mx-product-title-wrapper .mx-product-reference {
    font-size: var(--fs-xs);
  }
  
  /* Prix */
  .mx-product-info-wrapper .mx-price-current {
    font-size: var(--fs-3xl);
  }
  
  .mx-product-info-wrapper .mx-price-regular {
    font-size: var(--fs-base);
  }
  
  /* Description */
  .product-description .description-content {
    max-height: 180px;
  }
  
  /* Quantité + CTAs - Tout inline */
  .product-add-to-cart .product-quantity {
    display: grid !important;
    grid-template-columns: auto 1fr 1fr;
    gap: var(--space-3);
    align-items: center;
  }

  .product-quantity .mx-qty {
    grid-column: 1;
  }

  /* display: contents = les enfants deviennent items de la grid parent */
  .product-quantity .mx-add {
    display: contents;
  }

  /* Commander */
  .product-quantity .mx-add > button:first-child {
    grid-column: 2;
  }

  /* Ajouter au panier */
  .product-quantity .mx-add > button:last-child {
    grid-column: 3;
  }

  /* Garder taille desktop pour qty sur tablette */
  .mx-qty .bootstrap-touchspin,
  .mx-qty .input-group {
    padding: 2px !important;
  }

  .mx-qty input[type="number"],
  .mx-qty #quantity_wanted {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: var(--fs-base) !important;
  }

  .mx-qty .btn-touchspin {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .mx-qty .btn-touchspin svg {
    width: 18px !important;
    height: 18px !important;
  }

  .product-add-to-cart .mx-btn {
    padding: var(--space-4);
    font-size: var(--fs-base);
  }

  /* Variants - sur une ligne */
  .product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .product-variants-item .control-label {
    font-size: var(--fs-sm);
  }

  /* Réassurance - 1 ligne */
  .blockreassurance_product .mx-reassurance-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    gap: var(--space-2);
  }
  
  .mx-reassurance-item {
    flex: 1;
    text-align: center;
    flex-direction: column;
  }
  
  .mx-reassurance-title {
    font-size: var(--fs-sm) !important;
  }
  
  /* ------------------------------------------
     9.4 TABS
     ------------------------------------------ */
  
  .tabs {
    margin-top: var(--space-8) !important;
    padding: var(--space-6) !important;
    margin-inline: var(--space-4) !important;
  }
  
  .nav-tabs {
    gap: var(--space-6);
  }
  
  .nav-tabs .nav-link {
    font-size: var(--fs-lg);
    padding: var(--space-3) 0;
  }
  
    /* .tabs .nav-tabs::after {
    content: '' !important;
    display: block !important;
    clear: none !important;
    position: absolute;
    bottom: -2px;
    left: var(--slider-left, 0);
    width: var(--slider-width, 0);
    height: 3px;
    background: #ea6839 !important;
    transition: all 0.3s ease;
  } */

  .tab-content {
    padding: var(--space-6) 0;
  }

    body#product hr {
    display: none;
  }
  
  /* Data sheet grid */
  #product-details .product-features > dl.data-sheet {
    grid-template-columns: 35% 1fr;
  }
  
  /* ------------------------------------------
    9.5 UPSELL (2 colonnes)
    ------------------------------------------ */

  .product-accessories {
    margin-top: var(--space-10);
    margin-bottom: var(--space-10);
    padding: 0 var(--space-4);
  }

  .product-accessories p.h5 {
    margin-bottom: var(--space-8);
  }

  .product-accessories .products.row {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 100%;
    gap: var(--space-4);
    justify-content: center;
  }

  /* Neutraliser Bootstrap float */
  .product-accessories .js-product {
    float: none !important;
    width: auto !important;
    flex: 0 0 calc(50% - var(--space-2));
    max-width: calc(50% - var(--space-2));
  }

  /* Cards accessoires */
  .mx-card-accessory .mx-card-body {
    padding: var(--space-3);
  }

  .mx-card-title-short {
    font-size: var(--fs-sm);
  }
  
  /* ------------------------------------------
     9.6 STICKY BAR (Top)
     ------------------------------------------ */
  
  .mx-sticky-add-cart {
    top: 52px; /* Header shrink tablette */
    bottom: auto;
    border-bottom: 1px solid var(--mx-gray-200);
    border-top: none;
    transform: translateY(-100%);
  }
  
  .mx-sticky-add-cart.visible {
    transform: translateY(0);
  }
  
  .mx-sticky-content {
    padding: 0 var(--space-4);
    gap: var(--space-3);
  }
  
  .mx-sticky-title {
    font-size: var(--fs-sm);
    max-width: 40%;
  }
  
  .mx-sticky-add-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
  }

  /* Fix Bootstrap float upsell */
  .product-accessories .col-sm-6 {
    float: none !important;
    width: 100% !important;
  }
}

/* ==========================================
   10. DESKTOP ONLY (>= 992px)
   ========================================== */

@media (min-width: 992px) {
  
  /* Upsell 3 colonnes */
  .product-accessories .js-product {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  
  /* Masquer hr desktop */
  body#product hr {
    display: none;
  }
  
  /* Galerie avec thumbnails */
  .mx-product-gallery {
    grid-template-columns: 100px 1fr;
  }
  
  .mx-gallery-thumbnails {
    display: flex;
  }
  
  .mx-gallery-dots {
    display: none;
  }
}

/* ==========================================
   11. GALERIE - MASQUER THUMBNAILS < 1280px
   ========================================== */

@media (max-width: 1279px) {
  .mx-product-gallery {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .mx-gallery-thumbnails {
    display: none;
  }
  
  .mx-gallery-dots {
    display: flex;
  }
  
  .mx-main-image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  
  .mx-zoom-result {
    border-radius: var(--radius-lg);
  }
}