/* mFilter2 catalog filters */
.cat-filters-cols > .f-block { min-width: 0; }
.cat-sort-menu a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .45rem .7rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.cat-sort-menu a.is-active,
.cat-sort-menu a:hover { background: rgba(20,24,32,.06); }

#mse2_mfilter .mse2_pagination,
#mse2_mfilter .pagination { display: flex; gap: .4rem; justify-content: center; margin: 1.5rem 0 0; list-style: none; padding: 0; }
#mse2_mfilter .pagination a { display: inline-flex; min-width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 1px solid var(--line); text-decoration: none; color: inherit; }
#mse2_mfilter .pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* mFilter2 fieldset = visual f-block */
#mse2_filters fieldset.f-block {
  margin: 0; padding: 0; border: 0; min-width: 0;
}
#mse2_filters fieldset.f-block + fieldset.f-block,
.cat-filters-cols > .f-block + .f-block { margin-top: 0; }
#mse2_sort a.is-active,
.cat-sort-menu a.active {
  background: rgba(20,24,32,.06);
  font-weight: 600;
}

/* --- price slider (cc) --- */
.cc-price-wrap {
  display: grid;
  gap: .85rem;
  max-width: 22rem;
}
.cc-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.cc-price-field {
  display: grid;
  gap: .28rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}
.cc-price-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  border-radius: 2px;
  padding: .55rem .65rem;
  font: inherit;
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink, #141820);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cc-price-field input:hover {
  border-color: color-mix(in srgb, var(--accent, #045962) 35%, var(--line, #e5e7eb));
}
.cc-price-field input:focus {
  outline: 0;
  border-color: var(--accent, #045962);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(4, 89, 98, .12));
}

.cc-price-slider.mse2_number_slider,
.cc-price-slider {
  width: auto;
  margin: .75rem .45rem .55rem;
  padding: 0 !important;
  box-sizing: border-box;
}

/* .mse2_number_slider becomes .ui-slider itself — style the host, not a child */
.cc-price-slider.ui-slider,
.cc-price-slider.ui-widget-content {
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  position: relative !important;
  height: 3px !important;
  background: color-mix(in srgb, var(--ink, #141820) 12%, transparent) !important;
  border-radius: 99px !important;
  cursor: pointer;
  overflow: visible !important;
}
.cc-price-slider .ui-slider-range,
.cc-price-slider .ui-widget-header {
  background-image: none !important;
  border: 0 !important;
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--accent, #045962) !important;
  opacity: .55;
  border-radius: 99px;
}
.cc-price-slider .ui-slider-handle,
.cc-price-slider .ui-state-default {
  background-image: none !important;
  outline: 0 !important;
  position: absolute;
  z-index: 2;
  width: 18px !important;
  height: 18px !important;
  top: 50% !important;
  margin-left: -9px !important;
  margin-top: 0 !important;
  transform: translateY(-50%);
  box-sizing: border-box;
  border-radius: 50% !important;
  border: 2px solid var(--accent, #045962) !important;
  background: #fff !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent, #045962) 12%, transparent),
    0 1px 3px rgba(20, 24, 32, .14);
  cursor: grab;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cc-price-slider .ui-slider-handle:hover,
.cc-price-slider .ui-slider-handle.ui-state-hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 0 0 4px var(--accent-soft, rgba(4, 89, 98, .14)),
    0 2px 6px rgba(20, 24, 32, .16);
}
.cc-price-slider .ui-slider-handle:focus,
.cc-price-slider .ui-slider-handle.ui-state-focus {
  outline: 0;
  box-shadow:
    0 0 0 4px var(--accent-soft, rgba(4, 89, 98, .18)),
    0 2px 6px rgba(20, 24, 32, .16);
}
.cc-price-slider .ui-slider-handle.ui-state-active,
.cc-price-slider .ui-slider-handle:active {
  cursor: grabbing;
  transform: translateY(-50%) scale(1.04);
  background: color-mix(in srgb, var(--accent, #045962) 8%, #fff) !important;
}


/* sort radio: only is-active looks selected; mse2 .active on both price links ignored */
#mse2_sort a.active:not(.is-active) {
  background: transparent;
  font-weight: inherit;
}
#mse2_sort a.is-active {
  background: rgba(20,24,32,.06);
  font-weight: 600;
}


/* w3c: legend replaces filter h3 */
#mse2_filters fieldset.f-block > legend,
.f-block > legend {
  padding: 0;
  margin: 0 0 0.5rem;
  float: none;
  width: auto;
}
