.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.alert-container {
  background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: scale(0.7);
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Icono de éxito con check */
.alert-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #D2691E, #B8860B);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 10px 20px #D2691E;
}

.alert-icon::before {
  content: '✓';
  color: white;
  font-size: 40px;
  font-weight: bold;
}

.alert-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #D2691E;
  border-radius: 50%;
  opacity: 0;
  animation: ripple 1s ease-out;
}

.alert-title {
  color: #d2691e;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: 'Arial', sans-serif;
}

.alert-message {
  color: #6c757d;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.alert-product {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #D2691E;
}

.alert-product-name {
  font-weight: bold;
  color: #000000;
  font-size: 18px;
}

.alert-product-price {
  color: #e63946;
  font-weight: bold;
  font-size: 16px;
  margin-top: 5px;
}

.alert-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.alert-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.alert-btn-primary {
  background: linear-gradient(145deg, #D2691E, #B8860B);
  color: white;
  box-shadow: 0 5px 15px #d2691e;
}

.alert-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #B8860B;
}


.alert-btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
}

.alert-btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.cart-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 16px;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


@keyframes popIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}


@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

.alert-overlay.closing {
  animation: fadeOut 0.3s ease-out forwards;
}

@media (max-width: 480px) {
  .alert-container {
    padding: 20px;
    margin: 20px;
  }
  
  .alert-buttons {
    flex-direction: column;
  }
  
  .alert-btn {
    width: 100%;
    margin: 5px 0;
  }
  
  .alert-icon {
    width: 60px;
    height: 60px;
  }
  
  .alert-icon::before {
    font-size: 30px;
  }
  
  .alert-title {
    font-size: 20px;
  }
}