/* === Category filters: desktop sidebar and mobile full-screen drawer === */
.catalog_filters_form {
  box-sizing:border-box;
}
.products_wrap .column.left .catalog_filters_form_sidebar {
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  padding: 10px;
  background:#ffffff;
  border:1px solid #dddddd;
  border-radius:10px;
  box-shadow:0 6px 14px rgba(0,0,0,0.06);
  overflow:hidden;
}
.catalog_filters_form_sidebar:before {
  content:"Филтри";
  flex:0 0 auto;
  display:block;
  margin:0;
  padding:0 0 7px 0;
  border-bottom:1px solid #dddddd;
  color:#222222;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
}
.catalog_filters_form_sidebar .catalog_filters_groups {
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-bottom:var(--products-filter-actions-clearance);
  scrollbar-width:none;
}
.catalog_filters_form_sidebar .catalog_filters_groups::-webkit-scrollbar {
  display:none;
}
.catalog_filter_group {
  border-bottom:1px solid #eeeeee;
}
.catalog_filter_group:last-child {
  border-bottom:0;
}
.catalog_filter_group_toggle {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:36px;
  padding:8px 5px 0px 0px;
  border:0;
  background:transparent;
  color:#222222;
  font:inherit;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-align:left;
  cursor:pointer;
  box-sizing:border-box;
  outline:0;
  box-shadow:none;
  -webkit-appearance:none;
  appearance:none;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  caret-color:transparent;
}
.catalog_filter_group_arrow {
  display:inline-block;
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-left:12px;
  border-right:2px solid #666666;
  border-bottom:2px solid #666666;
  transform:rotate(45deg);
  transition:transform .16s ease;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  caret-color:transparent;
}
.catalog_filter_group.is_open .catalog_filter_group_arrow {
  transform:rotate(-135deg);
}
.catalog_filter_group_toggle:hover,
.catalog_filter_group_toggle:focus,
.catalog_filter_group_toggle:active {
  background:transparent;
  outline:0;
  box-shadow:none;
}
.catalog_filter_group_toggle::-moz-focus-inner {
  border:0;
}
.catalog_filter_group_body {
  display:none;
  padding:0 0 9px 0;
}
.catalog_filter_group.is_open .catalog_filter_group_body {
  display:block;
}
.catalog_filter_range {
  display:flex;
  align-items:center;
  gap:7px;
}
.catalog_filter_range label {
  display:flex;
  flex:1 1 0;
  align-items:center;
  gap:5px;
  color:#555555;
  font-size:13px;
}
.catalog_filter_range input,
.catalog_filter_text {
  width:100%;
  height:36px;
  padding:6px 8px;
  border:1px solid #d1d1d1;
  border-radius:8px;
  background:#ffffff;
  color:#222222;
  font-size:14px;
  box-sizing:border-box;
}
.catalog_filter_unit {
  flex:0 0 auto;
  color:#555555;
  font-size:13px;
  font-weight:700;
}
.catalog_filter_check {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  color:#333333;
  font-size:13px;
  line-height:1.2;
  cursor:pointer;
}
.catalog_filter_check input {
  flex:0 0 auto;
}
.catalog_filters_footer {
  display:none;
  align-items:center;
  grid-template-columns:1fr;
  gap:8px;
  margin:10px -6px -6px -6px;
  padding:8px 6px 6px 6px;
  border-top:1px solid #dddddd;
  background:#ffffff;
  box-sizing:border-box;
}
.catalog_filters_footer.is_visible {
  display:grid;
}
.catalog_filters_footer.has_active_filters {
  grid-template-columns:1fr 1.35fr;
}
.catalog_filters_footer:not(.has_active_filters) .catalog_filters_clear {
  display:none;
}
.catalog_filters_footer_sidebar {
  flex:0 0 auto;
}
.catalog_filters_clear,
.catalog_filters_apply {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 7px;
  border-radius:7px;
  font-size:12px;
  font-weight:700;
  line-height:1.1;
  cursor:pointer;
  box-sizing:border-box;
}
.catalog_filters_clear {
  border:1px solid #d6d6d6;
  background:#f4f4f4;
  color:#333333;
}
.catalog_filters_apply {
  border:0;
  background:#e3262e;
  color:#ffffff;
  box-shadow:0 6px 14px rgba(227,38,46,0.16);
}
.catalog_filters_count {
  margin-left:4px;
}
.catalog_mobile_filters_shell {
  display:none;
}

@media (min-width:901px) {
  body.products .products_wrap .column.left .catalog_filters_form_sidebar {
    height:var(--products-sidebar-visible-height);
    max-height:var(--products-sidebar-visible-height);
  }
  body.products .catalog_filters_footer_sidebar {
    width:auto;
  }
}
.catalog_mobile_filters {
  display:none;
}

@media (max-width:900px) {
  body.products .column.left .catalog_filters_form_sidebar {
    display:none;
  }
  body.products .catalog_mobile_filters_shell {
    display:block;
    margin:0;
  }
  body.products .mobile_filter_group {
    display:flex;
    flex:1 1 auto;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    min-width:0;
  }
  body.products .mobile_filter_toggle {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 36px;
    width:36px;
    height:36px;
    min-width:36px;
    min-height:36px;
    max-width:36px;
    max-height:36px;
    padding:0;
    margin:0;
    border:1px solid rgba(255,255,255,0.25);
    border-radius:50%;
    background:#2f2f2f;
    color:#ffffff;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    box-sizing:border-box;
    position:relative;
  }
  body.mobile-header-condensed.products .mobile_filter_toggle {
    flex-basis:28px;
    width:28px;
    height:28px;
    min-width:28px;
    min-height:28px;
    max-width:28px;
    max-height:28px;
  }
  body.products .mobile_filter_toggle:focus,
  body.products .mobile_filter_toggle:active {
    background:transparent;
    outline:0;
    box-shadow:none;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
  }
  body.products .mobile_filter_toggle_icon {
    display:block;
    width:20px;
    height:20px;
    fill:none;
    stroke:#ffffff;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  body.mobile-header-condensed.products .mobile_filter_toggle_icon {
    width:15px;
    height:15px;
  }
  body.products .mobile_filter_count_badge {
    position:absolute;
    right:-4px;
    top:-4px;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:16px;
    height:16px;
    padding:0 4px;
    border:1px solid #ffffff;
    border-radius:999px;
    background:#e3262e;
    color:#ffffff;
    font-size:10px;
    font-weight:700;
    line-height:1;
    box-sizing:border-box;
    pointer-events:none;
  }
  body.mobile-header-condensed.products .mobile_filter_count_badge {
    right:-5px;
    top:-5px;
    min-width:15px;
    height:15px;
    padding:0 3px;
    font-size:9px;
  }
  body.products .catalog_mobile_filters {
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:10020;
    background:#ffffff;
  }
  body.products .catalog_mobile_filters.is_visible {
    display:block;
  }
  body.products .catalog_mobile_filters,
  body.products .catalog_mobile_filters * {
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    -webkit-touch-callout:none;
  }
  body.products .catalog_mobile_filters_panel {
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
    background:#ffffff;
    box-sizing:border-box;
  }
  body.products .catalog_mobile_filters_header {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:space-between;
    min-height:58px;
    padding:12px 4px 12px 14px;
    border-bottom:1px solid #e6e6e6;
    background:#ffffff;
    box-sizing:border-box;
  }
  body.products .catalog_mobile_filters_header h2 {
    margin:0;
    color:#222222;
    font-size:20px;
    line-height:1.2;
    font-weight:700;
  }
  body.products .catalog_mobile_filters_close {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:34px;
    min-height:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#e3262e;
    font-size:34px;
    font-weight:400;
    line-height:1;
    cursor:pointer;
    box-sizing:border-box;
  }
  body.products .catalog_mobile_filters .catalog_filters_form_mobile {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:4px 14px 72px 14px;
    box-sizing:border-box;
  }
  body.products .catalog_mobile_filters .catalog_filter_group_toggle {
    min-height:52px;
    padding:14px 0;
    font-size:16px;
  }
  body.products .catalog_mobile_filters .catalog_filter_group_body {
    padding-bottom:16px;
  }
  body.products .catalog_mobile_filters .catalog_filter_check,
  body.products .catalog_mobile_filters .catalog_filter_check span,
  body.products .catalog_mobile_filters .catalog_filter_check input,
  body.products .catalog_mobile_filters .catalog_filter_check:hover,
  body.products .catalog_mobile_filters .catalog_filter_check:focus,
  body.products .catalog_mobile_filters .catalog_filter_check:active,
  body.products .catalog_mobile_filters .catalog_filter_check:focus-within {
    background:transparent;
    background-color:transparent;
    outline:0;
    box-shadow:none;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
  }
  body.products .catalog_mobile_filters .catalog_filter_check input,
  body.products .catalog_mobile_filters .catalog_filter_check input:checked,
  body.products .catalog_mobile_filters .catalog_filter_check input:focus,
  body.products .catalog_mobile_filters .catalog_filter_check input:active,
  body.products .catalog_mobile_filters .catalog_filter_text,
  body.products .catalog_mobile_filters .catalog_filter_text:focus,
  body.products .catalog_mobile_filters .catalog_filter_text:active,
  body.products .catalog_mobile_filters .catalog_filter_range input,
  body.products .catalog_mobile_filters .catalog_filter_range input:focus,
  body.products .catalog_mobile_filters .catalog_filter_range input:active {
    background:transparent;
    background-color:transparent;
    outline:0;
    box-shadow:none;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
  }
  body.products .catalog_mobile_filters_footer {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    display:none;
    grid-template-columns:1fr;
    justify-items:center;
    gap:8px;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom)) 12px;
    border-top:1px solid #e6e6e6;
    background:#ffffff;
    box-shadow:0 -6px 14px rgba(0,0,0,0.08);
    box-sizing:border-box;
  }
  body.products .catalog_mobile_filters_footer.is_visible {
    display:grid;
  }
  body.products .catalog_mobile_filters_footer.has_active_filters {
    grid-template-columns:0.88fr 1.12fr;
    justify-items:stretch;
  }
  body.products .catalog_mobile_filters_footer.has_active_filters .catalog_mobile_filters_clear,
  body.products .catalog_mobile_filters_footer.has_active_filters .catalog_mobile_filters_apply {
    max-width:none;
  }
  body.products .catalog_mobile_filters_clear,
  body.products .catalog_mobile_filters_apply {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    width:100%;
    max-width:230px;
    padding:0 10px;
    border-radius:9px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    box-sizing:border-box;
  }
  body.products .catalog_mobile_filters_clear {
    border:1px solid #d5d5d5;
    background:#f4f4f4;
    color:#333333;
  }
  body.products .catalog_mobile_filters_apply {
    border:0;
    background:#e3262e;
    color:#ffffff;
    box-shadow:0 8px 18px rgba(227,38,46,0.20);
  }
  body.products .catalog_mobile_filters_count {
    margin-left:5px;
  }
}

.catalog_filter_check input[type="checkbox"],
.catalog_filter_check input[type="radio"] {
  flex:0 0 auto;
  width:15px;
  height:15px;
  margin:0;
  cursor:pointer;
  accent-color:#e3262e;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
}
.catalog_filter_check input[type="checkbox"]:focus,
.catalog_filter_check input[type="checkbox"]:active,
.catalog_filter_check input[type="radio"]:focus,
.catalog_filter_check input[type="radio"]:active {
  outline:0;
}
.catalog_filter_check.is_disabled {
  color:#9b9b9b;
  cursor:not-allowed;
  opacity:0.62;
}
.catalog_filter_check.is_disabled input {
  cursor:not-allowed;
}

