.product-grid {
  display: grid;
  gap: 1.5em;

  @media (width >= 500px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (width >= 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (width >= 922px) {
    grid-template-columns: repeat(4, 1fr);
  }
}

article.product-card {
  position: relative;

  .product-card-sale {
    position: absolute;
    inset: 15px 15px auto auto;
    z-index: 1;

    svg {
      height: 48px;
      width: 48px;
    }
  }

  .product-card--img {
    border: 1px solid #949494;
    margin-bottom: 1.5rem;
    padding: 5px;

    > div {
      height: 0;
      overflow: hidden;
      padding-bottom: 100%;
      position: relative;
    }

    img {
      height: 100%;
      object-fit: cover;
      position: absolute;
      inset: 0;
      width: 100%;
      scale: 1;
      transition: 0.5s scale ease-in-out;
    }
  }

  .product-card-feature-highlight {
    left: 0;
    bottom: 0;
    padding: 0.5rem;
    position: absolute;
    width: 100%;
    z-index: 2;
  }

  .product-card-overlay {
    align-content: center;
    background-color: rgba(0, 0, 0, 0.35);
    background: radial-gradient(
      circle,
      rgba(0, 0, 0, 0.5) 24%,
      rgba(237, 221, 83, 0) 80%
    );
    color: #fff;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 2;
    transition: 0.5s opacity ease-in-out;

    p {
      font-family: var(--lora);
      font-size: 1.4rem;
      line-height: 1.3em;
      margin: 0;
    }
  }

  .product-card--copy {
    p {
      display: flex;
      flex-direction: row-reverse;
      justify-content: start;
      gap: 0.5em;
    }

    h3 {
      font-size: 1.1rem;
      font-family: var(--cabin);
      line-height: 1.4em;
      margin: 1rem 0 0.5rem;
    }

    del {
      color: var(--dark-gray);
      opacity: 0.6;
      font-size: 0.825em;
    }

    ins {
      background-color: transparent;
      color: var(--red);
      font-size: 19px;
    }
  }

  a {
    height: 100%;
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 3;
  }

  &:hover {
    .product-card-overlay {
      opacity: 1;
    }
    img.wp-post-image {
      scale: 1.2;
    }
  }
}
