/* Estilo base */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x:hidden;
}


*,
*::before,
*::after {
  box-sizing: inherit;
}

/* TOPO FIXO */
.topo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: black;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px 20px;
}

/* Logo */
.topo img {
  width: 80px;
  height: auto;
  margin: 5px;
}

/* Título */
.topo h1 {
  color: white;
  font-size: 2rem;
  margin: 0;
  flex: 1;
  text-align: center;
  margin-top: 2%;
}

/* Campo de busca */
.topo input[type="search"] {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  max-width: 250px;
  width: 100%;
  flex-shrink: 1;
  margin-left: auto;
  height: 5%;
  margin-top: 2%;
}

/* Responsivo (mobile) */
@media (max-width: 768px) {
  .topo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .topo img {
    display: block;
    margin: 10px auto;
  }

  .topo h1 {
    font-size: 1.5rem;
    margin: 10px 0;
  }

  .topo input[type="search"] {
    width: 90%;
    margin: 10px 0;
    max-width: none;
  }
  
}

/* CATEGORIAS FIXA */
.categorias {
  background: linear-gradient(to right, #fceabb, #f8b500);
  padding: 15px 10px;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 110px; /* ajuste conforme a altura real do .topo */
  left: 0;
  z-index: 999;
}

/* Lista horizontal ou responsiva */
.categorias ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.categorias li {
  display: inline-flex;
}

.categorias a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.categorias a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #0000cc;
  text-decoration: underline;
}

.categorias a:active {
  color: white;
  background-color: #333;
}

/* Responsividade da categoria */
@media (max-width: 768px) {
  .categorias ul {
    flex-direction: column;
    align-items: center;
  }

  .categorias li {
    margin: 5px 0;
  }

  .categorias {
    top: 220px; /* aumenta para acomodar o topo quando em mobile */
  }
}

/* CONTEÚDO GERAL */
.conteudo {
  margin-top: 1000%;
}
