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

:root {
  --dark-cyan: hsl(158, 36%, 37%);
  --cream: hsl(30, 38%, 92%);
  --very-dark-blue: hsl(212, 21%, 14%);
  --dark-grayish-blue: hsl(228, 12%, 48%);
  --white: hsl(0, 0%, 100%);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--cream);
}

.product {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem 0;
  margin: 0 auto;
}

img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem 0.6rem 0 0;
  display: flex;
}

.product__content {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 0 0 0.6rem 0.6rem;
}

.product__category {
  font-size: 0.8rem;
  color: var(--dark-grayish-blue);
  text-transform: uppercase;
  letter-spacing: 0.25rem;
}

.product__title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--very-dark-blue);
  padding-top: 0.5rem;
  line-height: 1.1;
}

p {
  font-size: 14px;
  color: var(--dark-grayish-blue);
  margin-top: 1rem;
  line-height: 1.6;
}

.product__price {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.product__price-new {
  font-size: 2rem;
  color: var(--dark-cyan);
  font-weight: 700;
  font-family: 'Fraunces', serif;
}

.product__price-old {
  font-size: 0.8rem;
  color: var(--dark-grayish-blue);
  text-decoration: line-through;
}

.button img {
  width: 1rem;
  height: 1rem;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-cyan);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
  border: none;
  gap: 0.6rem;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.4rem;
}

@media screen and (min-width: 768px) {
  body {
    display: flex;
    align-items: center;
    height: 100vh;
  }

  .product {
    flex-direction: row;
    max-width: 630px;
  }

  picture {
    width: 50%;
  }

  picture > img {
    width: 100%;
    height: 100%;
    border-radius: 0.6rem 0 0 0.6rem;
  }

  .product__content {
    width: 50%;
    border-radius: 0 0.6rem 0.6rem 0;
    padding: 2rem;
  }

  .product__title {
    padding-top: 1.2rem;
    line-height: 1;
  }

  p {
    margin-top: 1.5rem;
  }

  .button {
    margin-top: 1.1rem;
  }
}
