.lp-products * {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

/* 🔒 Ripristina Font Awesome per le icone */
.lp-products i.fa,
.lp-products i.fas,
.lp-products i.far,
.lp-products i.fab,
.lp-products i.fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900; /* necessario per le icone solid */
}

.lp-products {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-products .lp-wrapper {
  width: calc(50% - 8px);
  display: flex;
  justify-content: center;
}

/* CARD GENERALE */
.lp-products .lp-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  padding-bottom: 10px;
}
.lp-products .lp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* IMMAGINE */
.lp-products .lp-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* TITOLO */
.lp-products .lp-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin: 10px 12px 6px;
  min-height: 2.4em;
}

.lp-products .lp-name {
  margin-bottom: 10px; /* lascia sempre lo stesso spazio */
  min-height: 3.6em;   /* per 3 righe */
}

/* BLOCCO INFO SCORREVOLE */
.lp-products .lp-info {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  justify-content: flex-start; /* ✅ era center */
  min-height: 120px;
  max-height: 120px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}
.lp-products .lp-info::-webkit-scrollbar { display: none; }

.lp-products .lp-info > div {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 10px 12px;
}

/* TESTI */
.lp-products .lp-desc {
  font-size: 0.7rem;
  color: #444;
  line-height: 1.3em;
}

.lp-products .lp-desc.long {
  max-height: 100px;
  overflow-y: auto;
  white-space: pre-line;
  text-align: left;
  padding-right: 6px;
}
.lp-products .lp-desc.long::-webkit-scrollbar { width: 4px; }
.lp-products .lp-desc.long::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.lp-products .lp-desc.long:hover::-webkit-scrollbar-thumb {
  background: #999;
}

/* BOX AUTENTICITÀ */
.lp-products .lp-auth {
  text-align: center;
}
.lp-products .lp-auth img {
  width: 45px;
  height: 45px;
  margin-bottom: 5px;
}

/* PREZZO */
.lp-products .lp-price {
  font-family: 'Playfair Display', serif !important;
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 8px 0;
}

/* PULSANTE */
.lp-products .lp-btn-cart {
  align-self: center;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.lp-products .lp-btn-cart:hover { background:#333; }


/* 🔧 Ottimizzazione layout mobile */
@media (max-width: 575px) {
  /* Margini laterali minimi e centrati */
  #product-list .lp-products {
    margin-left: 1px;
    margin-right: 1px;
    padding-left:  0px;
    padding-right: 0px;
    gap: 2px; /* 2–3px di distanza tra le card */
  }
   /* Wrapper più larghi, sfruttano quasi tutta la larghezza */
  #product-list .lp-wrapper {
    width: 49.6%;
    margin: 0;
    padding: 0;
  }
  
    /* Immagine ridotta del 10% */
  #product-list .lp-image {
    width: 80%;
    margin: 0 auto;
    display: block;
  }
  
  #product-list {
	  position: relative;
	  left: 0px;
	  margin-left: -1.3em !important;
  }
}

/* 🔘 Pulsante info in overlay */
.lp-card {
  position: relative;
}
.lp-info-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}
.lp-info-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* 🪶 Popup info elegante */
.lp-info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}
.lp-info-box {
  background: #fff;
  color: #222;
  border-radius: 10px;
  max-width: 90%;
  width: 400px;
  padding: 20px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  font-family: 'Poppins', sans-serif;
  position: relative;
}
.lp-info-box h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-align: center;
}
.lp-info-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #333;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* Paginatore bifunzionale (modalità 0) */
/* in posizione standard è più stretto rispetto a quando arriva in alto */
/*
.pagination-float-smart {
  position: relative;
  background: rgba(255,255,255,0.96);
  transition: all 0.25s ease;
  z-index: 50;
}
*/

/* Paginatore in posizione standard sempre a larghezza piena */
.pagination-float-smart {
  position: relative;
  left: -1.5em; /* prima era 0 */
  right: 0;
  width: 100vw; /* copre sempre l’intera viewport */
  margin: 0; /* nessun margine laterale */
  background: rgba(255,255,255,0.96);
  transition: all 0.25s ease;
  z-index: 50;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05); /* leggera ombra per separazione visiva */
}


/* Stato “appoggiato” in alto */
.pagination-float-smart.fixed {
  position: fixed;
  top: 0; /* aderente in cima alla pagina */
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 999;
  animation: fadeSlide .25s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modalità sticky classica (modalità 1) */
.pagination-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Satinatore luxury per il paginatore */
/* ✨ PAGINATORE VENDOME LUXURY EDITION ✨ */
.pagination,
.pagination-float-smart,
.pagination-sticky {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(6px);
}

/* Contenitore con effetto opaco leggermente fluttuante */
.pagination-float-smart.fixed {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Bottoni di pagina */
.page-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.9rem;
  color: #282828;
  font-weight: 500;
  background: rgba(245, 245, 245, 0.7);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.8);
  transition: all 0.25s ease-in-out;
}

/* Hover */
.page-link:hover {
  background: #f8f8f8;
  border-color: rgba(0,0,0,0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Attiva */
.page-link.active {
  background: linear-gradient(145deg, #d4af37, #e9d690);
  color: #fff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(212,175,55,0.3);
  transform: scale(1.1);
}

/* Effetto al tocco mobile */
.page-link:active {
  transform: scale(0.95);
}

/* Transizione dolce di comparsa */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Paginatore Scenico: Effetto di dissolvenza per apparizione/scomparsa */
.pagination-float-smart,
.pagination-sticky {
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pagination-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

/* STILI RELATIVI ALL'ESTENSIONE PREZZI PROMOZIONALI (PREZZI SPECIFICI O CATALOGO) DEL 23/10/2025 */
/* ——— PREZZI PROMO LUXURY ——— */
.lp-price {
  position: relative;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  margin: 8px 0;
}

.lp-price .old-price {
  text-decoration: line-through;
  color: #aaa;
  margin-right: 8px;
  font-size: 0.9rem;
  opacity: 0.95;
}

.lp-price .promo-price {
  color: #000;
  font-weight: 600;
  font-size: 1.2rem;
  animation: lpFadeIn .3s ease;
}

.lp-price .promo-badge {
  display: inline-block;
  background: linear-gradient(145deg, #d4af37, #e9d690);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  vertical-align: middle;
  letter-spacing: .02em;
  animation: lpSlideIn .3s ease;
}

@keyframes lpFadeIn { from {opacity:0} to {opacity:1} }
@keyframes lpSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prezzo promo luxury */
/* 🌟 TAG PROMO RETTANGOLARE */
.promo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(145deg, #d4af37, #e9d690);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 3;
  font-family: 'Poppins', sans-serif;
}

/* 🟡 TONDO PERCENTUALE DORATO */
.discount-circle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af37, #e9d690);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 3;
  font-family: 'Poppins', sans-serif;
}

/* ✂️ Prezzo barrato più piccolo */
.lp-price .old-price {
  text-decoration: line-through;
  color: #aaa;
  margin-right: 6px;
  font-size: 0.8rem; /* prima era 0.9 */
  opacity: 0.9;
  vertical-align: middle;
}
/* Sfumatura sul prezzo nella lista dei prodotti */
.lp-price .promo-price {
  background: linear-gradient(90deg, rgba(212,175,55,0.35), rgba(233,214,144,0));
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: #111;
}

/* Blocco CSS per ordinamento */
.sort-selector label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
}

.sort-selector select {
  border: 1px solid #b8a05d;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Poppins', sans-serif;
  color: #111;
  background: linear-gradient(to bottom, #fffdf8, #f5f1e6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}

.sort-selector select:hover {
  border-color: #d4b867;
  background: #fff9ed;
}
/* Stile di base per gli hook del badge dei prodotti */
.hook-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  pointer-events: none;
}

/* Sistemazione paginatore in alto */
/* === Fix clic paginatore fisso === */
#product-list,
.lp-products,
.lp-wrapper,
.lp-card {
  position: relative;
  z-index: 0;
}

.pagination-float-smart.fixed {
  z-index: 9999 !important;
  pointer-events: auto !important;
  transform: translateZ(0);
}

.pagination-float-smart a.page-link {
  pointer-events: auto !important;
  position: relative;
  z-index: 10000;
}
/* ==================================================================================================*/
/* =========================🖥️ Layout Desktop: 4 prodotti per riga ==================================*/
/* ==================================================================================================*/
@media (min-width: 992px) {
  .lp-products {
    gap: 20px; /* leggermente più spazio fra le card */
    justify-content: center;
  }

  .lp-products .lp-wrapper {
    width: calc(25% - 15px); /* 4 per riga */
    max-width: none;         /* rimuove limite max 450px */
  }

  .lp-products .lp-card {
    max-width: none;         /* si adatta automaticamente */
  }
    
}

/* 🖥️ Riduzione dimensione immagine prodotto su Desktop */
@media (min-width: 992px) {
  .lp-products .lp-image-wrapper {
    display: flex;
    justify-content: center;
  }

  .lp-products .lp-image {
    width: 70%;  /* ridotto del 30% rispetto al 100% */
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  /* Effetto leggero hover (opzionale ma elegante) */
  .lp-products .lp-image:hover {
    transform: scale(1.03);
  }
}

