* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: #3d8168;
}

html {
  font-size: 62.5%;
  font-family: "Montserrat", sans-serif;
  color: #6c7289;
}

body {
  background-color: #f2eae2;
  min-height: 100vh;
}

.section-product-preview {
  max-width: 65rem;
  margin: 22rem auto;
  background-color: #fff;
  border-radius: 9px;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
.product-img-box {
  border-radius: 9px 0 0 9px;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-text-box {
  padding: 3.6rem 4rem 3.6rem 0;
}

.tag {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 2.6rem;
  font-weight: 500;
}

.heading-product {
  font-family: "Fraunces", sans-serif;
  color: #1c232b;
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 2.6rem;
  line-height: 1;
}

.product-text {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2.6rem;
  font-weight: 500;
}

.price {
  display: flex;
  margin-bottom: 3.2rem;
  align-items: center;
  gap: 1.4rem;
}

.price-text {
  font-size: 3.2rem;
  font-family: "Fraunces", sans-serif;
  font-weight: 700;
  color: #3d8168;
}

.price-text--strikethrough {
  font-size: 1.4rem;
  font-weight: 500;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.cart-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.btn:link,
.btn:visited {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 1.8rem;
  flex: 1 1 100%;
  color: #fff;
  background-color: #3d8168;
  border-radius: 9px;
}

.btn:hover,
.btn:active {
  background-color: #1a4032;
  cursor: pointer;
}

@media (max-width: 40em) {
  .section-product-preview {
    max-width: 35rem;
    margin: 8rem auto;
  }
  .product-container {
    display: flex;
    flex-direction: column;
    align-content: center;
  }

  .product-img-box {
    height: 30rem;
    overflow: hidden;
    border-radius: 9px 9px 0 0;
  }

  .product-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    top: -6rem;
  }

  .product-text-box {
    padding: 0 3rem 3rem;
  }

  .heading-product {
    font-size: 3.2rem;
  }

  .product-text {
    font-size: 1.4rem;
  }
}
