/* Wishlist Styles */

.wishlist-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.wishlist-btn:hover {
  transform: scale(1.15);
}

.wishlist-btn.active i {
  color: #dc3545;
}

.wishlist-btn i {
  font-size: 22px;
  color: #333;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Wishlist Remove Button */
.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wishlist-remove-btn:hover {
  background: #dc3545;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.wishlist-remove-btn i {
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  font-weight: 700;
}

.wishlist-remove-btn:hover i {
  color: white;
}

.wishlist-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Toast Notification */
.toast {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-body {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* Product Card Adjustments for Wishlist Button */
.product-card {
  position: relative;
}

.product-card .wishlist-btn {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .wishlist-btn {
  opacity: 1;
}

/* Mobile: Always show wishlist button */
@media (max-width: 768px) {
  .product-card .wishlist-btn {
    opacity: 1;
  }

  .wishlist-btn i {
    font-size: 20px;
  }

  .wishlist-remove-btn {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }

  .wishlist-remove-btn i {
    font-size: 14px;
  }
}
