/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  font-weight: 500;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.notification-success {
  background: var(--notification-success-bg);
  color: var(--notification-success-text);
}

.notification-error {
  background: var(--notification-error-bg);
  color: var(--notification-error-text);
}

.notification-info {
  background: var(--notification-info-bg);
  color: var(--notification-info-text);
}

/* Shop notices share the cart's calm surface and editorial typography. */
.shop-toast {
  position: fixed;
  top: 8rem;
  right: var(--grid-gap-sm);
  z-index: 1100;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 2.8rem;
  align-items: start;
  gap: 1.2rem;
  width: min(40rem, calc(100vw - 3.2rem));
  box-sizing: border-box;
  padding: 2rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
}
.shop-toast__icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid currentColor;
  border-radius: var(--border-radius-full);
  font: 1.3rem/1 var(--font-mono);
}
.shop-toast--success .shop-toast__icon { color: #287552; background: #e5f3eb; }
.shop-toast--error .shop-toast__icon { color: #ae3f38; background: #fbe9e7; border-width: 2px; }
.shop-toast__label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font: 1.1rem/1.4 var(--font-mono);
}
.shop-toast__message {
  font: 2rem/1.35 var(--font-serif);
  overflow-wrap: anywhere;
}
.shop-toast__message a {
  display: inline-block;
  margin-top: 0.8rem;
  font: 1.2rem/1.5 var(--font-mono);
  color: var(--text-primary);
  text-underline-offset: 0.3rem;
}
.shop-toast__close {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: -0.4rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: 2.2rem/1 var(--font-sans);
  cursor: pointer;
}
.shop-toast :is(a, button):focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
@media (max-width: 1200px) {
  .shop-toast { right: var(--grid-gap-md); }
}
@media (max-width: 600px) {
  .shop-toast { top: 7rem; }
}

.shop-toast { animation: shop-toast-enter 240ms ease-out both; }
.shop-toast--info .shop-toast__icon { color: #356ca0; background: #e8f0fa; }
.shop-toast.is-leaving { animation: shop-toast-exit 200ms ease-in both; }
@keyframes shop-toast-enter {
  from { opacity: 0; transform: translateY(-1.2rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shop-toast-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-0.8rem); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-toast, .shop-toast.is-leaving { animation: none; }
}
