/* Toaster Notifications */
.divine-toaster {
  position: fixed;
  top: 80px; /* Added more space from top */
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  min-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(450px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  font-family: inherit;
  border-left: 4px solid #fbbc4a; /* Theme's primary color */
}

.divine-toaster.show {
  transform: translateX(0);
  opacity: 1;
}

.divine-toaster-success {
  border-left-color: #fbbc4a; /* Theme's primary color for success */
}

.divine-toaster-error {
  border-left-color: #e53637; /* Red for errors */
}

.divine-toaster-warning {
  border-left-color: #ff9800;
}

.divine-toaster-info {
  border-left-color: #2196f3;
}

.toaster-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}

.toaster-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.divine-toaster-success .toaster-icon {
  background: #fbbc4a; /* Theme's primary color */
}

.divine-toaster-success .toaster-icon::before {
  content: "✓";
}

.divine-toaster-error .toaster-icon {
  background: #e53637; /* Red for errors */
}

.divine-toaster-error .toaster-icon::before {
  content: "✗";
}

.divine-toaster-warning .toaster-icon {
  background: #323232; /* Theme's secondary dark color */
}

.divine-toaster-warning .toaster-icon::before {
  content: "!";
}

.divine-toaster-info .toaster-icon {
  background: #111111; /* Theme's main dark color */
}

.divine-toaster-info .toaster-icon::before {
  content: "i";
}

.toaster-message {
  flex: 1;
  color: #111111; /* Theme's main text color */
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.toaster-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toaster-close:hover {
  background: #f0f0f0;
  color: #666;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .divine-toaster {
    top: 60px; /* More space from top on mobile too */
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    transform: translateY(-100px);
  }

  .divine-toaster.show {
    transform: translateY(0);
  }

  .toaster-content {
    padding: 14px 16px;
  }

  .toaster-message {
    font-size: 13px;
  }
} /* Animation for cart count update */
@keyframes cartBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.cart-updated {
  animation: cartBounce 0.5s ease-in-out;
}

/* Progress bar for toaster auto-hide (optional) */
.divine-toaster::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbc4a, #e6a73d); /* Theme colors */
  border-radius: 0 0 8px 8px;
  animation: progressBar 4s linear;
}

.divine-toaster-error::after {
  background: linear-gradient(90deg, #e53637, #d32f2f);
}

.divine-toaster-warning::after {
  background: linear-gradient(90deg, #323232, #222222);
}

.divine-toaster-info::after {
  background: linear-gradient(90deg, #111111, #000000);
}

@keyframes progressBar {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}
