/* Wishlist — button, badge, page layout, and remove-button styles */

/* ── Wishlist toggle button (cards & PDP) ───────────────────────────────── */

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s ease, transform 0.18s ease;
  padding: 0;
  line-height: 1;
}

.wishlist-btn:hover {
  color: var(--accent-color);
  transform: scale(1.15);
}

.wishlist-btn.wishlisted {
  color: var(--accent-color);
}

.wishlist-btn.wishlisted i {
  animation: wishlist-pop 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes wishlist-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Positioned inside .product-img-box — appears on hover or when active */

.product-img-box .wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  z-index: 4;
  color: var(--text-color);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.2s ease;
}

.product-img-box:hover .wishlist-btn,
.product-img-box .wishlist-btn.wishlisted {
  opacity: 1;
  transform: translateY(0);
}

.product-img-box .wishlist-btn:hover {
  transform: translateY(0) scale(1.08);
}

/* ── Remove button (wishlist page only) ─────────────────────────────────── */

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
  z-index: 4;
  opacity: 0;
}

.product-img-box:hover .wishlist-remove-btn,
.wishlist-remove-btn:focus {
  opacity: 1;
}

.wishlist-remove-btn:hover {
  background: var(--text-color);
  color: #fff;
}

/* ── Header count badge ─────────────────────────────────────────────────── */

.header-wishlist-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wishlist-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--accent-color);
  color: #fff;
  font-family: var(--font-cta);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

/* ── Wishlist page layout ───────────────────────────────────────────────── */

.wishlist-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 80px;
}

.wishlist-page-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.wishlist-page-title {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.wishlist-count-label {
  font-family: var(--font-cta);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Grid — reuses .product-card styles; just sets the column layout */

.wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Empty / guest states ───────────────────────────────────────────────── */

.wishlist-empty,
.wishlist-guest-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.wishlist-empty-icon,
.wishlist-guest-icon {
  font-size: 3rem;
  color: var(--border-color);
  margin-bottom: 20px;
}

.wishlist-empty-msg,
.wishlist-guest-msg {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.wishlist-shop-btn,
.wishlist-login-btn {
  display: inline-block;
  padding: 13px 36px;
  font-family: var(--font-cta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wishlist-shop-btn:hover,
.wishlist-login-btn:hover {
  background: var(--btn-hover);
  color: #fff;
}

/* ── PDP wishlist button ────────────────────────────────────────────────── */

.pdp-meta-btn.wishlist-btn {
  width: auto;
  height: auto;
  gap: 8px;
  font-family: var(--font-cta);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.pdp-meta-btn.wishlist-btn:hover {
  transform: none;
  color: var(--text-color);
}

.pdp-meta-btn.wishlist-btn.wishlisted {
  color: var(--accent-color);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
}

@media (max-width: 768px) {
  .wishlist-page-wrapper { padding: 30px 20px 60px; }
  .wishlist-page-title { font-size: 1.8rem; }
}

@media (max-width: 576px) {
}
