:root {
  --Green-500: hsl(158, 36%, 37%);
  --Green-700: hsl(158, 42%, 18%);

  /*Neutral */
  --Black: hsl(212, 21%, 14%);
  --Grey: hsl(228, 12%, 48%);
  --Cream: hsl(30, 38%, 92%);
  --White: hsl(0, 0%, 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  width: 100%;
  display: block;
}
body {
  background: var(--Cream);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--Grey);
}
.item-img-desktop {
  display: none;
}
.item-img-desktop,
.item-img-mobile {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.preview-card {
  width: 90vw;
  background: var(--White);
  border-radius: 10px;
  /* margin: 2rem 0; */
}
.item-info {
  padding: 2rem;
}
.item-info h5 {
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.item-info h2 {
  font-family: "Fraunces", serif;
  color: var(--Black);
  text-transform: capitalize;
  line-height: 1.1;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.item-info .item-description {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.item-price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.discounted-price {
  font-size: 2rem;
  font-family: "Fraunces", serif;
  color: var(--Green-500);
}
.price {
  text-decoration: line-through;
}
.btn {
  width: 100%;
  background: var(--Green-500);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  border: none;
  padding: 1rem 0;
  border-radius: 10px;
  transition: all 0.3s linear;
}
.btn:hover {
  background: var(--Green-700);
}

.btn p {
  font-family: "Montserrat", sans-serif;
  color: var(--White);
  font-weight: 700;
  text-transform: capitalize;
}
.cart-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
/* - Mobile: 375px
- Desktop: 1440px */

@media screen and (min-width: 576px) {
  .preview-card {
    max-width: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }
  .item-img-mobile {
    display: none;
  }
  .item-img-desktop {
    display: block;
    height: 100%;
    border-radius: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
}
.item-info {
  display: grid;
}
.attribution {
  min-height: 2rem;
}
.attribution {
  font-size: 12px;
  text-align: center;
}
.attribution a {
  color: var(--Green-700);
  text-decoration: none;
}
.attribution a:hover {
  color: var(--Green-500);
  text-decoration: none;
}
