/* ==========================================================
   KS AJAX Filter — ULTRA MINIMAL (pro, airy topbar)
   - no heavy borders, no shadows
   - clean rows + checkmarks
   - topbar gets MORE SPACE + calmer layout
   Replace your current filter CSS with this variant.
========================================================== */

/* ---------- tokens (local) ---------- */
.kujundusstuudio-filter,
.mf-trigger,
.kujundusstuudio-filter__selected,
.mf-topbar{
  --mf-bg: #ffffff;
  --mf-ink: #0f172a;
  --mf-muted: rgba(15,23,42,.62);
  --mf-line: rgba(15,23,42,.10);

  --mf-accent: #3b6146;
  --mf-accent-2: #3b6146;

  --mf-radius: 16px;
  --mf-radius-sm: 12px;

  --mf-pad: 14px;
  --mf-gap: 12px;

  --mf-focus: 0 0 0 3px rgba(37,99,235,.20);
}

/* ---------- lock scroll (mobile sheet open) ---------- */
html.mf-lock,
body.mf-lock{
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ---------- overlay (mobile) ---------- */
.mf-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(0.4, 0, 0.2, 1);
}
.mf-overlay.is-show{ opacity: 1; pointer-events: auto; }
.mf-overlay[hidden]{ display:none !important; }

/* ---------- trigger button ---------- */
.mf-trigger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--mf-line);
  background: var(--mf-bg);
  color: var(--mf-ink);

  cursor: pointer;
  user-select: none;
  font-weight: 800;
  font-size: 14px;

  box-shadow: none !important;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
  margin-bottom: 16px;
}
.mf-trigger:hover{
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(15,23,42,.16);
}
.mf-trigger:active{ transform: translateY(0) scale(.99); }
.mf-trigger:focus-visible{ outline:none; box-shadow: var(--mf-focus) !important; }
.mf-trigger.is-hidden{ display:none !important; }

.mf-trigger .mf-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-2));
  box-shadow: none !important;
}

/* mobile trigger = fixed bottom, keep earlier behavior but minimal */
@media (max-width: 1350px){
  .mf-trigger{
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 100002 !important;

    border: 0 !important;
    background: linear-gradient(90deg, var(--mf-accent), var(--mf-accent-2)) !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 14px !important;

    transform: none !important;
  }
  .mf-trigger:hover{ transform:none !important; }
  .mf-trigger .mf-badge{
    background: rgba(255,255,255,.92) !important;
    color: #111827 !important;
  }
}

/* ---------- filter container ---------- */
.kujundusstuudio-filter{
  width: 100%;
  margin: 10px 0 14px;

  border: 0;
  background: var(--mf-bg);
  color: var(--mf-ink);

  /* ultra-minimal “outline” without borders */
  box-shadow: inset 0 0 0 1px var(--mf-line);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  overflow: clip;
}

@media (min-width: 1350px){
  .kujundusstuudio-filter{ display:none; }
  .kujundusstuudio-filter.is-open{ display:block; }
}

/* mobile: sheet */
@media (max-width: 1350px){
  .kujundusstuudio-filter{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100001;

    height: 78vh;
    max-height: 86vh;

    border-radius: 18px 18px 0 0;
    box-shadow: none;
    transform: translateY(104%);
    transition: transform .26s cubic-bezier(0.4, 0, 0.2, 1);

    overflow: auto;
    padding: 0;
  }
  .kujundusstuudio-filter.is-open{ transform: translateY(0); }
}

/* ---------- header ---------- */
.kujundusstuudio-filter .mf-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px var(--mf-pad);
  background: var(--mf-bg);

  border-bottom: 1px solid var(--mf-line);
}

@media (max-width: 1350px){
  .kujundusstuudio-filter .mf-head{
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

.kujundusstuudio-filter .mf-title{
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(15,23,42,.70);
}

.kujundusstuudio-filter .mf-close{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 0;
  background: rgba(15,23,42,.06);
  color: var(--mf-ink);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: none !important;
  transition: transform .12s ease, background .12s ease;
}
.kujundusstuudio-filter .mf-close:hover{ background: rgba(15,23,42,.09); transform: translateY(-1px); }
.kujundusstuudio-filter .mf-close:active{ transform: translateY(0) scale(.99); }
.kujundusstuudio-filter .mf-close:focus-visible{ outline:none; box-shadow: var(--mf-focus) !important; }

/* ---------- form layout ---------- */
.kujundusstuudio-filter__form,
.kujundusstuudio-filter form{
  padding: var(--mf-pad);
  display: grid;
  gap: var(--mf-gap);
}

.kujundusstuudio-filter fieldset{
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

.kujundusstuudio-filter *{ box-sizing: border-box; }
.kujundusstuudio-filter [hidden]{ display:none !important; }

/* ---------- loading (minimal) ---------- */
.kujundusstuudio-filter.is-loading{ position: relative; }
.kujundusstuudio-filter.is-loading::before{
  content:"";
  position:absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mf-accent), var(--mf-accent-2), transparent);
  background-size: 200% 100%;
  animation: mfLoad 1.05s linear infinite;
  z-index: 60;
}
@keyframes mfLoad{ from{ background-position: 0% 0%; } to{ background-position: 200% 0%; } }

@media (min-width: 1350px){
  .kujundusstuudio-filter.is-loading{ pointer-events:none; }
  .kujundusstuudio-filter.is-loading .kujundusstuudio-filter__form,
  .kujundusstuudio-filter.is-loading form{ opacity: .65; }
}
@media (max-width: 1350px){
  .kujundusstuudio-filter.is-open.is-loading{
    position: fixed !important;
    transform: translateY(0) !important;
    transition: none !important;
  }
  .kujundusstuudio-filter.is-loading .kujundusstuudio-filter__form,
  .kujundusstuudio-filter.is-loading form{ opacity: .62; }
}

/* ---------- accordion ---------- */
.kujundusstuudio-filter legend{ padding:0; margin:0; width:100%; }

.kujundusstuudio-filter .mf-acc__btn{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;

  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--mf-ink);
  cursor: pointer;
  text-align: left;
}
.kujundusstuudio-filter .mf-acc__btn:hover{ opacity: .96; }
.kujundusstuudio-filter .mf-acc__btn:focus-visible{ outline:none; box-shadow: var(--mf-focus); border-radius: 12px; padding-left: 10px; padding-right: 10px; }

.kujundusstuudio-filter .mf-acc__title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  color: rgba(15,23,42,.72);
}

.kujundusstuudio-filter .mf-acc__meta{
  font-size: 11px;
  font-weight: 700;
  color: rgba(15,23,42,.55);
}

.kujundusstuudio-filter .mf-acc__chev{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(15,23,42,.06);
  position: relative;
}
.kujundusstuudio-filter .mf-acc__chev::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15,23,42,.55);
  border-bottom: 2px solid rgba(15,23,42,.55);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.kujundusstuudio-filter .mf-group.is-open .mf-acc__chev::before{ transform: rotate(-135deg); }

/* panel: ultra minimal */
.kujundusstuudio-filter .mf-acc__panel{
  padding: 12px 0 6px;
  border-top: 1px solid var(--mf-line);
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

/* ---------- search ---------- */
.kujundusstuudio-filter .mf-search,
.kujundusstuudio-filter input[type="search"]{
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,.03);
  padding: 0 14px;
  color: var(--mf-ink);
  outline: none;

  box-shadow: inset 0 0 0 1px rgba(15,23,42,.10);
}
.kujundusstuudio-filter .mf-search:focus,
.kujundusstuudio-filter input[type="search"]:focus{
  background: #fff;
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.28);
}
.kujundusstuudio-filter .mf-search::placeholder,
.kujundusstuudio-filter input[type="search"]::placeholder{ color: rgba(15,23,42,.40); }

/* ---------- scroll (lists) ---------- */
.kujundusstuudio-filter .mf-scroll{
  margin-top: 6px;
  overflow: auto;
  padding-right: 4px;
  display: grid;
  gap: 6px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  contain: layout style paint;
}

/* scrollbar: calm */
.kujundusstuudio-filter .mf-scroll::-webkit-scrollbar{ width: 10px; }
.kujundusstuudio-filter .mf-scroll::-webkit-scrollbar-track{ background: rgba(15,23,42,.04); border-radius: 999px; }
.kujundusstuudio-filter .mf-scroll::-webkit-scrollbar-thumb{ background: rgba(15,23,42,.18); border-radius: 999px; }

/* ==========================================================
   CHECKMARK ROWS (replaces “pills”)
========================================================== */
.kujundusstuudio-filter .mf-check{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 10px;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease, box-shadow .12s ease;
}

.kujundusstuudio-filter .mf-check:hover{
  background: rgba(15,23,42,.03);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.12);
}

.kujundusstuudio-filter .mf-check input[type="checkbox"]{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* label line */
.kujundusstuudio-filter .mf-check > input + span{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;

  color: rgba(15,23,42,.86);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* checkbox indicator */
.kujundusstuudio-filter .mf-check > input + span::before{
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.20);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

/* checked */
.kujundusstuudio-filter .mf-check > input:checked + span::before{
  content: "✓";
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-2));
  box-shadow: none;
}

.kujundusstuudio-filter .mf-check > input:focus-visible + span{
  outline: none;
  box-shadow: var(--mf-focus);
  border-radius: 10px;
}

/* disabled */
.kujundusstuudio-filter .mf-check.is-disabled{
  opacity: .48;
  cursor: not-allowed;
}
.kujundusstuudio-filter .mf-check.is-disabled > input + span{ text-decoration: line-through; }
.kujundusstuudio-filter .mf-check.is-disabled input{ cursor: not-allowed; }

/* count badge */
.kujundusstuudio-filter .mf-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(15,23,42,.08);
  color: rgba(15,23,42,.62);
  margin-left: 8px;
}

/* ---------- price inputs / selects ---------- */
.kujundusstuudio-filter input[type="number"],
.kujundusstuudio-filter input[type="text"],
.kujundusstuudio-filter select{
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: rgba(15,23,42,.03);
  padding: 0 12px;
  color: var(--mf-ink);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.10);
}
.kujundusstuudio-filter input[type="number"]:focus,
.kujundusstuudio-filter input[type="text"]:focus,
.kujundusstuudio-filter select:focus{
  background: #fff;
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.28);
}

/* ---------- actions ---------- */
.kujundusstuudio-filter .mf-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;

  padding: 12px var(--mf-pad);
  border-top: 1px solid var(--mf-line);
  background: var(--mf-bg);
}
@media (max-width: 1350px){
  .kujundusstuudio-filter .mf-actions{
    position: sticky;
    bottom: 0;
    z-index: 40;
  }
}

.kujundusstuudio-filter .mf-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  background: rgba(15,23,42,.06);
  color: var(--mf-ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform .12s ease, filter .12s ease;
}
.kujundusstuudio-filter .mf-btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.kujundusstuudio-filter .mf-btn:active{ transform: translateY(0) scale(.99); }
.kujundusstuudio-filter .mf-btn:focus-visible{ outline:none; box-shadow: var(--mf-focus) !important; }

.kujundusstuudio-filter .mf-btn--apply{
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-2));
  color: #fff;
}
.kujundusstuudio-filter .mf-btn--reset{ background: rgba(15,23,42,.06); }

/* ==========================================================
   Categories tree — children rows UNDER parent (clean)
========================================================== */
.kujundusstuudio-filter .mf-cats .mf-cat-current{
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15,23,42,.02);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.kujundusstuudio-filter .mf-cats .mf-cat-current__k{
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15,23,42,.55);
}
.kujundusstuudio-filter .mf-cats .mf-cat-current__v{
  font-weight: 900;
  color: rgba(15,23,42,.88);
}

.kujundusstuudio-filter .mf-cats .mf-cat-tree{
  display: grid;
  margin-top: 10px;
}

.kujundusstuudio-filter .mf-cats .mf-cat-node{
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.kujundusstuudio-filter .mf-cats .mf-check.is-parent{
  background: rgba(15,23,42,.03);
}
.kujundusstuudio-filter .mf-cats .mf-check.is-parent > input + span{
  font-weight: 900;
}

.kujundusstuudio-filter .mf-cats .mf-cat-children{
  margin: 8px 0 0 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(15,23,42,.10);

  display: grid;              /* ✅ rows */
  grid-template-columns: 1fr;
  gap: 6px;
}

/* grand-children */
.kujundusstuudio-filter .mf-cats .mf-cat-children.level-2{
  margin-left: 12px;
  border-left-style: dotted;
  margin-bottom: 10px;
}
.kujundusstuudio-filter .mf-cats .mf-check.is-grandchild > input + span{
  font-size: 12px;
  opacity: .92;
}

/* search: no thin strips */
.kujundusstuudio-filter .mf-cat-children .mf-check{
  width: 100%;
}
.kujundusstuudio-filter .mf-check[hidden],
.kujundusstuudio-filter .mf-cat-node[hidden],
.kujundusstuudio-filter .mf-check.is-hidden,
.kujundusstuudio-filter .mf-cat-node.is-hidden{
  display:none !important;
}

/* toggle (clean + minimal) */
.mf-cat-node{ position: relative; }
.mf-cat-node.has-children > .mf-check{ padding-right: 46px; }

.mf-cat-toggle{
position: absolute;
    right: 0;
    top: -10px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1;
    transition: transform .12s ease, background .12s ease;
	box-shadow: none;
}

.mf-cat-toggle:focus{
	background: none;
}


.mf-cat-toggle:active{ transform: scale(.99); }

.mf-cat-toggle::before{
  content:"";
  display:block;
  width: 10px;
  height: 10px;
  margin: 11px auto 0;
  border-right: 2px solid rgba(15,23,42,.58);
  border-bottom: 2px solid rgba(15,23,42,.58);
  transform: rotate(45deg);
  transition: transform .16s ease;
  box-shadow: none;
}
.mf-cat-node.is-open > .mf-cat-toggle::before{ transform: rotate(-135deg); }

/* ==========================================================
   Selected filters bar — ultra minimal
========================================================== */
.kujundusstuudio-filter__selected{
  margin: 10px 0 14px;
  border-radius: var(--mf-radius);
  background: var(--mf-bg);
  box-shadow: inset 0 0 0 1px var(--mf-line);
  position: sticky;
  top: 10px;
}
@media (max-width: 1350px){
  .kujundusstuudio-filter__selected{ position: relative; top: auto; }
}
.kujundusstuudio-filter__selected-inner{
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mf-selected-label{
  font-weight: 900;
  color: rgba(15,23,42,.70);
  font-size: 12px;
  white-space: nowrap;
}
.mf-selected-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.mf-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,.06);
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform .12s ease, filter .12s ease;
}
.mf-chip:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.mf-chip:active{ transform: translateY(0) scale(.99); }
.mf-chip__t,
.mf-chip__label{
  font-size: 12px;
  font-weight: 850;
  color: rgba(15,23,42,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mf-chip__x{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.10);
  color: rgba(15,23,42,.72);
  font-weight: 900;
}

.mf-selected-clear{
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.80);
  font-weight: 900;
  cursor: pointer;
  box-shadow: none !important;
}
.mf-selected-clear:focus-visible{ outline:none; box-shadow: var(--mf-focus) !important; }

@media (max-width: 520px){
  .mf-selected-label{ display:none; }
  .mf-selected-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
  }
  .mf-selected-chips::-webkit-scrollbar{ height: 0px; }
  .mf-selected-chips{ scrollbar-width: none; }
  .mf-chip{ flex: 0 0 auto; scroll-snap-align: start; max-width: 72vw; }
}

/* ==========================================================
   TOPBAR — MORE SPACE + minimal (matches screenshot ask)
========================================================== */
.mf-topbar{ margin: 0 0 18px; }

.mf-topbar__inner{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;              /* ✅ more room between controls */
  align-items: flex-end;  /* ✅ label + select align */
}

/* topbar container */
.mf-topbar[data-ks-mf-topbar="1"]{
  position: relative;
  z-index: 30;

  display: flex;
  flex-wrap: wrap;
  gap: 14px;              /* ✅ more room */
  align-items: flex-end;

  padding: 16px 16px;     /* ✅ more room */
  background: #fff;

  box-shadow: inset 0 0 0 1px var(--mf-line); /* ✅ minimal outline */
}

/* group label */
.mf-topbar__label{
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.72);
  margin-bottom: 6px;
}

/* wrapper */
.mf-topbar .mf-select{ position: relative; z-index: 1; }
.mf-topbar .mf-select.is-open{ z-index: 10001; }

/* select button: bigger, calmer */
.mf-topbar .mf-select__btn{
  width: 100%;
  min-width: 200px;         /* ✅ more room */
  height: 44px;             /* ✅ bigger */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 0 14px;
  border: 0;
  background: rgba(15,23,42,.03);

  color: var(--mf-ink);
  cursor: pointer;

  box-shadow: inset 0 0 0 1px rgba(15,23,42,.12);
  transition: box-shadow .14s ease, background .14s ease, transform .12s ease;
}
.mf-topbar .mf-select__btn:hover{
  background: rgba(15,23,42,.04);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.16);
  transform: translateY(-1px);
}
.mf-topbar .mf-select__btn:focus{
  outline: none;
  background: #fff;
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.28);
}

.mf-topbar .mf-select__value{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.mf-topbar .mf-select__chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15,23,42,.55);
  border-bottom: 2px solid rgba(15,23,42,.55);
  transform: rotate(45deg);
  opacity: .9;
}
.mf-topbar .mf-select.is-open .mf-select__chev{ transform: rotate(-135deg); }

/* dropdown menu — minimal */
.mf-topbar .mf-select__menu{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 10000;

  border-radius: 16px;
  background: #fff;
  border: 0;

  box-shadow: inset 0 0 0 1px rgba(15,23,42,.12); /* minimal */
  overflow: auto;

  padding: 8px;
  max-height: 340px;
  width: max-content;
  min-width: 260px;

  animation: mfDropdown .16s ease;
}
@keyframes mfDropdown{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.mf-topbar .mf-select__opt{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;

  color: var(--mf-ink);
  font-weight: 800;
  transition: background .12s ease, transform .12s ease;
}
.mf-topbar .mf-select__opt:hover{
  background: rgba(15,23,42,.06);
  transform: translateX(2px);
}
.mf-topbar .mf-select__opt[aria-selected="true"]{
  background: rgba(37,99,235,.10);
}

.mf-topbar .mf-opt__count{
  flex: 0 0 auto;
  min-width: 22px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(15,23,42,.08);
  color: rgba(15,23,42,.62);
}

.mf-topbar .mf-select__opt.is-disabled{
  opacity: .45;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* hide topbar outside filter on mobile (keep your current behavior) */
@media (max-width: 1350px){
  .mf-topbar:not(.mf-topbar--in-filter){ display:none !important; }
  .mf-topbar[data-ks-mf-topbar="1"]{
    padding: 14px 14px;
    gap: 12px;
  }
  .mf-topbar .mf-select__btn{ min-width: 0; width: 100%; }
  .mf-topbar .mf-select__menu{ min-width: 0; width: calc(100vw - 28px); }
}

/* ---------- desktop: prevent inner scrollbars ---------- */
@media (min-width: 1350px){
  .kujundusstuudio-filter{ overflow: visible !important; }
  .kujundusstuudio-filter .mf-scroll,
  .kujundusstuudio-filter .mf-acc__panel,
  .kujundusstuudio-filter .mf-y{
    overflow: visible !important;
    max-height: none !important;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .mf-overlay,
  .kujundusstuudio-filter,
  .mf-trigger,
  .mf-topbar .mf-select__menu{
    transition: none !important;
    animation: none !important;
  }
  .kujundusstuudio-filter.is-loading::before{ animation: none !important; }
}

/* ---------- print ---------- */
@media print{
  .mf-overlay,
  .mf-trigger{ display:none !important; }
  .kujundusstuudio-filter,
  .kujundusstuudio-filter__selected,
  .mf-topbar[data-ks-mf-topbar="1"]{
    box-shadow: none !important;
  }
}











/* ==========================================================
   PATCH 1) TOPBAR DE-DUP (desktop: only OUTSIDE, mobile: only INSIDE)
   Eeldus: filtri sees topbaril on .mf-topbar--in-filter klass
========================================================== */

/* Desktop: peida filter-sisene topbar, jäta alles arhiivi/topi oma */
@media (min-width: 1350px){
  .mf-topbar.mf-topbar--in-filter{ display: none !important; }
  .mf-topbar:not(.mf-topbar--in-filter){ display: block !important; }
}

/* Mobile: näita ainult filter-sisest topbari (sheet sees) */
@media (max-width: 1350px){
  .mf-topbar:not(.mf-topbar--in-filter){ display: none !important; }
  .mf-topbar.mf-topbar--in-filter{ display: block !important; }
}

/* ==========================================================
   PATCH 2) PRICE SLIDER — ULTRA MINIMAL (matches your new style)
   Uses your existing classnames:
   .mf-price-slider-wrapper .mf-price-slider .mf-price-track
   .mf-price-range .mf-price-input .mf-price-values
   .mf-price-manual-input .mf-price-currency .mf-price-separator
========================================================== */

.mf-price-slider-wrapper{
  display: grid;
  gap: 12px;
  padding: 2px 0 4px;
}

/* slider rail */
.mf-price-slider{
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
}

.mf-price-track{
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  overflow: hidden;
}

.mf-price-range{
  position: absolute;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mf-accent), var(--mf-accent-2));
}

/* the two range inputs overlay */
.mf-price-input{
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 42px;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
}

/* thumbs */
.mf-price-input::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.18);
  transition: transform .12s ease, box-shadow .12s ease;
}

.mf-price-input::-webkit-slider-thumb:hover{
  transform: scale(1.10);
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.22);
}

.mf-price-input::-webkit-slider-thumb:active{
  transform: scale(1.04);
}

.mf-price-input::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.18);
  transition: transform .12s ease, box-shadow .12s ease;
}

.mf-price-input::-moz-range-thumb:hover{
  transform: scale(1.10);
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.22);
}

/* focus ring */
.mf-price-input:focus::-webkit-slider-thumb{
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.24);
}
.mf-price-input:focus::-moz-range-thumb{
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.24);
}

/* values row */
.mf-price-values{
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-price-value-group{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* manual inputs (if you use them) */
.mf-price-manual-input{
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: rgba(15,23,42,.03);
  color: var(--mf-ink);
  font-weight: 900;
  text-align: center;
  font-family: inherit;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.10);
  outline: none;
}

.mf-price-manual-input:hover{
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.16);
}

.mf-price-manual-input:focus{
  background: #fff;
  box-shadow: var(--mf-focus), inset 0 0 0 1px rgba(37,99,235,.28);
}

/* currency + separator */
.mf-price-currency{
  font-weight: 900;
  color: rgba(15,23,42,.70);
  white-space: nowrap;
}

.mf-price-separator{
  font-weight: 900;
  color: rgba(15,23,42,.42);
  white-space: nowrap;
}

/* remove number spinners */
.mf-price-manual-input::-webkit-inner-spin-button,
.mf-price-manual-input::-webkit-outer-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.mf-price-manual-input[type=number]{ -moz-appearance: textfield; }

/* Optional: compact on very small screens */
@media (max-width: 520px){
  .mf-price-values{ gap: 8px; }
  .mf-price-manual-input{ height: 40px; border-radius: 12px; }
}




.mf-topbar__select, .mf-native-select {
  display: none;
}



/* Native select jääb DOM-i ja vormi jaoks alles, aga pole nähtav */
.mf-topbar__select,
.mf-native-select{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}



















/* Topbar multi-checkbox dropdown */
.mf-topbar .mf-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.mf-topbar .mf-multi {
  position: relative;
  min-width: 180px;
}

.mf-topbar .mf-multi__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);

  color: inherit;
  cursor: pointer;
}

.mf-topbar .mf-multi__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.mf-topbar .mf-multi__menu {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  overflow: auto;
  padding: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
      width: fit-content;
    background: #fff;
}

.mf-topbar .mf-multi__search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);

  color: inherit;
  outline: none;
  margin-bottom: 10px;
}

.mf-topbar .mf-multi__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.mf-topbar .mf-multi__opt:hover {

}

.mf-topbar .mf-multi__opt.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.mf-topbar .mf-multi__cb {
  width: 16px;
  height: 16px;
}

.mf-topbar .mf-multi__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-topbar .mf-multi__count {
  opacity: .7;
  font-variant-numeric: tabular-nums;
}


















/* =========================
   TOPBAR MULTI (checkbox dropdown)
   ========================= */

.mf-topbar .mf-native-select{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
  appearance:none !important;
}

.mf-topbar .mf-multi{
  position:relative;
}

.mf-topbar .mf-multi__btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  color:inherit;
  cursor:pointer;
  line-height:1.1;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.mf-topbar .mf-multi__btn:focus-visible{
  outline:2px solid rgba(0,0,0,.22);
  outline-offset:2px;
}

.mf-topbar .mf-multi.has-selection .mf-multi__btn{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.mf-topbar .mf-multi__value{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mf-topbar .mf-multi__chev{
  width:10px;
  height:10px;
  display:inline-block;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform: rotate(45deg);
  opacity:.7;
  transition: transform .14s ease;
}

.mf-topbar .mf-multi.is-open .mf-multi__chev{
  transform: rotate(-135deg);
}

.mf-topbar .mf-multi__menu{
  position:absolute;
  left:0;
  right:0;
  top: calc(100% + 8px);
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  padding:10px;
  z-index:100600;
  overflow:auto; /* maxHeight paneb JS */
}

.mf-topbar .mf-multi__search{
  width:100%;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  outline:none;
  margin-bottom:8px;
}

.mf-topbar .mf-multi__search:focus{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.mf-topbar .mf-multi__list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mf-topbar .mf-multi__opt{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
}

.mf-topbar .mf-multi__opt:hover{
  background: rgba(0,0,0,.04);
}

.mf-topbar .mf-multi__opt.is-disabled{
  opacity:.45;
  cursor:not-allowed;
}

.mf-topbar .mf-multi__cb{
  width:16px;
  height:16px;
  accent-color: currentColor;
}

.mf-topbar .mf-multi__label{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mf-topbar .mf-multi__count{
  font-size:12px;
  opacity:.7;
}













/* =========================
   Selected bar — ultra responsive
   Targets: .kujundusstuudio-filter__selected-inner
   ========================= */

.kujundusstuudio-filter__selected-inner{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: clamp(6px, 1.8vw, 12px);
  min-width:0;
}

/* hoia lapsed “shrinkable” */
.kujundusstuudio-filter__selected-inner > *{
  min-width:0;
}

/* label + chips + clear */
.kujundusstuudio-filter__selected .mf-selected-label{
  flex:0 0 auto;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height:1.15;
  opacity:.85;
}

.kujundusstuudio-filter__selected .mf-selected-chips{
  flex:1 1 280px;
  display:flex;
  flex-wrap:wrap;
  gap: clamp(6px, 1.6vw, 10px);
  min-width:0;
}

.kujundusstuudio-filter__selected .mf-selected-clear{
  flex:0 0 auto;
  white-space:nowrap;
  padding: clamp(7px, 2.2vw, 10px) clamp(10px, 2.8vw, 14px);
  font-size: clamp(12px, 3.2vw, 14px);
  border-radius:999px;
}

/* chips: ellipsis + kompaktsem */
.kujundusstuudio-filter__selected .mf-chip{
  max-width:100%;
  border-radius:999px;
  padding: clamp(6px, 2.1vw, 10px) clamp(10px, 2.6vw, 12px);
  font-size: clamp(12px, 3.2vw, 14px);
}

.kujundusstuudio-filter__selected .mf-chip__t{
  display:inline-block;
  max-width: min(42ch, 100%);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* <= 520px: grid (label+clear ühel real, chips all) */
@media (max-width: 520px){
  .kujundusstuudio-filter__selected-inner{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label clear"
      "chips chips";
    align-items:center;
  }

  .kujundusstuudio-filter__selected .mf-selected-label{ grid-area: label; }
  .kujundusstuudio-filter__selected .mf-selected-clear{ grid-area: clear; justify-self:end; }
  .kujundusstuudio-filter__selected .mf-selected-chips{ grid-area: chips; }
}

/* <= 420px: chips 1-realised + horisontaalne scroll (et ei võtaks kõrgust ära) */
@media (max-width: 420px){
  .kujundusstuudio-filter__selected .mf-selected-chips{
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;   /* et scrollbar ei sööks ruumi */
    margin-bottom:-4px;
  }
  .kujundusstuudio-filter__selected .mf-chip{ flex:0 0 auto; }
}

/* <= 360px: label peitu, clear täislaiuses (kõige kitsamatele) */
@media (max-width: 360px){
  .kujundusstuudio-filter__selected .mf-selected-label{ display:none; }

  .kujundusstuudio-filter__selected-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "chips"
      "clear";
  }

  .kujundusstuudio-filter__selected .mf-selected-clear{
    width:100%;
    text-align:center;
  }
}



.mf-cat-toggle:hover {
	background: none;
}







/* Sticky offset (Astra header + admin bar) — safe default */
:root{ --mf-sticky-offset: 0px; }

/* Selected bar ei lähe headeri taha */
.kujundusstuudio-filter__selected{
  top: calc(var(--mf-sticky-offset) + 10px);
}

/* Mobiili sheet header ei lähe admin-bari taha */
@media (max-width: 1350px){
  .kujundusstuudio-filter .mf-head{
    top: var(--mf-sticky-offset);
  }
}



















/* ================================
   ASTRA + Woo: Sidebar filter sticky
   ================================ */

@media (min-width: 1001px) {
  body.woocommerce #secondary,
  body.woocommerce #secondary .sidebar-main,
  body.woocommerce #secondary .ast-filter-wrap {
    overflow: visible !important;
  }

  /* Sticky wrapper (sinu filter elab .ast-filter-wrap sees) */
  body.woocommerce #secondary .ast-filter-wrap{
    position: sticky;
    top: var(--ks-sticky-top, 96px); /* JS paneb siia õige väärtuse */
    z-index: 5;
    align-self: flex-start;
    transform: translateZ(0); /* vähendab flickerit mõnel brauseril */
    backface-visibility: hidden;
  }

  /* ära lase filtril ise "fixed/transform" režiimi minna desktopis */
  body.woocommerce
  #kujundusstuudio-filter-0367e672-be2f-4454-af4f-d90a8e4cd1ba.kujundusstuudio-filter{
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    height: auto !important;
    max-height: none !important;
  }
}














