/* GoldenRod Commerce Suite v25 — Wishlist */

/* ── Toggle Button (on product pages) ── */
.grcs-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--grcs-border, rgba(212,175,55,.24));
  border-radius: 6px;
  color: var(--grcs-text-muted, #cbb98a);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}
.grcs-wishlist-btn svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
  transition: fill .15s, stroke .15s;
}
.grcs-wishlist-btn:hover {
  border-color: var(--grcs-gold, #d4af37);
  color: var(--grcs-gold, #d4af37);
}
.grcs-wishlist-btn.is-wishlisted {
  border-color: var(--grcs-gold, #d4af37);
  color: var(--grcs-gold, #d4af37);
  background: rgba(212,175,55,.08);
}
.grcs-wishlist-btn.is-wishlisted svg {
  fill: var(--grcs-gold, #d4af37);
  stroke: var(--grcs-gold, #d4af37);
}
.grcs-wishlist-btn.is-loading {
  pointer-events: none;
  opacity: .65;
}

/* ── Count badge ── */
.grcs-wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--grcs-gold, #d4af37);
  color: #060606;
  font-size: .72rem;
  font-weight: 800;
  border-radius: 20px;
}

/* ── Wishlist page ── */
.grcs-wishlist-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}
.grcs-wishlist-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grcs-gold-soft, #f5e7b8);
  margin-bottom: 8px;
}
.grcs-wishlist-page-sub {
  font-size: .85rem;
  color: var(--grcs-text-muted, #cbb98a);
  margin-bottom: 24px;
}

/* ── Empty state ── */
.grcs-wishlist-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--grcs-text-muted, #cbb98a);
}
.grcs-wishlist-empty-icon {
  display: block;
  margin: 0 auto 16px;
  opacity: .3;
}
.grcs-wishlist-empty-icon svg { width: 56px; height: 56px; }
.grcs-wishlist-empty p { margin: 0 0 20px; font-size: .95rem; }
.grcs-wishlist-empty a {
  color: var(--grcs-gold, #d4af37);
  font-weight: 600;
  text-decoration: none;
}
.grcs-wishlist-empty a:hover { text-decoration: underline; }

/* ── Product grid ── */
.grcs-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ── Product card ── */
.grcs-wishlist-card {
  background: var(--grcs-surface, #14171c);
  border: 1px solid var(--grcs-border, rgba(212,175,55,.24));
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.grcs-wishlist-card:hover {
  border-color: var(--grcs-border-s, rgba(224,184,78,.48));
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.grcs-wishlist-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--grcs-bg, #060606);
}
.grcs-wishlist-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.grcs-wishlist-card:hover .grcs-wishlist-card-image img { transform: scale(1.04); }

.grcs-wishlist-card-remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(6,6,6,.7);
  border: 1px solid var(--grcs-border, rgba(212,175,55,.24));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--grcs-text-muted, #cbb98a);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: color .12s, border-color .12s, background .12s;
  backdrop-filter: blur(4px);
}
.grcs-wishlist-card-remove:hover {
  color: #e05252;
  border-color: rgba(224,82,82,.5);
  background: rgba(224,82,82,.1);
}

.grcs-wishlist-card-body {
  padding: 14px 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.grcs-wishlist-card-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--grcs-gold-soft, #f5e7b8);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.grcs-wishlist-card-title:hover { color: var(--grcs-gold, #d4af37); }
.grcs-wishlist-card-price {
  font-size: .85rem;
  color: var(--grcs-gold, #d4af37);
  font-weight: 600;
}
.grcs-wishlist-card-price del { color: var(--grcs-text-muted, #cbb98a); font-weight: 400; margin-right: 4px; }
.grcs-wishlist-card-oos {
  font-size: .75rem;
  color: #e05252;
  font-weight: 600;
}

.grcs-wishlist-card-footer {
  padding: 0 14px 14px;
}
.grcs-wishlist-card-atc {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--grcs-gold, #d4af37);
  color: #060606;
  text-align: center;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .14s;
}
.grcs-wishlist-card-atc:hover { background: var(--grcs-gold-2, #e0b84e); }
.grcs-wishlist-card-atc.is-oos {
  background: var(--grcs-surface-2, #1b2027);
  color: var(--grcs-text-muted, #cbb98a);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Toast notification ── */
.grcs-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--grcs-surface, #14171c);
  border: 1px solid var(--grcs-border-s, rgba(224,184,78,.48));
  border-left: 4px solid var(--grcs-gold, #d4af37);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--grcs-text, #f5e7b8);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  z-index: 99999;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  pointer-events: none;
  max-width: 300px;
}
.grcs-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .grcs-wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grcs-toast { left: 16px; right: 16px; bottom: 16px; }
}
