/* RESET E BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  padding-bottom: 90px;
}

/* CHATBOT FIXO */
#javi-container {
  position: fixed;
  left: 30px;
  top: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
}

#logo-javi {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* BALÃO DE RESPOSTA */
#balao-resposta {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(10px, -50%);
  background-color: #cce7ff;
  color: #000;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  max-width: 280px;
  display: none;
  white-space: normal;
}

/* CATÁLOGO DE PRODUTOS */
#catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
}

/* PRODUTO */
#catalogo .produto {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s;
}

#catalogo .produto:hover {
  transform: translateY(-4px);
}

#catalogo .produto img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 6px;
}

#catalogo .produto h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
  color: #333;
}

#catalogo .produto p {
  font-size: 14px;
  color: #1a8917;
  font-weight: bold;
  margin: 4px 0;
}

#catalogo .produto a {
  font-size: 13px;
  background: #efefef;
  color: #333;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 4px;
}

#catalogo .produto a:hover {
  background: #ddd;
}

/* BARRA INFERIOR */
#barra-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 10px 16px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 800px;
  width: 100%;
  background: #f2f2f2;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
}

#entrada {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #333;
}

#enviar,
#voice-btn {
  background: #0aa960;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#enviar:hover,
#voice-btn:hover {
  background: #098850;
}

#enviar svg,
#voice-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

#voice-btn.recording {
  background-color: red;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}