/* ==========================================================================
   Wishlist page — saved items grid, rendered from localStorage
   ========================================================================== */

.page-hero {
  padding: 60px 24px 40px;
  text-align: center;
  background: var(--cream);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  margin: 0 0 12px;
  color: var(--black);
}

.page-hero p {
  font-size: 1rem;
  color: var(--gray);
  margin: 0;
}

/* ---------------------------------------------------------------- layout */

.wishlist-page {
  padding: 60px 24px 100px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.wishlist-empty-msg {
  text-align: center;
  padding: 80px 24px;
  font-size: 1.125rem;
  color: var(--gray);
}

.wishlist-empty-msg a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.wishlist-empty-msg a:hover {
  opacity: 0.7;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 24px;
}

/* ------------------------------------------------------------------ card */

.wishlist-card {
  position: relative;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.wishlist-img {
  display: block;
  aspect-ratio: 1;
  background: var(--light-gray);
  overflow: hidden;
  margin-bottom: 14px;
}

.wishlist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.wishlist-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wishlist-remove:hover {
  background: var(--black);
  color: var(--white);
}

.wishlist-card h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.wishlist-card h3 a {
  color: var(--black);
  text-decoration: none;
}

.wishlist-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wishlist-desc {
  font-size: 0.8125rem;
  color: var(--gray);
  margin: 0 0 8px;
  line-height: 1.4;
}

.wishlist-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 14px;
}

.wishlist-add {
  margin-top: auto;
  width: 100%;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wishlist-add:hover {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 767px) {
  .wishlist-page {
    padding: 40px 16px 60px;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }
}
