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

html {
  font-size: 62.5%;
}

img {
  max-inline-size: 100%;
  height: 100%;
}

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

.card-container {
  width: 70rem;
  background-color: hsl(0, 0%, 100%);
  max-width: 140rem;
  margin: 20rem auto;
  border-radius: 0.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card .image-product {
  background-image: url(./images/image-product-desktop.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 0.8rem;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  min-height: 40rem;
}

.details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  gap: 2rem;
  font-family: "Montserrat", sans-serif;
}
.details h1 {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 1.8rem;
  color: hsl(228, 12%, 48%);
  font-weight: 500;
}
.details h2 {
  font-family: "Fraunces", sans-serif;
  font-size: 4rem;
  line-height: 1;
}
.details p {
  font-size: 1.7rem;
  color: hsl(228, 12%, 48%);
  font-weight: 500;
  line-height: 1.6;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.price-info .price {
  font-family: "Fraunces", sans-serif;
  font-size: 5rem;
  color: hsl(158, 36%, 37%);
  font-weight: 700;
}
.price-info .with-discount {
  font-size: 1.5rem;
  color: hsl(228, 12%, 48%);
  font-weight: 500;
  text-decoration: line-through;
}

.btn-cart {
  background: hsl(158, 36%, 37%);
  color: hsl(0, 0%, 100%);
  padding: 1.7rem 0;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
}
.btn-cart:hover {
  background: hsl(158, 42%, 18%);
}

@media (max-width: 600px) {
  main {
    padding: 4rem;
  }
  .card .image-product {
    background-image: url(./images/image-product-mobile.jpg);
    background-position: center;
    background-size: cover;
    min-height: 30rem;
    border-radius: 0.8rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .card-container {
    width: 100%;
  }
  .card {
    grid-template-columns: 1fr;
  }
  .details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    gap: 1rem;
    font-family: "Montserrat", sans-serif;
  }
  .details h1 {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1.5rem;
    color: hsl(228, 12%, 48%);
    font-weight: 400;
  }
  .details h2 {
    font-family: "Fraunces", sans-serif;
    font-size: 3.5rem;
  }
  .details p {
    font-size: 1.29rem;
    color: hsl(228, 12%, 48%);
    font-weight: 500;
  }
}/*# sourceMappingURL=style.css.map */