/* ===== UOR - ameliorations UX (2026-10-30) ===== */

/* --- Zoom image fiche produit (modale deplacee sous <body> par metfi-ux.js) --- */
body.uor-zoom-open .modal-backdrop { z-index: 100000; opacity: .88 !important; background: #000; }
#product-modal { z-index: 100001; }
#product-modal .modal-dialog { max-width: min(1000px, 94vw); width: auto; margin: 3vh auto; }
#product-modal .modal-content { position: relative; border: 0; border-radius: 8px; overflow: hidden; }
#product-modal .modal-body { padding: 0; }
#product-modal figure { margin: 0; background: #fff; text-align: center; }
#product-modal .js-modal-product-cover { width: 100% !important; height: auto !important; max-width: 100%; max-height: 78vh; object-fit: contain; cursor: zoom-out; }
#product-modal .image-caption { display: none; }
#product-modal #thumbnails { position: static !important; width: auto !important; height: auto !important; padding: 8px 12px 12px; background: #fff; border-top: 1px solid #eee; }
#product-modal .js-modal-mask { height: auto !important; overflow: visible !important; padding: 0 !important; }
#product-modal .js-modal-product-images { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 !important; transform: none !important; }
#product-modal .thumb-container { width: 64px !important; margin: 0 !important; }
#product-modal .js-modal-thumb.selected { border-color: #B80C09; }
#product-modal .js-modal-thumb { width: 64px; height: 64px; object-fit: contain; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
#product-modal .js-modal-thumb:hover { border-color: #B80C09; }
#product-modal .js-modal-arrows { display: none; }
.uor-zoom-close {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.75); color: #fff; font-size: 26px; line-height: 40px; text-align: center;
  cursor: pointer; padding: 0;
}
.uor-zoom-close:hover { background: #B80C09; }
body.uor-zoom-open #metfi-bottombar,
body.uor-zoom-open #spr-bubble,
body.uor-zoom-open #spr-panel { display: none !important; }
.product-cover img { cursor: zoom-in; }

/* --- Badge avis boutique : toujours au-dessus de la barre basse, sous le volet panier --- */
#spr-bubble {
  bottom: calc(var(--uor-bb-h, 0px) + 12px) !important;
  z-index: 9990 !important;
  transition: bottom .3s ease;
}
#spr-panel {
  bottom: calc(var(--uor-bb-h, 0px) + 60px) !important;
  z-index: 9990 !important;
}
/* grand ecran : la barre centree laisse la place au badge dans le coin, il reste en bas */
@media (min-width: 1300px) {
  #spr-bubble { bottom: 12px !important; }
  #spr-panel { bottom: 60px !important; }
}

/* --- Animation d'ajout au panier : rebond du bouton PANIER --- */
.uor-bump { animation: uor-bump .45s ease; }
@keyframes uor-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18); } }

/* --- Paiement en 4 fois sans frais (product-prices.tpl, produits de 100 a 2000 EUR) --- */
.uor-4x {
  display: inline-flex; flex-direction: column;
  margin: 10px 0 4px; padding: 9px 16px;
  background: #111; color: #fff; border-radius: 6px; line-height: 1.2;
}
.uor-4x__main { font-size: 15px; color: #fff; text-transform: uppercase; letter-spacing: .3px; }
.uor-4x__main strong { font-size: 22px; font-weight: 800; color: #fff; white-space: nowrap; text-transform: none; }
.uor-4x__main small { font-size: 12px; text-transform: none; color: rgba(255,255,255,.8); }
.uor-4x__sub { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 3px; }

/* --- Bandeau livraison / retours sous le bouton d'ajout au panier --- */
.uor-hidden-ship { display: none !important; }
.uor-promise {
  display: flex; flex-direction: column; gap: 8px;
  margin: 10px 0 14px;
}
.uor-promise__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: #fff;
  border: 1px solid #e3e3e3; border-left: 4px solid #1f9d55; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.uor-promise__item--ret { border-left-color: #B80C09; }
.uor-promise__ico {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #eaf7ef; color: #1f9d55;
}
.uor-promise__item--ret .uor-promise__ico { background: #fbeaea; color: #B80C09; }
.uor-promise__txt { display: flex; flex-direction: column; min-width: 0; }
.uor-promise__main { font-size: 15px; color: #111; line-height: 1.3; }
.uor-promise__main strong { font-weight: 800; }
.uor-promise__sub { font-size: 12px; color: #666; margin-top: 2px; line-height: 1.3; }

/* --- Pied de page rouge (reassurance) en une seule colonne sur mobile --- */
@media (max-width: 767px) {
  section:has(> .elementor-container #footer_top) { padding-left: 0 !important; padding-right: 0 !important; }
  section:has(> .elementor-container #footer_top) > .elementor-container,
  section:has(> .elementor-container #footer_top) .elementor-row { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  #footer_top { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  #footer_top > .elementor-column-wrap { width: 100%; }
  #footer_top > .elementor-column-wrap > .elementor-widget-wrap {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    gap: 0; padding: 8px 20px !important;
  }
  #footer_top .elementor-widget-text-editor {
    width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important; margin: 0 !important;
    padding: 14px 0 !important; border-bottom: 1px solid rgba(255,255,255,.25);
  }
  #footer_top .elementor-widget-text-editor:last-child { border-bottom: 0; }
  #footer_top .flex_column.align_center {
    display: grid !important; grid-template-columns: 44px 1fr; column-gap: 14px;
    align-items: center; text-align: left;
  }
  #footer_top .flex_column.align_center > p { margin: 0 !important; text-align: left !important; }
  #footer_top .flex_column.align_center > p:first-child { grid-row: span 2; display: flex; justify-content: center; }
  #footer_top .flex_column.align_center > p:first-child img { width: 30px !important; height: auto !important; }
  #footer_top .flex_column.align_center > p.fs_24 { font-size: 20px !important; line-height: 1.1; }
  #footer_top .flex_column.align_center > p.fs16 { font-size: 15px !important; line-height: 1.3; }
}
