/* Products Page Filter */
.productResults {
  margin-bottom: 2.5rem;
}
.productResultsFilter {
  margin-top: 5rem;
}

.medicineCategories {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: var(--white);
  border-radius: 30px;
  gap: 10rem;
  @media (max-width: 768px) {
    gap: unset;
  }
  .categoryRadio {
    margin: 0;
    cursor: pointer;
    input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .categoryLabel {
      display: block;
      padding: 5px 14px;
      border-radius: 20px;
      font-weight: 500;
      line-height: 1.4;
      color: var(--black);
      background: transparent;
      transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
    }
    &:hover .categoryLabel {
      color: var(--black);
    }
  }
}

/* Product Page */
.productPage {
  .productLoop {
    .product {
      background: var(--blockBackground);
      border-radius: var(--roundedEdge);
      height: 115px;
      margin: 0 auto 2rem;
      padding: 2.5rem 1rem 1rem;
    }
    .row {
      display: block;
      h5 {
        display: inline;
        margin-right: 5px;
        font-size: clamp(16px, 1.1vw, 20px);
        line-height: 32px;
        font-weight: 700;
      }
      span {
        display: inline;
        margin: 0;
        font-size: clamp(16px, 1.1vw, 20px);
        font-weight: normal;
        line-height: 32px;
      }
    }
    &:nth-child(3n + 1) > .product {
      &:hover {
        background-color: var(--leftExpand);
        color: var(--bodyText);
        position: relative;
        z-index: 99;
        height: 100%;
      }
    }
    &:nth-child(3n + 2) > .product {
      &:hover {
        background-color: var(--centerExpand);
        color: var(--white);
        position: relative;
        z-index: 99;
        height: 100%;
      }
      h4 {
        &:hover {
          color: var(--white);
        }
      }
      h5 {
        color: var(--white);
      }
      span {
        color: var(--white);
      }
    }
    &:nth-child(3n) > .product {
      &:hover {
        background-color: var(--rightExpand);
        color: var(--bodyText);
        position: relative;
        z-index: 99;
        height: 100%;
      }
    }
    &:nth-child(3n + 2) {
      .medicineIcon {
        filter: brightness(0) invert(1);
      }
    }
  }
}

.product {
  position: relative;
  -webkit-box-shadow: 0px 5px 12px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 5px 12px 2px rgba(0, 0, 0, 0.25);
}

.product .information {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  position: relative;
  height: 10rem;
  z-index: 99;
}

.product:hover .information {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.medicineIcon {
  width: 40px;
  height: 40px;
}

.medicineCategories {
  li {
    display: inline-block;
    a {
      &:hover {
        cursor: pointer;
      }
    }
  }
}

.categoryImage--active {
  display: none;
}

.categoryRadio input:checked ~ .categoryLabel .categoryImage--default {
  display: none;
}

.categoryRadio input:checked ~ .categoryLabel .categoryImage--active {
  display: inline-block;
}
