/* ============================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ============================================================ */
:root {
  --primary: #e30613;
  --whatsapp: #25d366;
  --dark: #121212;
  --text: #666666;
  --light: #ffffff;
  --gray-light: #f5f5f7;
  --radius-lg: 24px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--light);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* --- FIM GERAIS --- */

/* ============================================================
   2 -HEADER PREMIUM
   ============================================================ */
.main-header {
  /* Aumentando a altura com padding vertical maior */
  padding: 25px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estrutura da Esquerda (Logo) */
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-wrapper img {
  width: 100%;
  max-width: 40px; /* Tamanho ideal para o ícone */
}

.logo {
  font-size: 1.6rem; /* Aumentado levemente */
  font-weight: 850;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1;
}

.logo span {
  color: var(--primary);
}

/* Navegação Direita */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 40px; /* Espaço entre menu e botão */
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
}

/* ESTILIZAÇÃO DO BOTÃO (BOTÃO PREMIUM) */
.btn-header {
  background-color: var(--primary);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px; /* Cantos arredondados modernos */
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(230, 0, 0, 0.2); /* Sombra suave na cor da marca */
  transition: all 0.3s transform ease;
  display: inline-block;
}

.btn-header:hover {
  background-color: #c40000; /* Tom mais escuro de vermelho */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 0, 0.3);
}

.btn-header:active {
  transform: translateY(0);
}
/* --- FIM HEADER --- */

/* ============================================================
   3. HERO SECTION (DESIGN PREMIUM & SENSORIAL)
   ============================================================ */
/* --- HERO SECTION --- */
.hero-v2 {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(227, 6, 19, 0.05) 0%,
    #ffffff 100%
  );
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

/* Tipografia */
.badge-status-container {
  margin-bottom: 20px;
}

.badge-status {
  background: rgba(37, 211, 102, 0.1);
  color: #128c7e;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.05;
  margin-bottom: 30px;
  letter-spacing: -3px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
  opacity: 0;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: #555;
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 45px;
  animation: fadeInUp 0.8s ease forwards 0.4s;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 20px;
  animation: fadeInUp 0.8s ease forwards 0.6s;
  opacity: 0;
}

/* Imagem e Efeitos */
.hero-image-container {
  position: relative;
  perspective: 2000px;
}

.img-wrapper {
  position: relative;
  transform-style: preserve-3d;
  animation: mainFloat 8s ease-in-out infinite;
}

.floating-img {
  width: 100%;
  max-width: 550px;
  filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.25));
  border-radius: 20px;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.glow-effect {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
  animation: brasaGlow 5s infinite ease-in-out;
}

/* BOTÕES */
.btn-lg {
  padding: 18px 35px;
  font-size: 1rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
}

.btn-success {
  background-color: #25d366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
  transform: scale(1.05);
  background-color: #128c7e;
}

.wa-icon {
  transition: transform 0.3s ease;
}
.btn-success:hover .wa-icon {
  transform: translateX(5px);
}

/* ANIMAÇÕES */
@keyframes mainFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-30px) rotate(1deg);
  }
}

@keyframes brasaGlow {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.2);
  }
}

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

/* Responsividade */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .hero-image-container {
    order: 1;
    margin-bottom: 50px;
  }
  .hero-description {
    margin: 0 auto 40px auto;
  }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }
}
/* --- FIM HERO V2 --- */

/* ============================================================
   4. BOTÕES (COMPONENTES)
   ============================================================ */
.btn-sm,
.btn-lg {
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 18px 35px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* Efeito Shine no Botão */
.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  transition: none;
}

.btn-primary:hover::after {
  left: 120%;
  transition: all 0.7s ease;
}
/* --- FIM BOTÕES --- */

/* ============================================================
   SECTION DEstaque (DIFERENCIAIS)
   ============================================================ */
.features-v2 {
  padding: 60px 0;
  background: #fff;
  position: relative;
  margin-top: -40px; /* Faz a seção "subir" sobre a Hero */
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.f-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.f-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(227, 6, 19, 0.1); /* Brilho na cor primary */
  border-color: var(--primary);
}

.f-icon {
  font-size: 2.5rem;
  background: rgba(227, 6, 19, 0.05);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.f-item:hover .f-icon {
  transform: scale(1.1) rotate(5deg);
}

.f-info {
  display: flex;
  flex-direction: column;
}

.f-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.f-subtitle {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
  .features-v2 {
    margin-top: 0;
    padding: 40px 0;
  }
  .f-item {
    padding: 20px;
  }
}

/* --- FIM DEstaque --- */

/* ============================================================
   5. CATÁLOGO E GRID DE PRODUTOS
   ============================================================ */
.catalog-v2 {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 50px;
  letter-spacing: -1px;
}

/* Tabs de Navegação Sticky */
.category-tabs {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  position: sticky;
  top: 70px;
  background: white;
  z-index: 990;
  overflow-x: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid #e2e2e2;
  background: white;
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

/* Grid de Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding-top: 30px;
}
/* --- FIM CATÁLOGO --- */

/* ============================================================
   6. CARDS DE PRODUTO (UI/UX APERFEIÇOADO)
   ============================================================ */
.product-card {
  display: flex;
  align-items: center; /* Centraliza imagem e texto verticalmente */
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  min-height: 160px; /* Garante altura mínima uniforme */
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #eee;
}

/* Container da Imagem - O SEGREDO DA FORMATAÇÃO */
.product-img-wrapper {
  width: 140px;
  height: 140px;
  min-width: 140px; /* Impede que o flexbox esmague a imagem */
  margin: 10px; /* Afasta a imagem das bordas para um look mais clean */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f9f9f9; /* Fundo neutro caso a imagem demore a carregar */
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a foto preencha sem distorcer */
  transition: var(--transition);
}

.product-card:hover .product-img {
  transform: scale(1.1);
}

/* Informações do Produto */
.product-info {
  padding: 15px 20px 15px 10px; /* Menos padding na esquerda pois já tem o da imagem */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h4 {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
  /* Limita a 2 linhas de descrição para manter o grid alinhado */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2e7d32; /* Um verde escuro para preço passa mais confiança de "comida" */
}

/* Ajuste das Badges (Categorias) */
.card-badge {
  position: absolute;
  bottom: 10px; /* Movi para baixo para não tampar o rosto das fotos no topo */
  right: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  background: var(--gray-light);
  color: var(--dark);
}

/* Cores por Categoria */
.cat-classicos .card-badge {
  background: #f0f0f0;
}
.cat-premium .card-badge {
  background: #fff3e0;
  color: #e65100;
}
.cat-bebidas .card-badge {
  background: #e3f2fd;
  color: #1976d2;
}

/* --- FIM CARDS --- */

/* ============================================================
   5. FOOTER (DESIGN SYSTEM REFINADO)
   ============================================================ */

/* ============================================================
   5.1 FOOTER - COLUNA BRANDING (DETALHADO)
   ============================================================ */

.footer-col.branding {
  display: flex;
  flex-direction: column;
  gap: 25px; /* Aumenta o respiro entre os elementos */
}

/* Efeito na Logo/Imagem */
.logo-footer {
  width: 100%;
  max-width: 150px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  transition: all 0.4s ease;
}

.logo-footer:hover {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 8px 20px rgba(255, 68, 68, 0.2));
}

/* Organização do Texto da Marca */
.footer-brand-info .logo {
  display: block;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #65676b;
  margin: 0;
  max-width: 280px;
}

/* Card de Localização (Efeito visual de destaque) */
.location-tag {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #fdfdfd; /* Fundo quase branco para contraste */
  border-radius: 12px;
  border: 1px solid #f0f0f5;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.location-tag:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.location-tag .icon {
  font-size: 1.4rem;
}

.location-text {
  display: flex;
  flex-direction: column;
}

.location-text strong {
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.location-text span {
  color: #a6a8ab;
  font-size: 0.8rem;
}

/* Responsividade específica da branding */
@media (max-width: 576px) {
  .footer-col.branding {
    align-items: center;
    text-align: center;
  }
  .footer-description {
    margin: 0 auto;
  }
}
/* Estilos Gerais do Footer */
.footer-v2 {
  background-color: #ffffff;
  padding: 80px 0 40px;
  border-top: 1px solid #f2f2f5;
  color: var(--text);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.logo-footer {
  width: 100%;
  max-width: 140px;
}

/* Títulos das Colunas */
.footer-col h4 {
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navegação e Links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  text-decoration: none;
  color: #65676b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.footer-nav a span {
  font-size: 1.1rem;
  filter: grayscale(0.4);
  transition: filter 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-nav a:hover span {
  filter: grayscale(0);
}

/* Coluna Social Refinada */
.social-links {
  display: flex;
  flex-direction: column; /* Mais organizado para desktop */
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #eee;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Info de Contato */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #a6a8ab;
}

/* Copyright Section */
.footer-divider {
  height: 1px;
  background: #f2f2f5;
  margin-bottom: 30px;
}

.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #a6a8ab;
}

.dev-tag strong {
  color: var(--dark);
}

/* Responsividade */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .bottom-flex {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}
/* --- FIM FOOTER --- */

/* ============================================================
   7. CHAT IA - DESIGN SYSTEM PREMIUM (V2)
   ============================================================ */

/* 7.1 O Botão Fixo (Trigger) */
/* ============================================================
   7. CHAT IA - DESIGN SYSTEM PREMIUM (V2)
   ============================================================ */

/* 7.1 O Botão Fixo (Trigger) com Mascote */
#chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 70px;
  height: 70px;
  background: #e4dfdf; /* Fundo sóbrio para destacar o mascote */ 
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden; 
  border: 1px solid var(--primary, #e30613);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.5);
}

.mascot-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mascot-img {
  width: 110%;
  height: 110%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Ícone que aparece apenas na interação */
.chat-icon {
  position: absolute;
  font-size: 1.6rem;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.5) translateY(10px);
}

/* EFEITO DE INTERAÇÃO (Glow de Brasa) */
#chat-toggle:hover {
  background: var(--primary, #e30613); /* Vermelho institucional */
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.5);
}

#chat-toggle:hover .mascot-img {
  transform: scale(0.7);
  opacity: 0.2; /* O Queijinho fica "vigilante" ao fundo */
  filter: grayscale(1) brightness(2); /* Ajuste para melhor contraste no vermelho */
}

#chat-toggle:hover .chat-icon {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
  #chat-toggle {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }
}

/* 7.2 Container da Janela do Chat */
/* Container Principal */
#chat-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 350px;
  height: 500px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transition: all 0.3s ease;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Estado padrão: Escondido */
#chat-container.chat-closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
}

/* Estado Ativo: Visível */
#chat-container.chat-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header - Corrigindo contraste da image_852f5f.png */
.chat-header {
  background: #e30613; /* Vermelho Espetinho de Minas */
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-status {
  position: relative;
  width: 45px;
  height: 45px;
}

.bot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  padding: 2px;
  object-fit: contain;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  color: #4caf50; /* Verde online vibrante */
  font-size: 12px;
  background: white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e30613;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.bot-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.bot-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

#close-chat {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#close-chat:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --- conversa do chat --- */

#chat-msgs {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
  background-color: #f0f2f5; /* Um cinza levemente mais azulado para destacar as bolhas brancas */
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* Estilização da Bolha do Bot */
.bot-msg {
  align-self: flex-start;
  background: #ffffff;
  color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px; /* Ponta arredondada específica para o bot */
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Animação suave ao aparecer */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ÁREA DE ENTRADA (ESTILO APP PREMIUM)
   ============================================================ */

.chat-input-area {
  padding: 16px 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f0f0f5;
  /* Uma leve sombra interna para dar profundidade à área de digitação */
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

#user-query {
  flex: 1;
  background: #f4f4f7; /* Fundo levemente cinza para destacar o campo */
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 0.95rem;
  color: #1a1a1b;
  outline: none;
  transition: all 0.3s ease;
}

/* Efeito de foco: O campo "acende" quando o cliente clica */
#user-query:focus {
  background: #ffffff;
  border-color: var(--primary); /* Vermelho Espetinho de Minas */
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}

/* Placeholder mais discreto e elegante */
#user-query::placeholder {
  color: #a6a8ab;
  font-weight: 400;
}

/* Botão de Enviar (O "Aviãozinho") */
#send-query {
  background: var(--primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
  flex-shrink: 0; /* Impede o botão de esmagar em telas pequenas */
}

#send-query svg {
  width: 20px;
  height: 20px;
  /* Ajuste fino: move o ícone levemente para a direita para parecer centralizado opticamente */
  transform: translateX(1px);
  stroke: white;
}

/* Interações do Botão */
#send-query:hover {
  transform: scale(1.1) rotate(-5deg);
  background: #c20510; /* Um tom de vermelho levemente mais escuro */
  box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

#send-query:active {
  transform: scale(0.9);
}

/* --- FIM CHAT IA V2 --- */
