/**
 * Wishlist Page Styles
 */

.wishlist-page {
  padding: var(--space-8) 0 var(--space-12);
  min-height: 60vh;
}

.wishlist-page-header {
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-4);
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.wishlist-page-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-heading);
  margin: 0;
}

.wishlist-page-count {
  font-size: var(--text-sm);
  color: var(--text);
  opacity: 0.6;
  margin: 0;
}

/* Loading Spinner */
.wishlist-page-loading {
  display: flex;
  justify-content: center;
  padding: var(--space-12) 0;
}

.wishlist-page-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: wishlist-spin 0.7s linear infinite;
}

@keyframes wishlist-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Product Grid */
.wishlist-page-products-wrap .wishlist-page-products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Override product-item flex basis to fit 4 per row */
.wishlist-page-products-wrap .product-item {
  flex: 0 0 calc(25% - 12px);
}

/* Hide WooCommerce default onsale badge — custom badges handle this */
.wishlist-page-products-wrap span.onsale {
  display: none !important;
}

@media (max-width: 1024px) {
  .wishlist-page-products-wrap .product-item {
    flex: 0 0 calc(33.333% - 11px);
  }
}

@media (max-width: 640px) {
  .wishlist-page-products-wrap .product-item {
    flex: 0 0 calc(50% - 8px);
  }
}

/* Empty State */
.wishlist-page-empty {
  text-align: center;
  padding: var(--space-12) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.wishlist-page-empty svg {
  opacity: 0.25;
}

.wishlist-page-empty h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
}

.wishlist-page-empty p {
  font-size: var(--text-base);
  opacity: 0.65;
  margin: 0;
}
