/*
 * Buldog product filters. Tokens follow the buldog-design skill (kit 655, 2026-11-10).
 * Desktop ≥1025px: sidebar (body.bpf-desk-sidebar) or top bar (body.bpf-desk-top).
 * ≤1024px: sticky "סינון / מיון" bar + bottom sheets. Same HTML for every device.
 */
:root {
	--bpf-green: #85c854;
	--bpf-green-h: #71c733;
	--bpf-green-dk: #3f6b1f;
	--bpf-tint: #f1f8ea;
	--bpf-red: #f35c47;
	--bpf-ink: #252525;
	--bpf-text: #333;
	--bpf-muted: #69727d;
	--bpf-line: #e2e2e2;
	--bpf-frame: #e3e8df;
	--bpf-field: #cfd8c8;
	--bpf-ph: #9aa0a6;
	--bpf-chip: #f6f6f5;
	--bpf-dis: #b5b9be;
}

/* ---------------------------------------------------------------- shared */
.bpf-panel [hidden], .bpf-tb [hidden], .bpf-sheet[hidden], .bpf-sheet [hidden] { display: none !important; }
.elementor-widget[hidden] { display: none !important; }
.bpf-ic { display: block; flex: 0 0 auto; }
.bpf-panel, .bpf-tb, .bpf-sheet { font-family: inherit; color: var(--bpf-text); }
.bpf-panel button, .bpf-tb button, .bpf-sheet button, .bpf-pop button { font-family: inherit; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }

.bpf-link, .bpf-link:hover, .bpf-link:focus, .bpf-link:visited {
	background: none; border: 0; padding: 4px 2px; margin: 0; cursor: pointer;
	color: var(--bpf-muted); font-size: 14px; font-weight: 400; line-height: 1.3;
	text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; box-shadow: none;
}
.bpf-link:hover { color: var(--bpf-ink); }

.bpf-field, .bpf-panel input[type="search"].bpf-field {
	width: 100%; height: 44px; box-sizing: border-box; border: 1px solid var(--bpf-field); border-radius: 8px;
	background: #fff; color: var(--bpf-ink); font-size: 16px; padding: 0 12px; margin: 0; box-shadow: none;
}
.bpf-field::placeholder { color: var(--bpf-ph); opacity: 1; }
.bpf-field:focus { border-color: var(--bpf-green); outline: 2px solid rgba(133, 200, 84, .25); outline-offset: 0; }

/* ---------------------------------------------------------------- panel */
.bpf-panel { display: flex; flex-direction: column; }
.bpf-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 10px; }
.bpf-panel__title { margin: 0; font-size: 20px; font-weight: 600; color: var(--bpf-ink); line-height: 1.3; }
.bpf-q { margin: 0 0 6px; }

.bpf-fg { border-top: 1px solid var(--bpf-line); }
.bpf-q + .bpf-fg, .bpf-panel__top + .bpf-fg { border-top: 0; }
.bpf-panel .bpf-fg__h, .bpf-panel .bpf-fg__h:hover, .bpf-panel .bpf-fg__h:focus, .bpf-pop .bpf-fg__h {
	width: 100%; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 0;
	background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; text-align: start;
	color: var(--bpf-ink); font-size: 14.5px; font-weight: 600; line-height: 1.3;
}
.bpf-fg__t { flex: 0 1 auto; }
.bpf-fg__sel {
	margin-inline-start: auto; color: var(--bpf-green-dk); font-weight: 500; font-size: 13px;
	max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bpf-fg__h .bpf-ic { color: var(--bpf-muted); transition: transform .2s; }
.bpf-fg__sel:empty + .bpf-ic { margin-inline-start: auto; }
.bpf-fg__h[aria-expanded="false"] .bpf-ic { transform: rotate(90deg); }
.bpf-fg__b { display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px; }
.bpf-fg__b .bpf-fsearch { height: 40px; margin: 0 0 6px; }

.bpf-opt, .bpf-sw { display: flex; align-items: center; gap: 9px; min-height: 36px; cursor: pointer; font-size: 14.5px; color: var(--bpf-text); line-height: 1.3; margin: 0; }
.bpf-opt input, .bpf-sw input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--bpf-green-dk); cursor: pointer; }
.bpf-opt__l, .bpf-sw__l { min-width: 0; overflow-wrap: anywhere; }
.bpf-c { color: var(--bpf-muted); font-size: 13px; margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.bpf-opt.is-dis { color: var(--bpf-dis); cursor: default; }
.bpf-opt.is-dis .bpf-c { color: #c9ccd0; }
.bpf-more { align-self: flex-start; }

.bpf-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.bpf-panel .bpf-cbtn, .bpf-panel .bpf-cbtn:hover, .bpf-panel .bpf-cbtn:focus, .bpf-tb .bpf-cbtn, .bpf-tb .bpf-cbtn:hover, .bpf-tb .bpf-cbtn:focus, .bpf-pop .bpf-cbtn {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; margin: 0;
	border: 1px solid var(--bpf-field); border-radius: 10px; background: #fff; color: var(--bpf-ink);
	font-size: 14px; font-weight: 400; line-height: 1; cursor: pointer; white-space: nowrap; box-shadow: none;
}
.bpf-panel .bpf-cbtn[aria-pressed="true"], .bpf-tb .bpf-cbtn[aria-pressed="true"], .bpf-pop .bpf-cbtn[aria-pressed="true"] {
	background: var(--bpf-tint); border-color: var(--bpf-green); color: var(--bpf-green-dk); font-weight: 600;
}
.bpf-panel .bpf-cbtn:disabled, .bpf-pop .bpf-cbtn:disabled { color: var(--bpf-dis); border-color: var(--bpf-line); background: #fff; cursor: default; }
.bpf-cbtn .bpf-c { font-size: 12.5px; margin: 0; }

/* dual range, RTL: minimum on the right */
.bpf-rng { padding: 2px 2px 0; }
.bpf-rng__t { position: relative; height: 30px; }
.bpf-rng__t::before { content: ""; position: absolute; inset-inline: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--bpf-line); }
.bpf-rng__fill { position: absolute; top: 13px; height: 4px; border-radius: 4px; background: var(--bpf-green); }
.bpf-rng__t input[type="range"] {
	position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; padding: 0; background: none;
	pointer-events: none; -webkit-appearance: none; appearance: none; border: 0; box-shadow: none;
}
.bpf-rng__t input[type="range"]::-webkit-slider-runnable-track { background: none; border: 0; }
.bpf-rng__t input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%;
	background: #fff; border: 2px solid var(--bpf-green-dk); cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bpf-rng__t input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--bpf-green-dk); cursor: grab; }
.bpf-rng__t input[type="range"]::-moz-range-track { background: none; }
.bpf-rng__t input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(133, 200, 84, .45); }
.bpf-rng__in { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.bpf-rng__in label { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--bpf-muted); margin: 0; min-width: 0; }
.bpf-rng__in input[type="number"] {
	width: 100%; min-width: 0; height: 40px; box-sizing: border-box; border: 1px solid var(--bpf-field); border-radius: 8px;
	font-size: 16px; padding: 0 10px; color: var(--bpf-ink); background: #fff; -moz-appearance: textfield; box-shadow: none;
}
.bpf-rng__dash { padding-bottom: 10px; color: var(--bpf-muted); }

/* ---------------------------------------------------------------- toolbar */
.bpf-tb { position: relative; }
.bpf-tb__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.bpf-count { font-size: 14.5px; font-weight: 600; color: var(--bpf-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bpf-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 200px; min-width: 0; align-items: center; }
.bpf-c:empty { display: none; }
.bpf-tb .bpf-chip, .bpf-tb .bpf-chip:hover, .bpf-tb .bpf-chip:focus, .bpf-tb .bpf-chip:visited {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; margin: 0;
	border: 1px solid var(--bpf-frame); border-radius: 10px; background: #fff; color: var(--bpf-ink);
	font-size: 13.5px; font-weight: 400; line-height: 1; cursor: pointer; white-space: nowrap; box-shadow: none;
}
.bpf-tb .bpf-chip:hover { border-color: var(--bpf-red); color: var(--bpf-red); }
.bpf-sort { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; white-space: nowrap; }
.bpf-sort label { color: var(--bpf-muted); font-size: 14px; margin: 0; }
.bpf-sort select {
	height: 40px; border: 1px solid var(--bpf-field); border-radius: 8px; background-color: #fff; color: var(--bpf-ink);
	font-size: 15px; padding: 0 10px; min-width: 180px; font-family: inherit;
}
.bpf-empty { margin-top: 16px; background: #fff; border: 1px solid var(--bpf-frame); border-radius: 12px; padding: 28px 20px; text-align: center; color: var(--bpf-muted); font-size: 15px; }
.bpf-empty strong { display: block; color: var(--bpf-ink); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.bpf-busy { opacity: .45; transition: opacity .15s; pointer-events: none; }
.bpf-tb.bpf-busy { opacity: 1; }
.bpf-tb.bpf-busy .bpf-count { opacity: .5; }

/* phone bar (shown ≤1024px) */
.bpf-tb__bar { display: none; }
.bpf-tb__btns { display: flex; gap: 8px; }
.bpf-tb .bpf-tbtn, .bpf-tb .bpf-tbtn:hover, .bpf-tb .bpf-tbtn:focus, .bpf-tb .bpf-tbtn:visited {
	flex: 1 1 0; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; margin: 0;
	border: 0; border-radius: 10px; background: #fff; color: var(--bpf-ink); font-size: 15px; font-weight: 600; line-height: 1;
	cursor: pointer; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.bpf-tbtn span { overflow: hidden; text-overflow: ellipsis; }
.bpf-badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--bpf-green); color: #fff; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; flex: 0 0 auto; }
.bpf-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bpf-quick::-webkit-scrollbar { display: none; }
.bpf-tb .bpf-qchip, .bpf-tb .bpf-qchip:hover, .bpf-tb .bpf-qchip:focus { flex: 0 0 auto; border-color: transparent; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bpf-tb .bpf-qchip[aria-pressed="true"] { border-color: var(--bpf-green); }

/* desktop top-bar pills */
.bpf-pills { display: none; }
.bpf-tb .bpf-pill, .bpf-tb .bpf-pill:hover, .bpf-tb .bpf-pill:focus, .bpf-tb .bpf-pill:visited {
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; margin: 0;
	border: 1px solid var(--bpf-field); border-radius: 10px; background: #fff; color: var(--bpf-ink);
	font-size: 14.5px; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap; box-shadow: none;
}
.bpf-tb .bpf-pill:hover { border-color: var(--bpf-green); }
.bpf-tb .bpf-pill.is-on { background: var(--bpf-tint); border-color: var(--bpf-green); color: var(--bpf-green-dk); font-weight: 600; }
.bpf-tb .bpf-pill--all, .bpf-tb .bpf-pill--all:hover, .bpf-tb .bpf-pill--all:focus { background: var(--bpf-ink); border-color: var(--bpf-ink); color: #fff; }
.bpf-pop { position: absolute; top: 46px; z-index: 50; width: 320px; max-height: 70vh; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.2); padding: 6px 16px 10px; }
.bpf-pop .bpf-fg { border: 0; }
.bpf-pop .bpf-fg:not(.is-solo), .bpf-pop .bpf-panel__top, .bpf-pop .bpf-q { display: none !important; }
.bpf-pop .bpf-fg__h { display: none !important; }
.bpf-pop .bpf-fg__b { padding-top: 8px; }

/* ---------------------------------------------------------------- sheets */
.bpf-sheet { position: fixed; inset: 0; z-index: 1000010; }
.bpf-sheet__bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.bpf-sheet__p {
	position: absolute; inset-inline: 0; bottom: 0; max-height: 90%; display: flex; flex-direction: column;
	background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.15);
	transform: translate3d(0, 100%, 0); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.bpf-sheet.is-open .bpf-sheet__bg { opacity: 1; }
.bpf-sheet.is-open .bpf-sheet__p { transform: none; }
.bpf-sheet--side .bpf-sheet__p { inset-inline-start: 0; inset-inline-end: auto; top: 0; bottom: 0; width: 380px; max-width: 92vw; max-height: none; border-radius: 0; transform: translate3d(100%, 0, 0); }
.bpf-sheet__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 6px 16px; padding-inline-start: 20px; border-bottom: 1px solid var(--bpf-line); }
.bpf-sheet__t { margin: 0; font-size: 20px; font-weight: 600; color: var(--bpf-ink); }
.bpf-sheet .bpf-icon-btn, .bpf-sheet .bpf-icon-btn:hover, .bpf-sheet .bpf-icon-btn:focus {
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0;
	border: 0; border-radius: 10px; background: none; color: var(--bpf-ink); cursor: pointer; box-shadow: none;
}
.bpf-sheet .bpf-icon-btn:hover { background: var(--bpf-chip); }
.bpf-sheet__b { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 12px; }
.bpf-sheet .bpf-panel__top { display: none; }
.bpf-sheet__f { border-top: 1px solid var(--bpf-line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bpf-sheet .bpf-btn, .bpf-sheet .bpf-btn:hover, .bpf-sheet .bpf-btn:focus, .bpf-sheet .bpf-btn:visited {
	width: 100%; height: 50px; border: 0; border-radius: 11px; margin: 0; padding: 0 20px;
	background: var(--bpf-green); color: #fff; font-size: 16px; font-weight: 700; line-height: 1;
	cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 7px 16px rgba(133,200,84,.25);
}
.bpf-sheet .bpf-btn:hover { background: var(--bpf-green-h); }
.bpf-sheet .bpf-btn:disabled { background: #cfd3d6; box-shadow: none; cursor: default; font-size: 15px; }
.bpf-sheet .bpf-btn.is-loading { opacity: .75; }
.bpf-sort-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--bpf-line); font-size: 16px; color: var(--bpf-ink); cursor: pointer; margin: 0; }
.bpf-sort-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--bpf-green-dk); }
body.bpf-sheet-open { overflow: hidden; }
body.bpf-sheet-open #ea11y-root, body.bpf-sheet-open .ba-root { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	.bpf-sheet__p, .bpf-sheet__bg, .bpf-fg__h .bpf-ic { transition: none; }
}

/* layout containers set in the template: row.bpf-layout > col.bpf-side + col.bpf-main */
.bpf-layout > .bpf-main, .bpf-layout > .e-con-inner > .bpf-main { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; --width: auto; }

/* ---------------------------------------------------------------- desktop ≥1025px */
@media (min-width: 1025px) {
	.bpf-layout { align-items: flex-start !important; }
	body.bpf-desk-sidebar .bpf-side {
		flex: 0 0 280px !important; width: 280px !important; --width: 280px; box-sizing: border-box;
		background: #fff; border: 1px solid var(--bpf-frame); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
		padding: 8px 18px 14px !important;
	}
	/* The sidebar scrolls with the page: no fixed position, no inner scrollbar (owner, 2026-11-16). */
	body.bpf-desk-sidebar .bpf-layout .elementor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	body.bpf-desk-top .bpf-side { display: none !important; }
	body.bpf-desk-top .bpf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; position: relative; }
	.bpf-tb__row { margin-bottom: 16px; }
}

/* ---------------------------------------------------------------- phones & tablets ≤1024px */
@media (max-width: 1024px) {
	.bpf-side { display: none !important; }
	/* The bar must stick along the whole product list, so its wrappers dissolve and it becomes a
	   direct child of the tall .bpf-main column (a sticky element only travels inside its parent). */
	.bpf-main > .elementor-widget-buldog_filter_toolbar,
	.bpf-main > .elementor-widget-buldog_filter_toolbar > .elementor-widget-container,
	.bpf-main .bpf-tb { display: contents; }
	.bpf-main .bpf-tb > * { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; align-self: stretch; }
	.bpf-tb__bar {
		display: block; position: sticky; top: var(--buldog-header-bottom, 86px); z-index: 50;
		margin: 0; padding: 10px 0 8px;
		/* Full-width background without negative margins (they overflowed the page by the gutter difference). */
		background: var(--app-bg, #f2f2f0); box-shadow: 0 0 0 100vmax var(--app-bg, #f2f2f0); clip-path: inset(0 -100vmax);
	}
	.bpf-sort { display: none; }
	.bpf-tb__row { margin: 6px 0 10px; gap: 6px; }
	.bpf-count { font-size: 13.5px; font-weight: 400; color: var(--bpf-muted); flex-basis: 100%; }
	.bpf-chips { flex-basis: 100%; }
	.bpf-chips:empty { display: none; }
	.bpf-sheet .bpf-fg__h { min-height: 52px; font-size: 16px; }
	.bpf-sheet .bpf-opt, .bpf-sheet .bpf-sw { min-height: 44px; font-size: 16px; }
	.bpf-sheet .bpf-opt input, .bpf-sheet .bpf-sw input { width: 20px; height: 20px; flex-basis: 20px; }
	.bpf-sheet .bpf-cbtn { height: 40px; font-size: 15px; }
}
