.wsr-products {
	--wsr-accent: var(--wp--preset--color--primary, #08aa9d);
	--wsr-border: rgba(15, 23, 42, 0.1);
	--wsr-radius: 14px;
	direction: rtl;
	margin: 32px 0;
	max-width: 100%;
}

.wsr-products__header {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.wsr-products__title {
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
}

.wsr-products__navigation {
	display: flex;
	gap: 8px;
}

.wsr-products__arrow {
	align-items: center;
	background: #fff;
	border: 1px solid var(--wsr-border);
	border-radius: 50%;
	color: #172033;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 38px;
	justify-content: center;
	padding: 0;
	transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease;
	width: 38px;
}

.wsr-products__arrow:hover:not(:disabled),
.wsr-products__arrow:focus-visible {
	border-color: var(--wsr-accent);
	color: var(--wsr-accent);
	outline: none;
}

.wsr-products__arrow:disabled {
	cursor: default;
	opacity: 0.35;
}

.wsr-products__track {
	display: grid;
	gap: 16px;
}

.wsr-products--slider .wsr-products__track {
	display: flex;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 2px 2px 14px;
	scroll-behavior: smooth;
	scroll-snap-type: inline mandatory;
	scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
	scrollbar-width: thin;
}

.wsr-products--grid .wsr-products__track {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.wsr-product-card {
	background: #fff;
	border: 1px solid var(--wsr-border);
	border-radius: var(--wsr-radius);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	position: relative;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.wsr-products--slider .wsr-product-card {
	flex: 0 0 var(--wsr-card-width, clamp(185px, 22vw, 255px));
	scroll-snap-align: start;
}

.wsr-elementor-empty {
	background: #f4fbfa;
	border: 1px dashed #8fc9c4;
	border-radius: 10px;
	color: #31566f;
	direction: rtl;
	padding: 24px;
	text-align: center;
}

.wsr-product-card:hover {
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
	transform: translateY(-2px);
}

.wsr-product-card__image {
	background: #f7faf9;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.wsr-product-card__image img {
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform 220ms ease;
	width: 100%;
}

.wsr-product-card:hover .wsr-product-card__image img {
	transform: scale(1.025);
}

.wsr-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
}

.wsr-product-card__title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.75;
	margin: 0;
}

.wsr-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.wsr-product-card__rating .star-rating {
	float: none;
	margin: 0;
}

.wsr-product-card__price {
	color: var(--wsr-accent);
	font-size: 0.95rem;
	font-weight: 700;
	margin-top: auto;
}

.wsr-product-card__price del {
	color: #8b929d;
	font-size: 0.82em;
	font-weight: 400;
}

.wsr-product-card__action {
	margin-top: 2px;
}

.wsr-product-card__button.button {
	align-items: center;
	background: var(--wsr-accent);
	border: 1px solid var(--wsr-accent);
	border-radius: 7px;
	box-sizing: border-box;
	color: #fff;
	display: inline-flex;
	font-size: 0.84rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.4;
	min-height: 40px;
	padding: 8px 12px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.wsr-product-card__button.button:hover,
.wsr-product-card__button.button:focus-visible {
	background: #fff;
	color: var(--wsr-accent);
}

@media (max-width: 767px) {
	.wsr-products {
		margin: 24px 0;
	}

	.wsr-products--slider .wsr-product-card {
		flex-basis: min(72vw, 225px);
	}

	.wsr-products--grid .wsr-products__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.wsr-product-card,
	.wsr-product-card__image img,
	.wsr-products--slider .wsr-products__track {
		scroll-behavior: auto;
		transition: none;
	}
}
