.wishlist-page {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.wishlist-page #wishlistCount {
  color: var(--accent);
  font-weight: 600;
}

.wishlist-page .section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 16px;
  font-weight: 700;
}

.wishlist-page .unavailable-title {
  color: var(--red, #d40000);
}

.wishlist-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.wishlist-card {
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.wishlist-card.unavailable {
  opacity: 0.85;
}

.wishlist-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--off, #f8f9fb);
  margin-bottom: 12px;
}

.wishlist-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.wishlist-card h3 a {
  color: inherit;
  text-decoration: none;
}

.wishlist-card h3 a:hover {
  color: var(--accent);
}

.wishlist-meta {
  font-size: 0.8rem;
  color: var(--mid);
  margin-bottom: 8px;
  line-height: 1.4;
}

.wishlist-meta .wishlist-brand {
  font-weight: 600;
  color: var(--ink);
}

.wishlist-meta .wishlist-cat {
  color: var(--accent);
}

.wishlist-card .price {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.wishlist-card .out-of-stock {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red, #d40000);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.wishlist-remove-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--mid);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.wishlist-remove-icon:hover {
  color: var(--red, #d40000);
}

.wishlist-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--off, #f8f9fb);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.wishlist-empty h2 {
  font-family: var(--font-display);
  margin-bottom: 12px;
}

.wishlist-empty p {
  color: var(--mid);
  margin-bottom: 24px;
}

.wishlist-page .btn-small {
  width: 100%;
  margin-top: 4px;
}

.product-img {
  position: relative;
}

.gallery-actions .wishlist-toggle.active svg {
  fill: var(--accent);
  stroke: var(--accent);
}
