:root {
    --background-dark: #131314;
    --surface-dark: #1E1F20;
    --primary-purple: #c084fc;
    --primary-fuchsia: #f0abfc;
    --primary-green: #4ade80;
    --text-light: #e5e7eb;
    --subtle-gray: #4b5563;
    --user-gradient: linear-gradient(135deg, #8b5cf6, #a855f7);
    --font-main: 'Poppins', sans-serif;
    /* New Vitrine Styles (from your provided CSS) */
    --black-background: #0c0a09;
    --text-primary: #f0f2f5;
    --text-secondary: #a1a1aa;
    --card-background-vitrine: rgba(255, 255, 255, 0.08);
    --card-border-vitrine: rgba(255, 255, 255, 0.15);
    --card-hover-border-vitrine: rgba(147, 51, 234, 0.7);
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Poppins', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--black-background);
    background-image: radial-gradient(circle at 15% 20%, rgba(147, 51, 234, 0.12) 0%, transparent 35%),
                      radial-gradient(circle at 85% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    font-family: var(--font-sans);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.6s cubic-bezier(.77,0,.18,1) forwards; }
.fade-out { animation: fadeOut 0.6s cubic-bezier(.77,0,.18,1) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-20px); } }

.animation-delay-300 { animation-delay: 300ms; }
.animate-fade-in-down { animation: fadeInDown 0.6s both; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.6s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- ESTILOS DA INTRODUÇÃO E LOADING --- */
.intro-container, .loading-container { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; }
.presentation-content { width: 100%; max-width: 650px; height: 100%; display: flex; align-items: center; justify-content: center; }

@keyframes deal-in {
    from { opacity: 0; transform: translateY(120%) rotate(90deg) scale(0.5); }
    to { opacity: 1; transform: translateY(0) rotate(var(--rotation-deg)) scale(1); }
}
.intro-product-card { width: 180px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: #2c2c2e; padding: 1rem; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); border: 1px solid var(--subtle-gray); position: absolute; animation: deal-in 0.6s ease-out forwards; --rotation-deg: 0deg; }
.intro-product-card img { width: 60px; height: 60px; object-fit: cover; margin-bottom: 0.5rem; }
.intro-product-info { text-align: center; }
.intro-product-info h4 { font-weight: 600; font-size: 0.8rem; color: white; }
.intro-product-info p { font-size: 0.75rem; color: var(--text-light); margin: 0.2rem 0; height: 3.5em; overflow: hidden; }
/* Removed price from intro card */
.cta-button { background-image: linear-gradient(to right, var(--primary-purple), var(--primary-fuchsia)); transition: transform 0.2s, box-shadow 0.2s; }
.cta-button:hover { transform: scale(1.05); box-shadow: 0 15px 30px -10px rgba(168,85,247,0.5); }
.loading-icon { font-size: 4rem; animation: bounce-icon 2s infinite; }
@keyframes bounce-icon { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

/* --- ESTILOS DO CHAT --- */
.app-container { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 1rem 1rem 0 1rem; flex: 1; min-height: 0; }
.chat-interface, #post-chat-container { width: 100%; max-width: 800px; flex: 1 1 0; min-height: 0; background-color: var(--surface-dark); border-radius: 1.5rem; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--subtle-gray); }
.chat-scroll-area { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0 0.5rem; }
.chat-scroll-area::-webkit-scrollbar { width: 8px; }
.chat-scroll-area::-webkit-scrollbar-track { background: transparent; }
.chat-scroll-area::-webkit-scrollbar-thumb { background: var(--subtle-gray); border-radius: 8px; }
.chat-messages { padding: 1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.input-area { padding: 1.5rem 1rem; margin-top: auto; flex-shrink: 0; background: var(--surface-dark); }
.message { padding: 1rem 1.5rem; border-radius: 1rem; line-height: 1.6; animation: fadeIn 0.4s ease-out both; max-width: 85%; white-space: pre-wrap; }
.bot-message { background-color: #2c2c2e; color: var(--text-light); align-self: flex-start; border-bottom-left-radius: 0.25rem; }
.user-message { background: var(--user-gradient); color: white; align-self: flex-end; font-weight: 500; border-top-right-radius: 0.25rem; }
.action-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Exemplo para botões arredondados */
    border: 1px solid var(--primary-purple);
    background: transparent;
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button.primary, .action-button:hover { background: var(--primary-purple); color: white; }
.input-with-button { display: flex; gap: 1rem; align-items: center; padding: 0.5rem; background-color: #2c2c2e; border-radius: 1.5rem; }
.input-area input { width: 100%; padding: 1rem; background-color: transparent; border: none; font-size: 1rem; color: var(--text-light); }
.input-area input:focus { outline: none; }
.input-area input::placeholder { color: #8e8e93; }
.input-with-button button { height: 48px; width: 48px; flex-shrink: 0; border-radius: 50%; border: none; background: #8B5CF6; color: white; cursor: pointer; display: grid; place-items: center; transition: all 0.2s; }
.input-with-button button:hover { transform: scale(1.1); }

/* --- INDICADOR DE DIGITAÇÃO RESTAURADO --- */
@keyframes bounce-typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }
.typing-indicator { align-self: flex-start; display: flex; gap: 0.5rem; padding: 1rem 1.5rem; background-color: #2c2c2e; border-radius: 1rem; border-bottom-left-radius: 0.25rem; }
.typing-indicator span { width: 10px; height: 10px; background-color: var(--subtle-gray); border-radius: 50%; animation: bounce-typing 1.4s infinite ease-in-out both; }
.typing-indicator .bounce-1 { animation-delay: -0.32s; }
.typing-indicator .bounce-2 { animation-delay: -0.16s; }

/* --- NEW: Vitrine Styles (from your provided CSS, adapted for general use) --- */
h1.text-3xl, h2.text-2xl {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}

.view-enter { animation: fadeInUp 0.6s 0.2s ease-out forwards; opacity: 0; }
.view-exit { animation: fadeOutDown 0.3s ease-in forwards; }
@keyframes fadeOutDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }

.combo-recommendation-card > div {
    background: var(--card-background-vitrine);
    border: 1px solid var(--card-border-vitrine);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease-out;
}
.combo-recommendation-card:hover > div {
    transform: scale(1.05);
    border-color: var(--card-hover-border-vitrine);
    box-shadow: 0 10px 30px -15px rgba(147, 51, 234, 0.25);
}

.scrollbar-thin::-webkit-scrollbar { height: 6px; width: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background-color: var(--primary-purple); border-radius: 10px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background-color: #a855f7; }

/* Styles for the recommendation detail in sugest.js */
.product-card-detail {
    background: linear-gradient(145deg, #18181b, #111111);
    border: 1px solid #333;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px -15px rgba(192, 132, 252, 0.5), 0 0 15px -5px rgba(34, 197, 94, 0.4);
}
.product-detail-header { padding: 1.5rem; text-align: center; background: rgba(0,0,0,0.2); border-bottom: 1px solid #333; }
.product-accordion-container { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.product-accordion-item { border-bottom: 1px solid #333; }
.product-accordion-item:last-child { border-bottom: none; }
.product-accordion-header {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0.5rem; text-align: left; background: transparent; border: none;
    color: white; cursor: pointer; font-size: 1rem; font-weight: 600;
}
.product-accordion-header i { transition: transform 0.3s ease; }
.product-accordion-item.open .product-accordion-header i { transform: rotate(180deg); }
.product-accordion-content { max-height: 0px; overflow: hidden; transition: max-height 0.4s ease-out; }
.product-accordion-body { padding: 0 0.5rem 1rem 0.5rem; color: #d1d5db; line-height: 1.7; text-align: justify; }
.product-detail-footer { padding: 1.5rem; background: #111111; margin-top: auto; border-top: 1px solid #333; }

.store-cta-button-full, .specialist-cta-button-full {
    display: block; text-align: center; padding: 1rem; border-radius: 0.75rem;
    font-weight: bold; font-size: 1rem; text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.3s ease;
    cursor: pointer;
}
.store-cta-button-full { background-color: #111; color: white; border: 1px solid rgba(147, 51, 234, 0.3); }
.store-cta-button-full:hover { transform: translateY(-2px); filter: brightness(1.15); border-color: var(--primary-purple); }

.specialist-cta-button-full { background-color: #111; color: white; border: 1px solid rgba(34, 197, 94, 0.3); }
.specialist-cta-button-full:hover { transform: translateY(-2px); filter: brightness(1.15); border-color: var(--primary-green); }

.link-button {
    background: #000;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}
.link-button:hover {
    transform: translateY(-3px);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 20px -5px rgba(147, 51, 234, 0.4);
}
.link-button.back-button {
    margin: 2rem auto 0;
    max-width: 24rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.link-button.back-button {
    margin: 2rem auto 0;
    max-width: 24rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* --- ESTILO PARA O BOTÃO DO WHATSAPP --- */
.action-button.whatsapp-button {
    background-color: #25D366; /* Cor oficial do WhatsApp */
    border-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* Espaço entre o ícone e o texto */
}
.action-button.whatsapp-button:hover {
    background-color: #1DA851; /* Cor mais escura para o hover */
    border-color: #1DA851;
}
.action-button.whatsapp-button i {
    font-size: 1.25rem; /* Tamanho do ícone */
}

/* --- ESTILO PARA O BOTÃO ROXO E O BOTÃO COM BORDA BRANCA --- */
.action-button.purple-button {
    background-color: #7B1FA2; /* Cor roxa */
    border-color: #7B1FA2;
    color: #fff;
}

.action-button.purple-button:hover {
    background-color: #9C27B0; /* Variação mais clara para o hover */
    border-color: #9C27B0;
}

.action-button.white-border {
    background: transparent;
    border: 1px solid #e5e7eb; /* Borda branca */
    color: #e5e7eb;
}

.action-button.white-border:hover {
    background: #e5e7eb;
    color: #131314;
}
