/* ==========================================================================
   TFA Wishlist — Stili
   ========================================================================== */

/* --------------------------------------------------------------------------
   Pulsante cuore sul prodotto (loop)
   -------------------------------------------------------------------------- */
.tfa-wl-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;

  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);

  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.tfa-wl-btn:hover{
  background: #fff;
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.tfa-wl-btn:focus-visible{
  outline: 2px solid #497e60;
  outline-offset: 2px;
}

/* Icona cuore */
.tfa-wl-icon{
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: #555;
  stroke-width: 1.8px;
  stroke-linejoin: round;
  transition: fill .2s ease, stroke .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}

/* Stato attivo (in wishlist) */
.tfa-wl-btn.is-active .tfa-wl-icon{
  fill: #c0392b;
  stroke: #c0392b;
}

/* Animazione "pop" al toggle */
.tfa-wl-btn.is-animating .tfa-wl-icon{
  transform: scale(1.35);
}

/* --------------------------------------------------------------------------
   Toast notifica
   -------------------------------------------------------------------------- */
.tfa-wl-toast{
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;

  background: #222;
  color: #fff;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 10px 20px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;

  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.tfa-wl-toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Pagina wishlist [tfa_wishlist]
   -------------------------------------------------------------------------- */
.tfa-wl-page{
  max-width: 1800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* La wishlist eredita le stesse regole globali di shop/featured.
   Nessun override necessario — usa .woocommerce ul.products di style.css */

.tfa-wl-empty{
  text-align: center;
  padding: 80px 20px;
  color: #555;
}

.tfa-wl-empty p{
  font-size: 18px;
  margin-bottom: 24px;
}

.tfa-wl-empty .button{
  display: inline-block;
  padding: 12px 32px;
  background: #222;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  transition: background .2s ease;
}

.tfa-wl-empty .button:hover{
  background: #497e60;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive: sposta il cuore su mobile
   -------------------------------------------------------------------------- */
@media (max-width: 480px){
  .tfa-wl-btn{
    width: 32px;
    height: 32px;
  }
  .tfa-wl-icon{
    width: 15px;
    height: 15px;
  }
}
