.container {
  max-width: 48rem;
  margin: 0 auto;
}

.container-lg {
  max-width: 64rem;
  margin: 0 auto;
}

.centered-layout {
  display: grid;
  place-items: center;
  height: 100dvh;
}

.empty-state {
  display: none;

  &:only-child {
    display: block;
  }
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--size-4);
  place-items: left;
}

.grid-wrapper--two-columns-on-tablet {
  @media (min-width: 48rem) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-wrapper--cart-layout {
  @media (min-width: 48rem) {
    gap: 5%!important;
    grid-template-columns: 60% 35%;
  }
}

.grid-wrapper--product-detail-layout {
  @media (min-width: 48rem) {
    gap: 5%!important;
    grid-template-columns: 35% 60%;
  }
}

.grid-wrapper--two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-wrapper--three-columns-on-desktop {
  @media (min-width: 64rem) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.paragraph-reset {
  & p {
    margin: 1rem 0;

    & a {
      color: var(--color-primary);
      text-decoration: underline;
    }
  }

  & img {
    width: 100%;
    border-radius: 4px;

    @media (min-width: 768px) {
      width: 80%;
    }
  }

  & p img {
    display: block;
    margin: 0 auto;
  }

  & p:has(img + em) {
    text-align: center;
    font-size: 12px;
  }

  & p img + em {
    display: inline-block;
    margin-top: 8px;
    color: gray;
  }

  & p code, li code, h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
    background-color: #f1f1f1; /* light gray */
    border-radius: 3px;
    padding: 2px 4px;
  }

  & hr {
    border: none;
    border-bottom: 1px solid gray;
    margin: 2rem auto;
    width: 50px;
  }
}

.bio-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-16);

  @media (min-width: 48rem) {
    flex-direction: row;
  }

  & h1 {
    font-size: 2rem;
    line-height: 1.375;
  }

  & img {
    border-radius: var(--size-2);
    transform: rotate(-1deg);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    border: 1px solid #dfdfdf;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    &:hover {
      transform: rotate(0deg) scale(1.1);
    }

    @media (min-width: 48rem) {
      width: 200px;
    }
  }
}

.bio-wrapper--reverse {
  flex-direction: column-reverse;

  @media (min-width: 48rem) {
    flex-direction: row;
  }
}
