@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');
@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 {
  /* neutral */
  --White: hsl(0, 0%, 100%);
  --Very-dark-blue: hsl(212, 21%, 14%);
  --Dark-grayish-blue: hsl(228, 12%, 48%);

  /* primary */
  --Cream: hsl(30, 38%, 92%);
  --Dark-cyan: hsl(158, 36%, 37%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  font-size: 0.875rem;
}

.fw-500 {
  font-weight: 500;
}

.fw-700 {
  font-weight: 700;
}

.montserrat {
  font-family: 'Montserrat', sans-serif;
}

.fraunces {
  font-family: 'Fraunces', serif;
}

.root {
  background: var(--Cream);
  padding-inline: 1em;
  min-height: 100vh;
  align-content: center;
}

.product {
  margin-inline: auto;
  max-width: 20em;

  @media (min-width: 40em) {
    display: flex;
    max-width: fit-content;
    max-height: 25em;
  }
}

.product_header {
  border-radius: 0.45em 0.45em 0 0;
  max-height: 13em;
  overflow: clip;

  img {
    width: 100%;
    object-fit: cover;

    @media (min-width: 40em) {
      height: 100%;
      object-fit: initial;
    }
  }

  @media (min-width: 40em) {
    border-radius: 0.45em 0 0 0.45em;
    max-width: 15em;
    max-height: none;
  }
}

.product_body {
  background: var(--White);
  border-radius: 0 0 0.45em 0.45em;
  padding: 1em;

  @media (min-width: 40em) {
    border-radius: 0 0.45em 0.45em 0;
    max-width: 15em;
  }
}

.category {
  color: var(--Dark-grayish-blue);
  letter-spacing: 3px;
  text-transform: uppercase;

  @media (min-width: 40em) {
    font-size: 0.7rem;
    margin-top: 1em;
    display: inline-block;
  }
}

.name {
  color: var(--Very-dark-blue);
  line-height: 1;
  margin-top: 0.3em;

  @media (min-width: 40em) {
    font-size: 1.75rem;
    margin-top: 0.5em;
  }
}

.description {
  color: var(--Dark-grayish-blue);
  margin-top: 1em;

  @media (min-width: 40em) {
    line-height: 1.5;
    font-size: 0.75rem;
    margin-top: 1.5em;
  }
}

.price {
  line-height: 1;
  margin-top: 1.5em;
  gap: 1em;
  display: flex;
  align-items: center;

  & > span:first-child {
    color: var(--Dark-cyan);
    font-size: 2rem;

    @media (min-width: 40em) {
      font-size: 1.5rem;
    }
  }

  & > span:nth-child(2) {
    color: var(--Dark-grayish-blue);
    text-decoration: line-through;
  }
}

.product_body > button {
  color: var(--White);
  background: var(--Dark-cyan);
  border: none;
  border-radius: 0.5em;
  margin-top: 0.5em;
  padding: 1em;
  width: 100%;
  gap: 1em;
  display: flex;
  justify-content: center;

  @media (min-width: 40em) {
    margin-top: 1.5em;
  }
}
