/*
 * Mehrad vertical product slider with three image-only banners.
 * v1.0.119: uncropped responsive banners and native RTL mobile scrolling.
 */
.elementor-widget-mehrad_vertical_product_banners,
.elementor-widget-mehrad_vertical_product_banners .elementor-widget-container{
	width:100%;
	max-width:100%;
	min-width:0;
	margin:0!important;
	padding:0!important;
	overflow:visible;
}

.mehrad-vpb{
	--mvpb-panel:#ef0047;
	--mvpb-text:#fff;
	--mvpb-card:#fff;
	--mvpb-accent:#fff;
	--mvpb-progress:#fff;
	--mvpb-layout-height:300px;
	--mvpb-layout-image-size:148px;
	--mvpb-layout-title-size:16px;
	--mvpb-layout-product-width:37%;
	--mvpb-layout-outer-gap:10px;
	--mvpb-layout-banner-gap:10px;
	--mvpb-card-gap:8px;
	--mvpb-banner-height:300px;
	--mvpb-banner-fit:cover;
	display:grid;
	grid-template-columns:minmax(320px,var(--mvpb-layout-product-width)) minmax(0,1fr);
	align-items:stretch;
	gap:var(--mvpb-layout-outer-gap);
	width:100%;
	max-width:100%;
	min-width:0;
	margin:0!important;
	padding:0!important;
	direction:rtl;
}

.mehrad-vpb__product-viewport{
	position:relative;
	order:1;
	width:100%;
	height:var(--mvpb-layout-height);
	min-height:0;
	overflow-x:hidden;
	overflow-y:auto;
	border-radius:24px;
	background:transparent;
	cursor:grab;
	direction:rtl;
	scroll-snap-type:y mandatory;
	scroll-behavior:smooth;
	scrollbar-width:none;
	-ms-overflow-style:none;
	-webkit-overflow-scrolling:touch;
	overscroll-behavior-x:auto;
	overscroll-behavior-y:contain;
	touch-action:auto;
}
.mehrad-vpb__product-viewport::-webkit-scrollbar{display:none}
.mehrad-vpb.is-dragging .mehrad-vpb__product-viewport{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.mehrad-vpb.is-dragging,.mehrad-vpb.is-dragging *{user-select:none!important;-webkit-user-select:none!important}

.mehrad-vpb__product-track{
	display:flex;
	flex-direction:column;
	gap:var(--mvpb-card-gap);
	width:100%;
	min-width:0;
	margin:0;
	padding:0;
	transform:none!important;
	transition:none!important;
}

.mehrad-vpb__product{
	position:relative;
	display:grid;
	grid-template-columns:minmax(0,1fr) var(--mvpb-layout-image-size);
	align-items:center;
	gap:18px;
	flex:0 0 var(--mvpb-layout-height);
	width:100%;
	height:var(--mvpb-layout-height);
	min-height:var(--mvpb-banner-height);
	margin:0;
	padding:18px 20px 18px 34px;
	overflow:hidden;
	border-radius:24px;
	background:var(--mvpb-panel);
	color:var(--mvpb-text)!important;
	text-decoration:none!important;
	box-sizing:border-box;
	direction:rtl;
	isolation:isolate;
	scroll-snap-align:start;
	scroll-snap-stop:always;
}

.mehrad-vpb.has-pattern .mehrad-vpb__product::before{
	content:"";
	position:absolute;
	inset:0;
	z-index:-1;
	pointer-events:none;
	opacity:.05;
	background:
		radial-gradient(circle at 13% 22%,#fff 0 2px,transparent 2.5px) 0 0/25px 25px,
		linear-gradient(135deg,transparent 47%,#fff 48% 51%,transparent 52%) 0 0/42px 42px;
}

.mehrad-vpb__product-image{
	display:grid;
	place-items:center;
	width:var(--mvpb-layout-image-size);
	height:var(--mvpb-layout-image-size);
	justify-self:end;
	overflow:hidden;
	border-radius:18px;
	background:var(--mvpb-card);
	line-height:0;
}

.mehrad-vpb__product-image img,
.mehrad-vpb__product-image .wp-post-image{
	display:block!important;
	width:100%!important;
	height:100%!important;
	max-width:none!important;
	max-height:none!important;
	margin:0!important;
	padding:10px!important;
	border:0!important;
	border-radius:inherit!important;
	box-sizing:border-box!important;
	object-fit:contain!important;
	object-position:center!important;
}

.mehrad-vpb__product-content{
	display:flex;
	flex:1 1 auto;
	flex-direction:column;
	align-items:flex-start;
	justify-content:center;
	min-width:0;
	height:auto;
	direction:rtl;
	text-align:right;
}

.mehrad-vpb__product-title{
	display:-webkit-box;
	width:100%;
	margin:0;
	overflow:hidden;
	color:var(--mvpb-text);
	font-size:var(--mvpb-layout-title-size);
	font-weight:900;
	line-height:1.75;
	text-align:right;
	text-overflow:ellipsis;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
}

.mehrad-vpb__price{
	display:inline-flex;
	align-items:center;
	justify-content:flex-start;
	gap:6px;
	margin-top:14px;
	direction:ltr;
	white-space:nowrap;
}

.mehrad-vpb__price img{
	order:1;
	display:block!important;
	width:20px!important;
	height:20px!important;
	max-width:20px!important;
	max-height:20px!important;
	margin:0!important;
	padding:0!important;
	border:0!important;
	object-fit:contain!important;
	filter:brightness(0) invert(1)!important;
}

.mehrad-vpb__price strong{
	order:2;
	color:var(--mvpb-text);
	font-size:clamp(18px,1.45vw,24px);
	font-weight:1000;
	line-height:1;
	direction:rtl;
}

.mehrad-vpb__banners{
	order:2;
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	align-items:stretch;
	gap:var(--mvpb-layout-banner-gap);
	min-width:0;
	height:var(--mvpb-layout-height);
	margin:0;
	padding:0;
}

.mehrad-vpb__banner{
	display:block;
	min-width:0;
	height:var(--mvpb-banner-height);
	overflow:hidden;
	border-radius:22px;
	background:transparent!important;
	box-shadow:none!important;
	line-height:0;
	text-decoration:none!important;
}

.mehrad-vpb__banner img{
	display:block!important;
	width:100%!important;
	height:100%!important;
	max-width:none!important;
	max-height:none!important;
	margin:0!important;
	padding:0!important;
	border:0!important;
	border-radius:inherit!important;
	object-fit:var(--mvpb-banner-fit,cover)!important;
	object-position:center!important;
}

@media(max-width:1180px){
	.mehrad-vpb{
		--mvpb-layout-height:275px;
		--mvpb-layout-image-size:128px;
		--mvpb-layout-title-size:15px;
		--mvpb-layout-product-width:39%;
		--mvpb-layout-outer-gap:9px;
		--mvpb-layout-banner-gap:8px;
		grid-template-columns:minmax(300px,var(--mvpb-layout-product-width)) minmax(0,1fr);
	}
	.mehrad-vpb__product{gap:15px;padding:16px 18px 16px 28px}
	.mehrad-vpb__price{margin-top:12px}
}

/* Tablet and mobile use a horizontal product slider. */
@media(max-width:900px){
	.mehrad-vpb{
		--mvpb-layout-height:144px;
		--mvpb-layout-image-size:70px;
		--mvpb-banner-height:136px;
		--mvpb-banner-fit:contain;
		--mvpb-layout-title-size:13px;
		--mvpb-card-gap:8px;
		grid-template-columns:1fr;
		gap:10px;
	}

	.mehrad-vpb__product-viewport{
		order:1;
		height:var(--mvpb-layout-height);
		overflow-x:auto;
		overflow-y:hidden;
		border-radius:18px;
		direction:rtl;
		scroll-snap-type:x mandatory;
		scroll-behavior:smooth;
		overscroll-behavior-x:auto;
		overscroll-behavior-y:auto;
		touch-action:pan-y pinch-zoom;
	}

	.mehrad-vpb__product-track{
		flex-direction:row;
		width:100%;
		min-width:100%;
		direction:rtl;
	}

	.mehrad-vpb__product{
		display:flex;
		flex:0 0 100%;
		flex-direction:row;
		align-items:center;
		width:100%;
		max-width:100%;
		height:var(--mvpb-layout-height);
		min-height:var(--mvpb-layout-height);
		gap:10px;
		padding:9px 12px;
		border-radius:18px;
		direction:rtl;
	}

	.mehrad-vpb__product-image{
		order:1;
		flex:0 0 var(--mvpb-layout-image-size);
		width:var(--mvpb-layout-image-size);
		height:var(--mvpb-layout-image-size);
		justify-self:auto;
		border-radius:13px;
	}

	.mehrad-vpb__product-image img{padding:7px!important}
	.mehrad-vpb__product-content{order:2;flex:1 1 auto;min-width:0;align-items:flex-start}
	.mehrad-vpb__product-title{line-height:1.65;-webkit-line-clamp:2}
	.mehrad-vpb__price{gap:4px;margin-top:9px}
	.mehrad-vpb__price img{width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important}
	.mehrad-vpb__price strong{font-size:14px}

	.mehrad-vpb__banners{
		order:2;
		grid-template-columns:repeat(3,minmax(0,1fr));
		gap:var(--mvpb-layout-banner-gap);
		height:var(--mvpb-banner-height);
	}
	.mehrad-vpb__banner{height:var(--mvpb-banner-height);border-radius:15px}
}

@media(max-width:767px){
	.mehrad-vpb{
		--mvpb-layout-height:132px;
		--mvpb-layout-image-size:62px;
		--mvpb-banner-height:106px;
		--mvpb-layout-title-size:11px;
		--mvpb-card-gap:7px;
		--mvpb-layout-banner-gap:7px;
		gap:8px;
	}

	.mehrad-vpb__product{gap:9px;padding:8px 10px}
	.mehrad-vpb__product-image{border-radius:11px}
	.mehrad-vpb__product-image img{padding:5px!important}
	.mehrad-vpb__product-title{line-height:1.6;-webkit-line-clamp:2}
	.mehrad-vpb__price{margin-top:5px}
	.mehrad-vpb__price img{width:14px!important;height:14px!important;max-width:14px!important;max-height:14px!important}
	.mehrad-vpb__price strong{font-size:12.5px}
	.mehrad-vpb__banners{height:var(--mvpb-banner-height)}
	.mehrad-vpb__banner{height:var(--mvpb-banner-height);border-radius:13px}
}

@media(max-width:420px){
	.mehrad-vpb{
		--mvpb-layout-height:122px;
		--mvpb-layout-image-size:56px;
		--mvpb-banner-height:96px;
		--mvpb-layout-title-size:10.5px;
	}
	.mehrad-vpb__product{padding:7px 9px}
	.mehrad-vpb__banners{height:var(--mvpb-banner-height)}
	.mehrad-vpb__banner{height:var(--mvpb-banner-height);border-radius:12px}
}

@media(prefers-reduced-motion:reduce){
	.mehrad-vpb__product-viewport{scroll-behavior:auto}
}


@media(max-width:900px){
	.mehrad-vpb__product-viewport{
		-webkit-overflow-scrolling:touch;
		touch-action:pan-x pan-y;
		scroll-padding-inline:0;
	}
	.mehrad-vpb__product-track{
		justify-content:flex-start;
	}
	.mehrad-vpb__banner{
		display:grid;
		place-items:center;
		background:transparent!important;
	}
	.mehrad-vpb__banner img{
		object-fit:var(--mvpb-banner-fit,contain)!important;
		object-position:center!important;
	}
}
