/* Netrevven shop filters – values measured on production (netrevven.com/shop, Razzi). RTL: logical properties throughout. */

/* ---------- Sidebar filter ---------- */
.nr-pf-overlay,
.nr-pf .nr-pf__header { display: none; }

.nr-pf .nr-pf__group + .nr-pf__group { margin-top: 45px; }

.nr-pf .nr-pf__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0 0 35px;
	padding: 0 0 10px;
	border: 0;
	border-bottom: 1px solid #e2e2e2;
	border-radius: 0;
	background: none;
	color: #111;
	font: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 18px;
	text-align: start;
	cursor: pointer;
}
.nr-pf .nr-pf__title:hover, .nr-pf .nr-pf__title:focus { background: none; color: #111; }
.nr-pf .nr-pf__title .nr-icon { flex: none; transition: transform .2s; }
/* RTL: a collapsed group's chevron points toward the inline end (left). */
.nr-pf .nr-pf__group:not(.is-open) .nr-pf__title .nr-icon { transform: rotate(90deg); }
.nr-pf .nr-pf__group:not(.is-open) .nr-pf__body { display: none; }

.nr-pf .nr-pf__search { position: relative; margin-bottom: 30px; }
.nr-pf .nr-pf__search input {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 10px 15px;
	padding-inline-end: 40px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	-webkit-appearance: none;
	appearance: none;
}
.nr-pf .nr-pf__search input::-webkit-search-cancel-button { display: none; }
.nr-pf .nr-pf__search .nr-icon {
	position: absolute;
	inset-inline-end: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #111;
	pointer-events: none;
}

.nr-pf .nr-pf__options,
.nr-pf .nr-pf__children { margin: 0; padding: 0; list-style: none; }
.nr-pf .nr-pf__options.is-scroll { max-height: 275px; overflow-y: auto; overscroll-behavior: contain; }

.nr-pf .nr-pf__option { position: relative; margin: 0; padding: 0; }
.nr-pf .nr-pf__option.is-hidden { display: none; }

.nr-pf .nr-pf__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 3px 0;
	padding-inline-end: 24px;
	border: 0;
	border-radius: 0;
	background: none;
	color: #525252;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: start;
	cursor: pointer;
}
.nr-pf .nr-pf__opt:hover, .nr-pf .nr-pf__opt:focus { background: none; color: #111; }
.nr-pf .nr-pf__option.is-selected > .nr-pf__opt { color: #111; }

.nr-pf .nr-pf__box { position: relative; flex: 0 0 18px; width: 18px; height: 18px; background: #e2e2e2; }
.nr-pf .nr-pf__option.is-selected > .nr-pf__opt .nr-pf__box { background: #1f1f1f; }
.nr-pf .nr-pf__option.is-selected > .nr-pf__opt .nr-pf__box::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 6px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.nr-pf .nr-pf__count { margin-inline-start: -4px; color: #767676; font-size: 14px; }
.nr-pf .nr-pf__count::before { content: "("; }
.nr-pf .nr-pf__count::after { content: ")"; }

.nr-pf .nr-pf__toggler {
	position: absolute;
	inset-inline-end: 0;
	top: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	cursor: pointer;
}
.nr-pf .nr-pf__toggler:hover, .nr-pf .nr-pf__toggler:focus { background: none; color: #111; }
.nr-pf .nr-pf__toggler .nr-icon { transition: transform .2s; }
.nr-pf .nr-pf__option.is-expanded > .nr-pf__toggler .nr-icon { transform: rotate(180deg); }
.nr-pf .nr-pf__children { display: none; padding-inline-start: 28px; }
.nr-pf .nr-pf__option.is-expanded > .nr-pf__children { display: block; }

/* Colour swatches */
.nr-pf .nr-pf__options.is-swatches .nr-pf__opt { gap: 12px; padding-block: 6px; line-height: 22px; }
.nr-pf .nr-pf__swatch {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.nr-pf .nr-pf__option.is-selected > .nr-pf__opt .nr-pf__swatch { outline: 2px solid #1f1f1f; outline-offset: 2px; }

/* Price (WooCommerce price slider) */
.elementor-widget-nr-products-filter .nr-pf .nr-price { padding: 0 8px; }
.elementor-widget-nr-products-filter .nr-pf .price_slider { position: relative; height: 1px; margin: 12px 0 22px; border: 0; background: #1f1f1f; }
.elementor-widget-nr-products-filter .nr-pf .ui-slider .ui-slider-range { position: absolute; top: 0; height: 1px; border: 0; background: #1f1f1f; }
.elementor-widget-nr-products-filter .nr-pf .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	top: -8px;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border: 0;
	border-radius: 50%;
	outline: 0;
	background: #111;
	cursor: ew-resize;
}
.elementor-widget-nr-products-filter .nr-pf .price_slider_amount { text-align: center; }
.elementor-widget-nr-products-filter .nr-pf .price_slider_amount input,
.elementor-widget-nr-products-filter .nr-pf .price_slider_amount .button { display: none; }
.elementor-widget-nr-products-filter .nr-pf .price_label { color: #1f1f1f; font-size: 14px; line-height: 21px; text-align: center; }
/* RTL: WooCommerce's RTL stylesheet forces .price_label to LTR (for its LTR slider). This slider runs RTL, so the
   label reads right-to-left too – "מחיר:", then the minimum, then the maximum – with each price kept intact. */
.elementor-widget-nr-products-filter .nr-pf .nr-price .price_label { direction: rtl; unicode-bidi: isolate; }
.elementor-widget-nr-products-filter .nr-pf .nr-price .price_label .from,
.elementor-widget-nr-products-filter .nr-pf .nr-price .price_label .to { direction: ltr; unicode-bidi: isolate; }

/* ---------- Sorting ---------- */
.nr-sort { position: relative; display: inline-block; max-width: 100%; }
.elementor-widget-nr-catalog-ordering .nr-sort__select {
	box-sizing: border-box;
	width: 231px;
	max-width: 100%;
	height: 50px;
	margin: 0;
	padding: 12px 25px;
	padding-inline-end: 40px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	color: #767676;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.elementor-widget-nr-catalog-ordering .nr-sort .nr-icon {
	position: absolute;
	inset-inline-end: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #767676;
	pointer-events: none;
}

/* ---------- Active filter chips ---------- */
.nr-af { display: flex; flex-wrap: wrap; gap: 10px; margin: 19px 0 30px; }
.nr-af:empty { display: none; }
.nr-af .nr-af__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 15px 8px;
	border: 0;
	border-radius: 0;
	background: #f5f5f5;
	color: #767676;
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
}
.nr-af .nr-af__chip:hover, .nr-af .nr-af__chip:focus { background: #f5f5f5; color: #111; }
.nr-af .nr-af__chip .nr-icon { width: 12px; height: 12px; }

/* ---------- Mobile filter toggle ---------- */
.elementor-widget-nr-filter-toggle .nr-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}
.elementor-widget-nr-filter-toggle .nr-filter-toggle:hover, .elementor-widget-nr-filter-toggle .nr-filter-toggle:focus { background: none; color: #111; }

/* ---------- Loading ---------- */
.nr-shop-loading .nr-archive-grid,
.nr-shop-loading .nr-pf__groups { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* ---------- Tablet & mobile: off-canvas panel from the left, as on production ---------- */
@media (max-width: 1024px) {
	.nr-pf {
		position: fixed;
		z-index: 100001;
		top: 0;
		bottom: 0;
		left: 0;
		box-sizing: border-box;
		width: min(85vw, 360px);
		padding: 0 20px 30px;
		overflow-y: auto;
		background: #fff;
		transform: translateX(-100%);
		transition: transform .3s ease;
	}
	body.nr-pf-open { overflow: hidden; }
	body.nr-pf-open .nr-pf { transform: none; box-shadow: 0 0 30px rgba(0, 0, 0, .15); }
	.nr-pf-overlay {
		display: block;
		position: fixed;
		z-index: 100000;
		inset: 0;
		background: rgba(0, 0, 0, .4);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}
	body.nr-pf-open .nr-pf-overlay { opacity: 1; visibility: visible; }
	.nr-pf .nr-pf__header {
		display: flex;
		position: relative;
		align-items: center;
		justify-content: center;
		height: 60px;
		margin: 0 -20px 24px;
		border-bottom: 1px solid #e2e2e2;
	}
	.nr-pf .nr-pf__heading { color: #111; font-size: 18px; font-weight: 500; }
	/* Same round close button as the product popups. */
	.nr-pf .nr-pf__close {
		position: absolute;
		top: 50%;
		left: 16px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #f2f2f2;
		color: #111;
		cursor: pointer;
		transform: translateY(-50%);
		transition: background-color .2s, color .2s;
	}
	.nr-pf .nr-pf__close .nr-icon { width: 18px; height: 18px; transition: transform .25s ease; }
	.nr-pf .nr-pf__close:hover { background: #111; color: #fff; }
	.nr-pf .nr-pf__close:hover .nr-icon { transform: rotate(90deg); }
	.nr-pf .nr-pf__close:focus { outline: none; background: #f2f2f2; color: #111; }
	.nr-pf .nr-pf__close:focus-visible { outline: 2px solid #EE2C1F; outline-offset: 2px; }
}
