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

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

main {
  width: 100%;
  height: 100vh;
  background-color: hsl(30, 38%, 92%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  max-width: 750px;
  width: 90%;
  background-color: white;
  border-radius: 1rem;
  margin: 2rem 0;
  display: flex;
  overflow: hidden;
}

.left {
  flex: 1;
}

.left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right {
  width: 50%;
  padding: 2.5rem;
}

.right .top-line {
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 5px;
  color: rgb(156, 156, 156);
  font-size: 14px;
  margin-bottom: 1rem;
}

.right .header-line {
  font-size: 40px;
  font-family: 'Fraunces';
  font-weight: 700;
  line-height: 48px;
  margin-bottom: 2rem;
}

.right .details {
  font-size: 17px;
  font-family: 'Montserrat';
  margin-bottom: 2rem;
  color: rgb(136, 136, 136);
  word-spacing: 2px;
  line-height: 1.4rem;
}

.price {
  display: flex;
  align-items: center;
}

.price .discount-price {
  font-family: 'Fraunces', sans-serif;
  font-size: 40px;
  color: hsl(158, 36%, 37%);
  margin-right: 2rem;
}

.price .before-price {
  text-decoration: line-through;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgb(136, 136, 136);
}

.btn {
  width: 100%;
  height: 55px;
  margin-top: 2rem;
  color: white;
  background-color: hsl(158, 36%, 37%);
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 0.6rem;
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: hsl(158, 43%, 25%);
}

@media only screen and (max-width: 670px) {
  .wrapper {
    flex-direction: column;
    height: 90%;
  }
  .left {
    height: 20%;
  }
  .left img {
    object-fit: cover;
  }
  .right {
    width: 100%;
    padding: 2rem;
  }
  .right .header-line {
    font-size: 30px;
    line-height: 35px;
    margin: 1rem 0;
  }
  .right .details {
    font-size: 14px;
  }
}
