/* widgets/cart.v100/cart.css */

#cart-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#cart-toggle {
  font-size: 1.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
}

#cart-count {
  font-size: 0.75rem;
  padding: 4px 6px;
}

#cart-panel {
  background: #fff;
  border-radius: 8px;
  min-height: 100px;
}

#cart-panel img {
  border-radius: 4px;
}

#cart-panel button.btn-outline-danger {
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
}

#cart-widget {
  position: absolute !important;
  top: 20px;
  right: 20px;
  z-index: 1050;
}

/* Nuovi stili per carrello luxury by Lomazzi Federico 9/11/2025 ore 03:45 */
/* ==========================
   STRUTTURA A TABELLA (2 CELLE)
   ========================== */
#cart-table {
  border-collapse: collapse;
}

#cart-table td.cart-cell {
  width: 50%;
  text-align: center;
  vertical-align: middle;
  padding: 0 5px;
}

/* ==========================
   ICONA BORSA DEL CARRELLO
   ========================== */
#cart-toggle {
  background: linear-gradient(145deg, #fdf5d0, #d4af37 45%, #b4881d 80%);
  border: 1px solid #caa62d;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25), inset 0 0 5px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

#cart-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

#cart-icon {
  color: #fff8dc;
  font-size: 1.3rem;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  transition: all 0.3s ease-in-out;
}

#cart-toggle:hover #cart-icon {
  color: #fffbea;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
}

/* ==========================
   ICONA CUORE PREFERITI
   ========================== */
#wishlist-toggle {
  background: linear-gradient(145deg, #fdf5d0, #e6c97c 45%, #b4881d 80%);
  border: 1px solid #caa62d;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25), inset 0 0 5px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

#wishlist-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

#wishlist-icon {
  color: #d8193a;
  font-size: 1.3rem;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease-in-out;
}

#wishlist-toggle:hover #wishlist-icon {
  color: #ff334d;
}

/* badge numerico */
#cart-count, #wishlist-count {
  border: 2px solid #fff;
  font-weight: 600;
  font-size: 0.7rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Inizialmente nascosti, ma pronti ad essere riattivati dal JS */
/* 1) Nascondi di default (prima che JS aggiorni i contatori) */
#wishlist-count,
#cart-count,
#notify-count {
  display: none;
}

/* 2) Mostra quando NON hanno la classe che li nasconde */
#wishlist-count:not(.hidden-count),
#cart-count:not(.hidden-count),
#notify-count:not(.hidden-count) {
  display: inline-block; /* o inline, va bene anche inline-block */
}

/* 3) Classe usata dal JS per nascondere quando valore = 0 */
.hidden-count {
  display: none !important;
}
