/* Globalize Variation Gallery – Flatsome Classic, fiche produit uniquement */
.single-product .gvf-gallery-mounted > :not(.gvf-gallery) { display:none!important; }
.single-product .product-gallery.gvf-gallery-mounted,
.single-product .woocommerce-product-gallery.gvf-gallery-mounted { overflow:visible!important; }
.single-product .gvf-gallery { --gvf-border:#e6e3df; display:grid; grid-template-columns:72px minmax(0,1fr); gap:12px; width:100%; align-items:start; }
.single-product .gvf-thumbs { display:flex; flex-direction:column; gap:9px; max-height:min(78vh,770px); overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:2px; }
.single-product .gvf-thumb { display:block; position:relative; width:100%; aspect-ratio:3/4; padding:0; border:1px solid var(--gvf-border); cursor:pointer; background:#f7f6f5; opacity:.75; transition:border-color .2s,opacity .2s; }
.single-product .gvf-thumb.is-active,.single-product .gvf-thumb:hover { border-color:#252525; opacity:1; }
.single-product .gvf-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.single-product .gvf-stage { position:relative; overflow:hidden; background:#f8f7f6; width:100%; }
.single-product .gvf-hero { display:block; width:100%; aspect-ratio:3/4; padding:0; margin:0; border:0; background:transparent; cursor:zoom-in; line-height:0; }
.single-product .gvf-hero-img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.single-product .gvf-arrow { position:absolute; top:50%; transform:translateY(-50%); width:35px; height:46px; background:rgba(255,255,255,.9); border:0; color:#111; padding:0; cursor:pointer; opacity:0; transition:opacity .2s; }
.single-product .gvf-arrow span { display:block; font-size:36px; font-weight:300; line-height:38px; }
.single-product .gvf-arrow--prev { left:0; }
.single-product .gvf-arrow--next { right:0; }
.single-product .gvf-stage:hover .gvf-arrow,.single-product .gvf-arrow:focus-visible { opacity:1; }
.single-product .gvf-counter { display:block; position:absolute; bottom:13px; right:13px; padding:5px 8px; border-radius:2px; background:rgba(255,255,255,.8); color:#222; font:11px/1.1 sans-serif; pointer-events:none; }
.single-product .gvf-single-image .gvf-arrow,.single-product .gvf-single-image .gvf-counter { display:none; }
/* Remplacer visuellement uniquement les select; ils restent présents pour WooCommerce. */
.single-product form.variations_form select.gvf-hidden-native { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; opacity:0!important; border:0!important; pointer-events:none!important; clip-path:inset(50%); }
.single-product .gvf-theme-hidden { display:none!important; }
.single-product .gvf-options { position:relative; z-index:2; display:flex; flex-wrap:wrap; gap:10px; margin:8px 0 15px; align-items:center; }
/* 5 pastilles couleur par ligne, sans modifier les boutons des autres attributs. */
.single-product .gvf-options.gvf-options--color { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); justify-items:center; width:100%; }
.single-product .gvf-option { flex:0 0 auto; position:relative; padding:0; cursor:pointer; display:inline-grid; place-items:center; transition:border-color .15s,transform .15s,box-shadow .15s; pointer-events:auto; color:#202020; font-family:inherit; font-weight:400; }
.single-product .gvf-option--color { width:51px; height:51px; border-radius:50%; background:#efefef; border:2px solid #fff; box-shadow:0 0 0 1px #d7d7d7; overflow:visible; }
.single-product .gvf-option--color img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.single-product .gvf-option--color span { font-size:12px; text-transform:uppercase; }
.single-product .gvf-option--color.is-selected { box-shadow:0 0 0 2px #111; }
.single-product .gvf-option--color:hover { box-shadow:0 0 0 2px #555; }
.single-product .gvf-option--text { min-width:42px; height:39px; padding:0 10px; border:1px solid #d9d9d9; border-radius:0; background:#fff; font-size:13px; }
.single-product .gvf-option--text.is-selected,.single-product .gvf-option--text:hover { background:#252525; border-color:#252525; color:#fff; }
.single-product .gvf-option.is-disabled { opacity:.3!important; cursor:not-allowed; box-shadow:none; }
.single-product .gvf-current { font-size:12px; text-transform:none; font-weight:400; color:#656565; margin-left:5px; }
.single-product .variations tr.gvf-attr-row { display:table-row; }
.single-product .variations tr.gvf-attr-row td.value { padding-bottom:5px; }
.single-product .variations tr.gvf-attr-row th.label { padding-bottom:0; }
.single-product .variations .reset_variations { display:inline-block; margin:3px 0; font-size:12px; }
/* Plein écran photo accessible au clavier et au tactile. */
body.gvf-lightbox-open { overflow:hidden!important; }
.gvf-lightbox[hidden] { display:none!important; }
.gvf-lightbox { position:fixed; inset:0; background:rgba(15,15,15,.96); z-index:999999; display:flex; align-items:center; justify-content:center; }
.gvf-lightbox-image { display:block; max-width:calc(100vw - 120px); max-height:calc(100vh - 60px); object-fit:contain; width:auto; height:auto; }
.gvf-lightbox button { appearance:none; border:0; background:transparent; color:white; cursor:pointer; position:absolute; z-index:2; padding:0; }
.gvf-lightbox-close { font-size:42px; top:12px; right:25px; width:48px; height:48px; line-height:42px; }
.gvf-lightbox-prev,.gvf-lightbox-next { top:calc(50% - 32px); height:64px; width:52px; font-size:54px; line-height:54px; }
.gvf-lightbox-prev { left:12px; }.gvf-lightbox-next { right:12px; }
.gvf-lightbox-count { position:absolute; bottom:16px; color:#fff; font:13px sans-serif; }
.gvf-lightbox button:focus-visible,.single-product .gvf-option:focus-visible,.single-product .gvf-thumb:focus-visible { outline:2px solid #5074cf; outline-offset:3px; }
@media (max-width:849px) {
  .single-product .gvf-gallery { grid-template-columns:56px minmax(0,1fr); gap:8px; }
  .single-product .gvf-thumbs { gap:5px; max-height:70vh; }
  .single-product .gvf-arrow { opacity:1; width:28px; height:35px; background:rgba(255,255,255,.6); }
  .single-product .gvf-arrow span { font-size:26px; line-height:26px; }
}
@media (max-width:480px) {
  .single-product .gvf-gallery { display:flex; flex-direction:column-reverse; gap:10px; }
  .single-product .gvf-stage { width:100%; }
  .single-product .gvf-hero { aspect-ratio:3/3.65; }
  .single-product .gvf-thumbs { flex-direction:row; width:100%; overflow-x:auto; overflow-y:hidden; max-height:none; gap:7px; }
  .single-product .gvf-thumb { width:58px; min-width:58px; }
  .single-product .gvf-option--color { width:46px; height:46px; }
  .gvf-lightbox-image { max-width:calc(100vw - 35px); max-height:calc(100vh - 120px); }
  .gvf-lightbox-prev,.gvf-lightbox-next { background:rgba(0,0,0,.35)!important; width:31px!important; font-size:36px!important; }
  .gvf-lightbox-prev { left:0; }.gvf-lightbox-next { right:0; }
}

/* Pastilles couleur sans image : vraies teintes, jamais de lettres tronquées « no ». */
.single-product .gvf-option--color .gvf-color-solid,
.single-product .gvf-option--color .gvf-color-unpictured { display:block; width:100%; height:100%; border-radius:50%; }
.single-product .gvf-option--color .gvf-color-unpictured { background:#e4e2df; }
.single-product .gvf-option--color:has(.gvf-color-name) { margin-bottom:18px; }
.single-product .gvf-option--color .gvf-color-name { position:absolute; top:calc(100% + 6px); left:50%; transform:translateX(-50%); width:max-content; max-width:95px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#555; font-size:10px; line-height:1.2; text-transform:none; }
.single-product .gvf-no-images .gvf-thumbs { display:none; }
.single-product .gvf-no-images.gvf-gallery { display:block; }
.single-product .gvf-no-images .gvf-hero { cursor:default; background:#f3f3f3; }
.single-product .gvf-no-photo { display:grid; place-items:center; width:100%; height:100%; color:#777; font:13px/1.3 sans-serif; }

/* Les options sans photo restent cliquables, même sans couleur reconnue. */
.single-product .gvf-option:not(:disabled) { pointer-events:auto; }
.single-product .gvf-option--color img,.single-product .gvf-color-solid,.single-product .gvf-color-unpictured,.single-product .gvf-color-name { pointer-events:none; }
/* Les noms des teintes non photographiées doivent rester lisibles en entier. */
.single-product .gvf-option--color:has(.gvf-color-name) { margin-bottom:26px; }
.single-product .gvf-option--color .gvf-color-name { max-width:100px; width:max-content; white-space:normal; overflow:visible; text-overflow:clip; text-align:center; line-height:1.15; }
