@charset "UTF-8";
/**
 * Wishlist Styling
 * Heart icon buttons and notifications
 */
/* Wishlist Toggle Button */
.wishlist-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Heart icon using Font Awesome */
.wishlist-toggle::before {
  content: "";
  /* Font Awesome regular heart */
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 400;
  font-size: 1.3rem;
  color: #868e96;
  transition: all 0.3s ease;
}

/* Hover state */
.wishlist-toggle:hover {
  transform: scale(1.1);
  border-color: #ff6b6b;
  background: #fff5f5;
}

.wishlist-toggle:hover::before {
  color: #ff6b6b;
}

/* Active/In Wishlist state */
.wishlist-toggle.in-wishlist {
  background: #ff6b6b;
  border-color: #ff6b6b;
}

.wishlist-toggle.in-wishlist::before {
  content: "";
  /* Font Awesome solid heart */
  font-weight: 900;
  color: white;
  animation: heartBeat 0.5s ease;
}

/* Heart beat animation */
@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.2);
  }
}
/* Focus state for accessibility */
.wishlist-toggle:focus {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

/* Disabled state */
.wishlist-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wishlist-toggle:disabled:hover {
  transform: none;
  border-color: #dee2e6;
}

/* Product Detail Page Wishlist Button */
.btn-wishlist {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid #dee2e6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.btn-wishlist .btn-icon {
  font-size: 1.8rem;
  transition: all 0.3s ease;
  line-height: 1;
}

/* Hover state for detail page button */
.btn-wishlist:hover {
  transform: scale(1.1);
  border-color: #ff6b6b;
  background: #fff5f5;
}

.btn-wishlist:hover .btn-icon {
  color: #ff6b6b;
}

/* Active/In Wishlist state for detail page button */
.btn-wishlist.in-wishlist,
.btn-wishlist.active {
  background: #ff6b6b;
  border-color: #ff6b6b;
  animation: heartBeat 0.5s ease;
}

.btn-wishlist.in-wishlist .btn-icon,
.btn-wishlist.active .btn-icon {
  color: white;
}

/* Focus state */
.btn-wishlist:focus {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

/* Disabled state */
.btn-wishlist:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-wishlist:disabled:hover {
  transform: none;
  border-color: #dee2e6;
}

/* Wishlist Count Badge (in header/nav) */
.wishlist-count {
  background: #ff6b6b;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
}

.wishlist-count:empty::before {
  content: "0";
}

.wishlist-count.updated {
  animation: bounceScale 0.5s ease;
}

@keyframes bounceScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
/* Wishlist Link (in header/nav) */
.wishlist-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wishlist-link:hover {
  color: #ff6b6b;
}

.wishlist-link::before {
  content: "";
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 400;
  font-size: 1.2rem;
}

/* Count badge on wishlist link */
.wishlist-link[data-wishlist-count]::after {
  content: attr(data-wishlist-count);
  position: absolute;
  top: 0;
  right: 0;
  background: #ff6b6b;
  color: white;
  border-radius: 10px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.wishlist-link[data-wishlist-count="0"]::after {
  display: none;
}

/* Notifications Container */
.wishlist-notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Individual Notification */
.wishlist-notification {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
  pointer-events: all;
  border-left: 4px solid #ff6b6b;
}

.wishlist-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.wishlist-notification-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.wishlist-notification--added {
  border-left-color: #51cf66;
  color: #2b8a3e;
}

.wishlist-notification--removed {
  border-left-color: #ff6b6b;
  color: #c92a2a;
}

/* Product Card - Position wishlist button */
.product-card {
  position: relative;
}

/* Ensure wishlist button doesn't interfere with product badge */
.product-card .product-badge {
  top: 12px;
  right: 12px;
}

.product-card .wishlist-toggle {
  top: 12px;
  left: 12px;
}

/* Wishlist Page Styles (if you create a wishlist page) */
.wishlist-page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wishlist-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.wishlist-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wishlist-page-title::before {
  content: "";
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  color: #ff6b6b;
  font-size: 2rem;
}

.wishlist-clear-all {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishlist-clear-all:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.wishlist-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #868e96;
}

.wishlist-empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.wishlist-empty-message {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.wishlist-empty-text {
  color: #adb5bd;
  margin-bottom: 2rem;
}

.wishlist-browse-link {
  display: inline-block;
  background: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wishlist-browse-link:hover {
  background: #34495e;
  transform: translateY(-2px);
}

/* Wishlist Grid (for wishlist page) */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wishlist-notifications {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .wishlist-notification {
    width: 100%;
  }

  .wishlist-page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}
/* Loading state for wishlist */
.wishlist-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Pulse animation for loading */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.wishlist-loading .wishlist-toggle {
  animation: pulse 1.5s ease-in-out infinite;
}

/*# sourceMappingURL=wishlist.css.map */
