.it-products-wrapper {
  padding: 40px 0;
  .it-product--lists-heading {
    position: relative;
    margin: 0 0 20px;
    width: 100%;
    @media (min-width: 769px) {
      margin: 0;
    }
    &::after {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      height: 1px;
      background-color: var(--text-color);
    }
    h2 {
      font-size: 20px;
      line-height: 30px;
      letter-spacing: 0.03px;
      text-transform: inherit;
      font-weight: 600;
      margin: 0;
      font-family: var(--body-font);
      @media (min-width: 769px) {
        font-size: 30px;
        line-height: 44px;
      }
    }
    span {
      background-color: var(--bg);
      color: var(--black-color);
      position: relative;
      z-index: 1;
      padding-right: 20px;
      font-family: var(--heading-font);
    }
  }
  .it-products {
    @media (min-width: 769px) {
      display: flex;
      flex-direction: row;
      grid-gap: var(--section-gap);
    }
    .it-product--switcher-box {
      display: none;
      @media (min-width: 769px) {
        display: block;
        margin: 0;
        padding: 0;
      }
    }
  }
  .it-products--lists {
    @media (min-width: 769px) {
      grid-gap: 15px;
      display: flex;
      flex-wrap: wrap;
      width: calc(100% - var(--sidebar-width));
      max-width: calc(100% - var(--sidebar-width));
    }
    @media (min-width: 1100px) {
      grid-gap: 32px;
    }
  }
  .it-product--card {
    box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    position: relative;
    &:not(.it-product--card-without-image) {
      @media (min-width: 1100px) {
        padding-left: 242px;
      }
    }
    @media (min-width: 769px) and (max-width: 1099px) {
      flex-basis: calc(50% - 7.5px);
      max-width: calc(50% - 7.5px);
      width: calc(50% - 7.5px);
    }
    @media (min-width: 1100px) {
      min-height: var(--height);
      width: 100%;
    }
    &:not(:last-child) {
      margin-bottom: 24px;
    }

    .it-product--card-image {
      display: none;
      line-height: 0;
      @media (min-width: 1100px) {
        display: block;
      }
      img {
        line-height: 0;
        object-fit: cover;
        height: 160px;
        width: 100%;
        max-width: 100%;
        border-radius: 15px 15px 0 0;

        @media (min-width: 1100px) {
          width: 220px;
          max-width: 220px;
          height: 100%;
          border-radius: 15px 0 0 15px;
          position: absolute;
          top: 0;
          left: 0;
        }
      }
    }
    .it-product--card-info {
      height: 100%;
      padding: 16px;
      @media (min-width: 1100px) {
        position: relative;
        padding: 24px 32px 24px 0;
        height: auto;
        min-height: var(--height);
      }
      .it-product--card-info-top {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        @media (min-width: 1100px) {
          flex-direction: row;
          grid-gap: 10px;
          margin-bottom: 0;
          justify-content: space-between;
        }
        .it-product--card-info-title {
          font-size: 30px;
          line-height: 44px;
          letter-spacing: 0.03px;
          font-weight: 700;
          margin: 0;
          a {
            font-family: inherit;
            &:hover,
            &:focus-visible {
              opacity: 0.7;
            }
          }
          @media (min-width: 1100px) {
            flex-basis: calc(100% - 180px);
            max-width: calc(100% - 180px);
            width: calc(100% - 180px);
          }
        }
        .it-product--card-info-price-wrapper {
          @media (min-width: 1100px) {
            flex-basis: 180px;
            max-width: 180px;
            width: 180px;
            text-align: right;
          }
          .it-product--card-info-price-saving {
            padding: 4px 12px;
            background-color: var(--primary-color);
            color: var(--white-color);
            border-radius: 22px;
            display: inline-flex;
            grid-gap: 4px;
            align-items: center;
            font-size: 12px;
            line-height: 16px;
            letter-spacing: 0.03px;
            font-weight: 600;
            text-transform: uppercase;
            font-family: var(--body-font);
            display: none;
            @media (min-width: 1100px) {
              padding: 8px 16px;
              margin-bottom: 8px;
              font-size: 14px;
              line-height: 20px;
              display: inline-block;
            }
          }
          .it-product--card-info-price {
            font-size: 30px;
            line-height: 44px;
            letter-spacing: 0.03px;
            font-family: var(--heading-font);
            font-weight: 600;
            display: flex;
            align-items: center;
            color: var(--text-color);
            margin: 0 0 15px;
            column-gap: 8px;
            @media (min-width: 1100px) {
              font-size: 24px;
              line-height: 38px;
              column-gap: 12px;
              justify-content: flex-end;
              flex-wrap: wrap;
              margin-bottom: 0;
            }
          }
          .it-product--card-info-price.compare {
            .it-product--card-info-price-saving {
              display: inline-block;
              order: 1;
              @media (min-width: 1100px) {
                display: none;
              }
            }
            color: var(--secondary-color);
            s {
              color: var(--text-color);
              font-size: 16px;
              line-height: 24px;
              order: 1;
              font-family: var(--heading-font);
              @media (min-width: 1100px) {
                font-size: 24px;
                line-height: 36px;
                order: unset;
              }
            }
          }
          .it-product--card-info-membership {
            font-size: 10px;
            line-height: 14px;
            letter-spacing: 0.03px;
            text-align: left;
            margin: 0;

            @media (min-width: 1100px) {
              text-align: right;
            } 
          }
        }
      }
      .it-product--card-info-desc {
        display: none;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.03px;
        margin-bottom: 24px;
        margin-top: 0;
        @media (min-width: 1100px) {
          display: block;
        }  
      }
      .it-product--card-info-bottom {
        display: flex;
        flex-direction: column;

        @media (min-width: 1100px) {
          flex-direction: row;
          grid-gap: 10px;
          justify-content: space-between;
          align-items: flex-end;
        }
      }
      .it-product--card-info-list {
        margin-bottom: 24px;
        @media (min-width: 1100px) {
          margin-bottom: 0;
          flex-basis: calc(100% - 224px);
          max-width: calc(100% - 224px);
          width: calc(100% - 224px);
        }
        .it-product--card-info-listItem {
          display: flex;
          align-items: center;
          grid-gap: 12px;
          &:not(:last-child) {
            margin-bottom: 12px;
          }
          span {
            font-size: 14px;
            line-height: 20px;
            letter-spacing: 0.03px;
            font-weight: 600;
          }
        }
      }
      .it-product--card-info-bottom--button {
        color: var(--secondary-color);
        font-size: 0;
        font-weight: 700;
        &::after {
          content: "Learn more \bb";
          font-size: 16px;
          line-height: 24px;
          text-decoration: underline;
          @media (min-width: 1100px) {
            content: none;
          }
        }
        @media (min-width:1100px) {
          width: 200px;
          height: 40px;
          font-size: 14px;
          line-height: 20px;
          letter-spacing: 0.03px;
          font-weight: 600;
          background-color: var(--secondary-color);
          color: var(--white-color);
          border-radius: 3px;
          display: flex;
          justify-content: center;
          align-items: center;

          &:hover,
          &:focus-visible {
            background-color: var(--button-hover-color);
          }
        }
      }
    }
  }
  .it-product--card.it-product--card-without-image {
    @media (min-width: 1100px) {
      flex-basis: calc(50% - 16px);
      max-width: calc(50% - 16px);
      width: calc(50% - 16px);
      max-height: var(--height);
    }
    .it-product--card-info {
      padding: 24px;
      display: flex;
      flex-direction: column;
      @media (min-width: 1100px) {
        display: block;
      }
      .it-product--card-info-top {
        .it-product--card-info-title {
          font-size: 26px;
          line-height: 40px;
        }
      }
    }
    .it-product--card-info-bottom--button {
      margin-top: auto;
      @media (min-width: 1100px) {
        position: absolute;
        bottom: 24px;
        right: 24px;
      }
    }
  }
}