.all-products {
  width: 100%;
  max-width: calc(var(--view-port) + 100px);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  margin-top: 129px;
  padding: 0 5%;
  margin-bottom: 181px;
}

.category-header-icon_active {
  transform: rotate(180deg);
}

.all-products-filter-section {
  display: flex;
  flex-direction: column;

  .filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 51px;
    color: #2d2869;
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;

    img {
      width: 24px;
      height: 24px;
    }
  }

  .category {
    display: flex;
    flex-direction: column;

    margin-bottom: 24px;

    width: 100%;

    padding: 0px;

    padding-top: 24px;

    gap: 0;

    /* padding-top: 24px; */

    border-top: 1px solid #efeef6;

    .category-header {
      display: flex;
      justify-content: space-between;

      cursor: pointer;

      margin-top: 0;
      margin-bottom: 0;

      span {
        color: var(--blue-700);
        font-family: Poppins;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
      }

      img {
        width: 12px;
        height: 12px;

        transition: ease all 0.5s;
      }
    }

    .category-list {
      display: flex;
      flex-direction: column;

      transition: all ease-in-out 0.5s;

      height: 0;
      overflow: hidden;

      .content-wrapper {
        padding-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 17px;
      }

      label {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 16px;
        cursor: pointer;
      }

      input {
        width: 18px;
        height: 18px;
        cursor: pointer;
      }

      color: var(--blue-600);
      font-family: Inter;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 120%;
    }
  }
}

.all-products-list-wrapper {
  /* width: 100%; */
  display: flex;
  flex-direction: column;

  .header {
    width: 100%;
    display: flex;

    margin-top: -14px;
    margin-bottom: 46px;

    span {
      color: var(--blue-700);
      font-family: Poppins;
      font-size: 32px;
      font-style: normal;
      font-weight: 500;
    }
  }
}

.all-products-list {
  display: grid;
  width: 100%;
  padding: 20px max(calc((100% - var(--view-port)) / 2), 5%);
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.button-load-more-wrapper {
  display: flex;
  width: 100%;
  justify-content: center;

  margin-top: 56px;
}

@media screen and (max-width: 1000px) {
  .all-products-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 750px) {
  .all-products-list {
    grid-template-columns: 1fr;
  }
}

#btn-close-filter,
#btn-filter-open {
  display: none;
}

@media screen and (max-width: 750px) {
  #btn-close-filter {
    display: block;
  }
  #btn-close-filter img {
    display: block;
  }
  #btn-filter-open {
    display: block;
    border: 1px solid var(--blue-500);
    padding: 6px 14px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    color: var(--blue-500);
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    text-decoration: none;
    float: right;
  }
  #btn-filter-open img {
    width: 24px;
  }
  .category-header {
    flex-direction: row;
    gap: 15px;
  }
  /*.float-view {
    display: none;
  }*/
  .all-products {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  .all-products::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100vh;
    z-index: 100;
    transition: all 0.5s;
    opacity: 0;
    visibility: hidden;
  }
  .all-products .all-products-filter-section {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: white;
    width: 80%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 110;
    transition: all 0.5s;
    max-width: 340px;
  }
  .all-products .all-products-filter-section .filter {
    margin-bottom: 0;
    padding: 30px 20px;
    justify-content: space-between;
  }
  .all-products .all-products-filter-section .filter span {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .all-products .all-products-filter-section .category {
    margin-bottom: 0;
    padding: 30px 20px;
  }

  .all-products-list-wrapper .header {
    margin-top: 0;
    display: block;
  }
  .all-products-list-wrapper .header span {
    display: block;
    padding-bottom: 10px;
  }

  html.filter-open {
    overflow: hidden;
  }
  html.filter-open body {
    overflow: hidden;
  }
  html.filter-open body .all-products .all-products-filter-section {
    left: 0%;
  }
  html.filter-open body .all-products::before {
    opacity: 1;
    visibility: visible;
  }
  .all-products-list {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
}
