/**
 * Recently Viewed Products Component
 * Extracted from inline styles, cleaned up for theme use.
 */

.bm-rv {
	direction: rtl;
	max-width: 1200px;
	margin: 28px auto 24px;
	padding: 0 16px;
	font-family: "Open Sans Hebrew", sans-serif;
}

.bm-rv h2 {
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #1f1530 !important;
	margin: 0 0 12px !important;
}

.bm-rv-row {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	-webkit-overflow-scrolling: touch;
}

.bm-rv-c {
	flex: 0 0 150px;
	scroll-snap-align: start;
	text-decoration: none !important;
	color: #1f1530 !important;
	border: 1px solid #eee;
	border-radius: 12px;
	background: #fff;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bm-rv-c .im {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.bm-rv-c img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	margin: 0 !important;
}

.bm-rv-c .nm {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	height: 2.6em;
	overflow: hidden;
}

.bm-rv-c .pr {
	font-size: 14px;
	font-weight: 800;
}

.bm-rv-c .pr del {
	color: #999;
	font-weight: 400;
	font-size: 12px;
}

.bm-rv-c .pr ins {
	text-decoration: none;
	color: #ec4899;
}

.bm-rv-c:hover {
	border-color: #111;
}

/* Desktop: slightly wider cards */
@media (min-width: 1024px) {
	.bm-rv-c {
		flex-basis: 170px;
	}
}

/* Mobile adjustments */
@media (max-width: 767px) {
	.bm-rv {
		margin: 20px auto 16px;
		padding: 0 12px;
	}
	.bm-rv h2 {
		font-size: 20px !important;
		margin: 0 0 10px !important;
	}
	.bm-rv-row {
		gap: 10px;
	}
	.bm-rv-c {
		flex: 0 0 130px;
	}
	.bm-rv-c .nm {
		font-size: 12px;
		height: 2.4em;
	}
	.bm-rv-c .pr {
		font-size: 13px;
	}
}