/*!
 * Sentio for Elementor - wc-product-grid widget styles
 * Extracted from frontend.css during WC Batch 1 sub-batch 3 mechanical extraction (2026-04-20).
 * Tier 3 mechanical extraction — verbatim from monolith.
 */

/* ── WC-01 · Product Grid (.sentio-wpg) ─────────────────────────── */
/* 10 differentiators: 6 layouts, AJAX filters, quick-view, smart badges,
   AJAX add-to-cart, 8 hover effects, load-more, savings, wishlist, compare */

/* Empty state */
.sentio-wpg__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 40px 20px;
	text-align: center;
	color: #9ca3af;
	border: 2px dashed #e5e7eb;
	border-radius: 12px;
}

.sentio-wpg__empty-icon {
	font-size: 36px;
	margin-bottom: 12px;
	opacity: 0.5;
}

/* ── Filter Tabs ── */
.sentio-wpg__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.sentio-wpg__filter-btn {
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	background: transparent;
	border: 1px solid #e5e7eb;
	border-radius: 100px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.sentio-wpg__filter-btn:hover {
	color: #111827;
	border-color: #111827;
}

.sentio-wpg__filter-btn--active {
	color: #ffffff;
	background: #111827;
	border-color: #111827;
}

/* ── Grid Layout ── */
.sentio-wpg__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* ── Layout: List ── */
.sentio-wpg__grid--list {
	grid-template-columns: 1fr;
}

.sentio-wpg__grid--list .sentio-wpg__item {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 0;
}

/* ── Layout: Masonry ── */
.sentio-wpg__grid--masonry {
	display: block;
	column-count: 4;
	column-gap: 24px;
}

.sentio-wpg__grid--masonry .sentio-wpg__item {
	break-inside: avoid;
	margin-bottom: 24px;
}

/* ── Layout: Compact ── */
.sentio-wpg__grid--compact .sentio-wpg__item {
	border-radius: 6px;
}

.sentio-wpg__grid--compact .sentio-wpg__image {
	aspect-ratio: 1 / 1;
}

.sentio-wpg__grid--compact .sentio-wpg__content {
	padding: 10px 12px;
}

.sentio-wpg__grid--compact .sentio-wpg__title {
	font-size: 13px;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sentio-wpg__grid--compact .sentio-wpg__price {
	font-size: 14px;
	margin-bottom: 0;
}

.sentio-wpg__grid--compact .sentio-wpg__cat,
.sentio-wpg__grid--compact .sentio-wpg__rating,
.sentio-wpg__grid--compact .sentio-wpg__excerpt,
.sentio-wpg__grid--compact .sentio-wpg__savings {
	display: none;
}

.sentio-wpg__grid--compact .sentio-wpg__atc {
	padding: 6px 10px;
	font-size: 11px;
	margin-top: 6px;
}

.sentio-wpg__grid--compact .sentio-wpg__badges {
	top: 6px;
	left: 6px;
}

.sentio-wpg__grid--compact .sentio-wpg__badge {
	padding: 2px 6px;
	font-size: 9px;
}

.sentio-wpg__grid--compact .sentio-wpg__actions {
	top: 6px;
	right: 6px;
}

.sentio-wpg__grid--compact .sentio-wpg__action {
	width: 28px;
	height: 28px;
}

.sentio-wpg__grid--compact .sentio-wpg__action svg {
	width: 14px;
	height: 14px;
}

/* ── Layout: Card ── */
.sentio-wpg__grid--card .sentio-wpg__item {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sentio-wpg__grid--card .sentio-wpg__item:hover {
	border-color: #d1d5db;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.sentio-wpg__grid--card .sentio-wpg__image {
	margin: 8px 8px 0;
	border-radius: 12px;
	overflow: hidden;
}

.sentio-wpg__grid--card .sentio-wpg__content {
	padding: 16px 20px 20px;
}

.sentio-wpg__grid--card .sentio-wpg__atc {
	border-radius: 100px;
}

/* ── Layout: Overlay ── */
.sentio-wpg__grid--overlay .sentio-wpg__item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	min-height: 320px;
}

.sentio-wpg__grid--overlay .sentio-wpg__image {
	position: absolute;
	inset: 0;
}

.sentio-wpg__grid--overlay .sentio-wpg__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.sentio-wpg__grid--overlay .sentio-wpg__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sentio-wpg__grid--overlay .sentio-wpg__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 320px;
	padding: 24px;
	background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
	color: #ffffff;
}

.sentio-wpg__grid--overlay .sentio-wpg__cat {
	color: rgba(255, 255, 255, 0.7);
}

.sentio-wpg__grid--overlay .sentio-wpg__cat a {
	color: inherit;
}

.sentio-wpg__grid--overlay .sentio-wpg__cat a:hover {
	color: #ffffff;
}

.sentio-wpg__grid--overlay .sentio-wpg__title {
	color: #ffffff;
}

.sentio-wpg__grid--overlay .sentio-wpg__title a {
	color: inherit;
}

.sentio-wpg__grid--overlay .sentio-wpg__title a:hover {
	color: rgba(255, 255, 255, 0.8);
}

.sentio-wpg__grid--overlay .sentio-wpg__price {
	color: #ffffff;
}

.sentio-wpg__grid--overlay .sentio-wpg__price del {
	color: rgba(255, 255, 255, 0.5);
}

.sentio-wpg__grid--overlay .sentio-wpg__price ins {
	color: #fbbf24;
}

.sentio-wpg__grid--overlay .sentio-wpg__stars {
	color: #fbbf24;
}

.sentio-wpg__grid--overlay .sentio-wpg__review-count {
	color: rgba(255, 255, 255, 0.6);
}

.sentio-wpg__grid--overlay .sentio-wpg__excerpt {
	color: rgba(255, 255, 255, 0.7);
}

.sentio-wpg__grid--overlay .sentio-wpg__savings {
	color: #34d399;
}

.sentio-wpg__grid--overlay .sentio-wpg__atc {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.sentio-wpg__grid--overlay .sentio-wpg__atc:hover {
	background: rgba(255, 255, 255, 0.35);
}

.sentio-wpg__grid--overlay .sentio-wpg__item:hover {
	transform: none;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* ── Product Card ── */
.sentio-wpg__item {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sentio-wpg__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.sentio-wpg__item--oos {
	opacity: 0.7;
}

/* ── Image ── */
.sentio-wpg__image {
	position: relative;
	overflow: hidden;
	background: #f9fafb;
}

.sentio-wpg__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.sentio-wpg__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

.sentio-wpg__img--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
}

/* ── Hover Effect: Zoom ── */
.sentio-wpg__hover--zoom:hover .sentio-wpg__img--primary {
	transform: scale(1.08);
}

/* ── Hover Effect: Slide Up ── */
.sentio-wpg__hover--slide:hover .sentio-wpg__img--primary {
	transform: translateY(-10px);
}

/* ── Hover Effect: Image Swap ── */
.sentio-wpg__hover--swap:hover .sentio-wpg__img--primary {
	opacity: 0;
}
.sentio-wpg__hover--swap:hover .sentio-wpg__img--secondary {
	opacity: 1;
}

/* ── Hover Effect: Grayscale ── */
.sentio-wpg__hover--grayscale .sentio-wpg__img--primary {
	filter: grayscale(100%);
}
.sentio-wpg__hover--grayscale:hover .sentio-wpg__img--primary {
	filter: grayscale(0%);
}

/* ── Hover Effect: Shine ── */
.sentio-wpg__hover--shine::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.6s ease;
	z-index: 3;
	pointer-events: none;
}
.sentio-wpg__hover--shine:hover::after {
	left: 120%;
}

/* ── Hover Effect: Color Overlay ── */
.sentio-wpg__hover--overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.4s ease;
	z-index: 2;
	pointer-events: none;
}
.sentio-wpg__hover--overlay:hover::before {
	background: rgba(0, 0, 0, 0.15);
}

/* ── Hover Effect: Blur In ── */
.sentio-wpg__hover--blur:hover .sentio-wpg__img--primary {
	filter: blur(2px);
	transform: scale(1.05);
}

/* ── Hover Effect: Parallax ── */
.sentio-wpg__hover--parallax .sentio-wpg__img--primary {
	transform: scale(1.15);
	transition: transform 0.6s ease;
}
.sentio-wpg__hover--parallax:hover .sentio-wpg__img--primary {
	transform: scale(1.15) translateY(-8px);
}

/* ── Image Overlay Actions ── */
.sentio-wpg__actions {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 0;
	transform: translateX(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.sentio-wpg__item:hover .sentio-wpg__actions {
	opacity: 1;
	transform: translateX(0);
}

.sentio-wpg__action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #374151;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sentio-wpg__action:hover {
	background: #111827;
	color: #ffffff;
	transform: scale(1.1);
}

.sentio-wpg__wishlist--active {
	color: #ef4444;
	background: #fff;
}

.sentio-wpg__wishlist--active svg {
	fill: #ef4444;
}

.sentio-wpg__compare--active {
	color: #ffffff;
	background: #8b5cf6;
}

/* ── Badges ── */
.sentio-wpg__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sentio-wpg__badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sentio-wpg__badge--sale     { background: #ef4444; }
.sentio-wpg__badge--new      { background: #10b981; }
.sentio-wpg__badge--featured { background: #8b5cf6; }
.sentio-wpg__badge--hot      { background: #f97316; }
.sentio-wpg__badge--oos      { background: #6b7280; }

/* ── Content ── */
.sentio-wpg__content {
	padding: 16px;
}

.sentio-wpg__cat {
	font-size: 12px;
	color: #9ca3af;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sentio-wpg__cat a {
	color: inherit;
	text-decoration: none;
}

.sentio-wpg__cat a:hover {
	color: #111827;
}

.sentio-wpg__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 6px;
}

.sentio-wpg__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sentio-wpg__title a:hover {
	color: #6366f1;
}

/* Rating */
.sentio-wpg__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.sentio-wpg__stars {
	display: inline-flex;
	gap: 1px;
	color: #f59e0b;
	font-size: 13px;
	line-height: 1;
}

.sentio-wpg__stars i {
	display: inline-block;
}

.sentio-wpg__review-count {
	font-size: 12px;
	color: #9ca3af;
}

/* Price */
.sentio-wpg__price {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 4px;
}

.sentio-wpg__price del {
	font-size: 13px;
	font-weight: 400;
	color: #9ca3af;
	text-decoration: line-through;
	margin-right: 6px;
}

.sentio-wpg__price ins {
	text-decoration: none;
	color: #ef4444;
}

.sentio-wpg__savings {
	font-size: 12px;
	color: #10b981;
	font-weight: 600;
	margin-bottom: 4px;
}

/* Excerpt */
.sentio-wpg__excerpt {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	margin: 6px 0 10px;
}

/* ── Add to Cart ── */
.sentio-wpg__atc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	background: #111827;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.sentio-wpg__atc:hover {
	background: #374151;
	transform: translateY(-1px);
}

.sentio-wpg__atc-added {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #10b981;
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sentio-wpg__atc.added .sentio-wpg__atc-added {
	opacity: 1;
}

.sentio-wpg__atc.loading {
	pointer-events: none;
	opacity: 0.7;
}

.sentio-wpg__atc--select {
	background: transparent;
	color: #111827;
	border: 1px solid #e5e7eb;
}

.sentio-wpg__atc--select:hover {
	background: #f9fafb;
	border-color: #111827;
}

/* ── Pagination ── */
.sentio-wpg__pagination {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 32px;
}

.sentio-wpg__pagination a,
.sentio-wpg__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 14px;
	color: #6b7280;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.sentio-wpg__pagination a:hover {
	color: #111827;
	border-color: #111827;
}

.sentio-wpg__pagination .current {
	color: #ffffff;
	background: #111827;
	border-color: #111827;
}

/* Load More */
.sentio-wpg__loadmore-wrap {
	text-align: center;
	margin-top: 32px;
}

.sentio-wpg__loadmore {
	padding: 14px 40px;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	background: #ffffff;
	border: 2px solid #e5e7eb;
	border-radius: 100px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.sentio-wpg__loadmore:hover {
	border-color: #111827;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sentio-wpg__loadmore.loading {
	pointer-events: none;
	opacity: 0.6;
}

/* ── Quick View Modal ── */
.sentio-wpg__qv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sentio-wpg__qv-modal[hidden] {
	display: none;
}

.sentio-wpg__qv-modal--open {
	opacity: 1;
	visibility: visible;
}

.sentio-wpg__qv-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.sentio-wpg__qv-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
	overflow: auto;
	transform: translateY(20px) scale(0.96);
	transition: transform 0.3s ease;
}

.sentio-wpg__qv-modal--open .sentio-wpg__qv-content {
	transform: translateY(0) scale(1);
}

.sentio-wpg__qv-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
	color: #6b7280;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sentio-wpg__qv-close:hover {
	color: #111827;
	background: #f3f4f6;
}

.sentio-wpg__qv-body {
	padding: 32px;
	min-height: 200px;
}

.sentio-wpg__qv-body .sentio-wpg__qv-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: #9ca3af;
	font-size: 14px;
}

.sentio-wpg__qv-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.sentio-wpg__qv-gallery img {
	width: 100%;
	border-radius: 12px;
}

.sentio-wpg__qv-info .sentio-wpg__title {
	font-size: 22px;
	margin-bottom: 12px;
}

.sentio-wpg__qv-info .sentio-wpg__price {
	font-size: 20px;
	margin-bottom: 16px;
}

/* ── Compare Bar ── */
.sentio-wpg__compare-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #111827;
	color: #ffffff;
	padding: 14px 24px;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.sentio-wpg__compare-bar--visible {
	transform: translateY(0);
}

.sentio-wpg__compare-bar[hidden] {
	display: block !important;
}

.sentio-wpg__compare-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-size: 14px;
	max-width: 1200px;
	margin: 0 auto;
}

.sentio-wpg__compare-count {
	font-weight: 700;
	font-size: 18px;
}

.sentio-wpg__compare-btn {
	padding: 8px 24px;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	background: #ffffff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.sentio-wpg__compare-btn:hover {
	opacity: 0.9;
}

.sentio-wpg__compare-clear {
	padding: 8px 16px;
	font-size: 13px;
	color: #9ca3af;
	background: transparent;
	border: 1px solid #374151;
	border-radius: 6px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.sentio-wpg__compare-clear:hover {
	color: #ffffff;
}

/* ── Grid Animations ── */
.sentio-wpg__grid--loading .sentio-wpg__item {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.sentio-wpg__item--entering {
	animation: sentio-wpg-fadeIn 0.4s ease forwards;
}

@keyframes sentio-wpg-fadeIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.sentio-wpg__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.sentio-wpg__grid--masonry {
		column-count: 3;
	}

	.sentio-wpg__grid--overlay .sentio-wpg__item {
		min-height: 260px;
	}

	.sentio-wpg__grid--overlay .sentio-wpg__content {
		min-height: 260px;
	}
}

@media (max-width: 767px) {
	.sentio-wpg__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.sentio-wpg__grid--list {
		grid-template-columns: 1fr;
	}

	.sentio-wpg__grid--list .sentio-wpg__item {
		grid-template-columns: 1fr;
	}

	.sentio-wpg__grid--masonry {
		column-count: 2;
		column-gap: 12px;
	}

	.sentio-wpg__grid--masonry .sentio-wpg__item {
		margin-bottom: 12px;
	}

	.sentio-wpg__grid--overlay .sentio-wpg__item {
		min-height: 220px;
	}

	.sentio-wpg__grid--overlay .sentio-wpg__content {
		min-height: 220px;
		padding: 16px;
	}

	.sentio-wpg__content {
		padding: 12px;
	}

	.sentio-wpg__title {
		font-size: 13px;
	}

	.sentio-wpg__price {
		font-size: 14px;
	}

	.sentio-wpg__actions {
		opacity: 1;
		transform: translateX(0);
	}

	.sentio-wpg__qv-product {
		grid-template-columns: 1fr;
	}

	.sentio-wpg__filters {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.sentio-wpg__filters::-webkit-scrollbar {
		display: none;
	}

	.sentio-wpg__filter-btn {
		flex-shrink: 0;
	}
}
