/* Sparkton Product Showcase Gallery */
.psgc-widget {
	--psgc-height: 560px;
	--psgc-gap: 1.2%;
	--psgc-row-gap: 16px;
	--psgc-side-ratio: 4 / 5;
	--psgc-center-ratio: 1 / 1;
	--psgc-center-width: 2;
	--psgc-active-scale: 1.04;
	--psgc-bob-distance: 7;
	--psgc-bob-duration: 8s;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	isolation: isolate;
	background: transparent;
}

.psgc-widget *,
.psgc-widget *::before,
.psgc-widget *::after {
	box-sizing: border-box;
}

.psgc-source {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
}

.psgc-widget.is-ready .psgc-source {
	display: none;
}

.psgc-viewport {
	position: relative;
	width: 100%;
	height: var(--psgc-height);
	overflow: hidden;
}


.psgc-widget:not(.is-ready) .psgc-viewport {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

.psgc-track {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--psgc-gap);
	width: 100%;
	height: 100%;
	visibility: hidden;
}

.psgc-widget.is-ready .psgc-track {
	visibility: visible;
}

.psgc-col {
	position: relative;
	display: flex;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: var(--psgc-row-gap);
	transform: translateZ(0);
	will-change: transform;
}

.psgc-col.is-center {
	flex-grow: var(--psgc-center-width);
	flex-basis: 0;
	width: auto;
	z-index: 5;
}

.psgc-has-bob .psgc-col {
	animation: psgc-column-bob var(--psgc-bob-duration) cubic-bezier(.55,.03,.23,.99) infinite alternate;
}

.psgc-has-bob .psgc-col:nth-child(2n) {
	animation-direction: alternate-reverse;
}

.psgc-widget.is-animating .psgc-col,
.psgc-widget.is-paused .psgc-col {
	animation-play-state: paused;
}

@keyframes psgc-column-bob {
	0% { transform: translateY(var(--psgc-bob-up-soft, -5px)); }
	50% { transform: translateY(var(--psgc-bob-down, 4px)); }
	100% { transform: translateY(var(--psgc-bob-up, -7px)); }
}

.psgc-slot {
	position: relative;
	width: 100%;
	aspect-ratio: var(--psgc-side-ratio);
	min-width: 0;
}

.psgc-slot.is-center {
	aspect-ratio: var(--psgc-center-ratio);
	z-index: 4;
}

.psgc-slot.is-empty {
	visibility: hidden;
	pointer-events: none;
}

.psgc-card {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.psgc-source > .psgc-card {
	position: relative;
	inset: auto;
	aspect-ratio: 4 / 5;
}

.psgc-card-shell,
.psgc-card-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 16px;
}

.psgc-card-shell {
	transition: transform .35s ease;
}

.psgc-card-inner {
	overflow: hidden;
	border: 1px solid rgba(17, 24, 39, .08);
	background: #eef1f3;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .10);
	transform: translateZ(0) scale(1);
	transform-origin: center;
	transition: transform .6s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
	will-change: transform;
}

.psgc-slot.is-center .psgc-card-inner {
	transform: translateZ(0) scale(var(--psgc-active-scale));
	box-shadow: 0 16px 42px rgba(15, 23, 42, .18);
}

.psgc-card:focus-within .psgc-card-inner {
	outline: 3px solid rgba(69, 131, 0, .48);
	outline-offset: 3px;
}

.psgc-media,
.psgc-image-link {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.psgc-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: 50% 50%;
	border: 0;
	border-radius: inherit;
	transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .35s ease;
	backface-visibility: hidden;
}

.psgc-scrim {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(180deg, rgba(7, 12, 18, .02) 30%, rgba(7, 12, 18, .30) 56%, rgba(7, 12, 18, .92) 100%);
	pointer-events: none;
	z-index: 2;
}

.psgc-content {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	padding: 34px 14px 14px;
	background: transparent;
	color: #fff;
	z-index: 4;
}

.psgc-category,
.psgc-title,
.psgc-title a,
.psgc-price,
.psgc-description,
.psgc-review-count {
	margin: 0 !important;
	text-decoration: none !important;
}

.psgc-category {
	display: block;
	max-width: 100%;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255,255,255,.82);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.psgc-title {
	display: -webkit-box;
	max-width: 100%;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: clamp(11px, 1.05vw, 16px);
	font-weight: 700;
	line-height: 1.22;
	color: #fff;
}

.psgc-title a {
	color: inherit;
}

.psgc-rating-row {
	display: flex;
	align-items: center;
	gap: 5px;
	min-height: 14px;
}

.psgc-rating .star-rating {
	float: none;
	font-size: 11px;
	width: 5.4em;
	height: 1em;
	line-height: 1;
	color: #ffb400;
}

.psgc-review-count {
	font-size: 10px;
	line-height: 1;
	color: rgba(255,255,255,.75);
}

.psgc-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 5px;
	font-size: clamp(11px, 1vw, 16px);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.psgc-price ins,
.psgc-price del {
	background: transparent;
	text-decoration-thickness: 1px;
}

.psgc-price ins {
	text-decoration: none;
}

.psgc-price del {
	font-size: .78em;
	font-weight: 500;
	color: rgba(255,255,255,.62);
}

.psgc-description {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 11px;
	line-height: 1.38;
	color: rgba(255,255,255,.82);
}

.psgc-button-wrap {
	display: flex;
	width: 100%;
	margin-top: 2px;
}

.psgc-cart-button,
.woocommerce .psgc-cart-button,
.woocommerce-page .psgc-cart-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 34px;
	max-width: 100%;
	padding: 9px 13px;
	margin: 0 !important;
	border: 1px solid rgba(255,255,255,.8);
	border-radius: 10px;
	background: #fff !important;
	color: #111 !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 7px 18px rgba(0,0,0,.16);
	transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
	white-space: nowrap;
}

.psgc-cart-button:hover,
.psgc-cart-button:focus-visible {
	background: #458300 !important;
	border-color: #458300;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.psgc-cart-icon,
.psgc-cart-icon i,
.psgc-cart-icon svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	color: #458300;
	fill: currentColor;
	font-size: 1em;
	line-height: 1;
}

.psgc-cart-button:hover .psgc-cart-icon,
.psgc-cart-button:focus-visible .psgc-cart-icon,
.psgc-cart-button:hover .psgc-cart-icon i,
.psgc-cart-button:focus-visible .psgc-cart-icon i,
.psgc-cart-button:hover .psgc-cart-icon svg,
.psgc-cart-button:focus-visible .psgc-cart-icon svg {
	color: #fff;
}

.psgc-icon-after .psgc-cart-button {
	flex-direction: row-reverse;
}

.psgc-sale-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 8px;
	border-radius: 6px;
	background: #458300;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	z-index: 8;
}

.psgc-wishlist {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 9;
	margin: 0 !important;
	padding: 0 !important;
}

.psgc-wishlist .tinv-wishlist-clear,
.psgc-wishlist .tinvwl_add_to_wishlist-text,
.psgc-wishlist .tinvwl-tooltip {
	display: none !important;
}

.psgc-wishlist .tinvwl-loop-button-wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

.psgc-wishlist a.tinvwl_add_to_wishlist_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #458300 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(15,23,42,.18);
	transition: transform .25s ease, color .25s ease, background .25s ease;
}

.psgc-wishlist a.tinvwl_add_to_wishlist_button::before {
	position: static !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 19px !important;
	line-height: 1 !important;
	color: currentColor !important;
	transform: none !important;
}

.psgc-wishlist a.tinvwl_add_to_wishlist_button:hover,
.psgc-wishlist a.tinvwl-product-in-list,
.psgc-wishlist a.tinvwl-product-already-on-wishlist {
	background: #458300 !important;
	color: #fff !important;
	transform: translateY(-2px);
}

.psgc-density-minimal .psgc-slot:not(.is-center) .psgc-category,
.psgc-density-minimal .psgc-slot:not(.is-center) .psgc-rating-row,
.psgc-density-minimal .psgc-slot:not(.is-center) .psgc-description,
.psgc-density-minimal .psgc-slot:not(.is-center) .psgc-button-wrap {
	display: none !important;
}

.psgc-density-compact .psgc-slot:not(.is-center) .psgc-description,
.psgc-density-compact .psgc-slot:not(.is-center) .psgc-button-wrap {
	display: none !important;
}

.psgc-slot:not(.is-center) .psgc-content {
	padding: 24px 9px 9px;
	gap: 3px;
}

.psgc-slot:not(.is-center) .psgc-title {
	font-size: clamp(9px, .74vw, 12px);
}

.psgc-slot:not(.is-center) .psgc-category,
.psgc-slot:not(.is-center) .psgc-review-count {
	font-size: 8px;
}

.psgc-slot:not(.is-center) .psgc-price {
	font-size: clamp(9px, .72vw, 12px);
}

.psgc-slot:not(.is-center) .psgc-rating .star-rating {
	font-size: 8px;
}

.psgc-slot:not(.is-center) .psgc-sale-badge {
	padding: 4px 6px;
	font-size: 8px;
}

.psgc-slot:not(.is-center) .psgc-wishlist a.tinvwl_add_to_wishlist_button {
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
}

.psgc-slot:not(.is-center) .psgc-wishlist a.tinvwl_add_to_wishlist_button::before {
	font-size: 15px !important;
}

.psgc-controls {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 30;
}

.psgc-arrow {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0 !important;
	margin: 0 !important;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 7px 22px rgba(15,23,42,.16);
	transform: translateY(-50%);
	transition: transform .25s ease, color .25s ease, background .25s ease;
	cursor: pointer;
	pointer-events: auto;
	line-height: 1;
	text-decoration: none !important;
}

.psgc-arrow.is-prev { left: 8px; }
.psgc-arrow.is-next { right: 8px; }
.psgc-arrow:hover { transform: translateY(-50%) scale(1.07); }
.psgc-arrow:active { transform: translateY(-50%) scale(.94); }
.psgc-arrow:focus-visible { outline: 3px solid rgba(69,131,0,.45); outline-offset: 3px; }
.psgc-arrow i,
.psgc-arrow svg { display: block; width: 17px; height: 17px; font-size: 17px; fill: currentColor; }
.psgc-arrow[hidden] { display: none !important; }

.psgc-widget.is-animating .psgc-card {
	pointer-events: none;
}

@media (max-width: 1024px) {
	.psgc-widget {
		--psgc-height: 440px;
		--psgc-gap: 12px;
		--psgc-row-gap: 12px;
		--psgc-center-width: 1.75;
		--psgc-active-scale: 1.03;
	}
	.psgc-source { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.psgc-widget {
		--psgc-height: 360px;
		--psgc-gap: 10px;
		--psgc-row-gap: 10px;
		--psgc-center-width: 1.5;
		--psgc-active-scale: 1.015;
	}
	.psgc-source { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psgc-content { padding: 28px 12px 12px; }
	.psgc-title { font-size: 14px; }
	.psgc-price { font-size: 13px; }
	.psgc-cart-button { min-height: 32px; padding: 8px 11px; font-size: 11px; }
	.psgc-arrow { width: 40px; height: 40px; }
	.psgc-slot:not(.is-center) .psgc-category,
	.psgc-slot:not(.is-center) .psgc-rating-row,
	.psgc-slot:not(.is-center) .psgc-description,
	.psgc-slot:not(.is-center) .psgc-button-wrap { display: none !important; }
}

@media (max-width: 480px) {
	.psgc-source { grid-template-columns: 1fr; }
	.psgc-wishlist a.tinvwl_add_to_wishlist_button { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.psgc-widget[data-reduced-motion="yes"] .psgc-col,
	.psgc-widget[data-reduced-motion="yes"] .psgc-image,
	.psgc-widget[data-reduced-motion="yes"] .psgc-card,
	.psgc-widget[data-reduced-motion="yes"] .psgc-card-inner,
	.psgc-widget[data-reduced-motion="yes"] .psgc-card-shell {
		animation: none !important;
		transition-duration: .01ms !important;
	}
}

/* =====================================================
   Clean product-card layout (reference-style)
   Keeps product imagery and product data in separate zones.
   ===================================================== */
.psgc-widget.psgc-layout-clean {
	--psgc-media-height: 55%;
}

.psgc-widget.psgc-layout-clean .psgc-card-inner {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 5px 18px rgba(15, 23, 42, .08);
}

.psgc-widget.psgc-layout-clean .psgc-slot.is-center .psgc-card-inner {
	box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}

.psgc-widget.psgc-layout-clean .psgc-media {
	position: relative;
	inset: auto;
	display: block;
	flex: 0 0 var(--psgc-media-height);
	width: 100%;
	height: var(--psgc-media-height);
	min-height: 0;
	overflow: hidden;
	background: #ffffff;
	border-bottom: 1px solid rgba(226, 232, 240, .72);
}

.psgc-widget.psgc-layout-clean .psgc-image-link {
	position: relative;
	inset: auto;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.psgc-widget.psgc-layout-clean .psgc-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	background: #ffffff;
}

.psgc-widget.psgc-layout-clean .psgc-scrim {
	display: none;
}

.psgc-widget.psgc-layout-clean .psgc-content {
	position: relative;
	inset: auto;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	width: 100%;
	height: auto;
	overflow: hidden;
	padding: 11px 12px;
	gap: 5px;
	background: #ffffff;
	color: #1f2937;
}

.psgc-widget.psgc-layout-clean .psgc-category {
	color: #6b7280;
	font-size: 9px;
	letter-spacing: .055em;
}

.psgc-widget.psgc-layout-clean .psgc-title,
.psgc-widget.psgc-layout-clean .psgc-title a {
	color: #1f2937;
}

.psgc-widget.psgc-layout-clean .psgc-title {
	font-size: clamp(12px, .92vw, 15px);
	line-height: 1.28;
}

.psgc-widget.psgc-layout-clean .psgc-rating-row {
	min-height: 12px;
}

.psgc-widget.psgc-layout-clean .psgc-review-count {
	color: #6b7280;
}

.psgc-widget.psgc-layout-clean .psgc-price,
.psgc-widget.psgc-layout-clean .psgc-price ins,
.psgc-widget.psgc-layout-clean .psgc-price .amount {
	color: #458300;
}

.psgc-widget.psgc-layout-clean .psgc-price {
	font-size: clamp(12px, .95vw, 16px);
	line-height: 1.2;
}

.psgc-widget.psgc-layout-clean .psgc-price del,
.psgc-widget.psgc-layout-clean .psgc-price del .amount {
	color: #9ca3af;
}

.psgc-widget.psgc-layout-clean .psgc-description {
	color: #6b7280;
}

.psgc-widget.psgc-layout-clean .psgc-button-wrap {
	flex: 0 0 auto;
	margin-top: auto;
}

.psgc-widget.psgc-layout-clean .psgc-cart-button,
.woocommerce .psgc-widget.psgc-layout-clean .psgc-cart-button,
.woocommerce-page .psgc-widget.psgc-layout-clean .psgc-cart-button {
	width: 100%;
	min-width: 0;
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid #458300;
	border-radius: 8px;
	background: #ffffff !important;
	color: #458300 !important;
	font-size: 12px;
	box-shadow: none;
}

.psgc-widget.psgc-layout-clean .psgc-cart-button:hover,
.psgc-widget.psgc-layout-clean .psgc-cart-button:focus-visible {
	border-color: #458300;
	background: #458300 !important;
	color: #ffffff !important;
	box-shadow: 0 7px 18px rgba(69, 131, 0, .22);
}

.psgc-widget.psgc-layout-clean .psgc-cart-icon,
.psgc-widget.psgc-layout-clean .psgc-cart-icon i,
.psgc-widget.psgc-layout-clean .psgc-cart-icon svg {
	color: #458300;
}

.psgc-widget.psgc-layout-clean .psgc-cart-button:hover .psgc-cart-icon,
.psgc-widget.psgc-layout-clean .psgc-cart-button:focus-visible .psgc-cart-icon,
.psgc-widget.psgc-layout-clean .psgc-cart-button:hover .psgc-cart-icon i,
.psgc-widget.psgc-layout-clean .psgc-cart-button:focus-visible .psgc-cart-icon i,
.psgc-widget.psgc-layout-clean .psgc-cart-button:hover .psgc-cart-icon svg,
.psgc-widget.psgc-layout-clean .psgc-cart-button:focus-visible .psgc-cart-icon svg {
	color: #ffffff;
}

/* The default clean mode deliberately removes secondary metadata so old widget
   instances also adopt the uncluttered reference design after updating. */
.psgc-widget.psgc-layout-clean.psgc-clean-essentials .psgc-category,
.psgc-widget.psgc-layout-clean.psgc-clean-essentials .psgc-rating-row,
.psgc-widget.psgc-layout-clean.psgc-clean-essentials .psgc-description {
	display: none !important;
}

/* Smaller gallery cards stay readable instead of becoming crowded. */
.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-content {
	padding: 7px 8px;
	gap: 3px;
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-title {
	font-size: clamp(9px, .68vw, 11px);
	line-height: 1.22;
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-price {
	font-size: clamp(9px, .68vw, 11px);
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-category,
.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-review-count {
	font-size: 7px;
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-rating .star-rating {
	font-size: 7px;
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-sale-badge {
	top: 7px;
	left: 7px;
	padding: 4px 6px;
	font-size: 8px;
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-wishlist {
	top: 7px;
	right: 7px;
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-wishlist a.tinvwl_add_to_wishlist_button {
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
}

.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-wishlist a.tinvwl_add_to_wishlist_button::before {
	font-size: 15px !important;
}

@media (max-width: 1024px) {
	.psgc-widget.psgc-layout-clean {
		--psgc-media-height: 54%;
	}
	.psgc-widget.psgc-layout-clean .psgc-content {
		padding: 10px;
	}
}

@media (max-width: 767px) {
	.psgc-widget.psgc-layout-clean {
		--psgc-media-height: 52%;
	}
	.psgc-widget.psgc-layout-clean .psgc-content {
		padding: 9px;
		gap: 4px;
	}
	.psgc-widget.psgc-layout-clean .psgc-title {
		font-size: 13px;
	}
	.psgc-widget.psgc-layout-clean .psgc-price {
		font-size: 13px;
	}
	.psgc-widget.psgc-layout-clean .psgc-cart-button {
		min-height: 34px;
		padding: 8px 9px;
		font-size: 11px;
	}
	.psgc-widget.psgc-layout-clean .psgc-slot:not(.is-center) .psgc-content {
		padding: 6px 7px;
	}
}
