/**
 * SoftXAsia Recently Viewed Products — frontend styles.
 */

.sxrv-section {
	clear: both;
	margin: 2.5em 0;
	padding: 0;
	width: 100%;
}

.sxrv-section__title {
	font-size: 1.5em;
	margin: 0 0 0.5em;
}

.sxrv-section__description {
	color: #666;
	margin-bottom: 1.25em;
}

.sxrv-section__description p:last-child {
	margin-bottom: 0;
}

.sxrv-section__inner--full {
	width: 100%;
}

/* Slider layout (Slick) */
.sxrv-layout-slider .sxrv-slider-track {
	margin: 0;
	padding: 0;
}

.sxrv-layout-slider .sxrv-slider-track .slick-slide {
	padding: 0 10px;
	box-sizing: border-box;
}

.sxrv-layout-slider .sxrv-slider-track .slick-list {
	margin: 0 -10px;
}

.sxrv-layout-slider .slick-prev,
.sxrv-layout-slider .slick-next {
	z-index: 2;
}

/* Bootstrap card helpers (grid handled by Bootstrap) */
.sxrv-grid-bootstrap .sxrv-product.card .sxrv-product__inner {
	padding: 1rem;
}

.sxrv-grid-bootstrap .sxrv-product.card .sxrv-product__image-link {
	margin-bottom: 0.75em;
}

/* Plugin product card (Bootstrap fallback / slider slides) */
.sxrv-product__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.sxrv-product__image-link {
	display: block;
	overflow: hidden;
	position: relative;
}

.sxrv-product__image {
	display: block;
	height: auto;
	width: 100%;
}

.sxrv-product__title {
	font-size: 1em;
	line-height: 1.35;
	margin: 0 0 0.35em;
}

.sxrv-product__title a {
	text-decoration: none;
}

.sxrv-product__price {
	display: block;
	margin-bottom: 0.5em;
}

.sxrv-product__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: auto;
}

.sxrv-product .star-rating {
	margin-bottom: 0.35em;
}

.sxrv-product .onsale {
	left: 0.5em;
	position: absolute;
	top: 0.5em;
	z-index: 1;
}

.sxrv-add-to-cart {
	font-size: 0.9em;
}

.sxrv-product__wishlist:empty,
.sxrv-product__compare:empty {
	display: none;
}
