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

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

.header {
  background-color: #FDE600;

}

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

.logo {
  height: 84px;
  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: #f0f0f0;
}

.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;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 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://http2.mlstatic.com/D_NQ_963172-MLA97798572334_112025-OO.webp");
  background-size: cover;
  background-position: center;
  height: 500px;
  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: 2px solid #FDE600;
}

.footer p {
  color: #777;
  font-size: 14px;
}

/* Responsividade para tablets (largura até 1024px) */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 36px;
  }

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

  .section-title {
    font-size: 22px;
  }
}

/* Responsividade para celulares (largura até 600px) */
@media (max-width: 600px) {
  .container {
    padding: 5px;



  }

  .search-input {
    width: 50%;
    max-width: none;

  }

  .search-btn {
    display: flex;
    position: relative;
    align-items: center;
    width: 23%;
    padding: 8px;


  }


  .search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .search-input {
    width: 70%;
    font-size: 12px;
    height: 28px;
  }


  .search-btn {
    width: 20%;
    font-size: 14px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
  }



  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 199px;
    padding-bottom: 10px;
  }

  .hero h1 {
    font-size: 28px;
  }

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

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

  .product-price {
    font-size: 24px;
  }

  .product-title {
    font-size: 14px;
    height: auto;
  }
}