/*!
 * Sentio for Elementor - wc-recently-viewed widget styles
 * Extracted from frontend.css during the wc-recently-viewed / wc-product-reviews
 * `.sentio-rv` collision rename pass (DUPLICATE INIT round 2, 2026-04-20).
 *
 * All selectors renamed from `.sentio-rv*` to `.sentio-rcv*` to resolve a REAL
 * class-prefix collision with wc-product-reviews (both widgets previously used
 * `.sentio-rv` as their wrapper and shared the `__grid`, `__empty`, `__header`
 * child names with conflicting rules). wc-product-reviews keeps `.sentio-rv`;
 * wc-recently-viewed now owns `.sentio-rcv`. See `_audits/ports/wc-rv-pr-rename-port.md`.
 *
 * Backward-compat break: user custom CSS overrides targeting
 * `.sentio-rv__grid`, `.sentio-rv__card`, `.sentio-rv__empty`, etc. for the
 * recently-viewed widget will stop applying. Overrides for wc-product-reviews
 * are unaffected.
 *
 * Also includes the responsive 2-col grid rule that previously lived inside
 * wc-product-filters.css `@media (max-width: 767px)` as cross-widget bleed —
 * moved here where it belongs.
 */

/* ── WC-16  Recently Viewed ───────────────────────────────────────── */

.sentio-rcv__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.sentio-rcv__heading {
	font-size: 22px;
	font-weight: 700;
	color: #333;
	margin: 0;
}

.sentio-rcv__clear {
	padding: 6px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
	color: #999;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.sentio-rcv__clear:hover {
	color: #e53935;
	border-color: #e53935;
}

/* Grid */
.sentio-rcv__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

/* Sidebar */
.sentio-rcv__sidebar {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sentio-rcv__sidebar .sentio-rcv__card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
}

.sentio-rcv__sidebar .sentio-rcv__card-img {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
}

/* Card */
.sentio-rcv__card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sentio-rcv--hover-zoom .sentio-rcv__card:hover .sentio-rcv__card-img img {
	transform: scale(1.08);
}

.sentio-rcv--hover-lift .sentio-rcv__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.sentio-rcv--hover-glow .sentio-rcv__card:hover {
	box-shadow: 0 0 20px rgba(0,0,0,0.12);
}

.sentio-rcv__card-img {
	position: relative;
	overflow: hidden;
}

.sentio-rcv__card-img img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.sentio-rcv__card-info {
	padding: 10px 0 0;
}

.sentio-rcv__card-title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	margin-bottom: 4px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sentio-rcv__card-title:hover { color: #000; }

.sentio-rcv__card-price {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.sentio-rcv__card-price del { color: #bbb; }
.sentio-rcv__card-price ins { text-decoration: none; color: #e53935; }

.sentio-rcv__card-atc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 6px 12px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	margin-top: 6px;
	transition: background 0.2s ease;
}

.sentio-rcv__card-atc:hover { background: #111; }

/* Sale badge */
.sentio-rcv__card-sale {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 8px;
	background: #e53935;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 4px;
	line-height: 1.4;
	z-index: 1;
}

/* Rating */
.sentio-rcv__card-rating {
	font-size: 12px;
	color: #f4a700;
	letter-spacing: 1px;
	margin-bottom: 2px;
}

/* Carousel */
.sentio-rcv__carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
}

.sentio-rcv__carousel .sentio-rcv__card {
	flex: 0 0 calc(25% - 12px);
	min-width: 180px;
	scroll-snap-align: start;
}

.sentio-rcv__carousel::-webkit-scrollbar { height: 4px; }
.sentio-rcv__carousel::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
.sentio-rcv__carousel::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* Ticker */
.sentio-rcv__ticker {
	display: flex;
	gap: 16px;
	overflow: hidden;
	white-space: nowrap;
}

.sentio-rcv__ticker .sentio-rcv__card {
	flex: 0 0 auto;
	width: 140px;
}

/* Empty */
.sentio-rcv__empty {
	text-align: center;
	padding: 40px 20px;
	color: #ccc;
}

.sentio-rcv__empty p {
	color: #999;
	font-size: 14px;
	margin-top: 8px;
}

/* Responsive — moved from wc-product-filters.css @media block
 * (see file header). Mobile drops grid from 4 columns to 2. */
@media (max-width: 767px) {
	.sentio-rcv__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}
