/* ==========================================================================
   Recently Viewed Products Modern UI Stylesheet
   ========================================================================== */

.st-recently-viewed-section {
	padding: 45px 0;
	background: #ffffff;
	direction: rtl;
	text-align: right;
	border-top: 1px solid #f1f5f9;
}

.st-recently-viewed-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.st-recently-viewed-header {
	text-align: center;
	margin-bottom: 35px;
}

.st-recently-viewed-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0fdf4;
	color: #166534;
	font-size: 13px;
	font-weight: 800;
	padding: 5px 14px;
	border-radius: 20px;
	border: 1px solid #bbf7d0;
	margin-bottom: 10px;
}

.st-recently-viewed-title {
	font-size: 26px !important;
	font-weight: 900 !important;
	color: #0f172a !important;
	margin: 0 0 8px 0 !important;
	border: none !important;
	padding: 0 !important;
}

.st-recently-viewed-subtitle {
	font-size: 15px;
	color: #64748b;
	margin: 0;
}

/* Grid */
.st-recently-viewed-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

/* Card */
.st-rv-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.st-rv-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
	border-color: #cbd5e1;
}

.st-rv-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f8fafc;
	overflow: hidden;
}

.st-rv-img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.st-rv-img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.st-rv-card:hover .st-rv-img-link img {
	transform: scale(1.05);
}

.st-rv-badge-sale {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ef4444;
	color: #ffffff;
	font-weight: 800;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 12px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Content */
.st-rv-card-content {
	padding: 14px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.st-rv-card-title {
	font-size: 14px !important;
	font-weight: 800 !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.4 !important;
	height: 40px;
	overflow: hidden;
}

.st-rv-card-title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.st-rv-card-title a:hover {
	color: #2563eb;
}

.st-rv-rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.st-rv-stars {
	color: #f59e0b;
	font-size: 12px;
	letter-spacing: 1px;
}

.st-rv-score {
	font-size: 11px;
	font-weight: 800;
	color: #475569;
}

.st-rv-price-row {
	margin-top: auto;
	margin-bottom: 12px;
}

.st-rv-price {
	font-size: 15px;
	font-weight: 900;
	color: #0f172a;
}

.st-rv-price ins {
	text-decoration: none;
	color: #16a34a;
}

.st-rv-price del {
	font-size: 12px;
	color: #94a3b8;
	margin_left: 6px;
}

/* Add button */
.st-rv-add-btn {
	width: 100%;
	padding: 9px;
	background: #f1f5f9;
	color: #0f172a !important;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.st-rv-add-btn:hover {
	background: #0f172a;
	color: #ffffff !important;
	border-color: #0f172a;
}

@media (max-width: 640px) {
	.st-recently-viewed-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}
