.sb-filter {
  display: flex;
  margin-top: 60px;
  gap: 32px;
  align-items: flex-start;
}
.sb-filter__sidebar {
  width: 275px;
  flex: 0 0 275px;
}

.sb-filter__toggle {
  display: none;
}

.sb-filter__overlay {
  display: none;
}

.sb-filter__wrapper {
  width: 100%;
  padding: 22px 18px;
  border: 1px solid #bababa;
  border-radius: 36px;
  background: #fff;
  color: #898989;
}

.sb-filter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sb-filter__header__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  color: #000;
  font-family: "Roboto", sans-serif;
}

.sb-filter__header__icon {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sb-filter__header__icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.sb-filter__header__icon span {
  display: none;
}

.sb-filter__divider {
  height: 1px;
  background: #bababa;
  opacity: 0.7;
  margin: 14px 0;
}

.sb-filter__block__label {
  font-size: 18px;
  font-weight: 600;
  color: #898989;
  margin-bottom: 14px;
  font-family: "Roboto", sans-serif;
}

/* PRICE */
.sb-filter__price__slider {
  margin: 12px 6px 10px;
}

.sb-filter__wrapper .ui-slider-horizontal {
  height: 10px;
  border: none !important;
  background: #d9d9d9 !important;
  border-radius: 999px !important;
}

.sb-filter__wrapper .ui-slider-horizontal .ui-slider-range {
  background: #0094fb !important;
  border-radius: 999px !important;
}

.sb-filter__wrapper .ui-slider .ui-slider-handle {
  border: none !important;
  border-radius: 50% !important;
  background: #0094fb !important;
  width: 20px !important;
  height: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.sb-filter__price__values {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.sb-filter__price__value {
  font-size: 14px;
  color: #0094fb;
  font-family: "Roboto", sans-serif;
}

/* SORT */
.sb-filter__sort {
  width: 100%;
  height: 26px;
  border-radius: 999px;
  background: #0094fb;
  border: 1px solid #0094fb;
  color: #fff;
  font-size: 14px;
  padding: 0 16px;
  font-family: "Roboto", sans-serif;
  appearance: none;
  outline: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 10px,
    calc(100% - 15px) 10px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

/* ON SALE row */
.sb-filter__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sb-filter__row__text {
  font-size: 18px;
  font-weight: 500;
  color: #0094fb;
  font-family: "Roboto", sans-serif;
}

/* round check on right */
.sb-filter__check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sb-filter__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sb-filter__check__ui {
  width: 23px;
  height: 23px;
  border-radius: 999px;
  border: 2px solid #0094fb;
  display: inline-block;
  position: relative;
}

.sb-filter__check input:checked + .sb-filter__check__ui::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #0094fb;
  border-radius: 100%;
  height: 13px;
  width: 13px;
}

/* CATEGORIES */
.sb-filter__cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-filter__cat__head {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
}

.sb-filter__cat__title {
  font-size: 18px;
  font-weight: 600;
  color: #0094fb;
  font-family: "Roboto", sans-serif;
}

.sb-filter__cat__chev {
  font-size: 28px;
  color: #0094fb;
  line-height: 1;
  margin-top: -13px;
}

.sb-filter__cat__children {
  flex-direction: column;
  gap: 15px;
}

.sb-filter__cat.is-open .sb-filter__cat__children {
  display: flex;
}

.sb-filter__cat__child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 20px;
  color: #8e8e8e;
  font-family: "Roboto", sans-serif;
}

.sb-filter__cat__child input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sb-filter__radio {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #bababa;
  position: relative;
  flex: 0 0 26px;
}

.sb-filter__cat__child input:checked + .sb-filter__radio {
  border-color: #bababa;
}

/* BUTTON */
.sb-filter__actions {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.sb-filter__button {
  width: 88%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: #0094fb;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
}

.sb-filter__button:hover {
  opacity: 0.92;
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .sb-filter {
    gap: 20px;
  }

  .sb-filter__sidebar {
    width: 250px;
    flex: 0 0 250px;
  }
}

.sb-filter__cat__children {
  padding-top: 10px;
  margin-left: 10px;
}
.sb-filter__cat.is-open .sb-filter__cat__children {
  display: flex;
  gap: 5px;
}

.sb-filter__cat__child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #898989;
  font-size: 16px;
}

.sb-filter__radio {
  flex: unset;
  width: 16px;
  height: 16px;
  border: 1px solid #909090;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-filter__cat__child input:checked + .sb-filter__radio {
  border-color: #0094fb;
}
.sb-filter__cat__child input:checked + .sb-filter__radio:after {
  content: "✓";
  font-size: 14px;
  line-height: 1;
  color: #0094fb;
}

/* Bootstrap-ish double range */

.sb-range {
  position: relative;
  height: 40px;
  margin-bottom: 30px;
}

.sb-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 999px;
  background: #d9d9d9;
}

.sb-range__progress {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: #0094fb;
  left: 0;
  width: 0;
}

.sb-range__input {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 31px;
  margin: 0;
  pointer-events: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

.sb-range__input::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border: 0;
}

.sb-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #0094fb;
  border: 0;
}

.sb-range__input::-moz-range-track {
  height: 8px;
  background: transparent;
  border: 0;
}

.sb-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #0094fb;
  border: 0;
}

.sb-filter__price__values {
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 10px !important;
}

.sb-filter__price__value {
  display: inline-flex !important;
}

.sb-range__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  color: #0094fb;
  font-size: 14px;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 1024px) {
  body.sb-filter-drawer-open {
    overflow: hidden;
  }

  .sb-filter {
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
  }

  .sb-filter__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    min-height: 56px;
    padding: 12px 20px;
    border: 1px solid #0094fb;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    color: #0094fb;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
  }

  .sb-filter__toggle img {
    width: 22px;
    height: 22px;
    display: block;
  }

  .sb-filter__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0s linear 0.28s;
  }

  .sb-filter__sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483641;
    width: min(390px, 88vw);
    max-width: 390px;
    transform: translate3d(105%, 0, 0);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    visibility: hidden;
    pointer-events: none;
    flex: 0 0 auto;
  }

  .sb-filter__wrapper {
    height: 100%;
    overflow-y: auto;
    padding: 20px 16px 22px;
    border-radius: 0;
    border-left: 1px solid #bababa;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.15);
  }

  .sb-filter__header__icon {
    display: grid;
  }

  .sb-filter__header__icon img {
    display: none;
  }

  .sb-filter__header__icon span {
    display: block;
    font-size: 24px;
    line-height: 1;
    margin-top: -2px;
  }

  .sb-filter.is-filter-open .sb-filter__overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sb-filter.is-filter-active .sb-filter__overlay,
  .sb-filter.is-filter-active .sb-filter__sidebar {
    visibility: visible;
  }

  .sb-filter.is-filter-active .sb-filter__overlay {
    transition:
      opacity 0.28s ease,
      visibility 0s;
  }

  .sb-filter.is-filter-open .sb-filter__sidebar {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .sb-filter__actions {
    position: sticky;
    bottom: 0;
    padding: 14px 0 6px;
    margin-top: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 26%);
    border-top: 1px solid #edf4fb;
  }

  .sb-filter__actions .btn-blue {
    width: 100%;
    height: 50px;
  }

}

@media (min-width: 768px) and (max-width: 1024px) {
  .sb-filter__toggle {
    width: auto;
    max-width: none;
    margin: 0;
    min-height: 48px;
    padding: 10px 18px;
    font-size: 16px;
  }

  .sb-filter__toggle img {
    width: 20px;
    height: 20px;
  }

  .sb-filter__sidebar {
    width: min(460px, 62vw);
    max-width: 460px;
  }

  .sb-filter__wrapper {
    padding: 24px 22px 20px;
    border-radius: 24px 0 0 24px;
    border-left: 1px solid #bababa;
  }

  .sb-filter__header__title {
    font-size: 20px;
  }

  .sb-filter__block__label {
    font-size: 17px;
  }

}

@media (max-width: 767px) {
  .sb-filter {
    margin-top: 28px;
    gap: 16px;
  }

  .sb-filter__wrapper {
    padding: 18px 14px;
    border-radius: 0;
  }

  .sb-filter__header__title,
  .sb-filter__block__label,
  .sb-filter__row__text {
    font-size: 16px;
  }

  .sb-filter__cat__child {
    font-size: 15px;
  }

  .sb-filter__actions {
    display: flex;
    align-items: center !important;
  }
  .sb-filter__actions .btn-blue {
    max-width: 100% !important;
    width: 100% !important;
  }

  .sb-range__label {
    top: 40px;
    font-size: 12px;
  }
}
