/* Mikronet filteri – koristi boje i pismo teme (Porto), bez vlastitog fonta. */
.mf-panel { --mf-primary: var(--porto-primary-color, #944cf5); --mf-heading: var(--porto-heading-color, #222529); --mf-border: #e7e7e7; --mf-muted: #8a8f98; }
.mf-panel { position: relative; }
.mf-panel[aria-busy="true"] .mf-form { opacity: .65; transition: opacity .15s; }
.mf-panel .widget { margin-bottom: 18px; }

/* Zaglavlje */
.mf-head { padding-bottom: 12px; border-bottom: 1px solid var(--mf-border); }
.mf-head__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mf-panel .mf-head__title { margin: 0 !important; }
.mf-head__count { margin: 6px 0 0; font-size: 13px; color: var(--mf-muted); }
.mf-head__count b { color: var(--mf-heading); font-weight: 700; }
.mf-panel .mf-clear-all { font-size: 13px; font-weight: 600; color: var(--mf-primary); white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }

/* Skupina filtera */
.mf-panel .mf-facet { padding-bottom: 14px; border-bottom: 1px solid var(--mf-border); margin-bottom: 14px; }
.mf-panel .mf-facet__title { margin: 0 !important; padding: 0 !important; }
.mf-facet__toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mf-facet__toggle > span:first-child { flex: 1 1 auto; }
.mf-facet__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mf-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.mf-facet__chev { width: 8px; height: 8px; margin-right: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .6; }
.mf-facet.is-open .mf-facet__chev { transform: rotate(-135deg); }
.mf-facet__body { display: none; padding-top: 10px; }
.mf-facet.is-open .mf-facet__body { display: block; }

/* Opcije */
.mf-opts { list-style: none; margin: 0; padding: 0; }
.mf-opt { margin: 0; padding: 0; border: 0 !important; }
.mf-opt.is-extra { display: none; }
.mf-facet.is-more .mf-opt.is-extra { display: block; }
.mf-opt label { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 5px 0; font-size: 13px; line-height: 1.35; color: inherit; cursor: pointer; font-weight: 400; }
.mf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mf-check { flex: none; width: 16px; height: 16px; border: 1px solid #c9ccd1; border-radius: 3px; background: #fff; transition: background .15s, border-color .15s; }
.mf-opt input:checked + .mf-check { background: var(--mf-primary); border-color: var(--mf-primary); box-shadow: inset 0 0 0 3px var(--mf-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.mf-opt input:focus-visible + .mf-check { outline: 2px solid var(--mf-primary); outline-offset: 2px; }
.mf-opt label:hover .mf-check { border-color: var(--mf-primary); }
.mf-opt__label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.mf-opt__count { flex: none; min-width: 26px; padding: 0 6px; border-radius: 10px; background: #f4f4f4; color: var(--mf-muted); font-size: 11px; line-height: 18px; text-align: center; }
.mf-opt input:checked ~ .mf-opt__label { color: var(--mf-heading); font-weight: 600; }
.mf-opt.is-zero label { opacity: .45; cursor: default; }
.mf-more { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--mf-primary); font-size: 13px; font-weight: 600; cursor: pointer; }

/* Cijena */
.mf-range { position: relative; height: 28px; margin: 2px 8px 8px; }
.mf-range__track { position: absolute; top: 12px; left: 0; right: 0; height: 4px; border-radius: 2px; background: #e7e7e7; }
.mf-range__fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--mf-primary); }
.mf-range input[type=range] { position: absolute; top: 0; left: -8px; width: calc(100% + 16px); height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.mf-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--mf-primary); background: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mf-primary); background: #fff; cursor: pointer; }
.mf-range input[type=range]::-webkit-slider-runnable-track { background: none; }
.mf-range input[type=range]::-moz-range-track { background: none; }
.mf-price__inputs { display: flex; align-items: center; gap: 6px; }
.mf-price__inputs label { flex: 1 1 0; margin: 0; }
.mf-price__inputs input { width: 100%; height: 36px; padding: 0 8px; border: 1px solid var(--mf-border); border-radius: 3px; font-size: 13px; color: var(--mf-heading); background: #fff; -moz-appearance: textfield; }
.mf-price__inputs input::-webkit-inner-spin-button, .mf-price__inputs input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mf-price__dash, .mf-price__cur { color: var(--mf-muted); font-size: 13px; }
.mf-apply { width: 100%; }

/* Traka iznad proizvoda */
.mf-toolbar { --mf-primary: var(--porto-primary-color, #944cf5); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; font-size: 13px; }
.mf-toolbar__count { color: #8a8f98; }
.mf-toolbar__count b { color: var(--porto-heading-color, #222529); font-size: 14px; }
.mf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: #f4f4f4; color: var(--porto-heading-color, #222529) !important; font-size: 12px; line-height: 1.4; text-decoration: none !important; }
.mf-chip:hover { background: #ebe4fb; }
.mf-chip__x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; font-size: 14px; line-height: 1; color: #555; }
.mf-toolbar .mf-clear-all { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--mf-primary); text-decoration: underline; text-underline-offset: 2px; }

/* Učitavanje */
body.mf-loading .elementor-widget-porto_sb_archives,
body.mf-loading .archive-products,
body.mf-loading ul.products { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* Stari filteri koje zamjenjuje nova ploča (postavka "Sakrij stare filtere"). */
body.mf-hide-old .sidebar .widget_layered_nav,
body.mf-hide-old .sidebar .widget_layered_nav_filters,
body.mf-hide-old .sidebar .widget_filter_by_brand,
body.mf-hide-old .sidebar .porto_widget_price_filter,
body.mf-hide-old .sidebar .widget_price_filter,
body.mf-hide-old .sidebar .yith-wcan-filters,
body.mf-hide-old .mnm-sb .widget_layered_nav,
body.mf-hide-old .mnm-sb .widget_layered_nav_filters,
body.mf-hide-old .mnm-sb .widget_filter_by_brand,
body.mf-hide-old .mnm-sb .porto_widget_price_filter,
body.mf-hide-old .mnm-sb .widget_price_filter,
body.mf-hide-old .mnm-sb .yith-wcan-filters { display: none !important; }

/* Mobitel i tablet (mobilni panel dodatka mikronet-mobilni) */
@media (max-width: 991px) {
	.mf-toolbar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 2px; scrollbar-width: none; }
	.mf-toolbar::-webkit-scrollbar { display: none; }
	.mf-toolbar__count, .mf-chip, .mf-toolbar .mf-clear-all { flex: none; white-space: nowrap; }
	.mf-chips { flex-wrap: nowrap; }
	.mf-chip { padding: 6px 6px 6px 12px; font-size: 13px; }
	.mf-opt label { padding: 9px 0; font-size: 15px; }
	.mf-check { width: 20px; height: 20px; }
	.mf-opt__count { font-size: 12px; line-height: 20px; }
	.mf-facet__toggle { min-height: 40px; }
	.mf-price__inputs input { height: 44px; font-size: 16px; }
}
