.custom-collection {
  .product-item {
    width: 100%;
  }

  .pagination {
    border: none;
    grid-auto-columns: minmax(0, 40px);
    grid-auto-rows: minmax(0, 40px);
    gap: 8px;

    .pagination__link {
      box-shadow: none;
      font-weight: 400;
      font-size: 14px;
      line-height: 140%;
      text-align: center;
      color: var(--text-tertiary);

      &[rel="prev"],
      &[rel="next"] {
        border-radius: 20px;
        box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.09);
        background-color: #fff;
      }

      &.active {
        border-radius: 50px;
        width: 40px;
        height: 40px;
        background-color: var(--brand-color);
        color: #fff;
      }
    }
  }

  .sort-container {
    display: flex;
    justify-content: flex-end;
  }

  .collection-toolbar__button {
    padding: 12px 16px;
    border: 1px solid #dbdcdd;
    border-radius: 9999px;
    
    svg:not(.filter-icon-svg) {
      display: none;

      @media (min-width: 1000px) {
        display: block;
      }
    }

    @media (min-width: 1000px) {
      min-width: 178px;
    }
  }

  .collection-toolbar__button-list {
    padding: 12px 0;
    gap: 8px;

    @media (min-width: 1000px) {
      padding: 24px 0;
    }
  }

  .collection-toolbar__button-container {
    display: flex;
    gap: 8px;
    align-items: center;

    @media screen and (min-width: 1000px) {
      gap: 12px;
    }

    &.sort-container {
      flex: none;
      width: fit-content;
    }
    
    .collection-toolbar__button {
      opacity: 1;

      &.price-filter-button {
        flex: 1;

        span {
          justify-content: center;
        }

        @media (min-width: 500px) {
          flex: none;
          span {
            justify-content: space-between;
          }
        }
      }

      span {
        font-weight: 400;
        font-size: 14px;
        line-height: 140%;
        color: #000000;

        .filter-icon {
          display: flex;
          align-items: center;
          gap: 8px;
        }
      }
    }
  }

  .active-facets {
    justify-content: flex-start;
    .removable-facet {
      background-color: var(--background-secondary);
      border: none;
      border-radius: 4px;
      padding: 4px;

      span {
        font-weight: 400;
        font-size: 12px;
        line-height: 130%;
      }
    }

    facet-link {
      display: flex;
    }

    .facets-clear-all {
      font-weight: 400;
      font-size: 12px;
      line-height: 130%;
      text-align: right;
      color: #e50068;
    }
  }
}

.custom-search  {
  .collection {
    display: flex;
  
    .empty-state .secondary-button-wrapper{
      margin: auto;
    }
  }
}

.custom-search__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 140%;
  text-align: center;
  color: #000000;
  letter-spacing: 0.01em;

  @media (min-width: 1000px) {
    font-size: 32px;
  }
}

.main-search-form {
  .form-control .input {
    border-radius: 9999px;
  }
}

.facets-drawer {
  .facets-drawer__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    .facets-drawer__header-title {
      font-weight: 700;
      font-size: 18px;
      line-height: 140%;
    }
  }

  .facets-drawer__footer {
    .secondary-button-wrapper {
      width: 100%;
    }
  }

  .accordion {
    border: none;
    .accordion__toggle {
      padding-block: 18px;

      span {
        font-weight: 500;
        font-size: 14px;
        line-height: 139%;
        letter-spacing: 0.07em;
        text-transform: uppercase;
      }
    }

    .accordion__content div:has(.color-swatch) {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: fit-content;

      .swatch-name {
        position: absolute;
        left: 56px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 400;
        font-size: 14px;
        line-height: 140%;
      }

      :checked + .color-swatch .swatch-name {
        font-weight: 700;
      }
    }

    .range::-moz-range-thumb,
    .range::-webkit-slider-thumb {
      display: none;
    }
  }
} 

.facets-drawer.drawer::part(header) {
  padding: 16px 12px;
  border-color: var(--background-secondary);
  min-height: 68px;
}

.facets-drawer.drawer::part(body) {
  padding: 16px 12px;
}

.facets-drawer.drawer::part(content) {
  grid-auto-rows: auto;
}

.facets-drawer.drawer::part(footer) {
  padding: 8px 12px;
  border: none;
}