@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");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: hsl(30, 38%, 92%);
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  padding: 1rem;
}

.card {
  width: 100%;
  max-width: 340px;
  border-radius: 0.625rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: hsl(0, 0%, 100%);
  margin-bottom: 3rem;
  box-shadow: 0 2rem 4rem -0.75rem hsla(233, 92%, 29%, 0.15);
}
@media (min-width: 768px) {
  .card {
    max-width: 600px;
    flex-direction: row;
  }
}

.product-image {
  width: 100%;
  height: 240px;
  background: url(../images/image-product-mobile.jpg) center/cover;
}
@media (min-width: 768px) {
  .product-image {
    height: auto;
    width: 50%;
    flex: 0 0 50%;
    background: url(../images/image-product-desktop.jpg) center/cover;
  }
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .product-details {
    width: 50%;
    flex: 0 0 50%;
    padding: 2rem;
    gap: 1.5rem;
  }
}

.product-category {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-weight: 500;
  color: hsl(228, 12%, 48%);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.64;
}

.product-name {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: hsl(212, 21%, 14%);
  margin: 0.25rem 0 1rem 0;
}
@media (min-width: 768px) {
  .product-name {
    margin: 0.25rem 0 1.5rem 0;
  }
}

.product-desc {
  color: hsl(228, 12%, 48%);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.64;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  font-family: "Fraunces", serif;
  margin: 0.5rem 0 0.25rem 0;
}
@media (min-width: 768px) {
  .product-prices {
    margin: 0.375rem 0 0.375rem 0;
  }
}
.product-prices .discounted {
  color: hsl(158, 36%, 37%);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.64;
}
.product-prices .undiscounted {
  color: hsl(228, 12%, 48%);
  text-decoration: line-through;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.64;
}

.cart {
  background-color: hsl(158, 36%, 37%);
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.cart:hover {
  background-color: hsl(158, 42%, 18%);
}
.cart:focus {
  background-color: hsl(158, 42%, 18%);
  outline: 2px solid hsl(158, 42%, 18%);
  outline-offset: 2px;
}
.cart-icon {
  width: 15px;
  height: 16px;
  background: url(../images/icon-cart.svg) no-repeat center;
  background-size: contain;
}

.attribution {
  font-size: 0.875rem;
  text-align: center;
  color: hsl(228, 12%, 48%);
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/*# sourceMappingURL=styles.css.map */
