@media (min-width: 550px) {
  /* Ajusta a largura da barra de pesquisa em telas menores, como tablets. */
  .search-bar {
    width: 300px;
  }
}

@media (min-width: 1100px) {
  /* Ajusta a largura da barra de pesquisa em telas de desktop. */
  .search-bar {
    width: 400px;
  }
}

/* Estilos Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: white;
}

/* Cabeçalho */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #2A1BA8;
}

.logo img {
  height: 100px;
}
.ent {
  color: white;
}
.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 50px;
  padding: 5px 15px;
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  background-color: transparent;
  font-size: 1em;
}

.search-bar svg {
  cursor: pointer;
  width: 20px;
  height: 20px;
  margin-left: 10px;
}

.user-actions {
  color: #2A1BA8;
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-actions a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  height: 20px;
}

.user-actions svg {
  height: 20px;
}

.header-bottom {
  background-color: black;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  /* Removi o 'gap: 700px' pois ele causa quebra de layout em resoluções menores. */
  gap: 20px;
}

.nav-links a, .products-link a {
  color: white;
  text-decoration: none;
  font-weight: 400;
}

.products-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.products-link svg {
  width: 25px;
  height: 25px;
}

.button-image img {
  border: none;
  display: block;
  width: 100px;
  height: 100px;
}
.button-image img:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* Imagem de Fundo e Contêiner */
#bac {
  /* Usei a porcentagem para que a largura se adapte ao tamanho da tela. */
  width: 100%;
  /* Removi a altura fixa para evitar que a imagem seja distorcida em diferentes resoluções. */
  height: auto;
  object-fit: cover;
}

/* Rodapé */
.footer {
  background-color: #000;
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  margin: 20px;
  text-align: left;
}

.footer-section h4 {
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

.footer-section p, .footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section a {
  color: white;
  text-decoration: none;
  line-height: 1.8;
}
.social-links a {
  display: inline-block;
  margin-right: 10px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 20px;
}