/* JP Product Gallery Complete — strictement limité à body#product */
body#product .images-container,
body#product .product-cover {
  position: relative !important;
}

/* Miniatures : horizontales sous la grande image */
body#product .js-qv-mask {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 10px 0 0 !important;
  overflow: hidden !important;
}

body#product .product-images,
body#product .js-qv-mask .product-images {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 2px !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

body#product .product-images > li,
body#product .js-qv-mask .product-images > li {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 25% !important;
  margin: 0 !important;
  float: none !important;
}

body#product .product-images > li img,
body#product .product-images > li .thumb,
body#product .js-qv-mask .product-images > li img {
  display: block !important;
  width: 100% !important;
  height: 82px !important;
  object-fit: cover !important;
  box-sizing: border-box !important;
}

/* Masque seulement les anciennes flèches de défilement des miniatures. */
body#product .scroll-box-arrows {
  display: none !important;
}

/* Nouvelles flèches, superposées de chaque côté de la grande image. */
body#product .jp-gallery-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 25 !important;
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
  color: #1d1d1d !important;
  font-size: 27px !important;
  line-height: 36px !important;
  text-align: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}
body#product .jp-gallery-nav-prev { left: 8px !important; }
body#product .jp-gallery-nav-next { right: 8px !important; }
body#product .jp-gallery-nav:hover { background: #fff !important; }

@media (max-width: 767px) {
  body#product .product-images > li img,
  body#product .product-images > li .thumb,
  body#product .js-qv-mask .product-images > li img { height: 66px !important; }
  body#product .jp-gallery-nav { width: 34px !important; height: 34px !important; font-size: 23px !important; line-height: 31px !important; }
}
