/* Category leaf filters — align with V6 listing params (marketplace etalon). */

html.skin-2 body.v6 .v6-cat-filter,
html.skin-2 body.v6 .module-kotlyars-vendor-filter {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.skin-2 body.v6 .module-kotlyars-vendor-filter .module-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0 !important;
  background: transparent !important;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__leaf,
html.skin-2 body.v6 .v6-cat-filter__leaf {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px;
  background: var(--v6-card, #fff);
  box-shadow: none;
}

html.skin-2 body.v6.v6-dark .kotlyars-vendor-filter__leaf,
html.skin-2 body.v6.v6-dark .v6-cat-filter__leaf {
  background: #141a24;
  border-color: rgba(243, 238, 227, 0.12);
}

html.skin-2 body.v6 .kotlyars-vendor-filter__leaf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__leaf-label {
  font-family: var(--v6-ui, Manrope, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #8a8a8a;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__leaf-value {
  font-family: var(--v6-ui, Manrope, system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

html.skin-2 body.v6.v6-dark .kotlyars-vendor-filter__leaf-value {
  color: #f3eee3;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__title.v6-listing__params-title {
  margin: 0 0 0.35rem !important;
  font-family: var(--v6-h2-ff, var(--v6-serif-classic, "PT Serif", Georgia, serif)) !important;
  font-weight: var(--v6-h2-fw, 600) !important;
  font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  color: var(--v6-h2-color, #0b1726) !important;
}

html.skin-2 body.v6.v6-dark .kotlyars-vendor-filter__title.v6-listing__params-title {
  color: #f3eee3 !important;
}

html.skin-2 body.v6 .module-kotlyars-vendor-filter .panel,
html.skin-2 body.v6 .module-kotlyars-vendor-filter .panel-heading,
html.skin-2 body.v6 .module-kotlyars-vendor-filter .panel-body,
html.skin-2 body.v6 .module-kotlyars-vendor-filter .panel-default {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.skin-2 body.v6 .module-kotlyars-vendor-filter .filter-item-bg,
html.skin-2 body.v6 .module-kotlyars-vendor-filter .fa {
  display: none !important;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__options .v6-listing__checks {
  max-height: none;
}

html.skin-2 body.v6 .v6-listing__check.is-disabled {
  opacity: 0.55;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__actions {
  margin-top: 0.35rem;
}

html.skin-2 body.v6 .kotlyars-vendor-filter__actions .btn,
html.skin-2 body.v6 .module-kotlyars-vendor-filter .reset-filter.btn {
  /* legacy btn chrome off — use V6 param actions */
  all: unset;
}

/* Category layout: side + main like marketplace listing */
html.skin-2.route-product-category body.v6 #product-category > .row {
  display: grid !important;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) !important;
  gap: clamp(1.25rem, 3vw, 2.25rem) !important;
  align-items: start !important;
  width: 100% !important;
  max-width: var(--wrap-max, 1240px) !important;
  margin: 0 auto !important;
  padding: 0 var(--wrap-pad, 1.25rem) 2.5rem !important;
  box-sizing: border-box !important;
}

html.skin-2.route-product-category body.v6 #product-category > .row::before,
html.skin-2.route-product-category body.v6 #product-category > .row::after {
  display: none !important;
  content: none !important;
}

html.skin-2.route-product-category body.v6 #product-category #column-left.side-column {
  position: sticky !important;
  top: 1rem !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.skin-2.route-product-category body.v6 #product-category #content.col-sm-9,
html.skin-2.route-product-category body.v6 #product-category #content {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

/* Soften Journal “Most Viewed” / toolbar chrome on category */
html.skin-2.route-product-category body.v6 #product-category .module-products,
html.skin-2.route-product-category body.v6 #product-category .swiper,
html.skin-2.route-product-category body.v6 #product-category .main-products-wrapper .products-filter {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

html.skin-2.route-product-category body.v6 #product-category .products-filter {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  font-family: var(--v6-ui, Manrope, system-ui, sans-serif) !important;
}

html.skin-2.route-product-category body.v6 #product-category .products-filter select {
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  border-radius: 12px !important;
  background: #fff !important;
  min-height: 2.5rem !important;
  font-family: inherit !important;
}

/*
 * One filter only: leaf vendor filter (V6) already covers params.
 * Hide Journal #filter (Цена/Наличие/…) when vendor block is present —
 * two stacked filter UIs are not the skill.
 */
html.skin-2.route-product-category body.v6 #column-left:has(.v6-cat-filter) #filter.module-filter,
html.skin-2.route-product-category body.v6 #column-left:has(.module-kotlyars-vendor-filter) #filter.module-filter,
html.skin-2.route-product-category body.v6 #column-left:has(.v6-cat-filter) .grid-rows,
html.skin-2.route-product-category body.v6 #column-left:has(.module-kotlyars-vendor-filter) .grid-rows {
  display: none !important;
}

/* Journal stock filter module — V6 param chrome (only when vendor filter absent) */
html.skin-2.route-product-category body.v6 #product-category #filter.module-filter {
  margin: 1.25rem 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .module-title,
html.skin-2.route-product-category body.v6 #product-category #filter .title.module-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--v6-h2-ff, "PT Serif", Georgia, serif) !important;
  font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
  font-weight: 600 !important;
  color: #0b1726 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .filter-title-text {
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  font-size: inherit !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .reset-filter {
  color: #8a8a8a !important;
  font-family: var(--v6-ui, Manrope, system-ui, sans-serif) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-transform: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .panel,
html.skin-2.route-product-category body.v6 #product-category #filter .panel-default,
html.skin-2.route-product-category body.v6 #product-category #filter .panel-heading,
html.skin-2.route-product-category body.v6 #product-category #filter .panel-body {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .panel-group > .panel {
  border-bottom: 1px solid rgba(17, 17, 17, 0.1) !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .panel-title > a,
html.skin-2.route-product-category body.v6 #product-category #filter .accordion-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.85rem 0.1rem !important;
  color: #333 !important;
  font-family: var(--v6-ui, Manrope, system-ui, sans-serif) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  background: transparent !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .panel-body {
  padding: 0 0.1rem 0.85rem !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter label {
  font-family: var(--v6-ui, Manrope, system-ui, sans-serif) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #333 !important;
}
html.skin-2.route-product-category body.v6 #product-category #filter .form-control {
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  html.skin-2.route-product-category body.v6 #product-category > .row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.skin-2.route-product-category body.v6 #product-category #column-left.side-column {
    position: static !important;
  }
}
