/**
 * CHIC CHARMS — Wishlist Styles
 * Premium, mobile-first design matching the brand aesthetic.
 */

.wishlist-page {
  padding-bottom: 100px;
}

.wishlist-header {
  padding: 24px 20px 16px;
  background: #fff8f7;
  text-align: left;
}

.wishlist-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: #8e4559;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wishlist-header .count {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #857276;
}

/* Empty State */
.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  min-height: 60vh;
}

.wishlist-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  color: #d7c1c5;
  animation: heartPulse 2s infinite ease-in-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.wishlist-empty h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: #1f1a1b;
  margin: 0 0 10px;
}

.wishlist-empty p {
  font-size: 15px;
  color: #534346;
  margin: 0 0 30px;
  line-height: 1.5;
}

.wishlist-continue-btn {
  background: #8e4559;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(142, 69, 89, 0.25);
}

.wishlist-continue-btn:active {
  transform: scale(0.96);
}

/* Grid & Cards */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

@media (min-width: 768px) {
  .wishlist-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wishlist-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(215, 193, 197, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.wishlist-card:active {
  transform: translateY(-4px);
}

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #534346;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.wishlist-img-link {
  display: block;
  aspect-ratio: 4/5;
  background: #f6eceb;
  overflow: hidden;
}

.wishlist-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wishlist-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #857276;
  margin-bottom: 4px;
}

.wishlist-name {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  color: #1f1a1b;
  margin: 0 0 6px;
  line-height: 1.3;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.wishlist-price {
  font-weight: 600;
  color: #8e4559;
  font-size: 15px;
}

.wishlist-move-btn {
  width: 100%;
  background: #1f1a1b;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.wishlist-move-btn:active {
  background: #342f2f;
}

/* Animations */
.card-appear {
  animation: slideUp 0.5s ease forwards;
}

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

.card-remove {
  animation: slideOut 0.4s ease forwards;
}

@keyframes slideOut {
  to { opacity: 0; transform: scale(0.9); }
}

/* Product Card Heart Button Overlay */
.product-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(215, 193, 197, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e4559;
  transition: all 0.2s;
  cursor: pointer;
  padding: 0;
}

.product-heart-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-heart-btn.active svg {
  fill: #8e4559;
  transform: scale(1.15);
}

.product-heart-btn:active {
  transform: scale(0.9);
}
