/* ========================= */
/* RESET */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================= */
/* BODY - CORREÇÃO PARA CELULAR */
/* ========================= */
html, body {
  height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: linear-gradient(#cc0000, #990000);
  color: white;
  text-align: center;
  padding: 10px;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ========================= */
/* TOPO */
/* ========================= */
.topo {
  background: linear-gradient(180deg, #cc0000, #990000);
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo-area img {
  width: 45px;
  height: 45px;
}

.textos h1 {
  font-size: 18px;
}

.textos p {
  font-size: 11px;
  margin-top: 2px;
}

/* ========================= */
/* BUSCA */
/* ========================= */
.busca {
  margin: 8px 0;
  flex-shrink: 0;
}

#searchInput {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  background: white;
  color: black;
}

/* RESULTADOS */
#resultados {
  background: white;
  color: black;
  border-radius: 10px;
  margin-top: 5px;
  overflow: hidden;
  max-height: 180px;
  overflow-y: auto;
}

/* ========================= */
/* LETRAS */
/* ========================= */
#letras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

#letras button {
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  background: white;
  color: #b30000;
  font-weight: bold;
  cursor: pointer;
  font-size: 11px;
}

/* ========================= */
/* BOTÕES - MAIS COMPACTOS */
/* ========================= */
.botoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex-shrink: 0;
}

.botoes button {
  padding: 10px 6px;
  font-size: 12px;
  border-radius: 10px;
  border: none;
  background: white;
  color: #b30000;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  word-break: break-word;
}

.botoes button:hover {
  transform: scale(1.02);
}

/* ========================= */
/* ÁREA PRINCIPAL - MAIOR! */
/* ========================= */
#area {
  margin-top: 10px;
  background: white;
  color: black;
  padding: 15px 18px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  
  /* 🔥 AUMENTEI A ALTURA DA CAIXA CENTRAL */
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 200px;
}

/* 🔥 CORREÇÃO GLOBAL */
#area,
#area * {
  color: black !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
}

#area {
  background: white !important;
}

/* TEXTOS */
#area p {
  margin-bottom: 10px;
}

#area h2,
#area h3,
#area h4 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 1.05em;
}

/* LISTAS */
#area ul,
#area ol {
  margin-left: 12px;
  margin-bottom: 10px;
  padding-left: 8px;
}

#area li {
  margin-bottom: 4px;
}

/* IMAGENS */
#area img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
  max-height: 220px;
  object-fit: contain;
}

/* ========================= */
/* BOTÃO AZUL */
/* ========================= */
.btn-comprar {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #0057ff;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 12px;
  width: 70%;
  max-width: 200px;
  text-align: center;
  animation: pulse 1.5s infinite;
}

.btn-comprar:hover {
  transform: scale(1.02);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 87, 255, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 87, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 87, 255, 0); }
}

/* ========================= */
/* PRODUTOS */
/* ========================= */
.produtos {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.produto-card {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.produto-card h3 {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.produto-card img {
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
}

/* ========================= */
/* LINKS - BOTÕES DE BAIXO MAIS BAIXOS! */
/* ========================= */
.links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.banner-link {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.banner-link img {
  width: 100%;
  height: 50px; /* 🔥 DIMINUÍ DE 70px PARA 50px */
  object-fit: cover;
  display: block;
}

.banner-link span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 4px 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: 12px;
}

/* BOTÃO PRETO */
.sem-imagem {
  display: block;
  background: black;
  color: white;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
}

/* ========================= */
/* INSTALAR APP */
/* ========================= */
.install-btn {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: #0057ff;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 50%;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  width: 55px;
  height: 55px;
}

.ios-msg {
  position: fixed;
  bottom: 75px;
  left: 10px;
  right: 10px;
  background: white;
  color: black;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 999;
}

/* ========================= */
/* RESPONSIVO - TABLETS E MAIORES */
/* ========================= */
@media (min-width: 600px) {
  .botoes {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #area {
    max-height: 70vh;
    min-height: 250px;
  }
  
  #area img {
    max-height: 350px;
  }
  
  .banner-link img {
    height: 60px;
  }
}

@media (min-width: 900px) {
  #area {
    max-height: 75vh;
    min-height: 300px;
  }
  
  #area img {
    max-height: 450px;
  }
}

/* ========================= */
/* CORREÇÃO PARA TELAS MUITO PEQUENAS */
/* ========================= */
@media (max-width: 380px) {
  body {
    padding: 6px;
  }
  
  .textos h1 {
    font-size: 16px;
  }
  
  .textos p {
    font-size: 10px;
  }
  
  .logo-area img {
    width: 38px;
    height: 38px;
  }
  
  .botoes button {
    font-size: 11px;
    padding: 8px 5px;
  }
  
  #area {
    padding: 12px;
    font-size: 14px;
    max-height: 55vh;
    min-height: 150px;
  }
  
  #letras button {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .banner-link img {
    height: 40px; /* 🔥 AINDA MENOR EM TELAS PEQUENAS */
  }
  
  .banner-link span {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* ========================= */
/* SCROLL SUAVE PARA ÁREA DE CONTEÚDO */
/* ========================= */
#area::-webkit-scrollbar {
  width: 4px;
}

#area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#area::-webkit-scrollbar-thumb {
  background: #cc0000;
  border-radius: 10px;
}

#area::-webkit-scrollbar-thumb:hover {
  background: #990000;
}