/* Catalog Page */
.categories-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.categories-list__item {
  flex: 0 0 auto;
  width: 25%;
  padding: 0 10px 20px;
  display: flex;
}

.category-item {
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 14px;
  padding: 10px;
  background: var(--white-secondary-color);
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.25s ease-in-out,
    box-shadow 0.25s ease-in-out;
}

@media (hover: hover) {
  .category-item:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 5px var(--accent-color);
  }
}

.category-item:active {
  background-color: var(--accent-color);
  box-shadow: 0 0 0 5px var(--accent-color);
}

.category-item__image {
  flex: 0 0 auto;
  width: 70px;
  position: relative;
  align-self: flex-start;
}

.category-item__image:before {
  content: "";
  display: block;
  padding-top: calc(373 * 100% / 345);
}

.category-item__image img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-item__content {
}

.category-item__title {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

.category-item__subtitle {
  font-size: 13px;
  line-height: 20px;
  color: var(--light-color);
}

@media (max-width: 1349.98px) {
  .categories-list__item {
    width: 33.33%;
  }
}

@media (max-width: 991.98px) {
  .categories-list {
    margin-left: -5px;
    margin-right: -5px;
  }

  .categories-list__item {
    width: 50%;
    padding: 0 5px 10px;
  }
}

@media (max-width: 575.98px) {
  .categories-list__item {
    width: 100%;
  }
}

.catalog-nav {
  font-size: 14px;
  line-height: 22px;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.catalog-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
}

.catalog-nav li {
}

.catalog-nav:not(.is-open) li.is-hidden {
  display: none;
}

.catalog-nav li:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--link-color);
  margin: 0 14px;
}

.catalog-nav li:last-child:after {
  display: none;
}

.catalog-nav a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .catalog-nav a:hover {
    color: var(--link-color);
  }
}

.catalog-nav a:active {
  color: var(--link-color);
}

.catalog-nav a small {
  color: var(--light-color);
}

.catalog-nav__more-btn {
}

.catalog-nav.is-open .catalog-nav__more-btn > span {
  display: none;
}

.catalog-nav.is-open .catalog-nav__more-btn:after {
  content: attr(data-hidetext);
}

.catalog-control {
  display: flex;
  align-items: center;
  margin: 0 calc(-0.5 * var(--gutter-x)) 20px;
}

.catalog-control__filter {
  flex: 0 0 auto;
  width: 16.6667%;
  padding: 0 calc(0.5 * var(--gutter-x));
}

.filter-btn {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--main-color);
  column-gap: 10px;
  white-space: nowrap;
}

@media (hover: hover) {
  .filter-btn:hover {
    color: var(--link-color);
  }
}

.filter-btn:active {
  color: var(--link-color);
}

.filter-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
}

.filter-btn__icon .icon {
  width: 100%;
  height: 100%;
}

@media (min-width: 1200px) {
  html.is-filter-hidden .filter-btn__icon-close,
  html:not(.is-filter-hidden) .filter-btn__icon-open {
    display: none;
  }

  html.is-filter-hidden .filter-btn__text > span {
    display: none;
  }

  html.is-filter-hidden .filter-btn__text:after {
    content: attr(data-showtext);
  }
}

.catalog-control__sort {
  padding: 0 calc(0.5 * var(--gutter-x));
}

.catalog-control__type {
  padding: 0 calc(0.5 * var(--gutter-x));
  margin-left: auto;
}

.catalog-type {
  display: flex;
}

.catalog-type__btn {
  background: none;
  border: 1px solid var(--input-border-color);
  color: var(--main-color);
  padding: 0;
  width: 39px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: -1px;
}

.catalog-type__btn:first-child {
  border-radius: 3px 0 0 3px;
}

.catalog-type__btn:last-child {
  border-radius: 0 3px 3px 0;
}

.catalog-type__btn:hover {
  background-color: var(--light-grey-bg);
}

.catalog-wrapper[data-type="table"] .catalog-type__btn[data-type="table"],
.catalog-wrapper[data-type="list"] .catalog-type__btn[data-type="list"],
.catalog-wrapper[data-type="grid"] .catalog-type__btn[data-type="grid"] {
  z-index: 1;
  background-color: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--white-color);
}

.catalog-type__btn .icon {
  width: 17px;
  height: 17px;
}

.filter {
  font-size: 14px;
  line-height: 22px;
}

.filter input[type="text"] {
  font-size: 14px;
  line-height: 22px;
  padding: 5px 10px;
  height: 33px;
  background-color: var(--white-color);
}

.filter input[type="text"]::placeholder {
  color: var(--light-color);
}

.filter__content {
  margin-bottom: 15px;
}

.filter__section {
  background: var(--white-secondary-color);
  margin-bottom: 10px;
}

.filter__content .filter__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter__section_switch {
  padding: 10px;
}

.filter__section-header {
  border: none;
  padding: 10px;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter__section-title {
  font-weight: 500;
}

.filter__section-arrow {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.filter__section-arrow .icon {
  width: 11px;
  height: 6px;
}

.filter__section.is-open .filter__section-arrow {
  transform: rotate(180deg);
}

.filter__section:not(.is-open) .filter__section-content {
  display: none;
}

.filter__section-content {
  padding: 10px;
}

.filter__search {
  position: relative;
  margin-bottom: 15px;
}

.filter__search-input {
  padding-right: 29px !important;
}

.filter__search-btn {
  position: absolute;
  right: 0;
  top: 0;
  border: none;
  padding: 0;
  background: none;
  color: var(--light-color);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter__search-btn .icon {
  width: 16px;
  height: 16px;
}

.filter__checklist {
  margin-bottom: -15px;
}

.filter__checklist-item {
  margin-bottom: 14px;
}

.filter .form-check,
.filter .form-switch {
  margin: 0;
}

.filter .form-check input ~ span:before {
  background-color: var(--white-color);
}

.filter__checklist-more {
  display: none;
  margin-bottom: 15px;
}

.filter__checklist:not(.is-searched):not(.is-open) .filter__checklist-item:nth-child(n + 6) {
  display: none !important;
}

.filter__checklist:not(.is-searched) .filter__checklist-item:nth-child(n + 6) ~ .filter__checklist-more {
  display: block;
}

.filter__checklist.is-searched .filter__checklist-item.is-search-hidden {
  display: none;
}

.filter__checklist-more-btn {
  font-size: 14px;
  line-height: 22px;
}

.filter__checklist.is-open .filter__checklist-more-btn > span {
  display: none;
}

.filter__checklist.is-open .filter__checklist-more-btn:after {
  content: attr(data-hide-text);
}

.filter__range {
}

.filter__range-inputs {
  display: flex;
  align-items: center;
}

.filter__range-input-field {
  flex-basis: 0;
  flex-grow: 1;
  min-width: 1px;
}

.filter__range-input {
}

.filter__range-sep {
  flex-shrink: 0;
  width: 10px;
  border-bottom: 1px solid var(--light-color);
  margin: 0 5px;
}

.filter__range-slider {
  margin: 20px 8px 7px;
}

.filter__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.filter__footer .btn {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  column-gap: 10px;
}

.filter__footer .btn .icon {
  width: 14px;
  height: 14px;
}

.filter__reset-btn.is-hidden {
  display: none;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 30px;
}

.filter-tags:not(.is-visible) {
  display: none;
}

.filter-tags__content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
  display: contents;
}

.filter-tag,
.filter-reset-btn {
  font-size: 14px;
  line-height: 22px;
  color: var(--main-color);
  cursor: pointer;
  border-radius: 100px;
  display: inline-block;
  vertical-align: top;
  position: relative;
  user-select: none;
  padding: 3px 32px 3px 14px;
}

@media (hover: hover) {
  .filter-tag:hover,
  .filter-reset-btn:hover {
    color: var(--link-color);
  }
}

.filter-tag:active,
.filter-reset-btn:active {
  color: var(--link-color);
}

.filter-tag {
  background: var(--white-secondary-color);
  border: 1px solid var(--white-secondary-color);
}

.filter-reset-btn {
  background: none;
  border: 1px solid var(--input-border-color);
}

.filter-tag:after,
.filter-reset-btn:after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -7px;
  right: 8px;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask: url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0Zm0 23C5.935 23 1 18.065 1 12S5.935 1 12 1s11 4.935 11 11-4.935 11-11 11Zm6.364-16.657L12.707 12l5.657 5.657-.707.707L12 12.707l-5.657 5.657-.707-.707L11.293 12 5.636 6.343l.707-.707L12 11.293l5.657-5.657.707.707Z"/></svg>') no-repeat center / 100% 100%;
}

@media (max-width: 767.98px) {
  .filter-tags {
    flex-wrap: nowrap;
    overflow: hidden;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-bottom: 20px;
  }

  .filter-tags__content {
    flex-wrap: nowrap;
  }

  .filter-tag,
  .filter-reset-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .filter-tags {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

.aside-menu {
  margin-top: 30px;
  font-size: 14px;
  line-height: 22px;
}

.aside-menu:first-child {
  margin-top: 0;
}

.aside-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-menu > ul > li > ul {
  padding-top: 6px;
  padding-bottom: 6px;
}

.aside-menu a {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 5px 11px 5px 14px;
  column-gap: 8px;
}

@media (hover: hover) {
  .aside-menu a:hover {
    background: var(--light-grey-bg);
  }
}

.aside-menu a:active {
  background: var(--light-grey-bg);
}

.aside-menu a > span:first-child {
  flex-grow: 1;
  min-width: 1px;
}

.aside-menu__arrow {
  flex-shrink: 0;
}

.aside-menu__arrow .icon {
  width: 11px;
  height: 6px;
}

.aside-menu li.is-open > a > .aside-menu__arrow {
  transform: rotate(180deg);
}

.aside-menu li ul {
  display: none;
}

.aside-menu li.is-open > ul {
  display: block;
}

.aside-menu li ul ul a {
  padding-left: 28px;
}

.aside-menu > ul > li > a {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  padding: 11px 11px 10px 0;
  border-bottom: 1px solid var(--border-color);
}

@media (hover: hover) {
  .aside-menu > ul > li > a:hover {
    background: none;
  }
}

.aside-menu > ul > li > a:active {
  background: none;
}

.aside-menu > ul > li.is-open > a {
  padding-left: 14px;
}

.aside-menu > ul > li {
  border: 1px solid transparent;
}

.aside-menu > ul > li.is-open {
  border-color: var(--border-color);
}

@media (max-width: 1199.98px) {
  .aside-menu {
    display: none;
  }
}

.catalog-footer {
  position: relative;
  padding: 0 130px;
  margin-top: 30px;
}

.catalog-footer__aside {
  position: absolute;
  left: 0;
  top: 10px;
}

.catalog-footer__content {
}

.catalog-layout {
  display: flex;
  margin-left: calc(-0.5 * var(--gutter-x));
  margin-right: calc(-0.5 * var(--gutter-x));
}

.catalog-layout__aside {
  flex: 0 0 auto;
  width: 16.666666%;
  padding: 0 calc(0.5 * var(--gutter-x));
}

.catalog-layout__content {
  flex: 0 0 auto;
  width: 83.333333%;
  padding: 0 calc(0.5 * var(--gutter-x));
}

.catalog {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-0.5 * var(--gutter-x));
}

.catalog__item {
  flex: 0 0 auto;
  width: 33.333333%;
  padding: 0 calc(0.5 * var(--gutter-x));
  margin-bottom: 50px;
}

@media (max-width: 991.98px) {
  .catalog__item {
    width: 50%;
  }
}

@media (max-width: 575.98px) {
  .catalog__item {
    width: 100%;
  }

  .catalog._mobile-products-2 {
    --gutter-x: 10px;
  }

  .catalog._mobile-products-2 .catalog__item {
    width: 50%;
  }
}

.catalog-wrapper[data-type="list"] .catalog {
  margin-left: 0;
  margin-right: 0;
}

.catalog-wrapper[data-type="list"] .catalog__item {
  width: 100%;
  border-bottom: 1px solid var(--line-color);
  padding: 0 0 20px;
  margin-bottom: 20px;
}

.catalog-wrapper[data-type="list"] .catalog__item:last-child {
  border-bottom: none;
}

@media (max-width: 575.98px) {
  .catalog-wrapper[data-type="list"] .catalog__item {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}

@media (min-width: 992px) {
  .catalog-wrapper[data-type="table"] .catalog {
    margin-left: 0;
    margin-right: 0;
  }

  .catalog-wrapper[data-type="table"] .catalog__item {
    width: 100%;
    border-bottom: 1px solid var(--line-color);
    padding: 0 0 30px;
    margin-bottom: 30px;
  }

  .catalog-wrapper[data-type="table"] .catalog__item:last-child {
    border-bottom: none;
  }
}

@media (min-width: 1200px) {
  html.is-filter-hidden .catalog-layout__aside {
    width: 0;
    padding: 0;
  }

  html.is-filter-hidden .catalog-layout__content {
    width: 100%;
  }

  html.is-filter-hidden .catalog__item {
    width: 25%;
  }

  html.is-filter-hidden .catalog-layout__aside > .filter,
  html.is-filter-hidden .catalog-layout__aside > .filter-popup:not(.filter-popup_desktop),
  html.is-filter-hidden .catalog-layout__aside > .aside-menu {
    display: none;
  }

  .filter-popup__bg,
  .filter-popup__close {
    display: none;
  }

  .filter-popup_desktop {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 90001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;
    transition: 0.25s ease-in-out;
  }

  html.is-filter-open .filter-popup_desktop {
    opacity: 1;
    visibility: visible;
  }

  .filter-popup_desktop .filter-popup__bg {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .filter-popup_desktop .filter-popup__inner {
    width: 100%;
    max-width: 1066px;
    margin: auto;
    background: var(--white-color);
    box-shadow: var(--box-shadow);
    position: relative;
    max-height: 95%;
    display: flex;
    flex-direction: column;
  }

  .filter-popup_desktop .filter-popup__close {
    display: block;
    position: absolute;
    right: 24px;
    top: 24px;
  }

  .filter-popup_desktop .filter-popup__header {
    flex-shrink: 0;
    padding: 54px 92px 30px;
  }

  .filter-popup_desktop .filter-popup__title {
    font-size: 30px;
    line-height: 38px;
    font-weight: 900;
    margin: 0 0 21px;
  }

  .filter-popup_desktop .filter-popup__tags .filter-tags {
    margin: 0;
  }

  .filter-popup_desktop .filter-popup__content {
    flex-grow: 1;
    min-height: 1px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 92px 54px;
  }

  .filter-popup_desktop .filter__row {
    display: flex;
    column-gap: 50px;
  }

  .filter-popup_desktop .filter__col {
    flex-basis: 0;
    flex-grow: 1;
    min-width: 1px;
  }
}

@media (max-width: 1349.98px) {
  .catalog-control__filter {
    width: 20%;
  }

  .catalog-layout__aside {
    width: 20%;
  }

  .catalog-layout__content {
    width: 80%;
  }
}

@media (max-width: 1199.98px) {
  .catalog-control__filter {
    width: 190px;
    padding: 0 calc(0.5 * var(--gutter-x));
  }

  .filter-btn__icon-close {
    display: none;
  }

  .filter-btn__text > span {
    display: none;
  }

  .filter-btn__text:after {
    content: attr(data-showtext);
  }

  .catalog-layout {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .catalog-layout__aside {
    width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .catalog-layout__content {
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .catalog-layout__aside > .filter {
    display: none;
  }

  .filter-popup__bg {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 90001;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;
    transition: 0.25s ease-in-out;
  }

  html.is-filter-open .filter-popup__bg {
    opacity: 1;
    visibility: visible;
  }

  .filter-popup__inner {
    position: fixed;
    z-index: 90002;
    top: 0;
    bottom: 0;
    left: -300px;
    width: 300px;
    background: #fff;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    transition: 0.25s ease-in-out;
  }

  html.is-filter-open .filter-popup__inner {
    transform: translateX(100%);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4);
  }

  .filter-popup__close {
    position: absolute;
    right: -35px;
    top: 5px;
    z-index: 1;
    background-color: var(--light-grey-bg);
    display: none;
  }

  html.is-filter-open .filter-popup__close {
    display: block;
  }

  .filter-popup__header {
    display: none;
  }

  .filter-popup__content {
    flex-grow: 1;
    min-height: 1px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
  }

  .catalog-footer {
    padding: 0;
  }

  .catalog-footer__aside {
    position: static;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .catalog-type__btn[data-type="table"] {
    display: none;
  }

  .catalog-type__btn[data-type="list"] {
    border-radius: 3px 0 0 3px;
  }

  .catalog-wrapper[data-type="table"] .catalog-type__btn[data-type="grid"] {
    z-index: 1;
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--white-color);
  }
}

@media (max-width: 767.98px) {
  .catalog-control__filter {
    width: auto;
  }

  .filter-btn__text {
    display: none;
  }
}
/* ! Catalog Page */
