 body { font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

      @keyframes spin { to { transform: rotate(360deg); } }
      
      /* 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; }

      /* ══ GEMINI AGENT — estilos modernos ══ */

      /* Botón flotante */
      .gemini-btn {
          position: relative;
          animation: gemini-float 3.5s ease-in-out infinite;
          transition: transform .2s, box-shadow .2s;
      }
      .gemini-btn:hover { animation-play-state: paused; transform: scale(1.12) !important; box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important; }
      @keyframes gemini-float {
          0%, 100% { transform: translateY(0px); }
          50%       { transform: translateY(-6px); }
      }
      /* Anillo de pulso */
      .gemini-btn::before {
          content: '';
          position: absolute;
          inset: -5px;
          border-radius: 50%;
          border: 2.5px solid var(--gemini-color, #8B5CF6);
          opacity: 0;
          animation: gemini-pulse 2.8s ease-out infinite;
          pointer-events: none;
      }
      @keyframes gemini-pulse {
          0%   { opacity: 0.65; transform: scale(1); }
          100% { opacity: 0;    transform: scale(1.55); }
      }

      /* Ojos del robot */
      .robot-eye { animation: robot-blink 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
      .robot-eye-r { animation-delay: 0.1s; }
      @keyframes robot-blink {
          0%, 85%, 100% { transform: scaleY(1); }
          90%           { transform: scaleY(0.07); }
      }

      /* Burbuja de invitación */
      .gemini-invite-bubble {
          background: white;
          border-radius: 18px 18px 4px 18px;
          padding: 10px 14px;
          box-shadow: 0 8px 32px rgba(0,0,0,0.14);
          max-width: 215px;
          font-size: 0.82rem;
          color: #1f2937;
          line-height: 1.4;
          pointer-events: auto;
          animation: bubble-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          transform-origin: bottom right;
      }
      @keyframes bubble-pop {
          from { opacity: 0; transform: scale(0.7) translateY(8px); }
          to   { opacity: 1; transform: scale(1)   translateY(0); }
      }
      .gemini-invite-bubble.hiding {
          animation: bubble-hide 0.22s ease-in forwards;
      }
      @keyframes bubble-hide {
          to { opacity: 0; transform: scale(0.85) translateY(4px); }
      }

      /* Chips de sugerencia */
      .gemini-chip {
          display: inline-block; cursor: pointer; font-size: 0.7rem; font-weight: 600;
          padding: 4px 10px; border-radius: 99px; border: 1.5px solid currentColor;
          white-space: nowrap; transition: opacity .15s;
      }
      .gemini-chip:hover { opacity: 0.75; }
      .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); } }

      /* ── AI action buttons ── */
      .ai-act-btn { display:inline-flex;align-items:center;gap:4px;margin:4px 3px 0 0;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;border:none;transition:opacity .15s; }
      .ai-act-btn:hover { opacity:.82; }
      .ai-cart-btn { background:#10b981;color:white; }
      .ai-wa-btn { background:#25D366;color:white; }
      .ai-nequi-btn { background:#8B5CF6;color:white; }
      .ai-link { color:#10b981;text-decoration:underline;font-weight:500; }

      /* ── Categorías por imagen ── */
      #category-images-strip { scrollbar-width: none; }
      #category-images-strip::-webkit-scrollbar { display: none; }
      .cat-img-card {
        display: flex; flex-direction: column; align-items: center; gap: 5px;
        border: 2px solid transparent; border-radius: 14px; padding: 6px 10px;
        background: #fff; cursor: pointer; flex-shrink: 0;
        transition: border-color 0.15s, transform 0.1s;
        min-width: 72px; max-width: 90px;
      }
      .cat-img-card:hover { border-color: #d1fae5; transform: translateY(-1px); }
      .cat-img-card.active { border-color: #10b981; background: #f0fdf4; }
      .cat-img-thumb {
        width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
        background: #f3f4f6; display: flex; align-items: center; justify-content: center;
      }
      .cat-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
      .cat-img-card span {
        font-size: 0.65rem; font-weight: 700; text-align: center;
        color: #374151; line-height: 1.2; max-width: 80px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      }
      .cat-img-card.active span { color: #065f46; }

      /* Acordeones admin (panel Funciones) */
      details summary { list-style: none; }
      details summary::-webkit-details-marker { display: none; }
      .details-chevron { transition: transform 0.2s ease; }
      details[open] .details-chevron { transform: rotate(180deg); }

      /* Modal de producto — imagen */
      .detail-slider-img { aspect-ratio: 3/4; min-height: 260px; max-height: 52vh; }
      @media (min-width: 768px) {
        .detail-slider-img { aspect-ratio: auto; max-height: none; height: 100%; min-height: 400px; }
        #modal-panel { min-height: 520px; }
      }
