/* ============================================================
   ANFAS — CSS Pagina Prodotto v2 (fix conflitti tema)
   Sostituisce il precedente anfas-product.css
   ============================================================ */

/* FIX GLOBALE: il tema imposta svg { height:300px } — lo azzeriamo
   solo per i nostri SVG inline */
.anfas-pdp-whatsapp svg,
.anfas-pdp-whatsapp svg:not(:root) {
  height: 18px !important;
  width: 18px !important;
  overflow: visible;
  flex-shrink: 0;
}

/* ---- BRAND sopra il titolo ---- */
#product .anfas-pdp-brand {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 4px;
  display: block;
}
#product .anfas-pdp-brand a {
  color: #c9a96e;
  text-decoration: none;
}

/* ---- TITOLO ---- */
#product h1.anfas-pdp-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #2b2b2b;
  line-height: 1.2;
  margin: 0 0 10px;
  font-style: normal;
}

/* ---- RIFERIMENTO ---- */
#product .anfas-pdp-ref {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
  display: block;
}

/* ---- DESCRIZIONE BREVE ---- */
#product .product-information .anfas-pdp-shortdesc {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 20px;
  border-left: 3px solid #c9a96e;
  padding-left: 16px;
  border-radius: 0;
}

/* ---- PIRAMIDE OLFATTIVA ---- */
#product .anfas-pyramid {
  background: #f7f3ee;
  border: 1px solid #e8dfd3;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 20px;
  float: left;
  width: 100%;
  box-sizing: border-box;
}
#product .anfas-pyramid-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 12px;
  font-weight: 500;
  display: block;
}
#product .anfas-pyramid-grid {
  display: block;
  width: 100%;
}
#product .anfas-pyramid-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e0d8cc;
  width: 100%;
  box-sizing: border-box;
}
#product .anfas-pyramid-row:last-child { border-bottom: none; }
#product .anfas-pyramid-icon {
  font-size: 14px;
  width: 20px;
  flex-shrink: 0;
  padding-top: 2px;
  text-align: center;
}
#product .anfas-pyramid-row--top .anfas-pyramid-icon { color: #4a8ab5; }
#product .anfas-pyramid-row--mid .anfas-pyramid-icon { color: #c9a96e; }
#product .anfas-pyramid-row--base .anfas-pyramid-icon { color: #7a5c3a; }
#product .anfas-pyramid-row--family .anfas-pyramid-icon { color: #888; }
#product .anfas-pyramid-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2px;
  display: block;
}
#product .anfas-pyramid-value {
  font-size: 14px;
  color: #2b2b2b;
  line-height: 1.4;
  display: block;
}

/* ---- RATA KLARNA ---- */
#product .anfas-pdp-installment {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
  margin: 6px 0 10px;
  background: #f7f3ee;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e8dfd3;
  float: left;
  width: 100%;
  box-sizing: border-box;
}
#product .anfas-pdp-installment .material-icons {
  font-size: 16px;
  color: #c9a96e;
  flex-shrink: 0;
}
#product .anfas-pdp-installment strong { color: #2b2b2b; }

/* ---- URGENZA STOCK ---- */
#product .anfas-pdp-urgency {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #7a3a10;
  background: #fdf2e8;
  border: 1px solid #f0c080;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  float: left;
  width: 100%;
  box-sizing: border-box;
  animation: anfas-pulse 2.5s infinite;
}
#product .anfas-pdp-urgency .material-icons {
  font-size: 16px;
  color: #c9a96e;
  flex-shrink: 0;
}
#product .anfas-pdp-urgency strong { color: #9a4010; }
@keyframes anfas-pulse {
  0%, 100% { border-color: #f0c080; }
  50% { border-color: #c9a96e; }
}

/* ---- TRUST PILLS MOBILE ---- */
#product .anfas-pdp-trustrow {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
  float: left;
  width: 100%;
}
#product .anfas-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: #f7f3ee;
  border: 1px solid #e8dfd3;
  padding: 4px 10px;
  border-radius: 20px;
  color: #555;
}
#product .anfas-trust-pill .material-icons {
  font-size: 13px;
  color: #c9a96e;
}

/* ---- BADGE SOTTO FOTO (desktop) ---- */
#product .anfas-pdp-photobadges {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  float: left;
  width: 100%;
  box-sizing: border-box;
}
#product .anfas-photobadge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #666;
  background: #f7f3ee;
  border: 1px solid #e8dfd3;
  padding: 5px 10px;
  border-radius: 4px;
}
#product .anfas-photobadge .material-icons {
  font-size: 14px;
  color: #c9a96e;
}

/* ---- WHATSAPP ---- */
#product .anfas-pdp-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2b2b2b;
  text-decoration: none;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 10px 16px;
  margin: 12px 0;
  transition: border-color 0.2s, background 0.2s;
  float: left;
  width: 100%;
  box-sizing: border-box;
}
#product .anfas-pdp-whatsapp:hover {
  border-color: #25D366;
  background: #f0fdf4;
  color: #1a7a3a;
  text-decoration: none;
}

/* ---- DESCRIZIONE LUNGA ---- */
#product .anfas-pdp-longdesc {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}
#product .anfas-pdp-longdesc p { margin-bottom: 1rem; }


/* ---- TABELLA CONFRONTO ---- */
#product .anfas-pdp-compare {
  background: #2b2b2b;
  padding: 48px 20px;
  margin: 40px 0;
  float: left;
  width: 100%;
  box-sizing: border-box;
}
#product .anfas-pdp-compare-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #f5f0e8;
  text-align: center;
  margin-bottom: 24px;
}
.anfas-compare-table {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #444;
}
.anfas-compare-head,
.anfas-compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.anfas-compare-head {
  background: #3a3a3a;
}
.anfas-compare-row {
  border-top: 1px solid #3a3a3a;
}
.anfas-compare-row:nth-child(even) { background: #323232; }
.anfas-compare-row:nth-child(odd) { background: #2b2b2b; }
.anfas-compare-col {
  padding: 11px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.anfas-compare-col--feat { color: #bbb; }
.anfas-compare-col--nicchia {
  color: #c0dd97;
  justify-content: center;
  text-align: center;
}
.anfas-compare-col--comm {
  color: #f09595;
  justify-content: center;
  text-align: center;
}
.anfas-compare-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}
.anfas-compare-badge--nicchia {
  background: #3B6D11;
  color: #C0DD97;
}
.anfas-compare-badge--comm {
  background: #501313;
  color: #F09595;
}
.anfas-check { color: #97C459; margin-right: 4px; }
.anfas-cross { color: #F09595; margin-right: 4px; }

/* ---- RELATED PRODUCTS ---- */
#product .anfas-related {
  margin-top: 48px;
  padding: 32px 0 0;
  border-top: 1px solid #e8dfd3;
}

#product .anfas-related-head {
  text-align: center;
  margin-bottom: 32px;
}

#product .anfas-related-head__title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #2b2b2b;
  margin: 0;
  letter-spacing: 0.02em;
}

#product .anfas-related .products {
  clear: both;
}

@media (max-width: 767.98px) {
  #product .anfas-related {
    margin-top: 36px;
    padding-top: 24px;
  }

  #product .anfas-related-head__title {
    font-size: 1.35rem;
  }
}

/* ---- CTA AGGIUNGI AL CARRELLO potenziata ---- */
#product .pro-add-to-cart.btn.btn-primary,
#product button.add-to-cart.btn.btn-primary {
  background-color: #2b2b2b !important;
  border-color: #2b2b2b !important;
  color: #f5f0e8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  border-radius: 2px !important;
  transition: background-color 0.2s, border-color 0.2s !important;
}
#product .pro-add-to-cart.btn.btn-primary:hover,
#product button.add-to-cart.btn.btn-primary:hover {
  background-color: #c9a96e !important;
  border-color: #c9a96e !important;
  color: #1a1a1a !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  #product .anfas-pdp-photobadges { display: none; }
  #product .anfas-pdp-trustrow { display: flex; }
  #product h1.anfas-pdp-title { font-size: 1.4rem; }
  .anfas-compare-col { padding: 9px 8px; font-size: 12px; }
  #product .anfas-pdp-compare { padding: 32px 12px; }
  .anfas-compare-head,
  .anfas-compare-row { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .anfas-compare-col { padding: 8px 6px; font-size: 11px; }
  .anfas-compare-badge { font-size: 9px; padding: 3px 6px; }
}
