/**
 * Folies Secrètes — Galerie image produit premium (commun PS22 / PS26 / PS27)
 * Scope : body#product .fs-product-gallery-premium
 * Préprod uniquement — ne pas toucher au thème Panda parent
 */

body#product .fs-product-gallery-premium.product_left_content {
  background: var(--fs-ivory, #fdfcfa);
  border-radius: 0.85rem;
  box-shadow: var(--fs-shadow-soft, 0 10px 28px rgba(26, 23, 22, 0.04));
}

body#product .fs-product-gallery-premium .pro_gallery_top_container,
body#product .fs-product-gallery-premium .pro_gallery_top_inner {
  background: var(--fs-ivory, #fdfcfa);
}

/* —— Image principale : cadrage sans crop agressif —— */
body#product .fs-product-gallery-premium .pro_gallery_top .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fs-ivory, #fdfcfa);
}

body#product .fs-product-gallery-premium .pro_gallery_top .pro_gallery_item,
body#product .fs-product-gallery-premium .pro_gallery_top img.pro_gallery_item {
  width: 100%;
  height: auto;
  max-height: min(72vh, 42rem);
  object-fit: contain;
  object-position: center center;
  border-radius: 0.35rem;
}

body#product .fs-product-gallery-premium .pro_gallery_top a.replace-2x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--fs-ivory, #fdfcfa);
}

/* —— EasyZoom Panda : loupe vintage au survol → désactivée (lightbox via icône) —— */
body#product .fs-product-gallery-premium .pro_gallery_top .easyzoom,
body#product .fs-product-gallery-premium .pro_gallery_top .easyzoom--overlay {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--fs-ivory, #fdfcfa);
}

body#product .fs-product-gallery-premium .pro_gallery_top .easyzoom a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
  cursor: pointer !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top .easyzoom img,
body#product .fs-product-gallery-premium .pro_gallery_top .easyzoom.is-ready img,
body#product .fs-product-gallery-premium .pro_gallery_top .easyzoom.is-loading img {
  cursor: default !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: min(72vh, 42rem) !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body#product .fs-product-gallery-premium .easyzoom-flyout,
body#product .fs-product-gallery-premium .easyzoom-notice {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top_inner,
body#product .fs-product-gallery-premium .pro_gallery_top .swiper-slide {
  overflow: hidden;
}

/* —— Flèches principales : toujours visibles (Panda = hover ou swiper-navigation_visible) —— */
body#product .fs-product-gallery-premium .pro_gallery_top.swiper-button-lr > .swiper-button-prev {
  left: 0.6rem !important;
  right: auto !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top.swiper-button-lr > .swiper-button-next {
  right: 0.6rem !important;
  left: auto !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top.swiper-navigation-circle .swiper-button,
body#product .fs-product-gallery-premium .pro_gallery_top.swiper-navigation-rectangle .swiper-button,
body#product .fs-product-gallery-premium .pro_gallery_top.swiper-navigation-arrow .swiper-button,
body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.65rem !important;
  height: 2.65rem !important;
  min-width: 2.65rem !important;
  min-height: 2.65rem !important;
  top: 50% !important;
  bottom: auto !important;
  margin-top: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%);
  background-color: rgba(253, 252, 250, 0.96) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 0.85rem 0.85rem !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 149, 107, 0.48) !important;
  border-radius: 50% !important;
  box-shadow:
    0 6px 20px rgba(26, 23, 22, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset !important;
  color: transparent !important;
  opacity: 1 !important;
  overflow: visible !important;
  z-index: 8 !important;
  transition:
    background-color 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    background-image 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button::before,
body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button::after {
  content: none !important;
  display: none !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%234a4543' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M14.5 7.5L9 12l5.5 4.5'/%3E%3C/svg%3E") !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%234a4543' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M9.5 7.5L15 12l-5.5 4.5'/%3E%3C/svg%3E") !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button:hover {
  background-color: rgba(255, 254, 251, 0.99) !important;
  border-color: var(--fs-gold, #b8956b) !important;
  box-shadow:
    0 10px 26px rgba(26, 23, 22, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset !important;
  transform: translateY(calc(-50% - 1px));
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button-prev:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23b8956b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M14.5 7.5L9 12l5.5 4.5'/%3E%3C/svg%3E") !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button-next:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23b8956b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M9.5 7.5L15 12l-5.5 4.5'/%3E%3C/svg%3E") !important;
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button.swiper-button-disabled {
  opacity: 0.32 !important;
  pointer-events: none;
}

body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button i {
  display: none !important;
}

/* —— Miniatures : contour actif premium taupe/doré —— */
body#product .fs-product-gallery-premium .pro_gallery_thumbs.hightlight_curr_thumbs .pro_gallery_thumb {
  opacity: 1 !important;
}

body#product .fs-product-gallery-premium .pro_gallery_thumb_box {
  border-radius: 0.5rem;
  border: 1px solid rgba(196, 169, 154, 0.45);
  overflow: hidden;
  background: var(--fs-ivory, #fdfcfa);
  box-shadow: 0 2px 8px rgba(26, 23, 22, 0.03);
  transition:
    border-color 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-slide:hover .pro_gallery_thumb_box {
  border-color: var(--fs-nude, #c4a99a);
  box-shadow: 0 4px 14px rgba(26, 23, 22, 0.06);
  transform: translateY(-1px);
}

body#product .fs-product-gallery-premium .clicked_thumb .pro_gallery_thumb_box,
body#product .fs-product-gallery-premium .curr_combination_thumb .pro_gallery_thumb_box {
  border-color: var(--fs-gold, #b8956b) !important;
  box-shadow:
    0 0 0 2px var(--fs-ivory, #fdfcfa),
    0 0 0 3px rgba(184, 149, 107, 0.85),
    0 6px 18px rgba(26, 23, 22, 0.08) !important;
}

body#product .fs-product-gallery-premium .pro_gallery_thumb {
  object-fit: contain;
  width: 100%;
  height: auto;
}

/* Flèches miniatures verticales / horizontales */
body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-top,
body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-bottom,
body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button {
  width: 1.85rem !important;
  height: 1.85rem !important;
  background: rgba(253, 252, 250, 0.94) !important;
  border: 1px solid rgba(184, 149, 107, 0.3) !important;
  border-radius: 50% !important;
  color: var(--fs-gold, #b8956b) !important;
  box-shadow: 0 2px 10px rgba(26, 23, 22, 0.06) !important;
}

body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-top i,
body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-bottom i,
body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button i {
  color: var(--fs-ink-soft, #4a4543) !important;
  font-size: 0.72rem !important;
}

body#product .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button:hover i {
  color: var(--fs-gold, #b8956b) !important;
}

/* —— Lien « Afficher toutes les images » —— */
body#product .fs-product-gallery-premium .pro_gallery_show_all {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0;
  font-family: var(--fs-font-sans, "Manrope", system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fs-ink-soft, #4a4543) !important;
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(184, 149, 107, 0.4) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body#product .fs-product-gallery-premium .pro_gallery_show_all:hover,
body#product .fs-product-gallery-premium .pro_gallery_show_all:focus-visible {
  color: var(--fs-gold, #b8956b) !important;
  border-bottom-color: var(--fs-gold, #b8956b) !important;
  text-decoration: none !important;
}

/* —— Icône agrandir / lightbox (.pro_popup_trigger_box, slide active .st_active) —— */
body#product .fs-product-gallery-premium .pro_popup_trigger_box .pro_popup_trigger.layer_icon_wrap.st_active,
body#product .fs-product-gallery-premium .pro_popup_trigger.layer_icon_wrap.st_active,
body#product .fs-product-gallery-premium .layer_icon_wrap.st_active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 2.35rem !important;
  height: 2.35rem !important;
  min-width: 2.35rem !important;
  min-height: 2.35rem !important;
  padding: 0 !important;
  bottom: 0.75rem !important;
  right: 0.75rem !important;
  background-color: rgba(253, 252, 250, 0.94) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='7.5' y='7.5' width='9' height='9' rx='1.2' stroke='%234a4543' stroke-width='1.85'/%3E%3Cpath stroke='%234a4543' stroke-width='1.85' stroke-linecap='round' d='M11 7.5V5.5M13 7.5V5.5M11 16.5v2M13 16.5v2M7.5 11H5.5M7.5 13H5.5M16.5 11h2M16.5 13h2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 0.95rem 0.95rem !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(184, 149, 107, 0.38) !important;
  border-radius: 50% !important;
  color: transparent !important;
  box-shadow:
    0 4px 14px rgba(26, 23, 22, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 9 !important;
  transition:
    background-color 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    background-image 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.22s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.18s var(--fs-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

body#product .fs-product-gallery-premium .layer_icon_wrap i {
  display: none !important;
}

body#product .fs-product-gallery-premium .layer_icon_wrap.st_active::before,
body#product .fs-product-gallery-premium .layer_icon_wrap.st_active::after {
  content: none !important;
  display: none !important;
}

body#product .fs-product-gallery-premium .layer_icon_wrap.st_active:hover,
body#product .fs-product-gallery-premium .layer_icon_wrap.st_active:focus-visible {
  background-color: rgba(255, 254, 251, 0.98) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='7.5' y='7.5' width='9' height='9' rx='1.2' stroke='%23b8956b' stroke-width='1.95'/%3E%3Cpath stroke='%23b8956b' stroke-width='1.95' stroke-linecap='round' d='M11 7.5V5.5M13 7.5V5.5M11 16.5v2M13 16.5v2M7.5 11H5.5M7.5 13H5.5M16.5 11h2M16.5 13h2'/%3E%3C/svg%3E") !important;
  border-color: var(--fs-gold, #b8956b) !important;
  box-shadow:
    0 8px 20px rgba(26, 23, 22, 0.11),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 480px) {
  body#product .fs-product-gallery-premium .pro_gallery_top .swiper-button {
    width: 2.1rem !important;
    height: 2.1rem !important;
    min-width: 2.1rem !important;
    min-height: 2.1rem !important;
  }

  body#product .fs-product-gallery-premium .pro_gallery_top .pro_gallery_item,
  body#product .fs-product-gallery-premium .pro_gallery_top img.pro_gallery_item {
    max-height: min(58vh, 24rem);
  }

  body#product .fs-product-gallery-premium .pro_gallery_thumbs_vertical {
    margin-bottom: 0.5rem;
  }

  body#product .fs-product-gallery-premium .layer_icon_wrap {
    width: 2.15rem !important;
    height: 2.15rem !important;
    min-width: 2.15rem !important;
    min-height: 2.15rem !important;
    bottom: 0.55rem !important;
    right: 0.55rem !important;
  }
}

/* =====================================================
   PS30 — LELO Smart Wand 2 Medium aqua (2 visuels feed)
   Scope strict : body#product.product-id-30
   ===================================================== */

body#product.product-id-30 .fs-product-gallery-premium.product_left_content {
  position: relative;
  overflow: hidden;
  min-height: clamp(22rem, 52vh, 36rem);
}

body#product.product-id-30 .fs-product-gallery-premium .images-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_popup_trigger_box {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_popup_trigger_box a.layer_icon_wrap:not(.st_active) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_popup_trigger_box a.layer_icon_wrap.st_active {
  pointer-events: auto;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs_container.pro_gallery_thumbs_vertical {
  order: 2;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs_container.pro_gallery_thumbs_vertical .pro_gallery_thumbs {
  width: 100% !important;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  gap: 0.65rem;
  transform: none !important;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs .swiper-slide {
  width: calc(50% - 0.35rem) !important;
  max-width: 8.5rem;
  margin: 0 !important;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-top,
body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-bottom,
body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-prev,
body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs .swiper-button-next {
  display: none !important;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_top_container,
body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_top {
  order: 1;
  width: 100% !important;
}

body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_top .pro_gallery_item,
body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_top img.pro_gallery_item {
  max-height: min(62vh, 34rem);
}

body#product.product-id-30 .fs-product-gallery-premium .easyzoom-flyout,
body#product.product-id-30 .fs-product-gallery-premium .easyzoom-notice {
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 991px) {
  body#product.product-id-30 .fs-product-gallery-premium.product_left_content {
    min-height: auto;
  }

  body#product.product-id-30 .fs-product-gallery-premium .pro_gallery_thumbs .swiper-slide {
    max-width: 7rem;
  }
}
