body {
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  box-sizing: border-box;
}

header {
  width: 74%;
  height: 5rem;
  background-color: white;
  margin-top: 90px;
  margin-left: auto;
  margin-right: auto;
}

header h2 {
  font-size: 28px;
  font-weight: bold;
  padding: 24px 20px;
}

main {
  width: 100%;
  max-width: 900px;
  padding: 3rem;
  background-color: white;
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
}

.products {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  gap: 3rem;
}

.product {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-radius: 25px 25px 20px 20px;
  margin: auto;
  /* width: 16rem; */
  /* height: 18rem; */
}

@media screen and (min-width: 768px) {
  header {
    width: 400%;
    max-width: 700px;
  }
  main {
    width: 85vw;
    height: 125%;
    max-width: 600px;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .foot {
    width: 70%;
    max-width: 680px;
    font-size: 14px;
  }
}

@media screen and (min-width: 1024px) {
  header {
    width: 800%;
    max-width: 1000px;
  }
  main {
    width: 200%;
    height: 150%;
    max-width: 900px;
  }
  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  .foot {
    width: 100%;
    max-width: 1000px;
    font-size: 16px;
  }
}

.product img {
  width: 16rem;
  height: 140px;
  border-radius: 20px 20px 0 0;
}

.product h2 {
  font-size: 20px;
  margin: 10px 18px;
}

.product p {
  font-size: 15px;
  margin: 10px 18px;
}

.sub-product {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin: 18px 8px; */
  margin-right: 40px;
  gap: 40px;
}

.sub-product p {
  font-size: 18px;
  font-weight: bold;
}

.sub-product button {
  background-color: #2c3df6;
  color: white;
  padding: 7px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.foot {
  background-color: #dfdfdf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  height: 3vw;
  /* width: 61rem; */
  margin-bottom: 10rem;
  padding: 10px;
}

.foot p {
  padding: 30px;
}

.product-footer1 {
  display: flex;
  justify-self: space-around;
  align-items: center;
  padding: 0;
}
