/* ========================= */
/* RESET */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================= */
/* AJUSTE PARA TELA CHEIA */
/* ========================= */
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(#cc0000, #990000);
  color: white;
  text-align: center;
  font-family: Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ========================= */
/* IMPEDIR CÓPIA NA ÁREA */
/* ========================= */
#area,
#area * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
}

#searchInput {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* ========================= */
/* TOPO */
/* ========================= */
.topo {
  background: linear-gradient(180deg, #cc0000, #990000);
  padding: 10px;
  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: 12px;
}

.logo-area img {
  width: 40px;
  height: 40px;
}

.textos h1 {
  font-size: 18px;
}

.textos p {
  font-size: 12px;
  margin-top: 4px;
}

/* ========================= */
/* BUSCA */
/* ========================= */
.busca {
  flex-shrink: 0;
  margin: 8px 0;
}

#searchInput {
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
}

#resultados {
  background: white;
  color: black;
  border-radius: 10px;
  margin-top: 5px;
  overflow: hidden;
}

/* ========================= */
/* LETRAS */
/* ========================= */
#letras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#letras button {
  margin: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: white;
  color: #b30000;
  font-weight: bold;
  cursor: pointer;
}

/* ========================= */
/* BOTÕES */
/* ========================= */
.botoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 8px;
}

.botoes button {
  padding: 10px;
  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);
}

.botoes button:hover {
  transform: scale(1.05);
}

/* ========================= */
/* ÁREA PRINCIPAL */
/* ========================= */
#area {
  background: white;
  color: black;
  padding: 15px;
  border-radius: 12px;
  text-align: left;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
}

#area * {
  color: black !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
}

#area p {
  margin-bottom: 15px;
}

#area h2, #area h3, #area h4 {
  margin-top: 20px;
  margin-bottom: 10px;
}

#area ul, #area ol {
  margin-left: 18px;
  margin-bottom: 15px;
}

#area li {
  margin-bottom: 6px;
}

#area img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 10px;
}

/* ========================= */
/* SCROLL PERSONALIZADO */
/* ========================= */
#area::-webkit-scrollbar {
  width: 6px;
}

#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;
}

/* ========================= */
/* BOTÃO AZUL */
/* ========================= */
.btn-comprar {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  background: #0057ff;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 12px;
  width: 70%;
  max-width: 220px;
  text-align: center;
  animation: pulse 1.5s infinite;
}

.btn-comprar:hover {
  transform: scale(1.05);
}

@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: 20px;
  margin-top: 20px;
}

.produto-card {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.produto-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.produto-card img {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
}

/* ========================= */
/* LINKS */
/* ========================= */
.links {
  flex-shrink: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.banner-link {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.banner-link img {
  width: 100%;
  height: 50px;
  object-fit: cover;
  display: block;
}

.banner-link span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: 12px;
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */
@media (min-width: 600px) {
  .botoes {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .botoes button {
    font-size: 14px;
    padding: 15px;
  }
}