/* Estilos para el sistema de notificaciones */
.notification-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #e65540;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

.notification.success {
  border-left-color: #48bb78;
}

.notification.error {
  border-left-color: #f56565;
}

.notification.warning {
  border-left-color: #ed8936;
}

.notification::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(230, 85, 64, 0.05) 0%,
    transparent 100%
  );
  z-index: -1;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification.success .notification-icon {
  background: #48bb78;
  color: white;
}

.notification.error .notification-icon {
  background: #f56565;
  color: white;
}

.notification.warning .notification-icon {
  background: #ed8936;
  color: white;
}

.notification.default .notification-icon {
  background: #e65540;
  color: white;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.notification-message {
  color: #718096;
  font-size: 0.875rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  color: #718096;
  background: #f7fafc;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #e65540;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 5s linear;
}

.notification.success .notification-progress {
  background: #48bb78;
}

.notification.error .notification-progress {
  background: #f56565;
}

/* Efectos de animación */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes progressBar {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}
.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mejoras para los estados del botón */
.js-addcart-detail:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.js-addcart-detail.loading {
  background: #a0aec0 !important;
}
