/* ======================================================
   STM Wishlist — loop icon + header badge + instant toast
   Path: inc/features/wishlist/assets/wishlist.css
====================================================== */

/* =========================
   Product loop icon behavior
   ========================= */
.stm-pl__wish{
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* ❌ remove blur / shade completely */
  box-shadow: none !important;
  filter: none !important;
  transition: none !important;
}

.stm-pl__wish:hover{
  transform: none !important;
  box-shadow: none !important;
}

/*
  ✅ FINAL ICON LOGIC (RELIABLE):
  - Not in wishlist: outline SVG
  - In wishlist: filled SVG
*/
.stm-pl__icon--wish{
  width: 20px;     /* +4px */
  height: 20px;

  background-image: url("../../../../assets/svg/wishlist.svg"); /* outline */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* Ensure no mask is affecting */
  -webkit-mask: none !important;
  mask: none !important;

  opacity: 1;
}

.stm-pl__wish.is-active .stm-pl__icon--wish{
  background-image: url("../../../../assets/svg/wishlist-filled.svg") !important; /* filled */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  -webkit-mask: none !important;
  mask: none !important;

  opacity: 1 !important;
}

/* =================================
   Header badge states (SYNC BASE)
   ================================= */
.stm-wish__count{
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  padding: 0 6px;

  background: #111;   /* default = black */
  color: #fff;
}

/* When wishlist has items */
.stm-wish.is-active .stm-wish__count{
  background: #19a33a; /* green */
  color: #fff;
}

/* =========================
   Dropdown body list (UL/LI)
   ========================= */
.stm-wish__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.stm-wish__empty{
  padding: 12px 14px;
  opacity: .7;
}

.stm-wish__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.stm-wish__link{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
}

.stm-wish__img{
  width: 36px;
  height: 36px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.stm-wish__name{
  font-size: 13px;
  color: #111;
}

.stm-wish__remove{
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
}

.stm-wish__remove:hover{
  opacity: 1;
}

/* =========================
   Instant toast
   ========================= */
.stm-wl-toast{
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 999999;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
  background: #111;
  color: #fff;
}

.stm-wl-toast.is-show{ opacity: 1; }
.stm-wl-toast.is-ok{ background: #19a33a; }
.stm-wl-toast.is-bad{ background: #111; }
