@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --dark-cyan: hsl(158, 36%, 37%);
  --cream: hsl(30, 38%, 92%);
  --very-dark-blue: hsl(212, 21%, 14%);
  --dark-grayish-blue: hsl(228, 12%, 48%);
  --white: hsl(0, 0%, 100%);
}

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

p {
  font-size: 14px;
}

body {
  background-color: var(--cream);
  padding: 1rem;
  display: grid;
  place-content: center;
  height: 100vh;
}

h1,
h2 {
  font-family: Fraunces;
}

p {
  color: var(--dark-grayish-blue);
  opacity: 0.8;
}

.product-card {
  background-color: var(--white);
  border-radius: 1rem;
  width: 100vw;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.thumbnail {
  border-radius: 1rem 1rem 0 0;
}

.product-info {
  padding: 1rem;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5ch;
}

.product-name {
  font-size: 2rem;
  line-height: 1.1em;
  margin: 1rem 0 1rem 0;
}

.product-description {
  font-weight: 700;
  line-height: 1.5em;
}

.price {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  align-items: center;
  color: var(--dark-cyan);
  margin: 1rem 0 1rem 0;
}

.og-price {
  color: var(--dark-grayish-blue);
  font-size: 0.5em;
  font-weight: 500;
  text-decoration: line-through;
}

.add-to-cart {
  background-color: var(--dark-cyan);
  border: 0;
  color: var(--white);
  width: 100%;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  font-weight: bold;
}

.add-to-cart:active,
.add-to-cart:hover {
  background-color: hsl(158, 36%, 25%);
}

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 375px) {
  .product-card {
    border-radius: 0.5rem;
    flex-direction: row;
  }

  .thumbnail {
    content: url(./images/image-product-desktop.jpg);
    width: 50%;
    border-radius: 0.5rem 0 0 0.5rem;
  }

  .product-info {
    padding: 1.5rem;
    width: 50%;
  }
}
