/* Estilos Personalizados Ultra Profesionales - Smart Health Naturist Center S.A.S */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-emerald: #059669;
  --vivid-emerald: #10b981;
  --electric-teal: #06b6d4;
  --accent-gold: #f59e0b;
  --vivid-amber: #fbbf24;
  --brand-dark: #022c22;
  --neon-glow: rgba(16, 185, 129, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
  background-color: #f8faf9;
  color: #0f172a;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Ocultar barra de scroll pero mantener funcionalidad */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Scrollbar estilizada sutil */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Tarjetas de Producto Ultra Interactivas con Borde Luminoso y Sombra Esmeralda */
.product-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(5, 150, 105, 0.20), 0 10px 18px -6px rgba(0, 0, 0, 0.05);
  border-color: #10b981 !important;
}

/* Glassmorphism y sombras premium para botones */
.btn-action-cart {
  background: linear-gradient(135deg, #047857 0%, #059669 45%, #10b981 100%);
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-action-cart:hover {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.48);
  transform: translateY(-1px);
}
.btn-action-cart:active {
  transform: scale(0.97);
}

/* Resaltado del Banner Promocional con Gradiente Vibrante */
@keyframes promoGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.promo-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 30%, #0d9488 70%, #064e3b 100%);
  background-size: 250% 250%;
  animation: promoGlow 8s ease infinite;
}

/* Acordeón suave */
.accordion-content {
  animation: fadeIn 0.2s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Star rating hover micro-animación */
.star-rating button {
  transition: transform 0.15s ease, color 0.15s ease;
}
.star-rating button:hover {
  transform: scale(1.35);
  color: #d97706;
}

/* Micro-rebote de likes y botones */
button[data-action="like"]:active, button[data-action="dislike"]:active, button[data-wishlist-toggle]:active {
  transform: scale(0.90);
}

.btn-press:active {
  transform: scale(0.96);
}

/* Badges y chips interactivos */
.symptom-chip {
  flex-shrink: 0;
}

/* Shimmer efecto dinámico para ofertas */
@keyframes shimmerEffect {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.shimmer-badge {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.9) 0%, rgba(254, 240, 138, 1) 50%, rgba(245, 158, 11, 0.9) 100%);
  background-size: 200% 100%;
  animation: shimmerEffect 2.8s infinite linear;
}

/* Barra de Urgencia de Stock */
.stock-pulse {
  animation: stockPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes stockPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Animación de Latido de Corazón para Favoritos */
@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.25); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.heart-active {
  animation: heartBeat 0.4s ease-in-out;
  color: #e11d48;
}

/* Lupa de aumento sobre imagen */
.zoom-container {
  overflow: hidden;
}
.zoom-container img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.zoom-container:hover img {
  transform: scale(1.12);
}

/* Efectos de Botones con Degradado y Resplandor Neón */
.btn-vivid-cta {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #0d9488 100%);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4), 0 8px 10px -6px rgba(16, 185, 129, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-vivid-cta:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #0f766e 100%);
  box-shadow: 0 16px 30px -5px rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
}
.btn-vivid-cta:active {
  transform: scale(0.98);
}

/* Botón Dorado de Ruleta con Resplandor Ámbar */
.btn-gold-glow {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-gold-glow:hover {
  box-shadow: 0 16px 32px -4px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px) scale(1.02);
}

/* Chips de Síntomas con Gradiente Activo */
.symptom-chip-active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 6px 16px -2px rgba(5, 150, 105, 0.35);
}

/* Glassmorphism Ultra Premium para Modales y Drawers */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Animación Cinta Marquee Interactiva */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.flash-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.flash-marquee:hover {
  animation-play-state: paused;
}

/* Pulso de Descuento Promocional */
@keyframes flashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.badge-flash-pulse {
  animation: flashPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shimmer para Tarjetas y Banners */
@keyframes flashShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.flash-shimmer-bg {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: flashShimmer 3s infinite;
}

/* Botón flotante 'Volver Arriba' */
#back-to-top-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#back-to-top-btn.hidden-btn {
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
}

/* Efecto de borde animado sutil en tarjetas de productos populares */
.popular-border {
  position: relative;
}
.popular-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, #10b981, #f59e0b, #10b981);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popular-border:hover::before {
  opacity: 1;
}

/* Resplandor en precios destacados */
.price-highlight {
  background: linear-gradient(135deg, #022c22 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= PREVENCIÓN TOTAL DE DESBORDAMIENTO HORIZONTAL (RESPONSIVE MÓVIL/TABLET/LAPTOP) ================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

header, section, main, footer, nav, article {
  max-width: 100%;
  box-sizing: border-box;
}

/* Contenedores con scroll horizontal interno protegido */
.horizontal-scroll-container,
#symptom-chips,
#quick-brand-chips,
#brand-tabs-nav {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Evitar que imágenes o svgs fuercen el ancho de la pantalla */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Protección para botones flotantes para que no excedan el viewport móvil */
.floating-actions-container {
  max-width: calc(100vw - 1rem);
  right: 1rem !important;
  bottom: 1rem !important;
  z-index: 40 !important;
}
@media (min-width: 640px) {
  .floating-actions-container {
    right: 1.5rem !important;
    bottom: 1.5rem !important;
  }
}

/* Ajuste y posicionamiento flotante para el widget de Thunderbolt AI Chatbot */
#thunderbolt-chat-container, 
.thunderbolt-widget, 
iframe[src*="thunderbolt"],
div[id*="thunderbolt"] {
  position: fixed !important;
  z-index: 45 !important;
  max-width: 95vw !important;
}

/* Asegurar que el drawer del carrito siempre tenga pantalla completa y z-index superior a botones flotantes y widgets */
#cart-backdrop {
  z-index: 9998 !important;
}

#cart-drawer {
  z-index: 9999 !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

