/**
 * CSS para el nuevo sistema de precios por país y listas
 * Compatibilidad con el tema Ecomus
 */

/* === BADGES Y ETIQUETAS === */
.price-list-info {
  margin-top: 0.5rem;
}

.price-list-info small {
  color: #6c757d;
  font-size: 0.75rem;
  display: block;
  text-align: center;
}

.price-hidden {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* === BOTONES DE COTIZACIÓN === */
.quote-btn {
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #212529 !important;
  transition: all 0.3s ease;
}

.quote-btn:hover {
  background-color: #e0a800 !important;
  border-color: #d39e00 !important;
  color: #212529 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* === VISTA DE DETALLE ESPECÍFICA === */
.tf-product-info-price .price-list-badge {
  margin-top: 0.5rem;
}

.tf-product-info-price .price-list-badge .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.tf-product-info-price .price-source-info {
  margin-top: 0.5rem;
}

.tf-product-info-price .price-source-info small {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  color: #6c757d;
}

.price-hidden-message {
  text-align: center;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  margin: 0.5rem 0;
  border: 1px solid #e9ecef;
}

.price-hidden-message .price-on-sale {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* === VISTA DE GRILLA Y CAROUSEL === */
.card-product .price-wrapper .price-hidden {
  padding: 0.4rem 0.6rem;
  margin: 0.3rem 0;
  font-size: 0.85rem;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.card-product .quote-btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

.card-product .quote-btn .icon {
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .price-hidden-message {
    padding: 1rem;
  }
  
  .price-list-info small {
    font-size: 0.7rem;
  }
  
  .card-product .quote-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .card-product .quote-btn .icon {
    font-size: 0.8rem;
  }
}

/* === ANIMACIONES === */
.quote-btn, .price-hidden, .price-list-info {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ESTADOS DE CARGA === */
.pricing-loading {
  position: relative;
  opacity: 0.6;
}

.pricing-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === INTEGRACION CON TEMA ECOMUS === */
.tf-btn.quote-btn {
  min-height: 44px;
  font-weight: 600;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.5px;
}

.tf-btn.quote-btn .icon {
  margin-right: 0.5rem;
}

/* Asegurar que los estilos no interfieran con otros elementos */
.price-wrapper .price-hidden,
.price-wrapper .price-list-info {
  width: 100%;
  box-sizing: border-box;
}