/* ═══════════════════════════════════════════════════════
   SAANWARIYA WISHLIST — wishlist.css
   Matches Saanwariya Group Black & Gold design system
   ═══════════════════════════════════════════════════════ */

:root {
  --sgw-gold:       #D4AF37;
  --sgw-gold-h:     #E8C84A;
  --sgw-gold-dim:   rgba(212,175,55,0.12);
  --sgw-gold-glow:  rgba(212,175,55,0.25);
  --sgw-border:     rgba(212,175,55,0.14);
  --sgw-border-h:   rgba(212,175,55,0.38);
  --sgw-bg:         #0C0C0C;
  --sgw-bg2:        #111111;
  --sgw-text:       #F0EDE8;
  --sgw-text2:      rgba(240,237,232,0.58);
  --sgw-text3:      rgba(240,237,232,0.30);
  --sgw-card:       rgba(255,255,255,0.04);
  --sgw-card-h:     rgba(255,255,255,0.07);
  --sgw-error:      #FF6B6B;
  --sgw-fd:         'Cormorant Garamond', Georgia, serif;
  --sgw-fb:         'Josefin Sans', 'Helvetica Neue', sans-serif;
  --sgw-ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --sgw-gold:       #B8882A;
  --sgw-gold-h:     #8A6020;
  --sgw-gold-dim:   rgba(184,136,42,0.10);
  --sgw-gold-glow:  rgba(184,136,42,0.18);
  --sgw-border:     rgba(184,136,42,0.16);
  --sgw-border-h:   rgba(184,136,42,0.40);
  --sgw-bg:         #FAFAF8;
  --sgw-bg2:        #F4F2EE;
  --sgw-text:       #1A1611;
  --sgw-text2:      rgba(26,22,17,0.58);
  --sgw-text3:      rgba(26,22,17,0.34);
  --sgw-card:       rgba(0,0,0,0.025);
  --sgw-card-h:     rgba(0,0,0,0.05);
}

/* ─────────────────────────────────────────────────────
   ADD TO WISHLIST BUTTON — product page (full)
   ───────────────────────────────────────────────────── */
.sgw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  margin-top: 10px;
  font-family: var(--sgw-fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sgw-text2);
  background: transparent;
  border: 1.5px solid var(--sgw-border);
  border-radius: 2px;
  cursor: pointer;
  transition: color .22s var(--sgw-ease),
              border-color .22s var(--sgw-ease),
              background .22s var(--sgw-ease);
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  width: 100%;
}

.sgw-btn:hover {
  color: var(--sgw-gold);
  border-color: var(--sgw-gold);
  background: var(--sgw-gold-dim);
}

.sgw-btn--added {
  color: var(--sgw-gold);
  border-color: var(--sgw-gold);
  background: var(--sgw-gold-dim);
}

/* Heart icon */
.sgw-icon--heart {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(0.34,1.4,0.64,1), fill .22s ease;
}
.sgw-btn:hover .sgw-icon--heart,
.sgw-btn--added .sgw-icon--heart {
  transform: scale(1.18);
}
.sgw-btn--added .sgw-icon--heart {
  fill: var(--sgw-gold);
  stroke: var(--sgw-gold);
}

/* Icon-only variant — shop grid */
.sgw-btn--icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  margin-top: 0;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--sgw-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.sgw-btn--icon .sgw-btn-label { display: none; }

/* Pulse animation on add */
@keyframes sgw-heart-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1.15); }
}
.sgw-btn.sgw-animating .sgw-icon--heart {
  animation: sgw-heart-pulse 0.45s cubic-bezier(0.34,1.4,0.64,1) both;
}

/* Floating toast notification */
.sgw-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  background: var(--sgw-bg2);
  border: 1px solid var(--sgw-border-h);
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sgw-fb);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--sgw-text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--sgw-ease);
  pointer-events: none;
  white-space: nowrap;
}
.sgw-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.sgw-toast__link {
  font-weight: 600;
  color: var(--sgw-gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  text-transform: uppercase;
  transition: color .2s ease;
}
.sgw-toast__link:hover { color: var(--sgw-gold-h); }

/* ─────────────────────────────────────────────────────
   WISHLIST PAGE
   ───────────────────────────────────────────────────── */
.sgw-wishlist-page {
  font-family: var(--sgw-fb);
  color: var(--sgw-text);
  padding: 2rem 0 4rem;
}

/* empty state */
.sgw-empty {
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.sgw-empty__icon {
  width: 64px; height: 64px;
  color: var(--sgw-gold); opacity: 0.4;
}
.sgw-empty__icon svg { width: 100%; height: 100%; }
.sgw-empty__title {
  font-family: var(--sgw-fd);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--sgw-text);
  margin: 0;
}
.sgw-empty__desc {
  font-family: var(--sgw-fb);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--sgw-text2);
  max-width: 400px;
  margin: 0;
}
.sgw-empty__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  margin-top: 0.5rem;
  font-family: var(--sgw-fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--sgw-gold);
  color: #080808;
  border-radius: 2px;
  transition: background .22s ease, transform .22s ease;
}
.sgw-empty__link:hover { background: var(--sgw-gold-h); transform: translateY(-2px); }

/* header bar */
.sgw-wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sgw-border);
}
.sgw-wishlist-count {
  font-family: var(--sgw-fb);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sgw-text3);
}
.sgw-clear-all {
  font-family: var(--sgw-fb);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sgw-error);
  background: transparent;
  border: 1px solid rgba(255,107,107,0.22);
  border-radius: 2px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.sgw-clear-all:hover { background: rgba(255,107,107,0.08); border-color: var(--sgw-error); }

/* product grid */
.sgw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.sgw-product-card {
  position: relative;
  background: var(--sgw-card);
  border: 1px solid var(--sgw-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s var(--sgw-ease), box-shadow .3s ease, border-color .3s ease;
  animation: sgw-card-in 0.4s var(--sgw-ease) both;
}
.sgw-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--sgw-border-h);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
}

@keyframes sgw-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sgw-product-card.sgw-removing {
  animation: sgw-card-out 0.35s var(--sgw-ease) forwards;
}
@keyframes sgw-card-out {
  to { opacity: 0; transform: scale(0.92); }
}

/* sale badge */
.sgw-sale-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  background: var(--sgw-gold);
  color: #080808;
  font-family: var(--sgw-fb);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

/* remove btn */
.sgw-remove-item {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sgw-bg);
  border: 1px solid var(--sgw-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sgw-text3);
  padding: 0;
  opacity: 0;
  transition: opacity .22s ease, color .22s ease, border-color .22s ease;
}
.sgw-product-card:hover .sgw-remove-item { opacity: 1; }
.sgw-remove-item:hover { color: var(--sgw-error); border-color: var(--sgw-error); }
.sgw-remove-item svg { width: 12px; height: 12px; }

/* product thumbnail */
.sgw-product-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sgw-bg2);
}
.sgw-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--sgw-ease);
}
.sgw-product-card:hover .sgw-product-img { transform: scale(1.05); }
.sgw-no-img {
  width: 100%;
  height: 100%;
  background: var(--sgw-bg2);
}

/* product info */
.sgw-product-info { padding: 1.1rem; }
.sgw-product-cat {
  font-family: var(--sgw-fb);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sgw-gold);
  display: block;
  margin-bottom: 0.3rem;
}
.sgw-product-name {
  font-family: var(--sgw-fd);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.sgw-product-name a {
  color: var(--sgw-text);
  text-decoration: none;
  transition: color .2s ease;
}
.sgw-product-name a:hover { color: var(--sgw-gold); }
.sgw-product-price {
  margin-bottom: 0.9rem;
  font-family: var(--sgw-fb);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sgw-text);
}
.sgw-product-price .woocommerce-Price-amount { color: var(--sgw-text); }
.sgw-product-price del { color: var(--sgw-text3); font-weight: 400; }
.sgw-product-price ins { text-decoration: none; color: var(--sgw-gold); }

/* action button */
.sgw-add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-family: var(--sgw-fb);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--sgw-gold);
  color: #080808;
  border-radius: 2px;
  border: 1.5px solid var(--sgw-gold);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  line-height: 1;
}
.sgw-add-cart-btn:hover {
  background: var(--sgw-gold-h);
  transform: translateY(-1px);
  color: #080808;
}
.sgw-add-cart-btn.added { background: #3DCA72; border-color: #3DCA72; color: #fff; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sgw-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sgw-grid { grid-template-columns: repeat(2, 1fr); }
  .sgw-remove-item { opacity: 1; }
}
@media (max-width: 480px) {
  .sgw-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .sgw-product-info { padding: 0.85rem; }
  .sgw-btn { font-size: 10px; letter-spacing: 2px; padding: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sgw-btn.sgw-animating .sgw-icon--heart { animation: none; }
  .sgw-product-card { animation: none; }
}
