@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Montserrat:wght@500;700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
}
body {
  background-color: hsl(30, 38%, 92%);
  font-size: 14px;
  /* min-height: 100vh; */
  font-family: "Montserrat", sans-serif;
  color: hsl(228, 12%, 48%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
h1 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
  color: hsl(212, 21%, 14%);
}
.text {
  letter-spacing: 1px;
  line-height: 1.5;
}
.container {
  background-color: hsl(0, 0%, 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  max-width: 600px;
}
img {
  object-fit: cover;
}
.img-card {
  width: 50%;
  flex: 1 0 50%;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.category {
  text-transform: uppercase;
  letter-spacing: 4px;
}
.content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prices {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.sale-price {
  font-family: "Fraunces", serif;
  color: hsl(158, 36%, 37%);
  font-size: 1.7rem;
  margin-right: 20px;
}

.list-price {
  text-decoration: line-through;
}
.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  background-color: hsl(158, 36%, 37%);
  color: hsl(0, 0%, 100%);
  padding: 20px 10px;
  border-style: none;
  border-radius: 10px;

  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

button:hover {
  background-color: hsl(158, 45%, 20%);
}

button:active {
  background-color: hsl(158, 45%, 20%);
}

.icon-cart {
  margin-right: 10px;
}

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(158, 36%, 37%);
}
@media screen and (max-width: 600px) {
  .container {
    flex-direction: column;
    width: 400px;
  }
  .img-card {
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
  }
  .content {
    padding: 20px;
  }
  .btn {
    padding: 15px 10px;
  }
  .prices {
    margin-top: 0px;
    margin-bottom: 0px;
  }
}
