/* ========================
   FAVORITES SYSTEM - ENHANCED
   ======================== */

:root {
  --favorite-hover-color: #ff4757;
  --favorite-active-color: #ff4757;
  --favorite-animation-duration: 0.4s;
}

/* Favorites Icon in Header */
.favorites {
  position: relative;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.favorites:hover {
  color: var(--favorite-hover-color);
  transform: translateY(-2px);
}

.favorites.active {
  color: var(--favorite-active-color);
}

.favorites-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Wishlist Button - Fixed Styles */
.wishlist {
  width: 45px;
  height: 45px;
  background-color: var(--light-gray);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--favorite-animation-duration) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist i {
  font-size: 1.2rem;
  transition: all var(--favorite-animation-duration) ease;
  color: #aaa;
}

/* Active state styles */
.wishlist.active {
  background-color: var(--favorite-active-color) !important;
}

.wishlist.active i {
  color: white !important;
}

.wishlist:hover {
  background-color: var(--favorite-hover-color) !important;
}

.wishlist:hover i {
  color: white !important;
}

/* Heart Beat Animation */
.heart-beat {
  animation: heartBeat var(--favorite-animation-duration);
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Rest of your favorites.css remains the same */
.favorites-section {
  padding: 6rem 0;
  background-color: var(--darker-color);
  min-height: 70vh;
}

.favorites-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Empty State Styles */
.empty-favorites {
  text-align: center;
  padding: 4rem 0;
  width: 100%;
  grid-column: 1 / -1;
}

.empty-favorites i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.empty-favorites h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
}

.empty-favorites p {
  color: #aaa;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.6;
}

/* Favorites Actions */
.favorites-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .favorites-section {
    padding: 4rem 0;
  }
  
  .favorites-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .empty-favorites {
    padding: 2rem 0;
  }
  
  .empty-favorites i {
    font-size: 2.5rem;
  }
  
  .empty-favorites h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }
  
  .empty-favorites {
    padding: 1.5rem 0;
  }
}