body {
    background-color: #AF714A;
    margin: 0;
    height: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #925027;
    padding: 20px;
    align-items: center;
    gap: 10px;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-family: system-ui, sans-serif;
    padding: 5px 10px;
}

.navbar a:hover {
    color: #643518;
    transition: 0.5s;
}

.logo img {
    width: 100px;
}

/* Promoções */
.promocoes {
  padding: 40px 20px;
  background-color: #a5643c;
  text-align: left; 
}

.titulo-promocao {
  background-color: #7b3f1f;
  padding: 15px;
  display: inline-block;
  margin-bottom: 30px;
  font-size: 24px;
  text-transform: uppercase;
  font-family: system-ui, sans-serif;
}

.produtos {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.produto {
  background-color: #c07b4b;
  padding: 15px;
  border: 2px solid #4a2d1a;
  width: 280px;
  text-align: left;
  font-family: system-ui, sans-serif;
}

.produto img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.produto h3 {
  margin: 10px 0;
  font-size: 18px;
}

.produto p {
  font-size: 14px;
  line-height: 1.4;
}

.preco {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
}

/* Caixa de pesquisa */
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 4px 10px;
  width: 250px;
  margin: 0 auto 20px auto; /* centralizada */
}

.search-box input {
  border: none;
  outline: none;
  padding: 6px;
  border-radius: 20px;
  width: 100%;
  font-size: 14px;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  margin-left: 10px;
}

/* Rodapé */
footer {
  background-color: #5a3a25;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  color: #fff;
}

footer .info {
  max-width: 300px;
  font-family: system-ui, sans-serif;
  margin-bottom: 15px;
}

.copy {
  text-align: center;
  background-color: #2b1b10;
  padding: 10px;
  font-size: 12px;
  font-family: system-ui, sans-serif;
}

/* Responsividade */

/* Tablets */
@media (max-width: 1024px) {
  .navbar {
    justify-content: center;
  }

  .produtos {
    justify-content: center;
  }

  .titulo-promocao {
    font-size: 20px;
    margin: 0 auto;
  }
}

/* Celulares */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .logo img {
    width: 80px;
  }

  .produtos {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .produto {
    width: 90%;
  }

  .titulo-promocao {
    font-size: 18px;
    text-align: center;
  }

  .search-box {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .titulo-promocao {
    font-size: 16px;
    padding: 10px;
  }

  .produto h3 {
    font-size: 16px;
  }

  .produto p {
    font-size: 12px;
  }

  .preco {
    font-size: 14px;
  }
}
