/**
 * La-Kass Recently Viewed Products
 *
 * @package La-Kass
 * @since   1.0.0
 */

.lk-recently-viewed {
	margin: 50px 0 40px;
}

.lk-recently-viewed__title {
	font-size: 20px;
	font-weight: 700;
	color: #111;
	margin: 0 0 24px;
}

.lk-recently-viewed__grid {
	display: grid;
	grid-template-columns: repeat(var(--lk-rv-cols, 6), 1fr);
	gap: 20px;
}

.lk-recently-viewed__item {
	min-width: 0;
}

.lk-recently-viewed__link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s;
}

.lk-recently-viewed__link:hover {
	transform: translateY(-3px);
}

.lk-recently-viewed__image {
	background: #f8f8f8;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
	aspect-ratio: 1;
}

.lk-recently-viewed__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.lk-recently-viewed__link:hover .lk-recently-viewed__image img {
	transform: scale(1.05);
}

.lk-recently-viewed__name {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin: 0 0 4px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lk-recently-viewed__price {
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

.lk-recently-viewed__price del {
	color: #999;
	font-weight: 400;
	font-size: 12px;
}

.lk-recently-viewed__price ins {
	text-decoration: none;
	color: var(--lk-color-primary, #ff4d00);
}

/* Responsive */
@media (max-width: 1024px) {
	.lk-recently-viewed__grid {
		--lk-rv-cols: 4 !important;
	}
}

@media (max-width: 768px) {
	.lk-recently-viewed__grid {
		--lk-rv-cols: 3 !important;
	}
}

@media (max-width: 480px) {
	.lk-recently-viewed__grid {
		--lk-rv-cols: 2 !important;
		gap: 14px;
	}

	.lk-recently-viewed__name {
		font-size: 12px;
	}
}
