@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

h1,
h3 {
  font-family: "Fraunces", serif;
}
p,
span {
  color: hsl(228, 12%, 48%);
}

body {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: hsl(30, 38%, 92%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

main {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
}

.image {
  height: 15.625rem;
  background-image: url("./images/image-product-mobile.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

.contents {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.top {
  text-transform: uppercase;
  letter-spacing: 5px;
}

h1 {
  color: hsl(212, 21%, 14%);
  font-size: 2.125rem;
}

.description {
  line-height: 1.5;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

h3 {
  color: hsl(158, 36%, 37%);
  font-size: 1.75rem;
}

span {
  text-decoration: line-through;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: hsl(158, 36%, 37%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: hsl(158, 36%, 27%);
}

@media screen and (min-width: 768px) {
  main {
    flex-direction: row;
    min-height: 480px;
    max-width: 620px;
  }

  .image,
  .contents {
    flex: 1;
    flex-shrink: 0;
  }

  .image {
    min-width: 300px;
    height: auto;
    background-image: url("./images/image-product-desktop.jpg");
  }

  .contents {
    gap: 1.5rem;
  }
}
