/* ═══════════════════════════════════════════════════════════════════════
   VividHome — Wishlist Page
   localStorage-based, AJAX-loaded product grid
   ═══════════════════════════════════════════════════════════════════════ */

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


/* ── Header ── */

.wishlist-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--vh-space-8);
}

.wishlist-title {
  font-family: var(--vh-font-heading), system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vh-ink);
  margin: 0;
}

.wishlist-count {
  font-family: 'Onest', var(--vh-font-body), system-ui, sans-serif;
  font-size: 15px;
  color: var(--vh-stone);
  margin: 0;
}


/* ── Empty State ── */

.wishlist-empty {
  text-align: center;
  padding: var(--vh-space-16) var(--vh-space-4);
}

.wishlist-empty-icon {
  color: var(--vh-sand);
  margin-bottom: var(--vh-space-5);
}

.wishlist-empty-heading {
  font-family: var(--vh-font-heading), system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vh-ink);
  margin: 0 0 8px;
}

.wishlist-empty-text {
  font-family: 'Onest', var(--vh-font-body), system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--vh-slate);
  margin: 0 0 var(--vh-space-6);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.wishlist-browse-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wishlist-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'Onest', var(--vh-font-body), system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 50px;
  background: linear-gradient(135deg, #1B3A8C 0%, #7B2D8E 50%, #D41B6B 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(123, 45, 142, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.wishlist-browse-btn:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123, 45, 142, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wishlist-browse-btn svg {
  transition: transform 0.2s ease;
}

.wishlist-browse-btn:hover svg {
  transform: translateX(3px);
}

.wishlist-browse-btn--alt {
  background: linear-gradient(135deg, #00B4E8 0%, #1B3A8C 50%, #7B2D8E 100%);
  box-shadow: 0 4px 16px rgba(27, 58, 140, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wishlist-browse-btn--alt:hover {
  box-shadow: 0 6px 24px rgba(27, 58, 140, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
}


/* ── Loading State ── */

.wishlist-loading {
  text-align: center;
  padding: var(--vh-space-16) 0;
  color: var(--vh-stone);
  font-family: 'Onest', var(--vh-font-body), system-ui, sans-serif;
  font-size: 14px;
}

.wishlist-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--vh-sand);
  border-top-color: var(--vh-ink);
  border-radius: 50%;
  margin: 0 auto var(--vh-space-4);
  animation: wishlist-spin 0.7s linear infinite;
}

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


/* ── Shared layout helper (matches canvas-prints listing) ── */

.cp-container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }


/* ── Product Grid + Card (mirrors taxonomy-product_cat-canvas-prints.php) ── */

.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  transition: opacity .2s ease;
}

.cp-card { display: block; text-decoration: none; color: inherit; }

.cp-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #F0EDE8;
}

.cp-card__img-bg { width: 100%; height: 100%; transition: transform 500ms cubic-bezier(.16,1,.3,1); }
.cp-card__img-real {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 500ms cubic-bezier(.16,1,.3,1);
}
.cp-card:hover .cp-card__img-bg,
.cp-card:hover .cp-card__img-real { transform: scale(1.04); }

.cp-card__wish {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, .9); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #4A4A4A;
  /* Always visible on the wishlist page (every card is wishlisted by definition). */
  opacity: 1;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.cp-card__wish.is-wishlisted { background: #FDF2F8; color: #DB2777; }

.cp-card__badge {
  position: absolute; top: 10px; left: 10px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 20px; background: #1A1A1A; color: #fff;
}
.cp-card__badge--new { background: #2563EB; }

.cp-card__qv {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26, 26, 26, .85); color: #fff; text-align: center; padding: 10px;
  font-family: 'Onest', system-ui, sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  transform: translateY(100%); transition: transform 250ms cubic-bezier(.16,1,.3,1);
}
.cp-card:hover .cp-card__qv { transform: translateY(0); }

.cp-card__info { padding: 12px 0 0; }
.cp-card__name {
  font-family: 'Onest', system-ui, sans-serif; font-size: 14px; font-weight: 500;
  color: #1A1A1A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.cp-card__meta { font-family: 'Onest', system-ui, sans-serif; font-size: 12px; color: #8A8A8A; margin-bottom: 6px; }
.cp-card__price { font-family: 'Onest', system-ui, sans-serif; font-size: 15px; font-weight: 700; color: #1A1A1A; }
.cp-card__sizes { font-family: 'Onest', system-ui, sans-serif; font-size: 11px; color: #8A8A8A; margin-top: 4px; }


/* ── Responsive ── */

@media (max-width: 1199px) { .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 767px) {
  .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cp-card__qv { display: none; }
  .wishlist-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 479px) {
  .wishlist-empty { padding: var(--vh-space-10) var(--vh-space-3); }
  .wishlist-empty-heading { font-size: 1.25rem; }
}
