@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@700&family=Montserrat:wght@500;700&display=swap");

:root {
  /* Primary Colors */
  --green-500: hsl(158, 36%, 37%);
  --green-700: hsl(158, 42%, 18%);

  /* Neutral Colors */
  --black: hsl(212, 21%, 14%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
}

* {
  box-sizing: border-box;
  font-weight: 500;
  font-size: 14px;
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  color: var(--black);
}

.product-image {
  width: 100%;
  object-fit: cover;
}

.container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 400px;
  border-radius: 0.5rem;
  background-color: var(--white);
  margin: 30px 10px;
}

.product {
  padding: 25px;
  color: var(--grey);
}

.product > h2 {
  text-transform: uppercase;
  letter-spacing: 4px;
}

.product > h1 {
  font-family: "Fraunces", serif;
  color: var(--black);
  font-size: 2rem;
  margin: 10px 0;
}

.product > p {
  line-height: 1.5;
}

.product > .prices {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.product .sale-price {
  font-family: "Fraunces", serif;
  color: var(--green-500);
  font-size: 2.5rem;
  margin-right: 20px;
}

.product .actual-price {
  text-decoration: line-through;
}

.product > button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  font-weight: 700;
  background-color: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  width: 100%;
  cursor: pointer;
}

.product > button:hover {
  background-color: var(--green-700);
}

.icon {
  max-width: 15px;
  margin-right: 10px;
}

.attribution {
  font-size: 11px;
  text-align: center;
  display: none;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 768px) {
  .container {
    flex-direction: row;
    max-width: 600px;
  }

  .product-image {
    flex: 1 0 50%;
  }

  .product {
    flex: 1;
    padding: 35px;
  }

  .product > .prices {
    margin: 30px 0;
  }
}
