/* ==========================================================================
   KEYSHU WISHLIST PAGE - PREMIUM STYLES
   ========================================================================== */

.wishlist-page-body {
  background-color: #f8fafc;
  font-family: 'Quicksand', sans-serif;
  color: #334155;
  margin: 0;
  padding: 0;
}

.wishlist-main-container {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* 1. Page Header */
.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.wishlist-header-left h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.wishlist-header-left p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.wishlist-count-badge {
  background-color: #e6f7f7;
  color: #03B0B1;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(3, 176, 177, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 2. Grid Cards Shelf */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  transition: all 0.4s ease;
}

.wishlist-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wishlist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

/* Floating Remove (Heart) Button */
.wishlist-remove-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.wishlist-remove-btn i {
  color: #e53935; /* Crimson Red active color */
  font-size: 16px;
  transition: transform 0.2s ease;
}

.wishlist-remove-btn:hover {
  background-color: #fee2e2;
  transform: scale(1.1);
}

.wishlist-remove-btn:hover i {
  transform: scale(1.1);
}

/* Image Wrapper and Badges */
.wishlist-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: #f8fafc;
  overflow: hidden;
}

.wishlist-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.wishlist-card:hover .wishlist-img-wrap img {
  transform: scale(1.06);
}

.wishlist-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background-color: #03B0B1;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wishlist-tag.hot-tag {
  background-color: #e53935;
}

/* Product Info */
.wishlist-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wishlist-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b; /* Golden stars */
  font-size: 11px;
  margin-bottom: 8px;
}

.wishlist-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.5;
  height: 42px; /* Limit title to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-price {
  font-size: 16px;
  font-weight: 800;
  color: #e53935; /* Bold price */
  margin-bottom: 20px;
  margin-top: auto;
}

/* Add to Cart Button */
.wishlist-add-cart-btn {
  width: 100%;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 15px rgba(198, 40, 40, 0.2);
}

.wishlist-add-cart-btn:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  box-shadow: 0 8px 20px rgba(183, 28, 28, 0.3);
  transform: translateY(-1px);
}

/* 3. Empty shelf state container */
.wishlist-empty-state {
  display: none;
  text-align: center;
  max-width: 500px;
  margin: 60px auto 100px;
  animation: emptyFadeIn 0.5s ease forwards;
}

@keyframes emptyFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wishlist-empty-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
}

.wishlist-empty-state h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.wishlist-empty-state p {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 30px;
  line-height: 1.6;
}

.wishlist-btn-shop {
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #03B0B1, #028e90);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(3, 176, 177, 0.2);
}

.wishlist-btn-shop:hover {
  background: linear-gradient(135deg, #028e90, #027a7c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 176, 177, 0.3);
}

/* Toast Notifications */
.wishlist-toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.wishlist-toast {
  background-color: #0f172a;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInWishToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOutWishToast 0.3s 2.5s ease-in forwards;
  pointer-events: auto;
}

@keyframes slideInWishToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOutWishToast {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 1199px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 850px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .wishlist-header h1 {
    font-size: 26px;
  }
  
  .wishlist-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wishlist-count-badge {
    width: 100%;
    justify-content: center;
  }
}
