/** Shopify CDN: Minification failed

Line 13:0 Comments in CSS use "/* ... */" instead of "//"
Line 13:77 Unterminated string token
Line 14:0 Comments in CSS use "/* ... */" instead of "//"
Line 14:73 Unterminated string token
Line 15:0 Comments in CSS use "/* ... */" instead of "//"
Line 16:0 Comments in CSS use "/* ... */" instead of "//"
Line 17:0 Comments in CSS use "/* ... */" instead of "//"
Line 18:0 Comments in CSS use "/* ... */" instead of "//"

**/
// Déplace le bouton "quick-add" natif (rendu par défaut À L'INTÉRIEUR de
// .card-gallery, qui a overflow:hidden) pour qu'il devienne un frère de
// .card-gallery — placé entre la photo et le titre, comme sur le carrousel.
//
// Un MutationObserver reprocesse la grille à chaque mise à jour (filtre, tri,
// pagination infinie), car ces actions remplacent le HTML de la section.
(function () {
  function relocate() {
    document.querySelectorAll('product-card:not([data-quick-add-relocated])').forEach(function (card) {
      var quickAdd = card.querySelector('.quick-add');
      var gallery = card.querySelector('.card-gallery');
      if (quickAdd && gallery) {
        gallery.insertAdjacentElement('afterend', quickAdd);
      }
      card.setAttribute('data-quick-add-relocated', 'true');
    });
  }

  relocate();

  var root = document.querySelector('main') || document.body;
  var observer = new MutationObserver(relocate);
  observer.observe(root, { childList: true, subtree: true });
})();