

/* Start:/local/templates/ugla-shop/components/bitrix/catalog/katalog/style.css?17842037546638*/
.block--catalog-group {
	/* margin-top: 40px !important; */
}

.block--catalog {
	/* margin-top: 40px !important; */
}

.catalog {
	display: flex;
	column-gap: 24px;
	align-items: start;
	min-height: 600px;
}

.catalog__sort {
}
.catalog__sort .sort__values {
	height: 0;
	overflow: hidden;
	transition: 0.3s;
}
.catalog__sort .sort__item {
	margin-top: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.catalog__sort .sort__values a {
	color: #7C7C7C;
	font-size: calc(15px + 0 * ((100vw - 375px) / 1575));
}

body {
	@media screen and (max-width: 1024px) {
		.bx-filter {
			#modef.bx-filter-popup-result {
				border: 0;
				background-color: transparent;

				a {
					height: 67px;
					width: calc(100% - 30px);
					margin-left: auto;
					margin-right: auto;
					background-color: #CB2032;
					margin-bottom: 15px;
					color: #fff !important;
					display: flex !important;
					align-items: center;
					justify-content: center;
					column-gap: 4px;
					font-size: 20px;
					font-weight: 400;

					&::before {
						content: '';
						position: absolute;
						left: 0;
						top: 0;
						right: 0;
						bottom: 0;
					}

					&:hover {
						background-color: #CB2032;
					}
				}
			}
		}

		&.catalog-filter-shown {
			.header {
				height: 65px;

				.header__filter {
					display: block;

					.clear {
						display: flex;
						align-items: center;
						justify-content: start;
						column-gap: 5px;

						font-weight: 400;
						font-size: 16px;
						color: #CB2032;

						.icon {
							width: 24px;
							height: 24px;

							path {
								fill: #CB2032;
							}
						}
					}

					.back {
						display: none;


					}
				}

				.header__logo, .header__search, .header__wishlist, .header__basket, .header__login {
					display: none;
				}

				.header__mobile {
					.icon {
						&.icon--mobile-menu-2 {
							display: none;
						}
						&.icon--close {
							display: flex;
						}
					}
				}
			}

			.catalog {
				&::before {
					content: '';
					position: absolute;
					z-index: 98;
					left: 0;
					top: 0;
					right: 0;
					bottom: 0;
					background-color: var(--popup-background);
				}
			}
		}

		&.catalog-filter-shown-item {
			.header {
				.header__filter {
					.clear {
						display: none;
					}
					.back {
						display: block;

						path {
							fill: #000;
						}
					}
				}
			}

			.catalog__sidebar {
				.catalog__sort:not(.catalog-sidebar-item-active) {
					display: none !important;
				}
				.bx-filter-parameters-box:not(.catalog-sidebar-item-active) {
					display: none;
				}
				.submit-buttons {
					display: none;
				}
			}
		}
	}
}

.catalog__sidebar {
	.catalog__sort {
		.sort__head {
			font-weight: 400;
		}
		.sort__item {
			margin-top: 30px;
		}
	}

	@media screen and (max-width: 1024px) {
		& {
			height: calc(100vh - 128px) !important;
			overflow: hidden;
			overflow-y: auto;

			&::before {
				background-color: #fff !important;
			}

			.catalog__sort, .catalog__filter {
				background-color: #fff !important;

				&.catalog__sort {
					display: block !important;
					padding: 15px;
					border: 0 !important;
					z-index: 0;
					/* margin-top: 54px; */

					.sort__values {
						/* display: none; */
						height: auto !important;
						
						.sort__item {
							margin-top: 30px;
						}
					}

					&:not(.catalog-sidebar-item-active) {
						.sort__values {
							display: none;
						}
					}

					.button.sort-mobile {
						display: none;
					}
				}

				&.catalog__filter {
					border: 0 !important;
					z-index: 1;

					.bx-filter {
						height: auto;
						overflow: visible;

						.bx-filter-section {
							background-color: #fff !important;

							.bx-filter-parameters-box {
								border: 0 !important;
								padding: 15px;

								.bx-filter-parameters-box-title {
									.icon--plus {
										display: flex !important;
									}
									.icon--minus {
										display: none !important;
									}
								}
			
								&.catalog-sidebar-item-active {
									.bx-filter-parameters-box-title {
										display: none !important;

										.icon--plus {
											display: none !important;
										}
										.icon--minus {
											display: flex !important;
										}
									}

									.bx-filter-block {
										margin-top: 0 !important;
									}
								}
								
								.bx-filter-block {
									display: block !important;
									margin-top: 30px;
								}
			
								&:not(.catalog-sidebar-item-active) {
									.bx-filter-block {
										display: none !important;
									}
								}
							}

							#set_filter, #show_more_filter {
								display: none;
							}

							#del_filter {
								background-color: #fff !important;
								justify-content: start;
								column-gap: 5px;
								padding: 0 15px;

								display: none;
								/* position: absolute;
								left: 0;
								top: -108px;
								z-index: 2; */

								.icon {
									order: -1;
								}
							}
						}
					}
				}
			}
		}
	}
}

.catalog-description {
	margin-top: 30px;
}


@media screen and (max-width: 1024px) {
	.wrapper {
		/* margin-top: 98px !important; */

		main {
			padding-top: 0;
			margin-top: -8px !important;
		}
		.header-marquee ~ main {
			padding-top: 22px;
			margin-top: 0 !important;
		}
	}

	section.block--breadcrumbs {
		display: none;

		& + section.block {
			margin-top: 0px !important;
		}
	}
}

@media screen and (max-width: 768px) {
	.catalog {
		flex-direction: column;
	}
}


.catalog__sort-horizontal .sort {
    position: relative;
    display: inline-block;
}
.catalog__sort-horizontal .sort__head {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 4px;
}
.catalog__sort-horizontal .sort__values {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 5px 0;
    z-index: 10;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.catalog__sort-horizontal .sort.open .sort__values {
    display: block;
}
.catalog__sort-horizontal .sort__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.catalog__sort-horizontal .sort__item:hover {
    background: #f0f0f0;
}
.catalog__sort-horizontal .sort__item a {
    flex: 1;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}
.catalog__sort-horizontal .sort__item .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
/* End */


/* Start:/local/templates/ugla-shop/components/bitrix/catalog.section.list/list/style.css?17842037599271*/
.filter-sort-mobile {
  display: none;
}
.catalog__sidebar .filter-mobile {
  display: none;
}
.catalog__sidebar .sort-mobile {
  display: none;
}

@media screen and (max-width: 1024px) {
  .block--sections {
    > .container {
      display: flex;
      flex-direction: column;
      row-gap: 0;

      .block__title {
        margin-bottom: 8px !important;
      }

      .filter-sort-mobile {
        order: -1;
      }
    }
  }

  .block--catalog {
    .filter-sort-mobile {
      opacity: 0;
      visibility: hidden;

      position: fixed;
      z-index: -1;
      left: 0;
      top: 0;
      width: 100%;
      padding-top: 20px;
      padding-bottom: 10px;
      padding-left: 15px;
      padding-right: 15px;
      transition: .3s;
      width: var(--container-width);
      max-width: 100%;

      &.filter-sort-mobile--show {
        opacity: 1;
        visibility: visible;
        top: 60px;
        z-index: 99;
        background-color: #fff;
      }
    }
  }

  .sections {
    display: none;
  }
  .catalog__sidebar .filter-mobile {
    display: flex;
    width: 100%;
    padding: 24px;
    background-color: #fff;
    justify-content: space-between;
  }
  .catalog__sidebar .filter-mobile .icon {
    order: -1;
  }
  .catalog__sidebar .filter-mobile::after {
    content: '';
    width: 24px;
    height: 24px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/local/templates/ugla-shop/assets/images/icons/close.svg');
  }
  .catalog__sidebar .sort-mobile {
    display: flex;
    padding: 24px;
    margin-bottom: 24px;
    margin-left: -24px;
    margin-right: -24px;
    background-color: #fff;
    max-width: calc(100% + 48px);
    justify-content: space-between;
  }
  .catalog__sidebar .sort-mobile .icon {
    order: -1;
  }
  .catalog__sidebar .sort-mobile::after {
    content: '';
    width: 24px;
    height: 24px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/local/templates/ugla-shop/assets/images/icons/close.svg');
  }

  .filter-sort-mobile {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 0 30px;
      /* margin-top: -24px; */
      /* margin-bottom: 24px; */


    .button {
      column-gap: 4px;
      font-size: 14px;

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

      &.filter-mobile .icon {
        order: -1;
      }
    }
  }
  
  /* Фильтр */
  body.catalog-filter-shown {
    overflow: hidden;

    main {
      z-index: 2;
    }
  }


  .catalog-filter-shown {
    .catalog__sidebar {
      display: block;
      position: fixed;
      z-index: 99;
      left: 0;
      top: 98px;
      height: calc(100vh - 98px) !important;
    }

    &:not(.page-scrolled) #bx-panel .header-marquee ~ .wrapper .catalog__sidebar {
      margin-top: 39px;
    }
    &:not(.page-scrolled) #bx-panel ~ .wrapper .catalog__sidebar {
      margin-top: 30px;
    }

    &.page-scrolled {
      .filter-sort-mobile {
        display: none;
      }

      .catalog__sidebar {
        top: 65px;
        height: calc(100vh - 65px) !important;
      }
    }
  }
  .catalog-filter-shown .catalog__sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--popup-background);
  }
  .catalog-filter-shown .catalog__sort {
    display: none;
  }
  .catalog-filter-shown .catalog__filter {
    padding-top: 0;
  }
  .catalog-filter-shown .catalog__filter .bx-filter {
    height: calc(100vh - 145px);
    overflow: hidden;
    overflow-y: auto;
    padding-bottom: 60px;
  }

  /* Сортировка */
  body.catalog-sort-shown {
    overflow: hidden;
  }
  .catalog-sort-shown .catalog__sidebar {
    display: block;
    position: fixed;
    z-index: 99;
    right: 0;
    top: 70px;
  }
  .catalog-sort-shown .catalog__sidebar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--popup-background);
  }
  .catalog-sort-shown .catalog__filter {
    display: none;
  }
  .catalog-sort-shown .catalog__sort {
    padding-top: 0;
  }
  .catalog-sort-shown .catalog__sort .sort__values {
    height: auto !important;
  }

  .block--sections .sections {
    display: none;
  }

  .catalog-sections-shown {
    overflow: hidden;

    &::before {
      content: '';
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      background-color: var(--popup-background);
      z-index: 2;
      width: calc(100% - 375px);
    }

    main {
      z-index: 1;
    }

    .header__buttons {
      .header__search, .header__wishlist, .header__basket, .header__login {
        display: none;
      }

      .header__mobile {
        .icon {
          &.icon--mobile-menu-2 {
            display: none;
          }
          &.icon--close {
            display: flex;
          }
        }
      }
    }

    .block--sections {
      .sections {
        position: fixed;
        left: 0;
        top: 98px;
        width: 375px;
        max-width: 100%;
        height: calc(100vh - 98px);
        background-color: #fff;
        z-index: 99;
        display: block;
        overflow: hidden;
        overflow-y: auto;
        padding: 15px;
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        row-gap: 30px;

        .sections__item {
          display: flex !important;
        }

        .sections__more {
          display: none;
        }
      }
    }

    &.page-scrolled .block--sections {
      .sections {
        top: 65px;
        height: calc(100vh - 65px);
      }
    }

    .block--catalog {
      .filter-sort-mobile {
        display: none;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .catalog-sort-shown .fixedbasket, .catalog-filter-shown .fixedbasket {
    display: none;
  }
}

@media screen and (max-width: 520px) {
  .catalog-sections-shown {
    &::before {
      display: none;
    }

    .block--sections {
      .sections {
        width: 100%;
      }
    }
  }

  .catalog__sidebar {
    width: 100% !important;
  }
}



.category-tree {
  width: 100%;
  max-width: 395px;
}

.category-tree__parent-toggle {
  padding: 20px;
  align-items: center;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(222, 222, 222, 1);
}

.category-tree__parent-label a {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.category-tree__toggle-icon {
  transition: transform 0.3s ease;
  transform: rotate(180deg);
    cursor: pointer;
}

.category-tree__toggle-icon.opened {
  transform: rotate(0deg);
}

.category-tree__parent-toggle.active {
  background: rgba(222, 222, 222, 1);
}

div.category-tree__parent-toggle.active a {
  color: #000 !important;
}

.category-tree__parent-link {
  text-transform: lowercase;
}

.category-tree__parent-link::first-letter {
  text-transform: uppercase
  
}

.category-tree__sub {
  display: flex;
  flex-flow: column;
  gap: 20px;
  margin-bottom: 15px;
  margin-top: 20px;
}


.category-tree__sub-item {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding-left: 20px;
  margin-top: 0;
}

.category-tree__sub-item.active {
  color: #CB2032;
}

@media (min-width: 1025px) {
    .category_links-mobile {
        display: none;
    }
}

/* Кнопка открытия мобильного каталога */
.catalog-toggle-btn {
    display: none;
    /* position: fixed; */
    /* z-index: 1000; */
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 1024px) {
    .catalog-toggle-btn {
        display: block;
    }
}

/* Выезжающая панель */
.catalog-mobile-panel {
    position: fixed;
    top: 65px;   
    left: -100%;
    width: 100%;
    max-width: 400px;
    height: calc(100% - 85px); 
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding-bottom: 150px;
    scrollbar-color: #cb2032 transparent;
    scrollbar-width: thin;
}


.catalog-mobile-panel.open {
    left: 0;
}

.catalog-mobile-panel__header {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 10px 20px;          
    border-bottom: none;         
}

.catalog-mobile-panel__title {
    font-size: 18px;
    font-weight: 600;
}

.catalog-mobile-panel__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.catalog-mobile-panel__body {
    padding: 0 20px 20px;
    flex: 1;
    overflow-y: auto;
}

/* Блокируем скролл body при открытой панели */
body.catalog-mobile-panel-open {
    overflow: hidden;
}

/* Прячем десктопное дерево на мобильных */
/* @media (max-width: 1024px) {
    .category-tree {
        display: none;
    }
} */
/* End */


/* Start:/local/templates/ugla-shop/components/bitrix/catalog.smart.filter/horizontal_dropdown/style.css?178420376213155*/
/* ==========================================================================
   Горизонтальный фильтр
   ========================================================================== */

.bx-filter-horizontal .bx-filter-parameters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.bx-filter-param-block {
    position: relative;
}

.bx-filter-param-title {
    cursor: pointer;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid #000;
}

.bx-filter-param-title span {
    flex: 1;
}

.bx-filter-param-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.bx-filter-param-block.open .bx-filter-param-arrow {
    transform: rotate(0deg);
}

/* Выпадающий список */
.bx-filter-param-values {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #e0e0e0;
    min-width: 335px;
    max-height: 365px;
    z-index: 10;
    margin-top: 0;
    flex-direction: column;
    background: #F0F0F0;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.15);
}

.sort__values {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bx-filter-param-block.open .bx-filter-param-values {
    display: flex;
}

/* Прокручиваемый контейнер для контента */
.bx-filter-param-content {
    padding: 20px 20px 1px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-color: #cb2032 transparent;
    scrollbar-width: thin;
    flex: 1;
    gap: 15px;
}

/* Фиксированный футер */
.bx-filter-param-footer {
    display: none;
    padding: 20px;
    background-color: #F0F0F0;
    flex-direction: column;
    gap: 10px;
}

.bx-filter-param-block.open .bx-filter-param-footer {
    display: flex;
}

.bx-filter-param-apply {
    text-align: center;
}

.btn-apply-inline {
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    background: #000;
}

.btn-apply-inline:hover {
    background: #333;
}

.bx-filter-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-apply {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
}

.btn-apply:hover {
    background: #333;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #757575;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-reset svg {
    height: 15px;
    width: 15px;
}

.btn-reset:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Активный блок */
.bx-filter-param-block.active .bx-filter-param-title {
    background: #000;
    border-color: #000;
    color: #fff;
}

.bx-filter-param-block.active .bx-filter-param-arrow path {
    fill: #fff;
}

/* ==========================================================================
   Ползунок цены (внутри выпадающего списка) – единственный блок
   ========================================================================== */
.bx-filter-param-price-slider {
    padding: 10px 0;
}

.bx-filter-param-price-slider .bx-ui-slider-track-container {
    padding: 30px 10px 10px;
}

.bx-filter-param-price-slider .bx-ui-slider-track {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    margin: 0 10px;
}

.bx-filter-param-price-slider .bx-ui-slider-range {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #000;
    z-index: 2;
    left: 0%;
    right: 0%;
}

.bx-filter-param-price-slider .bx-ui-slider-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s;
}

.bx-filter-param-price-slider .bx-ui-slider-handle:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.bx-filter-param-price-slider .bx-ui-slider-handle.left {
    position: absolute;
    left: 0;          /* всегда в начале range */
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;        /* убираем любые смещения */
}

.bx-filter-param-price-slider .bx-ui-slider-handle.right {
    position: absolute;
    right: 0;         /* всегда в конце range */
    top: 50%;
    transform: translate(50%, -50%);
    margin: 0;
}

.bx-filter-param-price-slider .bx-filter-parameters-box-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.price-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.price-label span {
    font-size: 13px;
    color: #666;
    margin-left: 2px;
}

.bx-filter-param-price-slider .min-price,
.bx-filter-param-price-slider .max-price {
    width: 100%;
    height: 36px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ==========================================================================
   Сортировка (выпадающий список в фильтре)
   ========================================================================== */
.sort-dropdown .sort__head {
    cursor: pointer;
    display: flex;
    padding: 10px 15px;
    align-items: center;
    gap: 10px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
}

.sort-dropdown .sort__values {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 15px;
}

.sort-dropdown.open .sort__values {
    display: flex;
}

.sort-dropdown .sort__item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.sort-dropdown .sort__item:hover {
    background: #f0f0f0;
}

.sort-dropdown .sort__item a {
    flex: 1;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.sort-dropdown .sort__item .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.btn-reset-inline {
    border: none;
    background: transparent;
    display: flex;
    align-items: end;
    line-height: 1;
}

.btn-reset-inline span {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.btn-reset-inline  span:hover {
    text-decoration-line: none;
}

.btn-reset-inline svg {
    width: 14px;
    height: 14px;
    color: #000;
    opacity: 1;
}

.btn-reset-inline svg:hover {
    color: #000;
    opacity: 1;
}

.btn-reset-inline-dropdown {
    display: flex;
    align-items: end;
    line-height: 1;
}

.btn-reset-inline-dropdown span {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    text-decoration-line: underline;
}

.btn-reset-inline-dropdown span:hover {
    text-decoration-line: none;
}

.btn-reset-inline-dropdown svg {
    width: 14px;
    height: 14px;
}

.bx-filter-param-text {
    font-size: 14px;
}

/* Кнопка «Очистить» внутри футера */
.btn-reset-inline-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #757575;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-reset-inline-dropdown:hover {
    color: #333;
}

/* ==========================================================================
   Мобильная панель фильтра
   ========================================================================== */
.filter-toggle-btn {
    display: none;
}

.filter-mobile-panel__header {
    display: none;
}

@media (max-width: 1024px) {
    .bx-filter-horizontal .bx-filter-parameters-row {
        /* display: none; */
    }
    .filter-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 10px 15px;
        background: transparent;
        border: none;
        font-size: 14px;
        color: #000;
    }
    .filter-mobile-panel {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
    }
    .filter-mobile-panel.open {
        right: 0;
    }
    .filter-mobile-panel__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eaeaea;
    }
    .filter-mobile-panel__title {
        font-size: 18px;
        font-weight: 600;
    }
    .filter-mobile-panel__close {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }
    .filter-mobile-panel__body {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }
    body.filter-panel-open {
        overflow: hidden;
    }

    /* Исправление сайдбара – возвращаем мобильное поведение */
    .catalog__sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 375px;
        height: 100%;
        z-index: 999;
        transition: left 0.3s ease;
        background: #fff;
    }
    .catalog__sidebar.open {
        left: 0;
    }
}


.bx-filter-param-content .checkbox {
    position: relative;
}

.bx-filter-param-content .checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bx-filter-param-content .checkbox .bx-filter-param-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}


.bx-filter-param-content .checkbox .bx-filter-param-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: transparent;
    /* border: 1px solid #ccc; */
    transition: background 0.2s, border-color 0.2s;
    position: absolute;
}


.bx-filter-param-content .checkbox input[type="checkbox"]:checked + .bx-filter-param-text + .checkbox-checkmark {
    display: block;
}

.bx-filter-param-content .checkbox input[type="checkbox"]:checked ~ .checkbox-checkmark {
    display: block;
}

.bx-filter-param-content .checkbox input[type="checkbox"]:checked + .bx-filter-param-text::before {
    background: #CB2032;
}


.bx-filter-param-content .checkbox .checkbox-checkmark {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    width: 24px;
    height: 24px;
}


.bx-filter-param-content .checkbox input[type="checkbox"]:checked ~ .checkbox-checkmark {
    display: block;
}


.bx-filter-param-content .checkbox .bx-filter-param-label::before {
    /* оставляем, т.к. это фон */
}

/* Кастомные чекбоксы в фильтре */
.bx-filter-param-content .checkbox {
    position: relative;
}

.bx-filter-param-content .checkbox .bx-filter-param-label {
    display: flex;
    align-items: center;
    /* gap: 10px; */
    cursor: pointer;
}

/* Прячем нативный чекбокс */
.bx-filter-param-content .checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Визуальный квадрат (через псевдоэлемент span) */
.bx-filter-param-content .checkbox .bx-filter-param-text::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 10px;
}

/* При выборе – красный фон */
.bx-filter-param-content .checkbox input[type="checkbox"]:checked ~ .bx-filter-param-text::before {
    background: #CB2032;
    border-color: #CB2032;
}

/* SVG-галочка (скрыта по умолчанию) */
.bx-filter-param-content .checkbox .checkbox-checkmark {
    display: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Показываем SVG при отмеченном чекбоксе */
.bx-filter-param-content .checkbox input[type="checkbox"]:checked ~ .checkbox-checkmark {
    display: block;
}
/* End */


/* Start:/local/templates/ugla-shop/components/bitrix/system.pagenavigation/common/style.css?17842037881384*/
.pagenavigator {
  margin-top: 120px;
}

.pagenavigator__list {
  display: flex;
  column-gap: 10px;
  align-items: center;
  justify-content: start;
}
.pagenavigator__list, .pagenavigator__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagenavigator__link, .pagenavigator__current, .pagenavigator__dots {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pagenavigator-color);
  border: 1px solid var(--pagenavigator-border);
  background-color: var(--pagenavigator-background);
  font-size: calc(16px + 8 * ((100vw - 375px) / 1575));
}
.pagenavigator__link:hover {
  color: var(--pagenavigator-action-color);
  border-color: var(--pagenavigator-action-border);
}
.pagenavigator__current {
  color: var(--pagenavigator-action-color);
  border-color: var(--pagenavigator-action-border);
  background-color: var(--pagenavigator-action-background);
}
.pagenavigator__dots {
  background-color: transparent;
  border-color: transparent;
}

@media screen and (max-width: 768px) {
  .pagenavigator {
    margin-top: 50px;
    
    .pagenavigator__list {
      column-gap: 5px;
      row-gap: 5px;
      flex-wrap: wrap;

      .pagenavigator__link, .pagenavigator__current, .pagenavigator__dots {
        width: 44px;
        height: 44px;
      }
    }
  }
}
/* End */


/* Start:/local/templates/ugla-shop/components/bitrix/catalog/katalog/bitrix/catalog.section/.default/style.css?17842038531390*/
.catalog__sidebar {
    flex: none;
	width: 342px;
	height: auto;
	/* position: sticky; */
	/* top: 90px; */
	z-index: 5;
	/* background-color: var(--category-sidebar-background); */
}

.catalog__sort {
	padding: 24px;
	position: relative;
	background-color: var(--category-sidebar-background);
}
.sort__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-weight: 600;
}
.sort__head i.icon {
	width: 24px;
	height: 24px;
}

.catalog__sidebar ~ .catalog__products {
	/* width: calc(100% - 342px); */
	width: 100%;
}

.catalog__filter {
	position: relative;
	background-color: var(--category-sidebar-background);
}
.catalog__filter ~ .catalog__products .products {
	grid-template-columns: repeat(3, 1fr);
}

.catalog--sidebar-fixed {
    padding-left: 366px;
    position: relative;
}

.catalog--sidebar-fixed .catalog__sidebar {
    flex: none;
    position: fixed;
    top: var(--header-height);
    bottom: var(--bottom-position);
    left: var(--left-position);
    overflow-y: auto;
	scrollbar-color: #cb2032 transparent;
	scrollbar-width: thin;
}

.catalog--sidebar-fixed .catalog__sidebar::-webkit-scrollbar {
    width: 5px;
}

.catalog--sidebar-fixed .catalog__sidebar::-webkit-scrollbar-thumb {
    background: #cb2032;
    border-radius: 5px;
}

.catalog--sidebar-fixed .catalog__sidebar ~ .catalog__products {
    width: 100%;
}


/* End */
/* /local/templates/ugla-shop/components/bitrix/catalog/katalog/style.css?17842037546638 */
/* /local/templates/ugla-shop/components/bitrix/catalog.section.list/list/style.css?17842037599271 */
/* /local/templates/ugla-shop/components/bitrix/catalog.smart.filter/horizontal_dropdown/style.css?178420376213155 */
/* /local/templates/ugla-shop/components/bitrix/system.pagenavigation/common/style.css?17842037881384 */
/* /local/templates/ugla-shop/components/bitrix/catalog/katalog/bitrix/catalog.section/.default/style.css?17842038531390 */
