@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");

body {
  background-color: hsl(30, 38%, 92%);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.left {
  width: 50%;
  height: 450px;
  background-image: url("./images/image-product-desktop.jpg");
  background-position: center;
  background-size: cover;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.right {
  width: 50%;
  margin-left: 20px;
}

.card {
  width: 600px;
  background-color: white;
  display: flex;
  border-radius: 10px;
  align-items: center;
  width: 70%;
}

.h1,
#product-price,
#product-discount {
  font-family: "Fraunces", sans-serif;
}

p {
  font-family: "Montserrat", sans-serif;
  color: hsl(228, 12%, 48%);
  line-height: 25px;
}

h5 {
  letter-spacing: 3px;
  color: hsl(228, 12%, 48%);
  font-family: "Montserrat", sans-serif;
}

#product-price {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  color: hsl(158, 36%, 37%);
}

button {
  margin-top: 10px;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(158, 36%, 37%);
  width: 80%;
  border-radius: 10px;
  /* Add these if you want cleaner button */
  /* border: none;
  outline: none; */
}

button img {
  padding-right: 10px;
}

#product-discount {
  color: grey;
  text-decoration: line-through;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 600px) {
  .card {
    flex-direction: column;
    height: 600px;
  }

  .right {
    width: 80%;
  }

  .left {
    background-image: url(./images/image-product-mobile.jpg);
    background-position: center;
    background-size: cover;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 10px;
    width: 100%;
    height: 300px;
  }

  button {
    margin: 10px;
  }

  br {
    display: none;
  }

  #product-price {
    margin-bottom: 10px;
  }
}
