/* =====================================================================
   FUIX — MOBILE HEADER COMPACT + FIX SOTTOMENU OFF-CANVAS
   Modifica: custom.css — produzione (public_html)
   ===================================================================== */

/* --- FIX BUG: sottomenu off-canvas non si apriva ---
   Il CSS max-height:0 qui sotto blocca jQuery slideDown() nel menu
   off-canvas. Questo override ripristina il comportamento nativo JS
   per il contesto off-canvas, lasciando intatta la regola inline.    */
@media (max-width: 991px) {
  .off-canvas-nav-megamenu .leo-top-menu .dropdown-menu.level1,
  .off-canvas-nav-megamenu .dropdown-menu.level1 {
    max-height: none !important;
    overflow: visible !important;
    transition: none !important;
  }
}


/* --- MOBILE HEADER FINALE v2
   Struttura reale:
     ApRow > ApColumn:1 col-sp-10 (hamburger) — col-xs-12 = 100% stacking
     ApRow > ApColumn:2 col-sp-12 (search+cart+account) — col-xs-12 = 100% stacking
   Soluzione: Col2 in flow normale, Col1 (hamburger) position:absolute sopra di essa
   Logo: header-nav position:absolute centrato
   Badge: contenuto dentro il viewport                                               */

@media (max-width: 991px) {

  /* ── Struttura ── */
  #header .header-container { position: relative !important; background: #fff !important; }
  #header .header-banner    { display: none !important; }
  #header .bottomnav        { display: none !important; }

  /* ── Logo: absolute centrato sui 52px ── */
  #header .header-nav {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 52px !important; z-index: 1 !important;
    pointer-events: none !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; margin: 0 !important;
  }
  #header .topnav,
  #header .topnav .container, #header .topnav .inner,
  #header .topnav .ApRow,    #header .topnav .ApColumn {
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; margin: 0 !important; width: auto !important;
  }
  #header .topnav a   { pointer-events: auto !important; display: flex !important; }
  #header .topnav img.logo { max-height: 50px !important; width: auto !important; display: block !important; }

  /* ── header-top ── */
  #header .header-top { padding: 0 !important; background: #fff !important; }
  #header .header-top .container { padding: 0 !important; max-width: 100% !important; }
  #header .header-top .inner     { padding: 0 !important; }

  /* ── ApRow: flex row — Bootstrap col-xs-12 overridden con max-width ── */
  #header .header-top .ApRow {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important; /* col1 rimane 52px, hamburger allineato a logo/icone */
    position: relative !important;
    background: #fff !important;
    border-bottom: 1px solid #e8e8e8 !important;
    margin: 0 !important; padding: 0 !important;
    min-height: 52px !important;
  }

  /* ── Col 1 (hamburger): larghezza fissa, sovrascrive Bootstrap col-xs-12 ── */
  #header .header-top .ApRow .ApColumn:nth-child(1) {
    flex: 0 0 52px !important;
    max-width: 52px !important;      /* override Bootstrap max-width:100% */
    width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    position: static !important;    /* NON absolute: lascia funzionare il menu off-canvas */
    z-index: 2 !important;
    overflow: visible !important;
  }
  #header .header-top .ApMegamenu {
    display: flex !important; align-items: center !important;
    width: 52px !important; min-height: 52px !important;
    padding: 0 !important; margin: 0 !important; overflow: visible !important;
  }
  #header .header-top .navbar-header { margin: 0 !important; display: flex !important; }
  #header .header-top .navbar-toggler {
    width: 52px !important; height: 52px !important;
    padding: 0 !important; margin: 0 !important;
    border: none !important; background: transparent !important;
    display: flex !important;
    justify-content: center !important; align-items: center !important;
    cursor: pointer !important;
    font-size: 24px !important; color: #111 !important;
    line-height: 1 !important;
  }
  /* L'hamburger usa &#9776; (testo), non span.icon-bar */
  .off-canvas-active .navbar-header .navbar-toggler {
    background: transparent !important;
    color: #111 !important;
  }
  /* leo-top-menu: nascosta solo quando Bootstrap NON ha ancora aggiunto .in */
  #header .header-top .leo-top-menu.collapse:not(.in) {
    display: none !important;
  }

/* === FUIX MOBILE OFFCANVAS MENU FINAL FIX === */
/* Il menu riceve .collapse.in da Bootstrap ma veniva nascosto dalla regola
   sopra (troppo generica). Questo blocco sovrascrive con forza massima. */
@media (max-width: 991px) {
  #header .header-top .leo-top-menu.megamenu-off-canvas.collapse.in,
  #header .header-top .leo-top-menu.megamenu-off-canvas.in,
  #header .header-top .leo-megamenu.cavas_menu.active .leo-top-menu.megamenu-off-canvas,
  body #header .header-top .leo-top-menu.megamenu-off-canvas.collapse.in {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #header .header-top .leo-megamenu.cavas_menu.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
  }
}

  /* ── Col 2 (icone+search): cresce, position:relative per account/cart abs ── */
  #header .header-top .ApRow .ApColumn:nth-child(2) {
    flex: 1 1 auto !important;
    max-width: calc(100% - 52px) !important;  /* override Bootstrap max-width:100% */
    width: auto !important;
    min-height: 52px !important;
    padding: 52px 0 0 0 !important;           /* riserva 52px in cima per account/cart abs */
    position: relative !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    overflow: visible !important;
  }

  /* Account: abs top-right di col 2, allineato con hamburger (stessa height) */
  #header .header-top .ApRow .ApColumn:nth-child(2) #leo_block_top {
    position: absolute !important;
    top: 0 !important; right: 52px !important;
    width: 46px !important; height: 52px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    margin: 0 !important; padding: 0 !important; float: none !important;
    z-index: 3 !important; pointer-events: auto !important;
  }
  #header .header-top #leo_block_top .popup-title {
    width: 46px !important; height: 52px !important; padding: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #111 !important; font-size: 20px !important;
  }

  /* Carrello: abs, stesso top:0 e height:52px → allineamento garantito */
  #header .header-top .ApRow .ApColumn:nth-child(2) #_desktop_cart {
    position: absolute !important;
    top: 0 !important; right: 4px !important;
    width: 48px !important; height: 52px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    margin: 0 !important; padding: 0 !important; float: none !important; z-index: 3 !important;
    pointer-events: auto !important;
  }
  #header .header-top #_desktop_cart .blockcart,
  #header .header-top #_desktop_cart .cart-preview {
    width: 48px !important; height: 52px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; position: static !important;
  }
  #header .header-top #_desktop_cart .blockcart .header {
    width: 48px !important; height: 52px !important;
    padding: 0 !important; position: relative !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
  }
  #header .header-top #_desktop_cart .blockcart .header a,
  #header .header-top #_desktop_cart .blockcart .header i {
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #111 !important; font-size: 20px !important; text-decoration: none !important;
  }
  /* Badge: in alto a destra del .header (position:relative) */
  #header .header-top #_desktop_cart .cart-products-count {
    position: absolute !important;
    top: 5px !important; right: 3px !important;
    background: #111 !important; color: #fff !important;
    font-size: 9px !important; font-weight: 700 !important;
    min-width: 15px !important; height: 15px !important; border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 2px !important; line-height: 1 !important;
    margin: 0 !important; vertical-align: unset !important;
    pointer-events: none !important; z-index: 3 !important;
  }

  /* Search: pointer-events riabilitati per l'input */
  #header .header-top .ApRow .ApColumn:nth-child(2) #leo_search_block_top {
    pointer-events: auto !important;
    width: calc(100% + 52px) !important;   /* +52px = larghezza col1, estende da x=0 */
    margin-left: -52px !important;          /* shift a sinistra per coprire area col1 */
    display: flex !important; align-items: center !important;
    height: 44px !important; padding: 6px 12px !important;
    background: #f5f5f5 !important; border-top: 1px solid #e8e8e8 !important;
    box-sizing: border-box !important;
  }
  #header .header-top #leo_search_block_top .title_block,
  #header .header-top #leo_search_block_top .list-cate-wrapper,
  #header .header-top #leo_search_block_top .ac_results,
  #header .header-top #leo_search_block_top .leoproductsearch-loading { display: none !important; }
  #header .header-top #leo_search_block_top form#leosearchtopbox {
    width: 100% !important; display: flex !important; align-items: center !important; margin: 0 !important; padding: 0 !important;
  }
  #header .header-top #leo_search_block_top .block_content {
    width: 100% !important; display: flex !important; align-items: center !important; flex-wrap: nowrap !important;
  }
  #header .header-top #leo_search_block_top .leoproductsearch-result {
    flex: 1 1 auto !important; display: flex !important; align-items: center !important; min-width: 0 !important;
  }
  #header .header-top #leo_search_block_top input.search_query {
    flex: 1 1 auto !important; width: 100% !important; height: 32px !important;
    border: 1px solid #ddd !important; border-right: none !important; border-radius: 3px 0 0 3px !important;
    padding: 0 10px !important; font-size: 13px !important; background: #fff !important; color: #333 !important;
    outline: none !important; box-shadow: none !important; box-sizing: border-box !important;
  }
  #header .header-top #leo_search_block_top input.search_query::placeholder { color: #bbb !important; }
  #header .header-top #leo_search_block_top #leo_search_top_button {
    flex: 0 0 auto !important; height: 32px !important; width: 42px !important; padding: 0 !important;
    background: #111 !important; border: none !important; border-radius: 0 3px 3px 0 !important; color: #fff !important;
    display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important;
  }
  #header .header-top #leo_search_block_top #leo_search_top_button i { font-size: 17px !important; line-height: 1 !important; }

  /* Social: solo footer */
  #header .header-top .ApRow .ApColumn:nth-child(2) .block-social { display: none !important; }

}

/* --- MOBILE MEGAMENU COMPLETO + FULL WIDTH ADATTIVO + BORDI ARROTONDATI + NESSUNA RIGA GIALLO --- */
@media (max-width: 991px) {

  /* Menu principale verticale:
     overflow:visible per non tagliare i dropdown figli */
  .leo-top-menu .navbar-nav.megamenu.horizontal {
    display: flex !important;
    flex-direction: column !important;
    text-align: left;
    gap: 0;
    background-color: #222222 !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
    overflow: visible !important;   /* FIX: era hidden, tagliava i dropdown */
  }

  /* Voci principali allineate */
  .leo-top-menu .navbar-nav.megamenu.horizontal > .nav-item {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* Link principali */
  .leo-top-menu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px !important;
    font-size: 16px;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    width: 100%;
    box-sizing: border-box;
    background: none !important;
  }

  /* Rimuove pseudo-elementi ::before e ::after */
  .leo-top-menu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link::before,
  .leo-top-menu .navbar-nav.megamenu.horizontal > .nav-item > .nav-link::after {
    content: none !important;
    border: none !important;
    background: none !important;
  }

  /* Caret (+) per aprire sottocategorie */
  .leo-top-menu .navbar-nav.megamenu.horizontal > .nav-item.parent > .nav-link .caret {
    display: inline-block;
    transition: transform 0.4s ease;
    border-top-color: #ffffff !important;
    cursor: pointer;
  }

  /* Dropdown chiuso (stato di default) */
  .leo-top-menu .dropdown-menu.level1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0 15px !important;
    background-color: #222222 !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 0 10px 10px;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  /* Dropdown aperto — supporta sia .open che .open-sub (entrambe usate dal tema) */
  .leo-top-menu .nav-item.parent.open > .dropdown-menu.level1,
  .leo-top-menu .nav-item.parent.open-sub > .dropdown-menu.level1,
  .leo-top-menu .nav-item.open > .dropdown-menu.level1,
  .leo-top-menu .nav-item.open-sub > .dropdown-menu.level1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 10px 15px !important;
    background-color: #555555 !important;
    position: relative !important;
  }

  /* Link sottocategorie */
  .leo-top-menu .dropdown-menu.level1 .nav-item > .nav-link {
    padding: 8px 0;
    font-size: 15px;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.10) !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* Caret ruotato quando aperto — supporta sia .open che .open-sub */
  .leo-top-menu .nav-item.parent.open > .nav-link .caret,
  .leo-top-menu .nav-item.parent.open-sub > .nav-link .caret,
  .leo-top-menu .nav-item.open > .nav-link .caret,
  .leo-top-menu .nav-item.open-sub > .nav-link .caret {
    transform: rotate(90deg);
  }
}
/* Fuix.com - Spazia meglio ricerca e carrello nell'header (desktop + mobile) */

/* Blocco header destro: search, cart, user ecc. */
#header .header_right, 
#header .top-nav, 
#search_block_top, 
.shopping_cart, 
.cart_block,
#header .right-nav,
#header .user-info,
#header .blockcart {
    margin-left: 15px !important;   /* aumenta spazio a sinistra tra elementi */
    margin-right: 10px !important;  /* spazio a destra se serve */
}

/* Specifico: separa SEARCH dal CARRELLO */
#search_block_top,
.search-widget,
#header .search-widget,
.blocksearch,
.search_block_top {
    margin-right: 25px !important;  /* <-- chiave: spazio tra search e cart – prova 30px o 35px se vuoi di più */
    padding-right: 15px !important;
}

/* Icona carrello / blocco cart */
.shopping_cart,
.cart_block,
.blockcart_preview,
#header .cart-block {
    margin-left: 20px !important;   /* sposta carrello più a destra */
    padding-left: 10px !important;
}

/* Su mobile: evita che si sovrappongano o diventino troppo stretti */
@media (max-width: 991px) {  /* tablet/mobile landscape */
    #search_block_top,
    .search-widget {
        margin-right: 18px !important;  /* un po' meno su mobile per non spingere troppo */
    }
    
    .shopping_cart,
    .cart_block {
        margin-left: 15px !important;
    }
    
    /* Se la ricerca diventa icona solo (lente), rendila più cliccabile */
    .search-widget .search-icon,
    #search-icon {
        font-size: 22px !important;     /* lente più grande */
        padding: 10px !important;
    }
}

/* Extra: se hai account/wishlist prima del cart, spaziali tutti */
#header .user-info,
#wishlist_block,
.compare-form,
#header .links a {
    margin: 0 12px !important;  /* spazio uniforme tra icone utente */
}
/* Layout prezzi: più ordinato */
/* ===================================================================
   FUIX — PRODUCT CARD PRICES (listing, ricerca, homepage)
   Layout:
     1. Prezzo finale  → grande, bold, nero  (hero)
     2. Prezzo originale → piccolo, grigio, sbarrato
     3. Badge sconto   → chip arancione compatto (solo se sconto)

   FORMATTAZIONE ORIGINALE (backup per eventuale ripristino):
     .product-price-and-shipping            → flex-col, align:center, gap:2px
     .regular-price                         → #8a8a8a, line-through, 14px, w:400
     .price                                 → #111, 26px, w:900
     .discount-amount / .discount-percentage → #d71920 (rosso), 13px, w:700
   =================================================================== */

.product-price-and-shipping {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 2px 0 !important;
}

/* 1. PREZZO FINALE — hero */
.product-price-and-shipping .price {
  order: 1 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #111 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.2px !important;
}
/* Annulla il rosso del tema quando c'è sconto */
.thumbnail-container .product-price-and-shipping .regular-price + span.price {
  color: #111 !important;
}

/* 2. PREZZO ORIGINALE — sbarrato discreto */
.product-price-and-shipping .regular-price {
  order: 2 !important;
  color: #aaa !important;
  text-decoration: line-through !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  opacity: 1 !important;
}

/* 3. BADGE SCONTO — chip arancione: sostituisce il testo rosso */
.product-price-and-shipping .discount-amount,
.product-price-and-shipping .discount-percentage {
  order: 3 !important;
  display: inline-block !important;
  background: #f28c28 !important;   /* arancione brand FUIX */
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  padding: 2px 6px 2px 5px !important;
  border-radius: 2px !important;
  border: none !important;
  margin: 4px 0 0 0 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}

/* Tasse incluse più piccolo */
.product-prices .tax-shipping-delivery-label,
.product-prices .tax-label,
.product-prices .tax-info {
  font-size: 9px !important;
  color: #888 !important;
  font-weight: 400 !important;
  display: block;
  margin-top: 4px;
}

/* Bottone add to cart più deciso */
.btn-primary,
button.add-to-cart {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

/* Riduce spazio tra varianti e bottone */
.product-variants,
.product-add-to-cart,
.product-actions {
  margin-bottom: 15px !important;
}

/* Tab descrizione attivo più visibile */
.nav-tabs .nav-link.active {
  border-bottom: 2px solid #f28c28 !important;
  font-weight: 600;
}

/* --- Tabs prodotto: colonna sinistra + box contenuto a destra --- */

/* Contenitore generale tabs */
.product-tabs,
.tabs,
.product-information {
  margin-top: 25px;
}

/* Menu tabs (sinistra) */
.nav-tabs {
  border: 1px solid #eee !important;
  border-right: 0 !important;
  background: #fafafa;
}

/* Singole voci tab */
.nav-tabs .nav-link {
  border: 0 !important;
  border-left: 3px solid transparent !important;
  padding: 14px 18px !important;
  margin: 0 !important;
  color: #333 !important;
  font-weight: 500;
  background: transparent !important;
}

/* Hover */
.nav-tabs .nav-link:hover {
  background: #fff !important;
}

/* Tab attivo: evidenza forte */
.nav-tabs .nav-link.active {
  background: #fff !important;
  border-left-color: #f28c28 !important;   /* arancione brand */
  font-weight: 700 !important;
}

/* BOX contenuto a destra */
.tab-content,
.product-description,
#product-details,
#product-comments,
.product-tabs-content {
  border: 1px solid #eee !important;
  background: #fff !important;
  padding: 20px 22px !important;
  min-height: 140px;
}

/* (opzionale) separazione visiva tra colonna tabs e contenuto */
.nav-tabs {
  box-shadow: none;
}


.tab-content .card,
.tab-content .box,
.tab-content .product-description,
.tab-content .data-sheet {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Rimuove box interno in dettagli prodotto */
#product-details,
.product-features,
.product-reference,
.product-manufacturer,
.product-availability,
.product-data {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}


.product-features dt {
  font-weight: 600;
  color: #222;
}

.product-features dd {
  color: #666;
}

.product-features dl {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
}

.fuix-badge-saldi{
  position:absolute;
  top:10px;
  left:10px;
  z-index:30;
  padding:5px 10px;
  background:#111;
  color:#fff;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  border-radius:2px;
  border-left:3px solid #d71920;
}

/* Quando è selezionata una taglia non disponibile (testo della select) */
#product .product-variants select.is-unavailable-selected{
  border-color: rgba(216,0,0,0.35) !important;
}


/* Tentativo sbarrato (dipende dal browser) */
#group_1 option[data-fuix-unavail="1"] {
  text-decoration: line-through;
  opacity: .55;
}


#group_2 li.fuix-unavailable,
#group_2 li.fuix-unavailable * {
  cursor: pointer;
}

/* Nasconde SOLO finché la matrix non è pronta */
body.fuix-matrix-loading #group_2,
body.fuix-matrix-loading #group_1 {
  visibility: hidden;
}

/* Fallback: se per qualunque motivo JS non parte, dopo un po' NON restare nascosto */
body.fuix-matrix-loading.fuix-matrix-timeout #group_2,
body.fuix-matrix-loading.fuix-matrix-timeout #group_1 {
  visibility: visible;
}


/* Quando pronto */
body.fuix-matrix-ready #group_1,
body.fuix-matrix-ready #group_2 {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .12s ease;
}

/* Copertina prodotto: sempre responsive già al primo paint */
.product-cover img,
.product-detail .product-cover img,
#product .product-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Evita che il wrapper esploda prima che slick calcoli le altezze */
.product-cover,
.product-detail .product-cover {
  max-width: 100%;
  overflow: hidden;
}


/* AGGIUNTA DA CONTROLLARE!!!!!!!!!!!! */
/* PRODUCT PAGE - Size/Variant select look */
#product .product-variants select.form-control,
#product .product-variants select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  height: 50px;              
  padding: 10px 44px 10px 14px; /* spazio per la freccia */
  border-radius: 0px;
  border: 1px solid #d8d8d8;
  background: #fff;

  font-size: 14px;
  line-height: 1.2;
  color: #111;
  box-shadow: none;
  cursor: pointer;
}

/* freccia custom (SVG inline) */
#product .product-variants select.form-control,
#product .product-variants select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

/* focus coerente (non “blu windows”) */
#product .product-variants select:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,.12);
}

/* hover */
#product .product-variants select:hover {
  border-color: #bdbdbd;
}

/* disabled (se succede) */
#product .product-variants select:disabled {
  opacity: .6;
  cursor: not-allowed;
  background-color: #f6f6f6;
}


@media (max-width: 767px) {
  #product .list-images-mobile,
  #product .list-images-mobile .slick-list,
  #product .list-images-mobile .slick-track,
  #product .list-images-mobile .slick-slide {
    height: auto !important;
  }

  #product .list-images-mobile .slick-slide {
    overflow: hidden !important;
  }

  #product .list-images-mobile .slick-slide img,
  #product .list-images-mobile img.js-thumb,
  #product .list-images-mobile img.thumb {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
  }
}


.product-miniature .thumbnail-container{
  position: relative;
}

.product-miniature .product-image{
  overflow: hidden;
}

.product-miniature .product-image,
.product_list .product-miniature .product-image,
.products .product-miniature .product-image{
  position: relative;
  overflow: hidden;
}

.fuix-product-prices{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  margin-bottom:8px;
}

.fuix-product-price-topline{
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1;
}

.fuix-product-price-topline .regular-price{
  color:#8a8a8a !important;
  text-decoration:line-through !important;
  font-size:18px;
  font-weight:400 !important;
}

.fuix-product-price-topline .discount-amount,
.fuix-product-price-topline .discount-percentage{
  color:#d71920 !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  font-size:14px;
  font-weight:700 !important;
}

.fuix-product-price-main .current-price{
  color:#111 !important;
  font-size:42px;
  font-weight:900 !important;
  line-height:1;
}

/* ===== FUIX - PRODUCT PAGE PRICES elegante ===== */
.product-detail .product-prices{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:4px !important;
}

.product-detail .product-prices .product-discount{
  margin:0 !important;
  line-height:1 !important;
}

.product-detail .product-prices .product-discount .regular-price{
  color:#8a8a8a !important;
  text-decoration:line-through !important;
  font-size:18px !important;
  font-weight:400 !important;
  opacity:1 !important;
}

.product-detail .product-prices .product-price{
  margin:0 !important;
}

.product-detail .product-prices .product-price .current-price{
  display:flex !important;
  align-items:baseline !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  line-height:1 !important;
}

.product-detail .product-prices .current-price-value{
  color:#111 !important;
  font-size:42px !important;
  font-weight:900 !important;
  line-height:1 !important;
}

.product-detail .product-prices .discount.discount-amount,
.product-detail .product-prices .discount.discount-percentage{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:#d71920 !important;
  padding:0 !important;
  margin:0 !important;
  font-size:14px !important;
  font-weight:700 !important;
  text-transform:none !important;
}

.fuix-trust-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 6px;
}

@media (max-width: 768px) {
  .fuix-trust-box {
    column-gap: 10px;
  }
}

.fuix-trust-item {
  font-size: 13px;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
}


.fuix-trust-item::before {
  content: "";
  margin-right: 6px;
  font-size: 12px;
  color: #222;
  line-height: 1.35;
  flex: 0 0 auto;
}

.fuix-reviews-empty {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}
/* =====================================================================
   FUIX — FOOTER: LOGO CENTRATO + SOCIAL ICONS
   ===================================================================== */

/* --- Logo centrato nel footer (tutte le larghezze) --- */
.footer-center img.logo,
.footer-container img.logo {
  display: block !important;
  margin: 0 auto !important;
  max-height: 60px !important;
  width: auto !important;
}
.footer-center .ApColumn a:first-of-type,
.footer-container .ApColumn a:first-of-type {
  display: block;
  text-align: center;
}

/* --- Social icons nel footer: colorati, grandi, centrati --- */
.footer-center .block-social,
.footer-container .block-social {
  text-align: center !important;
  padding: 18px 0 10px !important;
}
.footer-center .block-social ul,
.footer-container .block-social ul {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-center .block-social li,
.footer-container .block-social li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #333 !important;
  color: #fff !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.footer-center .block-social li:hover,
.footer-container .block-social li:hover {
  transform: scale(1.1);
}
.footer-center .block-social li::before,
.footer-container .block-social li::before {
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
/* Colori brand */
.footer-center .block-social li.facebook,
.footer-container .block-social li.facebook {
  background: #1877F2 !important;
}
.footer-center .block-social li.facebook:hover,
.footer-container .block-social li.facebook:hover {
  background: #0d65d9 !important;
}
.footer-center .block-social li.instagram,
.footer-container .block-social li.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}
.footer-center .block-social li.instagram:hover,
.footer-container .block-social li.instagram:hover {
  opacity: 0.85;
}

/* =====================================================================
   FUIX — PRODUCT PAGE MOBILE (max-width: 767px)
   Selettori verificati:
     Titolo:   .product-detail-name  (h1, theme: 24px bold uppercase)
     Prezzo:   .product-prices .current-price-value (custom: 42px → ridotto)
     Sconto:   .product-price .discount.discount-amount/percentage
     Fly cart: .leo-fly-cart.solo.type-fixed (leofeature, position:fixed bottom-left)
   Desktop: non toccato (media query mobile-only)
   ===================================================================== */

@media (max-width: 767px) {

  /* ── 1. TITOLO PRODOTTO ── più compatto, meno pesante */
  .page-product .product-detail-name {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    margin: 10px 0 8px !important;
  }

  /* ── 2. BRAND/MANUFACTURER ── meno spazio */
  .page-product .product-manufacturer {
    margin-bottom: 2px !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: #888 !important;
  }

  /* ── 3. SOCIAL SHARING + RECENSIONE ── non invadono prima del prezzo */
  .page-product .social-sharing {
    margin: 6px 0 4px !important;
  }
  .page-product .social-sharing span,
  .page-product .social-sharing ul { font-size: 12px !important; }
  .page-product .social-sharing li { width: 26px !important; height: 26px !important; line-height: 26px !important; }
  .page-product .product-reviews-block,
  .page-product #product-comments-list-header { margin: 4px 0 !important; font-size: 12px !important; }

  /* ── 4. PREZZO PRODOTTO ── ridotto da 42px a 32px */
  .page-product .product-detail .product-prices .current-price-value,
  .page-product .product-prices .current-price-value {
    font-size: 32px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  /* ── 5. PREZZO SBARRATO (old price) ── */
  .page-product .product-prices .product-discount .regular-price {
    font-size: 14px !important;
    color: #aaa !important;
  }

  /* ── 6. BADGE SCONTO ── chip arancione (come listing), elimina rosso "Salvare..." */
  .page-product .product-price .discount.discount-amount,
  .page-product .product-price .discount.discount-percentage,
  .page-product .current-price .discount {
    display: inline-block !important;
    background: #f28c28 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 3px 7px !important;
    border-radius: 2px !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 0 0 8px !important;
    vertical-align: middle !important;
    color: #fff !important;   /* annulla #d71920 dal custom.css */
  }

  /* ── 7. SPAZIATURA BLOCCO PREZZI ── */
  .page-product .product-prices {
    margin: 6px 0 10px !important;
  }

  /* ── 8. FLY CART ── nascosto su product page mobile (fase 1 CSS)
     Il pulsante "Aggiungi al carrello" è già visibile nella parte alta;
     il fly cart causa sovrapposizioni. */
  body.page-product .leo-fly-cart {
    display: none !important;
  }

}

/* tablet 768–991: solo fix titolo e prezzo, fly cart nascosto */
@media (min-width: 768px) and (max-width: 991px) {
  .page-product .product-detail-name {
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
  }
  .page-product .product-prices .current-price-value {
    font-size: 34px !important;
  }
  body.page-product .leo-fly-cart {
    display: none !important;
  }
}

/* =====================================================================
   FUIX — GRIGLIA PRODOTTI MOBILE ALLINEATA (2 colonne, search/category)

   Struttura DOM reale (da leo_col_products.tpl + product.tpl):
     .product_list.grid.plist-center > .row         ← Bootstrap row
       > .ajax_block_product.col-sp-6               ← cella griglia (outer)
           > .js-product.product.col-sp-6            ← PROBLEMA: inner div col-sp-6 = float+50%
               > article.product-miniature
                   .thumbnail-container
                     .product-image.thumbnail-top   ← immagine (lazy load → altezza iniziale 0)
                       .functional-buttons          ← position:absolute bottom:0 sull'immagine
                     .product-meta
                       .product-description
                         .product-title
                         .product-price-and-shipping  ← variabile (prezzo ± barrato ± badge)
                         .product-description-short   ← variabile (testo prodotto, lunghezza diversa)

   Cause del disallineamento:
   1. Il .js-product.product.col-sp-6 dentro ajax_block_product eredita float+50%
      → contenuto schiacciato al 25% della larghezza
   2. Le img hanno loading=lazy → altezza 0 fino al caricamento → shift al load
   3. .product-description-short ha testo di lunghezza variabile per prodotto
   4. Classi legacy first-in-line/last-in-line del tema possono avere clear/margini

   Soluzione:
   - CSS Grid sul .row con align-items:stretch (celle stessa altezza per riga)
   - Reset float/width su .ajax_block_product E su .js-product.product (doppio strato)
   - aspect-ratio:1/1 su .product-image.thumbnail-top (stabilizza prima del lazy load)
   - flex column sull'intera catena interna (article → thumbnail-container → product-meta)
   - Nascondi .product-description-short su mobile listing (testo variabile)
   - min-height su title e price-and-shipping per le zone a contenuto variabile

   Scope: body#search e body#category, max-width:767px. Desktop invariato.
   =================================================================== */
@media (max-width: 767px) {

  /* 1. CSS Grid sul .row → righe di uguale altezza */
  body#search  .product_list.grid > .row,
  body#category .product_list.grid > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 10px !important;
    align-items: stretch !important;
  }

  /* 2. Reset float/width su .ajax_block_product (outer column) */
  body#search  .product_list.grid > .row > .ajax_block_product,
  body#category .product_list.grid > .row > .ajax_block_product {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 3. Neutralizza classi legacy del tema (clear/margin da first-in-line, last-in-line ecc.) */
  body#search  .ajax_block_product.first-in-line,
  body#search  .ajax_block_product.last-in-line,
  body#search  .ajax_block_product.last-line,
  body#search  .ajax_block_product.first-item-of-mobile-line,
  body#search  .ajax_block_product.last-item-of-mobile-line,
  body#category .ajax_block_product.first-in-line,
  body#category .ajax_block_product.last-in-line,
  body#category .ajax_block_product.last-line,
  body#category .ajax_block_product.first-item-of-mobile-line,
  body#category .ajax_block_product.last-item-of-mobile-line {
    clear: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 4. CORE FIX: reset inner .js-product.product.col-sp-6
        leo_col_products.tpl passa le stesse classi colonna sia all'outer .ajax_block_product
        sia all'inner div di product.tpl → doppio col-sp-6 → float+50% annidato.
        Resettiamo qui l'inner wrapper per farlo diventare 100% della cella grid. */
  body#search  .ajax_block_product > .js-product,
  body#category .ajax_block_product > .js-product {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 5. Article: flex column a tutta altezza */
  body#search  article.product-miniature,
  body#category article.product-miniature {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  /* 6. thumbnail-container: flex column a tutta altezza */
  body#search  .product-miniature .thumbnail-container,
  body#category .product-miniature .thumbnail-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  /* 7. Immagine prodotto: aspect-ratio 1:1 stabilizza l'area prima del lazy load.
        Copre ENTRAMBI i template:
        a) product.tpl standard  → .product-image.thumbnail-top
        b) plist-center (attivo) → .product-image  (senza thumbnail-top)
        Le img hanno loading=lazy → senza altezza dichiarata l'area è 0 fino al caricamento.
        aspect-ratio garantisce spazio costante prima e dopo il lazy-load. */
  body#search  .product-miniature .product-image.thumbnail-top,
  body#category .product-miniature .product-image.thumbnail-top,
  body#search  .product_list.plist-center .product-miniature .product-image,
  body#category .product_list.plist-center .product-miniature .product-image {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  body#search  .product-miniature .product-image.thumbnail-top img,
  body#category .product-miniature .product-image.thumbnail-top img,
  body#search  .product_list.plist-center .product-miniature .product-image img,
  body#category .product_list.plist-center .product-miniature .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* 7b. FIX PALLINI CAROUSEL (causa principale dello scalino residuo)
         Il template plist-center rende .product-list-images-mobile per TUTTI i prodotti
         su mobile (AT_ATHENA_LMOBILE_SWIPE=1 nel DB). Slick viene inizializzato
         SOLO per prodotti con >1 immagini → .slick-dots appare a bottom:-25px.
         Prodotto con 1 immagine: .product-list-images-mobile senza slick, senza dots.
         Prodotto con >1 immagini: .product-list-images-mobile + slick + dots.
         → Senza padding-bottom, l'area immagine è visivamente diversa tra le due card
           anche se CSS Grid le forza alla stessa altezza di cella.
         Fix: padding-bottom 28px uniforme su .product-list-images-mobile.
              Card con dots: i dots a bottom:-25px atterrano dentro il padding (a 3px).
              Card senza dots: padding vuoto di 28px = stesso spazio visivo. */
  body#search  .ajax_block_product .product-list-images-mobile,
  body#category .ajax_block_product .product-list-images-mobile {
    padding-bottom: 28px !important;
    box-sizing: content-box !important;
  }

  /* Dots su una sola riga — impedisce il wrap quando ci sono molti pallini.
     Il tema usa .slick-dots { display:block } con li { inline-block }:
     su card strette (≈182px) i dots si avvolgono su 2+ righe.
     Fix: display:flex + flex-wrap:nowrap + overflow:hidden → sempre 1 riga,
     pallini in eccesso tagliati. max-height:22px = confine fisso uniforme. */
  body#search  .ajax_block_product .product-list-images-mobile .slick-dots,
  body#category .ajax_block_product .product-list-images-mobile .slick-dots {
    bottom: 4px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 4px !important;
    list-style: none !important;
    width: 100% !important;
  }

  /* Ogni pallino: dimensione fissa, no margini (gestiti da gap) */
  body#search  .ajax_block_product .product-list-images-mobile .slick-dots li,
  body#category .ajax_block_product .product-list-images-mobile .slick-dots li {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    margin: 0 !important;
    width: 10px !important;
    height: 10px !important;
  }

  /* Nasconde i pallini oltre il 6° (card strette ≈182px) */
  body#search  .ajax_block_product .product-list-images-mobile .slick-dots li:nth-child(n+7),
  body#category .ajax_block_product .product-list-images-mobile .slick-dots li:nth-child(n+7) {
    display: none !important;
  }

  /* 8. product-meta cresce per riempire lo spazio residuo */
  body#search  .product-miniature .product-meta,
  body#category .product-miniature .product-meta {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  /* 9. product-description cresce dentro product-meta */
  body#search  .product-miniature .product-description,
  body#category .product-miniature .product-description {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  /* 10. Titolo: min-height per 2 righe */
  body#search  .product-miniature .product-title,
  body#category .product-miniature .product-title {
    min-height: 40px !important;
    margin-bottom: 6px !important;
  }

  /* 11. Area prezzo: min-height per contenere prezzo + barrato + badge
         .price (~23px) + .regular-price (~17px) + badge (~19px) + margini = 66px */
  body#search  .product-miniature .product-price-and-shipping,
  body#category .product-miniature .product-price-and-shipping {
    min-height: 66px !important;
  }

  /* 12. Nasconde description-short su mobile listing: testo a lunghezza variabile
         è la fonte principale di disallineamento visivo SOTTO il prezzo */
  body#search  .product-miniature .product-description-short,
  body#category .product-miniature .product-description-short {
    display: none !important;
  }

}

/* =====================================================================
   FUIX — NASCONDI BOTTONE CONFRONTO NELLE CARD LISTING MOBILE
   Template plist-center: i bottoni sono in .pro-btn con layout float.
   Struttura:  .pro-btn > .button-container (carrello) + .leo-wishlist-* + .compare
   Su mobile search/category: nasconde .compare e ridistribuisce carrello+wishlist.
   Desktop invariato (regola inside max-width:767px).
   =================================================================== */
@media (max-width: 767px) {

  /* 1. Nasconde il bottone confronto */
  body#search  .ajax_block_product .compare,
  body#category .ajax_block_product .compare {
    display: none !important;
  }

  /* 2. Ridistribuisce carrello + wishlist senza spazio vuoto.
        Passa da float-layout a flex: carrello cresce, wishlist resta 40px fisso. */
  body#search  .ajax_block_product .pro-btn,
  body#category .ajax_block_product .pro-btn {
    display: flex !important;
  }

  body#search  .ajax_block_product .pro-btn > div,
  body#category .ajax_block_product .pro-btn > div {
    float: none !important;
    margin: 0 0 0 1px !important;
  }

  body#search  .ajax_block_product .pro-btn .button-container,
  body#category .ajax_block_product .pro-btn .button-container {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  body#search  .ajax_block_product .pro-btn .leo-wishlist-button-dropdown,
  body#category .ajax_block_product .pro-btn .leo-wishlist-button-dropdown {
    flex: 0 0 40px !important;
    width: 40px !important;
  }

}

/* =====================================================================
   FUIX — FIX DEFINITIVO LISTING MOBILE (in fondo = vince la cascata)
   Applicato il: 2026-06-05
   Problema 1: .slick-dots va a capo su 2 righe (ogni li = 30px, card = 169px)
   Problema 2: bottone confronto ancora visibile su mobile
   Selettori più specifici delle regole precedenti per vincere la cascata.
   =================================================================== */

/* ---------------------------------------------------------------
   PROBLEMA 1 — DOTS: 1 sola riga, max 5 pallini, altezza fissa 27px
   Selettore: aggiunge .slick-slider (classe iniettata da Slick JS)
   per essere più specifico del CSS tema che usa .slick-dots generico.
   Ogni li era 20x20 + 5px margine laterale = ~30px → overflow con 6 li
   su card 169px. Fix: li ridotti a 8px + gap 8px, overflow:hidden.
--------------------------------------------------------------- */
@media (max-width: 767px) {

  body#search  .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots,
  body#category .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    list-style: none !important;
    bottom: 4px !important;
  }

  body#search  .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li,
  body#category .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li {
    display: block !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
  }

  /* Dal 6° in poi nascosti */
  body#search  .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li:nth-child(n+6),
  body#category .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li:nth-child(n+6) {
    display: none !important;
  }

  body#search  .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li button,
  body#category .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li button {
    width: 8px !important;
    height: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  body#search  .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li button:before,
  body#category .product_list.grid.plist-center .ajax_block_product
               .product-list-images-mobile.slick-slider .slick-dots li button:before {
    width: 8px !important;
    height: 8px !important;
    font-size: 8px !important;
    line-height: 8px !important;
    top: 0 !important;
    left: 0 !important;
  }

}

/* ---------------------------------------------------------------
   PROBLEMA 2 — CONFRONTO: nascosto su mobile listing
   Template plist-center: bottoni in .pro-btn (no .functional-buttons)
   Template standard:     bottoni in .functional-buttons.clearfix
   Selettore: copre entrambi + fallback [class*="compare"]
--------------------------------------------------------------- */
@media (max-width: 767px) {

  /* Nascondi confronto — selettori multipli per sicurezza */
  body#search  .ajax_block_product .compare,
  body#category .ajax_block_product .compare,
  body#search  .ajax_block_product .leo-compare-button,
  body#category .ajax_block_product .leo-compare-button,
  body#search  .ajax_block_product [class*="compare"]:not(.product-description-short):not(.product-price-and-shipping),
  body#category .ajax_block_product [class*="compare"]:not(.product-description-short):not(.product-price-and-shipping) {
    display: none !important;
  }

  /* Ridistribuisce carrello + wishlist in .pro-btn (plist-center) */
  body#search  .ajax_block_product .pro-btn,
  body#category .ajax_block_product .pro-btn {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  body#search  .ajax_block_product .pro-btn > div,
  body#category .ajax_block_product .pro-btn > div {
    float: none !important;
    margin: 0 0 0 1px !important;
  }

  body#search  .ajax_block_product .pro-btn .button-container,
  body#category .ajax_block_product .pro-btn .button-container {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  body#search  .ajax_block_product .pro-btn .leo-wishlist-button-dropdown,
  body#category .ajax_block_product .pro-btn .leo-wishlist-button-dropdown {
    flex: 0 0 40px !important;
    width: 40px !important;
  }

  /* Ridistribuisce in .functional-buttons (template standard) */
  body#search  .ajax_block_product .functional-buttons,
  body#category .ajax_block_product .functional-buttons {
    display: flex !important;
  }

  body#search  .ajax_block_product .functional-buttons > div:not(.compare):not(.quickview),
  body#category .ajax_block_product .functional-buttons > div:not(.compare):not(.quickview) {
    flex: 1 1 auto !important;
  }

}

/* =====================================================================
   FUIX — WISHLIST OVERLAY SU THUMBNAIL (mobile listing)
   Il cuore è nel .fuix-wishlist-overlay dentro .thumbnail-container.
   Su desktop nascosto (wishlist resta nel .pro-btn).
   Su mobile: cerchio 30px in alto a destra sull'immagine.
   ===================================================================== */

/* Desktop: overlay nascosto */
.fuix-wishlist-overlay {
  display: none;
}

@media (max-width: 767px) {

  /* Nascondi wishlist nel .pro-btn su mobile (tutte le pagine listing) */
  body#category      .ajax_block_product .pro-btn .wishlist,
  body#search        .ajax_block_product .pro-btn .wishlist,
  body#manufacturer  .ajax_block_product .pro-btn .wishlist,
  body#prices-drop   .ajax_block_product .pro-btn .wishlist,
  body#new-products  .ajax_block_product .pro-btn .wishlist,
  body#best-sales    .ajax_block_product .pro-btn .wishlist {
    display: none !important;
  }

  /* Overlay posizionato in alto a destra sull'immagine */
  body#category      .ajax_block_product .fuix-wishlist-overlay,
  body#search        .ajax_block_product .fuix-wishlist-overlay,
  body#manufacturer  .ajax_block_product .fuix-wishlist-overlay,
  body#prices-drop   .ajax_block_product .fuix-wishlist-overlay,
  body#new-products  .ajax_block_product .fuix-wishlist-overlay,
  body#best-sales    .ajax_block_product .fuix-wishlist-overlay {
    display: block !important;
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    z-index: 30 !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  /* .wishlist wrapper dentro l'overlay */
  .fuix-wishlist-overlay .wishlist {
    display: flex !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Pulsante/link wishlist — cerchio bianco */
  .fuix-wishlist-overlay .leo-wishlist-button,
  .fuix-wishlist-overlay .leo-wishlist-button-dropdown > .leo-wishlist-button {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.94) !important;
    color: #202b31 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.12) !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }

  /* Span contenuto (icona + testo) */
  .fuix-wishlist-overlay .leo-wishlist-bt-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
  }

  /* Icona cuore ti-heart — forza visibilità e font */
  .fuix-wishlist-overlay .leo-wishlist-bt-content i,
  .fuix-wishlist-overlay .leo-wishlist-bt-content .icon-wishlist {
    color: #202b31 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-family: 'themify', sans-serif !important;
  }

  /* Nasconde testo, spinner e dropdown */
  .fuix-wishlist-overlay .name-btn-product,
  .fuix-wishlist-overlay .leo-wishlist-bt-loading,
  .fuix-wishlist-overlay .leo-list-wishlist {
    display: none !important;
  }

  /* Icona cuore rossa quando aggiunto */
  .fuix-wishlist-overlay .leo-wishlist-button.added .leo-wishlist-bt-content i {
    color: #e53935 !important;
  }

}

/* =====================================================================
   FUIX — LOAD MORE BUTTON (mobile listing)
   Bottone "Mostra altri 12 prodotti" al posto della paginazione numerica.
   ===================================================================== */

@media (max-width: 767px) {

  /* Nasconde paginazione numerica su mobile */
  body#category     .pagination,
  body#search       .pagination,
  body#manufacturer .pagination,
  body#prices-drop  .pagination,
  body#new-products .pagination,
  body#best-sales   .pagination,
  body#module-leoproductsearch-productsearch .pagination {
    display: none !important;
  }

  /* Container bottone */
  .fuix-load-more-wrap {
    text-align: center;
    padding: 18px 0 10px;
  }

  /* Bottone load more */
  #fuix-load-more-btn {
    display: inline-block;
    background: #202b31;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
  }

  #fuix-load-more-btn:disabled {
    opacity: .6;
    cursor: default;
  }

}

/* =====================================================================
   FUIX — body#module-leoproductsearch-productsearch MOBILE FIX
   Rende la pagina risultati ricerca LeoProductSearch coerente con
   category e manufacturer: griglia 2 colonne, sort/filter bar, filtri
   reali ps_facetedsearch, niente blocchi Leo e menu categorie.
   =================================================================== */

@media (max-width: 767px) {

  /* ── 1. Nascondi albero categorie (ps_categorytree) nel left-column ──
     Il blocco HOME/Scarpe/Occhiali... appare perché layout-left-column
     include ps_categorytree via displayLeftColumn. Lo nascondiamo:
     i filtri reali ps_facetedsearch nella stessa colonna sono sufficienti. */
  body#module-leoproductsearch-productsearch #left-column .block-categories {
    display: none !important;
  }

  /* ── 2. Nascondi blocchi Leo: Suggestion + Search in category ── */
  body#module-leoproductsearch-productsearch .head-leosearch-product,
  body#module-leoproductsearch-productsearch .search-in-suggest,
  body#module-leoproductsearch-productsearch .search-in-cat {
    display: none !important;
  }

  /* ── 3. Nascondi "Mostrando 1-12 di N elementi" su mobile ── */
  body#module-leoproductsearch-productsearch .showing {
    display: none !important;
  }

  /* ── 4. Nascondi contatore prodotti "Ci sono N prodotti" su mobile ── */
  body#module-leoproductsearch-productsearch .total-products {
    display: none !important;
  }

  /* ── 5. Compatta la parte alta ── */
  body#module-leoproductsearch-productsearch #content-wrapper,
  body#module-leoproductsearch-productsearch #main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body#module-leoproductsearch-productsearch h1.page-heading,
  body#module-leoproductsearch-productsearch .page-heading {
    text-align: center !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin: 8px 0 12px !important;
    padding: 0 !important;
  }

  /* ── 6. Sort/Filter bar: [Rilevanza ▼] [FILTER] affiancati 50%/50% ── */
  body#module-leoproductsearch-productsearch .sort-by-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 8px 0 !important;
    width: 100% !important;
  }

  /* Nascondi label "Ordina per:" */
  body#module-leoproductsearch-productsearch .sort-by-row .sort-by {
    display: none !important;
  }

  /* Sort e Filter: 50% ciascuno */
  body#module-leoproductsearch-productsearch .sort-by-row .products-sort-order,
  body#module-leoproductsearch-productsearch .sort-by-row .filter-button {
    flex: 1 1 0 !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Bottone sort (select-title) */
  body#module-leoproductsearch-productsearch .products-sort-order .select-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 0 10px !important;
    background: #fff !important;
    color: #202b31 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }

  /* Bottone FILTER — sfondo #202b31 */
  body#module-leoproductsearch-productsearch #search_filter_toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 40px !important;
    background: #202b31 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* ── 7. Griglia prodotti 2 colonne ── */
  body#module-leoproductsearch-productsearch .product_list.grid > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 10px !important;
    align-items: stretch !important;
  }

  body#module-leoproductsearch-productsearch .product_list.grid > .row > .ajax_block_product {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Neutralizza classi legacy del tema */
  body#module-leoproductsearch-productsearch .ajax_block_product.first-in-line,
  body#module-leoproductsearch-productsearch .ajax_block_product.last-in-line,
  body#module-leoproductsearch-productsearch .ajax_block_product.last-line,
  body#module-leoproductsearch-productsearch .ajax_block_product.first-item-of-mobile-line,
  body#module-leoproductsearch-productsearch .ajax_block_product.last-item-of-mobile-line {
    clear: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Reset inner .js-product */
  body#module-leoproductsearch-productsearch .ajax_block_product > .js-product {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Article: flex column a tutta altezza */
  body#module-leoproductsearch-productsearch article.product-miniature {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  /* thumbnail-container */
  body#module-leoproductsearch-productsearch .product-miniature .thumbnail-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  /* Immagine: aspect-ratio 1:1 per stabilizzare prima del lazy load */
  body#module-leoproductsearch-productsearch .product-miniature .product-image.thumbnail-top,
  body#module-leoproductsearch-productsearch .product_list.plist-center .product-miniature .product-image {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  body#module-leoproductsearch-productsearch .product-miniature .product-image.thumbnail-top img,
  body#module-leoproductsearch-productsearch .product_list.plist-center .product-miniature .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Padding uniforme per area dots carousel */
  body#module-leoproductsearch-productsearch .ajax_block_product .product-list-images-mobile {
    padding-bottom: 28px !important;
    box-sizing: content-box !important;
  }

  /* Dots su una sola riga */
  body#module-leoproductsearch-productsearch .ajax_block_product .product-list-images-mobile .slick-dots {
    bottom: 4px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 4px !important;
    list-style: none !important;
    width: 100% !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .product-list-images-mobile .slick-dots li {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    margin: 0 !important;
    width: 10px !important;
    height: 10px !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .product-list-images-mobile .slick-dots li:nth-child(n+7) {
    display: none !important;
  }

  /* product-meta e product-description: flex grow */
  body#module-leoproductsearch-productsearch .product-miniature .product-meta {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  body#module-leoproductsearch-productsearch .product-miniature .product-description {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  /* Titolo: min-height per 2 righe */
  body#module-leoproductsearch-productsearch .product-miniature .product-title {
    min-height: 40px !important;
    margin-bottom: 6px !important;
  }

  /* Area prezzo */
  body#module-leoproductsearch-productsearch .product-miniature .product-price-and-shipping {
    min-height: 66px !important;
  }

  /* Nasconde description-short */
  body#module-leoproductsearch-productsearch .product-miniature .product-description-short {
    display: none !important;
  }

  /* ── 8. Nascondi compare ── */
  body#module-leoproductsearch-productsearch .ajax_block_product .compare,
  body#module-leoproductsearch-productsearch .ajax_block_product .leo-compare-button,
  body#module-leoproductsearch-productsearch .ajax_block_product .ap-btn-compare,
  body#module-leoproductsearch-productsearch .ajax_block_product [class*="compare"]:not(.product-description-short):not(.product-price-and-shipping),
  body#module-leoproductsearch-productsearch .product-miniature .compare,
  body#module-leoproductsearch-productsearch .product-miniature .leo-compare-button,
  body#module-leoproductsearch-productsearch .product-miniature .ap-btn-compare,
  body#module-leoproductsearch-productsearch .product-miniature [class*="compare"]:not(.product-description-short):not(.product-price-and-shipping) {
    display: none !important;
  }

  /* ── 9. Pro-btn: ridistribuisce carrello + wishlist ── */
  body#module-leoproductsearch-productsearch .ajax_block_product .pro-btn {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .pro-btn > div {
    float: none !important;
    margin: 0 0 0 1px !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .pro-btn .button-container {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .pro-btn .leo-wishlist-button-dropdown {
    flex: 0 0 40px !important;
    width: 40px !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .functional-buttons {
    display: flex !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .functional-buttons > div:not(.compare):not(.quickview) {
    flex: 1 1 auto !important;
  }

  /* ── 10. Wishlist overlay su immagine ── */
  body#module-leoproductsearch-productsearch .ajax_block_product .pro-btn .wishlist {
    display: none !important;
  }

  body#module-leoproductsearch-productsearch .ajax_block_product .fuix-wishlist-overlay {
    display: block !important;
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    z-index: 30 !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

}
