/* ═══════════════════════════════════════════
   FavoriteButton — Heart icon + toast
   Sommplicity · Standardized favorites UI
════════════════════════════════════════════ */

/* ── Heart button ────────────────────────── */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  padding: 10px;
  box-sizing: content-box;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-xlight, #A0917F);
  transition: color 0.2s, transform 0.2s;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.fav-btn svg {
  width: 24px;
  height: 24px;
}
.fav-btn:hover {
  color: var(--ink-light, #5C4A3A);
  transform: scale(1.05);
}
.fav-btn:focus-visible {
  outline: 2px solid var(--maroon, #722F37);
  outline-offset: 2px;
  border-radius: 4px;
}
.fav-btn-active {
  color: var(--maroon, #722F37);
}
.fav-btn-active:hover {
  color: var(--maroon, #722F37);
}

/* Pulse animation on favorite */
@keyframes favPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.fav-btn-pulse {
  animation: favPulse 0.4s ease;
}

/* ── Toast notification ──────────────────── */
.fav-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink, #2C1810);
  color: #FAF7F2;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 90vw;
}
.fav-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fav-toast-text {
  white-space: nowrap;
}
.fav-toast-undo {
  background: none;
  border: none;
  color: var(--gold, #B8943E);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.fav-toast-undo:hover {
  color: #D4B048;
}

/* Cards need position: relative for the absolute heart */
.prod-card,
.grape-card,
.region-grid-card,
.explorer-result-card {
  position: relative;
}
