/** Shopify CDN: Minification failed

Line 94:9 Expected identifier but found "addEventListener("
Line 106:9 Expected ":"
Line 107:7 Expected ":"
Line 108:4 Expected ":"
Line 110:5 Expected ":"
Line 111:5 Expected ":"
Line 113:9 Expected ":"
Line 118:9 Expected ":"

**/
/* Tirets slideshow */
slideshow-controls:has(.slideshow-controls__dots) {
  mix-blend-mode: normal !important;
  isolation: isolate !important;
}

.slideshow-controls__dots {
  gap: 6px !important;
  overflow: visible !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.slideshow-controls__dots li {
  margin: 0 !important;
  padding: 0 !important;
}

.slideshow-controls__dots button {
  width: 35px !important;
  height: 2px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  pointer-events: none !important;
  background: transparent !important;
}

.slideshow-controls__dots button::after {
  content: '' !important;
  width: 35px !important;
  height: 2px !important;
  border-radius: 0 !important;
  background-color: #888888 !important;
  box-shadow: none !important;
  display: block !important;
}

.slideshow-controls__dots button[aria-selected="true"]::after {
  background-color: #000000 !important;
  box-shadow: none !important;
}

/* Cache flèches et pause/play */
.slideshow-control.icon-prev,
.slideshow-control.icon-next,
.slideshow-control.icon-pause,
.slideshow-control.icon-play {
  display: none !important;
}
.slideshow-control--previous,
.slideshow-control--next {
  display: none !important;
}
slideshow-component {
  pointer-events: none !important;
}

slideshow-component a,
slideshow-component button {
  pointer-events: auto !important;
}
/* Bouton WhatsApp rectangulaire */
.whatsapp-button,
[class*="whatsapp"] a,
[class*="whatsapp"] button {
  border-radius: 0 !important;
}
/* Réduire le gap entre items du nav principal */
.header__column--left header-menu .overflow-menu::part(list),
.header__column--center header-menu .overflow-menu::part(list) {
  gap: var(--gap-sm) !important;
}

/* Ou forcer une valeur fixe */
header-menu .overflow-menu::part(list) {
  gap: 16px !important;
}
document.addEventListener('DOMContentLoaded', () => {
  if (window.matchMedia('(min-width: 750px)').matches) return;

  document.querySelectorAll('.card-gallery').forEach(initCardSwipe);

  const observer = new MutationObserver(() => {
    document.querySelectorAll('.card-gallery:not([swipe-init])').forEach(initCardSwipe);
  });
  observer.observe(document.body, { childList: true, subtree: true });
});

function initCardSwipe(gallery) {
  gallery.setAttribute('swipe-init', '');
  const slideshow = gallery.querySelector('slideshow-slides');
  if (!slideshow) return;

  let startX = 0;
  let startY = 0;

  gallery.addEventListener('touchstart', (e) => {
    startX = e.touches[0].clientX;
    startY = e.touches[0].clientY;
  }, { passive: true });

  gallery.addEventListener('touchmove', (e) => {
    const dx = e.touches[0].clientX - startX;
    const dy = e.touches[0].clientY - startY;
    if (Math.abs(dx) > Math.abs(dy) && Math.abs(dx) > 10) {
      e.stopPropagation();
      slideshow.scrollLeft -= dx * 0.5;
      startX = e.touches[0].clientX;
    }
  }, { passive: true });
}
