@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap");

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: hsl(30, 38%, 92%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-color: hsl(0, 0%, 100%);
  border-radius: 1rem;
  max-width: 650px;
  padding: 0;
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-template-areas:
    "image info"
    "image price"
    "image button";
}

.image-container {
  grid-area: image;
}

.image-container img {
  max-width: 100%;
  display: inherit;
}

.info-container {
  grid-area: info;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2rem 0 2rem;
}

.info-container p:first-of-type {
  text-transform: uppercase;
  letter-spacing: 5px;
  color: hsl(228, 12%, 48%);
  font-weight: 500;
  font-size: 0.8rem;
}

.info-container h2 {
  font-family: "Fraunces", sans-serif;
  font-size: 2.4rem;
  line-height: 1em;
  margin-top: 1rem;
}

.info-container p:nth-of-type(2) {
  margin-top: 1rem;
  line-height: 1.8rem;
  color: hsl(228, 12%, 20%);
}

.price {
  grid-area: price;
  padding: 1.5rem 2rem 0.5rem 2rem;
  display: flex;
  justify-content: flex-start;
}

.price .new-price {
  color: hsl(158, 36%, 37%);
  font-family: "Fraunces", sans-serif;
  font-weight: 700;
  font-size: 2rem;
}

.price .old-price {
  flex: 1;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  text-decoration: line-through;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-area: button;
  margin: 0 2rem 2rem 2rem;
  border-radius: 0.4rem;
  border: none;
  background-color: hsl(158, 36%, 37%);
  color: white;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  font-weight: 700;
  cursor: pointer;
}

button img {
  padding-right: 0.5rem;
}

button:hover {
  background-color: hsl(158, 42%, 18%);
}

@media (max-width: 650px) {
  .container {
    max-width: 375px;
    display: flex;
    flex-direction: column;
  }

  button {
    padding: 1rem 0;
  }
}
