/* ============================================
   NOTIFICACIONES DE CAMBIO DE CONFIGURACIÓN
   ============================================ */

.price-change-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 350px;
}

.price-change-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
  font-weight: 600;
  font-size: var(--font-size-base);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.6);
  }
}

.notification-content svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Responsive */
@media (max-width: 599px) {
  .price-change-notification {
    top: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification-content {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .notification-content svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   MEJORAS PARA PRECIO EN PRODUCT.HTML
   ============================================ */

/* Asegurar que price-section sea visible cuando showPrices = true */
.price-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.3s ease;
}

.price-section.hidden {
  display: none !important;
}

.product-price {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  transition: all 0.3s ease;
}

/* Animación cuando aparece el precio */
@keyframes fadeInPrice {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-price {
  animation: fadeInPrice 0.3s ease;
}

/* ============================================
   MEJORAS PARA PRECIOS EN TARJETAS (CATALOG E INDEX)
   ============================================ */

.product-price-section {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--light-gray);
  transition: all 0.3s ease;
}

.product-card .product-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
  display: block;
  animation: fadeInPrice 0.3s ease;
}

/* Estado loading para cambios */
.price-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .notification-content {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    border-color: rgba(255, 255, 255, 0.2);
  }
}
