 body { font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
    #app-header {
    background-color: #EBD549 !important;
    border-color: #EBD549 !important;
    transition: none !important;
}

/* style.css */

.category-card img {
    filter: brightness(0.9);
}

.category-card:hover img {
    filter: brightness(1.1);
}

#dynamic-filters-wrapper:not(.hidden) {
    animation: slideDown 0.4s ease-out;
    position: relative; /* Asegura que empuje el contenido y no flote */
    z-index: 10;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* También asegura que los textos/iconos dentro del header sean visibles (blancos) */
#app-header svg, 
#app-header span, 
#app-header a {
    color: white !important;
}

/* Si el botón de contactar se ve mal, forzamos su borde */
#btn-contact-header {
    border-color: rgba(255,255,255,0.3) !important;
    color: white !important;
}  
      /* Ocultar Scrollbars */
      .hide-scroll::-webkit-scrollbar { display: none; }
      .hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

      /* Slider Snap */
      .slider-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
      }
      .slider-item {
        min-width: 100%;
        width: 100%;
        flex-shrink: 0;
        scroll-snap-align: center;
        position: relative;
      }
      .media-cover { width: 100%; height: 100%; object-fit: cover; }
      .media-contain { width: 100%; height: 100%; object-fit: contain; background: #f9fafb; }

      /* Animaciones */
      @keyframes flashPrice { 0% { transform:scale(1.06); color:#059669; } 100% { transform:scale(1);} }
      .price-flash { animation: flashPrice .4s ease-out; }

      /* Estilo para la barra de scroll visible y elegante */
.custom-scroll::-webkit-scrollbar {
    width: 6px; /* Grosor de la barra vertical */
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color del fondo del carril */
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1; /* Color de la barra que se mueve */
    border-radius: 10px;
    transition: background 0.3s;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #10b981; /* Color primario (verde) al pasar el mouse */
}

/* Asegurar que el contenedor tenga el scroll activo */
.custom-scroll {
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: #c1c1c1 #f1f1f1; /* Para Firefox */
}

      /* Badges Pill Style */
      .badge-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        border-radius: 9999px;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1;
        white-space: nowrap;
      }
      
      /* Badge Aesthetic (Modal) */
      .badge-aesthetic {
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border: 1px solid transparent;
        padding: 5px 12px;
        font-size: 0.7rem;
      }

      /* Badge Mini (Card) */
      .badge-mini {
        font-size: 0.55rem;
        padding: 3px 6px;
        line-height: 1;
        border-radius: 4px;
        font-weight: 800;
        letter-spacing: 0.5px;
      }

      /* Tags Seleccionables */
      .tag-selectable {
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent;
      }
      .tag-selectable:hover { transform: translateY(-1px); }
      .tag-selectable.active {
        background-color: #111827; 
        color: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      }
      
      /* Estilos para Selección de Decoración */
      .deco-card {
        cursor: pointer;
        transition: all 0.2s;
        border: 2px solid transparent;
      }
      .deco-card:hover { transform: translateY(-2px); }
      .deco-card.selected {
        border-color: #10b981; /* Primary Green */
        background-color: #ecfdf5;
      }
      .deco-card.selected .check-icon { opacity: 1; transform: scale(1); }
      
      /* Transiciones Modal */
      .modal-enter { transform: translateX(100%); }
      .modal-exit { transform: translateX(100%); }
      
      /* Background Image Support CORREGIDO */
      body.has-bg-image::before{
        content:""; position: fixed; inset:0;
        background-image: var(--bg-img); 
        background-size: cover; background-position: center; background-repeat: no-repeat;
        z-index:-2;
      }
      body.has-bg-image::after{
        content:""; position: fixed; inset:0; z-index:-1;
        background-color: var(--bg-overlay);
      }
      
      /* Rich Text (Saltos de linea) */
      .rich-text { white-space: pre-line; }

      /* Inputs number clean */
      input[type=number]::-webkit-inner-spin-button, 
      input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

      /* ESTILOS GEMINI AGENT */
      .gemini-btn {
          position: relative;
          overflow: hidden;
      }
      .gemini-btn::after {
          content: '';
          position: absolute;
          top: -50%;
          left: -50%;
          width: 200%;
          height: 200%;
          background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
          transform: rotate(45deg);
          animation: shine 3s infinite;
      }
      @keyframes shine {
          0% { transform: translateX(-100%) rotate(45deg); }
          100% { transform: translateX(100%) rotate(45deg); }
      }
      .chat-bubble {
          max-width: 85%;
          padding: 10px 14px;
          border-radius: 12px;
          font-size: 0.85rem;
          line-height: 1.4;
          margin-bottom: 8px;
          position: relative;
      }
      .chat-bubble.bot {
          background: white;
          color: #374151;
          border: 1px solid #e5e7eb;
          border-bottom-left-radius: 2px;
      }
      .chat-bubble.user {
          color: white;
          align-self: flex-end;
          border-bottom-right-radius: 2px;
          margin-left: auto;
      }
      /* Loading dots */
      .typing-indicator span {
        display: inline-block;
        width: 4px;
        height: 4px;
        background-color: #ccc;
        border-radius: 50%;
        animation: typing 1s infinite;
        margin: 0 1px;
      }
      .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
      .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
      @keyframes typing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
      
      #app-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#filters-container {
    position: relative; /* Cambiado de fixed/sticky a relative */
    width: 100%;
    z-index: 10;
    background: white;
}

#product-grid {
    margin-top: 0 !important; /* Eliminamos márgenes que intenten compensar posiciones fijas */
    padding-top: 10px;
}
/* Ajustes para el scroll horizontal de categorías */
#category-mosaic {
    display: flex;
    flex-wrap: nowrap; /* Evita que las categorías salten a la siguiente línea */
    -webkit-overflow-scrolling: touch; /* Suavidad en dispositivos móviles */
}

#category-mosaic .category-card {
    /* Mantenemos el tamaño visual que tenían en el mosaico original */
    min-width: 150px; 
    flex: 0 0 150px; /* Evita que se encojan */
    scroll-snap-align: start; /* Hace que se "ajusten" al desplazarse */
}