* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f5f5;
}

.header {
  background-color: #ebf7f8;
  height: 190px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.logo {
  height: 74px;
  margin-bottom: 10px;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  height: 34px;
}

.search-btn {
  background-color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  padding: 10px 20px;
  height: 34px;
}

.search-btn:hover {
  background-color: #cfc9c9;
}

.main {
  padding: 30px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: 0.5s;
}

.product-card:hover {
  transform: translateY(10px);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.product-title {
  font-size: 16px;
  margin-bottom: 10px;
  height: 40px;
  overflow: hidden;
}

.product-price {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.product-discount {
  font-size: 14px;
  color: #027900;
  font-weight: bold;
}

.hero {
  background-image: url("https://brasil.un.org/sites/default/files/styles/featured_image/public/2020-12/03_image_1.jpg?itok=j_4V8AXp");
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  color: #fff;
  text-align: center;
  padding-bottom: 50px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 24px;
}

.footer {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
  border-top: 3px solid #ebf7f8;
}

.footer p {
  color: #777;
  font-size: 14px;
  font-weight: bold;
}
.footer #copy {
  margin-top: 10px;
  padding-top: 12px;
  font-size: 8pt;
}



#searchBtn > i {
  display: flex; /*posicinar o icone onde quiser...*/
  bottom: 10;
}

/*********************** HAMBURGUE: *******************************/
a {
  color: black;
  text-decoration: none;
  font-family: sans-serif;
  font-style: normal;
  font-size: 1rem;
}

#header {
  box-sizing: border-box;
  height: 70px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ebf7f8;
}

#menu {
  display: flex;
  list-style: none;
  gap: 0.7rem;
  max-height: 330px;
}
#menu a {
  display: block;
  padding: 0.5rem;
}

#menu li a {
  text-decoration: none;
}
#menu li a i {
  font-size: 20px;
  padding-right: 5px;
}

#menu li a:hover {
  transform: translate(10px);
  box-shadow: 0 7px 15 black;
  transition: 0.5;
  font-size: 11.3pt;
  color: black;
}

#btn-mobile {
  display: flex; /* display:none faz esconder*/
}

/*RESPONSIVIDADE - TABLET*/
@media (max-width: 1400px) {
  /*(PC) para telas menores é 600px*/

  #menu {
    display: block;
    position: absolute;
    width: 100%;
    top: 40px;
    right: 0px;
    background: #ebf7f8;
    height: 0px;
    transition: 0.6s;
    z-index: 1000;
    visibility: hidden;
    overflow-y: hidden;
  }
  #nav.active #menu {
    height: calc(100vh - 70px);
    visibility: visible;
    overflow-y: auto;
  }

  #menu a {
    padding: 1rem 0;
    font-size: 10pt;
    font-weight: 700;
    margin: 0 1rem;
    font-family: "Alegreya Sans" sans-serif;
  }

  #menu a:hover {
    color: #ebf7f8;
    transition: 0.8s;
  }

  #btn-mobile {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    gap: 0.5rem;
  }
  #hamburger {
    display: block;
    border-top: 2px solid; /*gIRANDO OS 3 HAMBURGER*/
    width: 20px;
  }
  #hamburger::after,
  #hamburger::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }
  #nav.active #hamburger {
    border-top-color: transparent;
  }
  #nav.active #hamburger::before {
    transform: rotate(135deg);
  }
  #nav.active #hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }
}

/*RESPONSIVIDADE - CELULAR*/
@media (max-width: 767px) {
  /*Sansung A03*/
  html {
    font-size: 60%;
  }
  body {
    overflow-x: hidden; /*SOLUÇÃO QUE ACABA COM A ROLAGEM LATERAL😀*/
  }

  #searchInput {
    width: 58px;
  }
  #searchBtn {
    margin-right: 5px;
  }

  .products-grid {
    display: flex;
    flex-direction: column; /*TODOS OS ELEMENTOS UM ABAIXO DO OUTRO(celular)*/
  }
}
