/* ===== iWebsite Perfect Filter — Frontend Styles ===== */

	.shop-loop__wrap {
		margin-top: 65px;
	}

	.woocommerce .shop-loop__wrap ul.products li.product .woo-entry-inner li{
		margin: 0 auto;
	}
	.woocommerce .shop-loop__wrap ul.products li.product li.title h2, .woocommerce .shop-loop__wrap ul.products li.product li.title a{
		margin: 0 !important;
	}
	.woocommerce .shop-loop__wrap ul.products li.product li span.price {
		display: inherit !important;
	}
	.oceanwp-toolbar .custom-panel {
		display: flex;
		flex-direction: row-reverse;
		justify-content: start;
		column-gap: 20px;
		gap: 20px;
		background: #fff;
	}

	.product-filter-panel {
		/*display: grid;
		gap: 20px;
		grid-template-columns: repeat( 2, auto );
		width: auto;
		height: auto;
		border: none;*/
		width: 100%;
		display: flex;
	}

	/* RTL: кнопка максимально направо */
	.rtl .product-filter-panel {
		justify-content: flex-end;
	}

	/* LTR: кнопка максимально налево */
	.product-filter-panel {
		justify-content: flex-start;
	}

	#product-filter-toggle {
		position: relative;
		display: inline-block;
		width: 100% !important;
		max-width: 165px;
		min-width: 165px;
		height: 34px;
		padding: 0 15px;
		border: 1px solid #e3e3e3;
		border-radius: 2px;
		line-height: 34px;
		box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		display: none;
	}

	#product-filter-toggle:hover {
		cursor: pointer;
	}

	/*.woocommerce .woocommerce-ordering {
		max-width: 165px;
	}*/

	.woocommerce .woocommerce-ordering .orderby {
		max-width: 165px!important;
		min-width: 165px!important;
		margin-right: 165px;
		border: none;		
	}
	.theme-select:after {
		content: "";
		font-size: 16px;
		color: #000;
		border-left: none;
		top: -3px;
	}
	button.show-filter-results {
		font-size: 18px;
		border-style: none;
		border-radius: 0;
		padding: 5px 0;
		background-color: var( --e-global-color-primary );
		transition: all 0.2s;
		color: #fff;
	}
	/* Убрали стрелки из ::after - оставляем только те, что в DOM */

	body:not( .open-filter ) #product-filter-toggle .close-txt,
	.open-filter #product-filter-toggle .open-txt {
		display: none;
	}

	.selected-terms {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	/* Chip style for selected terms */
	.selected-terms .selected-term {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		height: auto;
		padding: 2px 8px;
		border: 1px solid #d1d5db;
		border-radius: 12px;
		background: #fff;
		cursor: pointer;
		box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		font-size: .85rem;
		line-height: 1.2;
	}
	.selected-terms .selected-term:hover { border-color: #2271b1; }
	.selected-terms .selected-term .close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 14px;
		height: 14px;
		border-radius: 50%;
		color: #6b7280;
	}
	.selected-terms .selected-term .close::before { content: '×'; }
	.selected-terms .selected-term .close:hover { color: #1d2327; }

	.clear-filter-settings {
		padding-top: 0;
		font-size: 1.2rem;
		line-height: 1.5;
		background-color: transparent;
		color: var( --ct-color-dark-gray );
		border: none;
		border-bottom: 1px solid var( --ct-color-middle-gray );
		position: absolute;
		left: 0;
		right: auto;
	}

	.clear-filter-settings:hover {
		background-color: transparent;
	text-decoration: underline;
}

	/* LTR correction for clear button position */
	body:not(.rtl) .clear-filter-settings {
		left: auto;
		right: 0;
	}

	.shop-loop__wrap {
		position: relative;
		display: flex;
		flex-direction: row-reverse;

	    /*grid-template-columns: repeat(2, 1fr);*/
	    /* new  */
	    /*grid-template-rows: repeat(2, 1fr);*/
		display: grid;
	}

	.shop-loop__wrap.grid {
		display: grid;
	}

	.shop-loop__wrap .products {
		flex: 1;
		position: relative;
		background-color: #fff;
		z-index: 25;
	}

	.shop-loop__wrap .products.no-products {
	  	grid-row-start: 2;
		/*grid-row-end: 2;*/
	}

	.filter-container.fiter-few-taxonomy {
		width: 0;
		overflow: hidden;
		/* width constantly */
		width: 165px;
		display: grid;
		grid-row-start: 1;
		grid-column-start: 1;
	    align-self: flex-start;
	    grid-row-end: 3;
	}

	.open-filter .filter-container.fiter-few-taxonomy {
		width: 165px;
	}

	.shop-loop__wrap .iwebsite-tax-filter {
		padding: 5px 0;
		border-bottom: 1px solid #e3e3e3;
	}

	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title {
		position: relative;
		margin-bottom: 0;
		font-size: 1.6rem;
		border: none;
		line-height: 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
		flex-direction: row-reverse;
	}
	/* RTL: текст слева, стрелка справа */
	.rtl .filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title {
		flex-direction: row;
	}

	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title.open-filter:hover {
		cursor: pointer;
	}

	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title .filter-toggle-icon .icon-open {
		display: inline-block;
		transition: transform 0.3s ease;
	}

	/* LTR по умолчанию: стрелка указывает налево (закрыто) */
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title .filter-toggle-icon .icon-open {
		transform: rotate(90deg);
	}

	/* LTR: при открытии стрелка вниз */
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title.open-filter.active .filter-toggle-icon .icon-open {
		transform: rotate(0deg);
	}

	/* RTL: стрелка указывает направо (закрыто) */
	.rtl .filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title .filter-toggle-icon .icon-open {
		transform: rotate(-90deg);
	}

	/* RTL: при открытии стрелка вниз */
	.rtl .filter-container.fiter-few-taxonomy .iwebsite-tax-filter .widget-title.open-filter.active .filter-toggle-icon .icon-open {
	transform: rotate(0deg);
}

	.filter-container.fiter-few-taxonomy .list-of-terms {
		display: grid;
		gap: 10px;
		max-height: 190px;
		margin-top: 20px;
		overflow-y: auto;
		overflow-x: hidden;
		list-style: none;
	padding: 0;
}

	.filter-container.fiter-few-taxonomy .list-of-terms li {
		list-style: none;
	margin: 0;
	padding: 0;
}

	/* Compact list items line height */
	.filter-container.fiter-few-taxonomy .list-of-terms,
	.filter-container.fiter-few-taxonomy .list-of-terms > li {
		line-height: 25px;
	}

	.iwebsite-price-filter-values {
		display: none;
	}

	.ui-slider.ui-slider-horizontal:hover,
	.ui-slider-horizontal .ui-slider-range:hover,
	.ui-slider-horizontal .ui-slider-handle:hover {
		cursor: pointer;
	}

	.ui-slider.ui-slider-horizontal {
		position: relative;
		width: calc( 100% - 40px );
		height: 2px;
		/* margin-top: 30px to cover ::after and 20px to add space under title */
		margin: 50px auto 10px;
		background-color: #e3e3e3;
		border: none;
		border-radius: 0;
		text-align: left;
	}

	.ui-slider-horizontal .ui-slider-range {
		position: absolute;
		top: 0;
		z-index: 1;
		height: 2px;
		background-color: #0654a2;
	}

	.ui-slider-horizontal .ui-slider-handle {
		position: absolute;
		top: -6px;
		z-index: 2;
		width: 14px;
		height: 14px;
		margin-left: -7px;
		background-color: #0654a2;
		border: 0;
		border-radius: 50%;
	}

	.ui-slider-horizontal .ui-slider-handle::after {
		content: attr( data-val ) "₪";
		position: absolute;
		bottom: calc( 100% + 4px );
		left: 50%;
		font-size: 1.2rem;
		transform: translateX( -50% );
		width: 35px;
	}
	/* Show % label for discount slider */
	#iwebsite-price-filter_percent .ui-slider-handle::after {
		content: attr( data-val ) "%";
	}

	.filter-control-buttons-container {
		margin-top: 30px;
	}

	.filter-control-buttons-container button.show-filter-results {
		display: block;
		width: 100%;
	}

	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .count,
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter.filter-color .count,
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter.filter-size .count {
		color: #b6b6b6;
		font-size: 1rem;
	}

	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .count::before, 
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter.filter-color .count::before,
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter.filter-size .count::before,
	.filter-control-buttons-container button .count::before {
		content: '(';
	}

	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter .count::after, 
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter.filter-color .count::after,
	.filter-container.fiter-few-taxonomy .iwebsite-tax-filter.filter-size .count::after,
	.filter-control-buttons-container button .count::after {
		content: ')';
	}

	/* Accent color for arrow icon */
	span.filter-toggle-icon {
		color: var( --ct-color-accent );
	}

	/* Do not wrap button counter in parentheses */
	.filter-control-buttons-container button .count::before,
	.filter-control-buttons-container button .count::after {
		content: '';
	}

	/*.filter-control-buttons-container button {
		font-size: 1.2rem;
		line-height: 1.5;
		background-color: #000;
		border: 1px solid #000;
		color: #fff;
		border-radius: 2px;
	}*/

	button.show-filter-results.ready .show-result,
	button.show-filter-results.process .show-result,
	button.show-filter-results span.thinking,
	button.show-filter-results span.count,
	button.show-filter-results.active.ready span.count::before,
	button.show-filter-results.active.ready span.count::after,
	button.show-filter-results span.items {
		display: none;
	}

	button.show-filter-results.process {
		opacity: 0.7;
	}

	button.show-filter-results.ready span.items {
		display: inline;
	}

	button.show-filter-results.process span.thinking {
		display: block;
	}

	button.show-filter-results.active span.count {
		display: inline-block;
		padding-right: 5px;
		padding-left: 5px;
	}

	.filter-control-buttons-container button.clear-filter-mobile {
		display: none;
	}

	.elementor-widget-wc-archive-products .woocommerce.columns-4 ul.products.no-products {
		display: block;
		/* new
		*/
		display: grid;
		grid-column-start: 2;
		grid-row-start: 1;
		grid-template-columns: repeat(1,4fr);
	}

	.elementor-widget-wc-archive-products .woocommerce.columns-4 ul.products {
		display: grid;
		grid-column-start: 2;
		grid-row-start: 1;	
	}

	ul.products  p.woocommerce-info {
		text-align: center;
		color: #C00;
	    font-size: 2rem;
	    border: none;
	}

	ul.products p.woocommerce-info:before {
		margin-right: 0;
		margin-left: 10px;
	}

	.abs-center {
		position: absolute;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%,-50%);
		-moz-transform: translate(-50%,-50%);
		-ms-transform: translate(-50%,-50%);
		-o-transform: translate(-50%,-50%);
		transform: translate(-50%,-50%);	
	}

	.iwebsite-ajax-preloader {
		position: absolute;
		top: 0;
		left: 0;
	width: 100%;
		height: 100%;
	    background-color: rgb(255 255 255 / 50%);
		z-index: 200;
		opacity: 0;
		visibility: hidden;
	}

	.iwebsite-ajax-preloader--inner {
		position: absolute;
		top: 150px;

		left: 50%;
		-webkit-transform: translateX(-50%);
		-moz-transform: translateX(-50%);
		-ms-transform: translateX(-50%);
		-o-transform: translateX(-50%);
		transform: translateX(-50%);	
	}

	.iwebsite-ajax-preloader.active {
		opacity: 1;
		visibility: visible;
	}

	/* Global padding for filter header */
	.iwebsite-ajax-filter-header {
		padding: 10px 0;
	}

	.iwebsite-pagination-container {
	display: none;
}
	.oceanwp-toolbar.clr {
		padding: 0 !important;
		margin: 0 !important;
	}

	.woocommerce .oceanwp-toolbar {
		border: none;
	}
	form.woocommerce-ordering {
		margin-top: 0 !important;
	}
	@media screen and ( max-width: 1023px ) {
		.oceanwp-toolbar .custom-panel {
			clear: both;
		}

		.selected-terms-container {
			display: none;
		}

		.open-filter .filter-container.fiter-few-taxonomy {
			/*		position: absolute;
			top: 0;
			width: 100%;
			background: #fff;
			z-index: 30;
			*/
			padding: 20px 20px 0;
		}

		.filter-control-buttons-container {
			display: flex;
			justify-content: space-between;
			margin-top: 30px;
		}

		.filter-control-buttons-container button {
			min-width: 45%;
			height: 35px;
		}

		.filter-control-buttons-container button.show-filter-results,
		.filter-control-buttons-container button.clear-filter-mobile {
			display: inline-block;
			width: auto;
		}
	}
			
	@media screen and ( max-width: 782px ){
		
		#product-filter-toggle {
			display: block;
		}
		.oceanwp-toolbar.clr > .woocommerce-ordering {
			display: none !important;
		}
		.mobile-visible {
			display: block;
		}
		.woocommerce .woocommerce-ordering .orderby {
			margin-right: 15px;
			border: none;
			font-size: 14px !important;
			color: #1a1a1a;
			font-weight: 600;
		}	
		#product-filter-toggle {
			display: block;
			margin-right: 15px;
			border: none;
			font-weight: 600;
			color: #1a1a1a;
		}		
		.mobile-visible {
			position: absolute;
			left: 0;
			border-right: 1px solid #ccc;
			width: 50%;
			display: block !important;
			top: 0;				
		}
		.elementor-element-697ded39, 
		html #wpadminbar {
			display: none!important;
		}
		html {
			margin-top: 0!important;
		}

		.filter-container.fiter-few-taxonomy {    
			position: fixed	;
		    top: 0;
		    right: -100%;
		    bottom: auto;
		    z-index: 300;
		    background-color: #fff;
		    width: 250px;
			padding: 90px 20px 50px;
		    overflow-y: auto;
			overflow-x: hidden;
			height: 100vh;
		}

		.open-filter .filter-container.fiter-few-taxonomy {
			right: 0;
			width: 250px;
			padding: 90px 20px 40px;
		}

		.shop-loop__wrap .iwebsite-tax-filter {
			padding: 0 0 18px;
			border-bottom: none;
		}

		button.reset-all.clear-filter-settings {
		    border: none;
		    position: absolute;
		    left: 10px;
		    top: 30px;
		    padding: 0;
		    color: #000;
		}

		/* overlay
		*/
		.iwebsite-ajax-filter-mobile-overlay {
			position: fixed;
		    top: 0;
		    right: 0;
		    width: 100%;
	height: 100%;
		    background-color: #000;
		    z-index: 95;
		    opacity: 0;
		    visibility: hidden;
		}

		.open-filter .iwebsite-ajax-filter-mobile-overlay {
			opacity: 0.4;
			visibility: visible;
		}
		/**/

		.iwebsite-ajax-filter-header {
		   	position: fixed;
		    top: 0;
		    width: 100%;
		    right: inherit;
		    padding: 0 15px;
	        box-shadow: 2px 0px 10px 0px #aeaeae;
	background: #fff;
            height: 70px;
            display: block;
            max-width: 250px;
			z-index: 20;
		}

		.iwebsite-ajax-filter-header .sinun {
			letter-spacing: 0.7px;
			font-size: 2rem;
			margin: 0;
			line-height: 70px;
		}

		.iwebsite-ajax-filter-close{
		    display: flex;
		    -ms-flex-pack: center;
		    justify-content: center;
		    -ms-flex-align: center;
	align-items: center;
		    position: absolute;
		    left: 5px;
		    padding: 0;
		    width: 33px;
		    height: 33px;
		    font-size: 18px;
		    font-family: Raleway;
		    font-weight: bold;
		    color: black;
	cursor: pointer;
		}

		.filter-container.fiter-few-taxonomy .list-of-terms {
			margin:7px 0 0;
		}

		.filter-control-buttons-container {
		    position: fixed;
		    bottom: 0;
		    max-width: 250px;
		    width: 100%;
		    z-index: 999;
		    background-color: #fff;
		    margin: 0;
		} 

		.filter-container .filter-control-buttons-container .clear-filter-mobile {
			display: none
		}

		.filter-control-buttons-container button.show-filter-results {
			width: 100%;
		}
	}

	@media screen and ( max-width: 480px ){

		.woocommerce .woocommerce-ordering .orderby, 
		#product-filter-toggle {
		    max-width: 150px!important;
		    min-width: 150px!important;
			margin-right: 0 !important;
		    /*ont-size: 11px;*/
			border: none;
		}

		#product-filter-toggle {
			padding: 0 20px 0 0 ;
	text-align: right;
}

		.oceanwp-toolbar .custom-panel {
			gap: 0;
			float: left;
		}
		.product-filter-panel {
			display: block;
			width: calc(50% - 35px);
			right: 25px;
			left: auto;
			position: absolute;
			top: 0;
		}
	}

	@media screen and ( max-width: 420px ){
		.product-filter-panel {
			gap: 0;
		}
		
	}
