/* ====== GERAIS E RESET ====== */
body, html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  box-sizing: border-box;
}
.titulo-popular {
  background: #fdfae6;
  padding: 12px 16px;
  border-radius: 12px;
  color: #333;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  /* Centralização efetiva */
  display: block;
  width: fit-content;
  margin: 40px auto 20px;
  text-align: center;
}

/* ====== GRADE DE ITENS ====== */
.grade-popular,
.grade-categorias,
.imagens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 10px;
  box-sizing: border-box;
}

/* === DESTAQUE EXCLUSIVO PARA A GRADE POPULAR === */
.grade-popular {
  background: #fdfae6; /* fundo pastel suave para destacar a seção */
  padding: 20px 10px; /* espaçamento interno */
  border: 2px solid #f7e6a7; /* borda sutil */
  border-radius: 12px; /* cantos arredondados */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* leve sombra para destaque */
}

/* ====== CARTÃO DE IMAGEM ====== */
.img-card {
  background: #ffffff;
  border: 1px solid #000; /* borda preta visível */
  border-radius: 10px;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.img-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.img-card p {
  padding: 10px;
  font-weight: bold;
  font-size: 15px;
  background: #e6f4ea;
  margin: 0;
  word-break: break-word;
}

/* ====== CABEÇALHO ====== */
header {
  background: #7accc8;
  color: white;
  padding: 30px 10px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
}

header p {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 400;
}

/* ====== RODAPÉ ====== */
footer {
  background: #7accc8;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
}

/* ====== TÍTULOS ====== */
h2 {
  text-align: center;
  font-size: 24px;
  margin: 40px 0 20px;
  color: #333;
  word-break: break-word;
}

/* ====== PAGINAÇÃO ====== */
.paginacao {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 40px;
  padding: 0 10px;
  max-width: 100%;
}

.paginacao a.botao,
.paginacao strong.ativo {
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  background: #e6f4ea;
  color: #333;
  transition: 0.2s;
}

.paginacao a.botao:hover {
  background: #cbe6dc;
}

.paginacao strong.ativo {
  background: #7accc8;
  color: white;
}

/* ====== BOTÃO DE MENU (☰) COMO ÍCONE FIXO ====== */
#btn-menu {
  position: absolute;
  top: 20px;
  right: 15px;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  padding: 8px;
  font-size: 20px;
  cursor: pointer;
  color: #7accc8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-menu:hover {
  background: #e6f4ea;
  transform: scale(1.05);
}

/* ====== MENU DE CATEGORIAS COMO DROPDOWN ====== */
.menu-categorias {
  position: absolute;
  top: 100%;
  right: 15px;
  background: #e6f4ea;
  border: 1px solid #cbe6dc;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 250px;
  display: none;
  z-index: 1000;
  box-sizing: border-box;
}

.menu-categorias.aberto {
  display: block;
}

/* TOPO DO MENU */
.menu-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.menu-topo h2 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

#btn-fechar {
  display: none;
}

/* LISTA DE LINKS DO MENU */
.menu-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.menu-lista a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}

.menu-lista a:hover {
  background: #cbe6dc;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 480px) {
  #btn-menu {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .menu-categorias {
    width: 90vw;
    right: 5%;
  }

  .grade-categorias,
  .grade-popular,
  .imagens {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 0 5px;
  }

  .img-card p {
    font-size: 14px;
    padding: 8px;
  }
}

/* ====== NOVO RODAPÉ COM A MESMA IDENTIDADE DO HEADER ====== */
/* Permite que o rodapé fique sempre no fim */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.tudo {
  min-height: 90vh; /* garante altura mínima da tela */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* ocupa o espaço entre header e footer */
}

footer {
  margin-top: auto; /* empurra footer para baixo */
}


/* Rodapé já ajustado */
.rodape-turquesa {
  background: transparent;
  padding: 0;
  margin: 0;
}

.rodape-centro {
  background: #7accc8;
  border-radius: 20px 20px 0 0;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.rodape-coluna {
  flex: 1 1 280px;
  max-width: 300px;
  text-align: center;
}

.rodape-coluna h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: white;
}

.rodape-coluna p {
  margin: 6px 0;
  color: white;
}

.rodape-coluna a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.rodape-coluna a:hover {
  text-decoration: underline;
}

.logo-rodape {
  width: 50px;
  margin: 0 auto 10px;
  display: block;
}

.icones-redes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.icones-redes a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.icones-redes a:hover img {
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .rodape-centro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* ====== RESPONSIVO ====== */
@media (max-width: 600px) {
  .rodape-conteudo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rodape-coluna {
    text-align: center;
  }
}

