:root {
  --green-500: hsl(158, 36%, 37%);
  --green-700: hsl(158, 42%, 18%);
  --black: hsl(212, 21%, 14%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
}

html {
  font-size: 14px;
}

body {
  font-family: "Montserrat", sans-serif;
  height: 100vh;
}

h1 {
  font-family: "Fraunces", serif;
  color: var(--black);
  font-size: 2.2rem;
  line-height: 2.2rem;
}

h2 {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 1rem;
}

p {
  color: var(--grey);
  font-size: 1.05rem;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: var(--cream);
}

.display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 25rem;
  background-color: var(--white);
  border-radius: 1rem;
}

.illustration {
  background-image: url("./images/image-product-mobile.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 25rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

header {
  padding: 2rem 2rem 0;
}

main {
  padding: 1.5rem 2rem 2rem;
}

.price {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.discount {
  font-family: "Fraunces", serif;
  color: var(--green-500);
  font-size: 2.2rem;
}

.original-price {
  font-family: "Fraunces", serif;
  color: var(--grey);
  font-size: 1.1rem;
  text-decoration: line-through;
  opacity: 0.8;
}

button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-style: none;
  background-color: var(--green-500);
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}

button:hover {
  background-color: var(--green-700);
}

button img {
  width: 1.2rem;
  height: auto;
}

@media (min-width: 1440px) {
  .display {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 43rem;
    background-color: var(--white);
    border-radius: 1rem;
  }

  .illustration {
    background-image: url("./images/image-product-desktop.jpg");
    background-size: cover;
    background-position: center;
    width: 50%;
    height: 33rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 1rem;
  }

  .advertisement {
    width: 50%;
  }

  header {
    padding: 2.5rem 2rem 0;
  }

  main {
    margin-top: 0.4rem;
  }

  h1 {
    margin-top: 1.5rem;
    font-size: 2.5rem;
  }

  button {
    padding: 0.8rem;
    font-weight: 500;
    margin-top: 2rem;
  }
}
