.category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: bitum;
}

.category-title {
  font-size: 26px;
  font-family: bitum;
  text-transform: uppercase;
  margin: 0;
}
h1.category-title {
  font-family: bitum!important;
}


.category-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 70px;
  margin: 0;
}

.category-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #3d3d3d;
  cursor: pointer;
  transition: 0.4s;
}

.category-sort.disabled {
  color: #3d3d3d66;
  user-select: none;
  pointer-events: none;
}

.category-sort svg {
  width: 15px;
}

.category-sort svg path {
  transition: 0.4s;
}

.category-sort svg path.active {
  fill: #3d3d3d;
}

.category-sort.disabled svg path.active {
  fill: #3d3d3d66;
}

.category-filter {
  display: block;
}

.category-filter__type {
  margin-top: 35px;
}

.category-filter__checked {

  margin-top: 35px;
}

.category-filter__active {
  display: flex;
  align-items: center;
  gap: 18px;
}

.category-filter__active-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
  font-size: 13px;
  font-family: bitum !important;
  white-space: nowrap;
  border: 1px solid #000;
  padding: 15px;
  margin: 0;
}

.category-filter__active-remove {
  width: 7px;
  background: transparent;
  border: none;
}

.category-filter__active-clear {
  font-size: 13px;
  font-family: bitum !important;
  background: transparent;
  border: none;
  margin: 0 0 0 15px;
}

.category-filter__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 190px;
  font-family: bitum;
  background: #fff;
  border: 1px solid #000;
  padding: 14px;
}

.category-filter__title {
  font-size: 13px;
  margin: 0;
}

.category-filter__drop {
  width: 10px;
  height: auto;
  margin: 0;
  transition: 0.4s;
}

.category-filter__button.active .category-filter__drop {
  transform: rotate(180deg);
}

.category-filter__type {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: clip;
  padding-bottom: 25px !important;
}

.category-filter__type::-webkit-scrollbar {
  height: 6px;
  background: transparent;
  box-shadow: none;
}

.category-filter__type::-webkit-scrollbar-track {
  box-shadow: none;
  background-color: transparent;
  background-image: url(/img/icon/line.svg);
  background-size: auto;
  background-repeat: repeat-x;
  background-position: center;
}

.category-filter__type::-webkit-scrollbar-thumb {
  background-color: #e3e2e1;
  border: 6px solid #e3e2e1;
  border-radius: 6px;
  box-shadow: none;
}

.category-filter__item {
  position: relative;
  min-width: calc((100% - (15px * 5)) / 6);
  margin-right: 15px;
}

.category-filter__item:last-child {
  margin-right: 0;
}

.category-filter__item input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.category-filter__img {
  border: 1px solid #ffffff00;
}

.category-filter__img img {
  width: 100%;
}

.category-filter__item input:checked ~ .category-filter__img {
  border-color: #000;
}

.category-filter__name {
  font-size: 13px;
  font-family: bitum;
  margin-top: 15px;
  white-space: nowrap;
}

.category-parametr {
  display: none;
}
.category-parametr.active{
  display: block;
}
.category-parametr__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 15px;
  margin-top: 45px !important;
}
.category-parametr__content.category-parametr__count_4{
  grid-template-columns: repeat(5,1fr);
}

.category-parametr__title {
  font-family: bitum;
  text-transform: uppercase;
}

.category-parametr__list {
  width: 100%;
}

.category-parametr__wrapp {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px !important;
}

.category-parametr__item {
  margin: 0;
}

.category-parametr__item input {
  display: none;
}

.category-parametr__item .label {
  position: relative;
  min-width: 45px;
  font-size: 13px;
  text-align: center;
  background: #f3f3f3;
  border: 1px solid #f3f3f3;
  padding: 15px 10px;
  margin: 0 !important;
  cursor: pointer;
  transition: 0.4s;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  color: #000;
  border-radius: 0;
  line-height: inherit;
}

.category-parametr__item input:checked ~ .label {
  background: #fff;
  border-color: #000;
}

.category-parametr__item input:disabled ~ .label {
  color: #3d3d3d66;
}

.category-parametr__item input:disabled ~ .label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    #aeaeae,
    transparent calc(50% + 1px)
  );
}

.category-parametr__list.colors {
  grid-column-start: span 2;
}

.category-parametr__list.colors .category-parametr__wrapp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 5px 15px;
}

.category-parametr__color {
  margin: 0;
}

.category-parametr__color {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  cursor: pointer;
}

.category-parametr__color input {
  display: none;
}

.category-parametr__color-wrapp {
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: 0.4s;
  padding: 2px;
  margin: 0;
}

.category-parametr__color
  input:checked
  ~ .category-parametr__color-wrapp {
  border-color: #000;
}

.category-parametr__color-wrapp span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.category-parametr__color
  input.white
  ~ .category-parametr__color-wrapp
  span {
  border: 1px solid #e7e7e7;
}

.category-parametr__color-name {
  margin: 0;
}

.category-parametr__color input:checked ~ .category-parametr__color-name {
  font-family: bitum !important;
}

.category-parametr__dropup {
  width: 100%;
  margin-top: 45px;
}

.category-parametr__dropup img {
  display: block;
  width: 16px;
  margin: 0 auto !important;
  cursor: pointer;
}

@media (max-width: 1150px) {
  .category-parametr__list.colors .category-parametr__wrapp {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .category-main {
    display: flex;
    flex-direction: column;
    margin-bottom: 35px;
  }

  .category-top {
    margin: 35px 0 0;
    order: 2;
  }

  .category-title {
    display: none;
  }

  .category-right {
    justify-content: space-between;
    width: 100%;
    gap: 15px;
  }

  .category-sort {
    width: max-content;
    margin: 0;
  }

  .category-filter__type {
    margin-top: 0;
    order: 1;
  }

  .category-filter__button {
    width: max-content;
    margin: 0;
  }

  .category-filter__item {
    min-width: calc((100% - (15px * 4)) / 4.5);
  }

  .category-parametr__content {
    grid-template-columns: 1fr 1fr;
    margin-top: 0 !important;
  }

  .category-filter__checked {
    margin: 35px 0 0;
    order: 3;
  }

  .category-filter {
    margin: 35px 0 0;
    order: 4;
  }

  .category-parametr__list.colors .category-parametr__wrapp {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  .category-filter__checked {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-1 * 15px);
    margin-right: calc(-1 * 15px);
    overflow-x: auto;
  }

  .category-filter__active {
    width: max-content;
    padding: 0 15px;
  }

  .category-filter__type::before {
    content: "";
  }

  .category-filter__item {
    min-width: 130px;
  }

  .category-parametr__content {
    grid-template-columns: 100%;
    grid-gap: 35px;
  }

  .category-parametr__wrapp {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .category-parametr__item .label {
    white-space: nowrap;
  }

  .category-parametr__list.colors {
    grid-column-start: span 1;
  }

  .category-parametr__list .category-parametr__wrapp {
    width: 100vw;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: calc(-1 * 15px);
    margin-right: calc(-1 * 15px);
  }
}
