/* ===== FancyProduct Features - Wishlist ===== */

.gpsc--product-image {
	position: relative;
}

/* Wishlist Heart Button */
.gpsc-wishlist-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
	background: rgba( 255, 255, 255, 0.95 );
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.15 );
	transition: all 0.25s ease;
	padding: 0;
}
.gpsc-wishlist-btn:hover {
	transform: scale( 1.12 );
	background: #fff;
}
.gpsc-wishlist-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #e74c3c;
	stroke-width: 2;
	transition: fill 0.25s ease;
}
.gpsc-wishlist-btn.gpsc-wishlisted svg {
	fill: #e74c3c;
	stroke: #e74c3c;
	animation: gpsc-heart-pop 0.35s ease;
}
@keyframes gpsc-heart-pop {
	0% { transform: scale( 1 ); }
	50% { transform: scale( 1.35 ); }
	100% { transform: scale( 1 ); }
}

/* Wishlist Counter Bar */
.gpsc-wishlist-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 16px;
	padding: 8px 0;
}
.gpsc-wishlist-count-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #e74c3c;
	color: #e74c3c;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
}
.gpsc-wishlist-count-btn:hover {
	background: #e74c3c;
	color: #fff;
}
.gpsc-wishlist-count-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Toast Notification */
.gpsc-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX( -50% ) translateY( 100px );
	background: #2c3e50;
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 9999999;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.25 );
	opacity: 0;
	transition: all 0.35s ease;
}
.gpsc-toast.gpsc-toast-show {
	transform: translateX( -50% ) translateY( 0 );
	opacity: 1;
}

/* ===== Quick View Feature ===== */

/* Product image hover setup */
.gpsc--product-image {
	position: relative;
	overflow: hidden;
}

/* Subtle overlay on hover */
.gpsc--product-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0 );
	transition: background 0.4s ease;
	z-index: 6;
	pointer-events: none;
}
.gpsc--product-image:hover::after {
	background: rgba( 0, 0, 0, 0.25 );
}

/* Quick View Icon Button - CENTER */
.gpsc-quickview-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% ) scale( 0.7 );
	background: rgba( 255, 255, 255, 0.95 );
	color: #1a1a1a;
	border: none;
	width: 52px;
	height: 52px;
	cursor: pointer;
	border-radius: 50%;
	opacity: 0;
	transition: all 0.4s cubic-bezier( 0.34, 1.56, 0.64, 1 );
	z-index: 8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.25 );
	padding: 0;
}
.gpsc-quickview-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	transition: transform 0.2s ease;
}
.gpsc-quickview-btn:hover {
	background: #1a1a1a;
	color: #fff;
	box-shadow: 0 8px 28px rgba( 0, 0, 0, 0.35 );
}
.gpsc-quickview-btn:hover svg {
	transform: scale( 1.15 );
}
.gpsc--product-image:hover .gpsc-quickview-btn {
	opacity: 1;
	transform: translate( -50%, -50% ) scale( 1 );
}

/* Tooltip */
.gpsc-quickview-btn::before {
	content: 'Quick View';
	position: absolute;
	bottom: 62px;
	left: 50%;
	transform: translateX( -50% );
	background: #1a1a1a;
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.gpsc-quickview-btn::after {
	content: '';
	position: absolute;
	bottom: 56px;
	left: 50%;
	transform: translateX( -50% );
	border: 5px solid transparent;
	border-top-color: #1a1a1a;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.gpsc-quickview-btn:hover::before,
.gpsc-quickview-btn:hover::after {
	opacity: 1;
}

/* ===== Quick View Modal ===== */
.gpsc-qv-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: gpsc-fade-in 0.3s ease;
}
@keyframes gpsc-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.gpsc-qv-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 15, 23, 42, 0.72 );
	backdrop-filter: blur( 6px );
}
.gpsc-qv-content {
	position: relative;
	background: #fff;
	border-radius: 20px;
	max-width: 880px;
	width: 100%;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	box-shadow: 0 30px 90px rgba( 0, 0, 0, 0.45 );
	animation: gpsc-modal-up 0.45s cubic-bezier( 0.34, 1.56, 0.64, 1 );
}
@keyframes gpsc-modal-up {
	from { transform: translateY( 50px ) scale( 0.94 ); opacity: 0; }
	to { transform: translateY( 0 ) scale( 1 ); opacity: 1; }
}
.gpsc-qv-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 42px;
	height: 42px;
	background: rgba( 255, 255, 255, 0.95 );
	border: none;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #1a1a1a;
	z-index: 5;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 12px rgba( 0, 0, 0, 0.18 );
}
.gpsc-qv-close:hover {
	background: #e74c3c;
	color: #fff;
	transform: rotate( 90deg );
}

/* Image Side */
.gpsc-qv-image {
	flex: 1 1 48%;
	min-width: 300px;
	background: linear-gradient( 135deg, #f8f9fa 0%, #eef1f5 100% );
	padding: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gpsc-qv-image img {
	max-width: 100%;
	max-height: 420px;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 15px 40px rgba( 0, 0, 0, 0.12 );
}

/* Details Side */
.gpsc-qv-details {
	flex: 1 1 52%;
	min-width: 300px;
	padding: 50px 45px 45px;
	display: flex;
	flex-direction: column;
}
.gpsc-qv-details h2 {
	margin: 0 0 18px;
	font-size: 28px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.25;
}
.gpsc-qv-price {
	font-size: 28px;
	font-weight: 800;
	color: #e74c3c;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.gpsc-qv-price del {
	color: #b0b0b0;
	font-weight: 500;
	font-size: 20px;
}
.gpsc-qv-price ins {
	text-decoration: none;
}
.gpsc-qv-desc {
	color: #5a6270;
	line-height: 1.75;
	margin-bottom: 30px;
	font-size: 15px;
	flex: 1;
}

/* Action Buttons - Premium */
.gpsc-qv-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}
.gpsc-qv-actions a,
.gpsc-qv-actions .button,
.gpsc-qv-actions .add_to_cart_button,
.gpsc-qv-actions .added_to_cart {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 16px 28px !important;
	border-radius: 12px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	text-decoration: none !important;
	transition: all 0.3s cubic-bezier( 0.4, 0, 0.2, 1 ) !important;
	border: none !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	box-shadow: none !important;
	position: relative;
	overflow: hidden;
}

/* Add to Cart - Primary with gradient + shine */
.gpsc-qv-actions .add_to_cart_button,
.gpsc-qv-actions .button {
	background: linear-gradient( 135deg, #e74c3c 0%, #c0392b 100% ) !important;
	color: #fff !important;
	flex: 2 1 auto;
	box-shadow: 0 4px 15px rgba( 231, 76, 60, 0.3 ) !important;
}
.gpsc-qv-actions .add_to_cart_button::before,
.gpsc-qv-actions .button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient( 120deg, transparent, rgba( 255, 255, 255, 0.3 ), transparent );
	transition: left 0.5s ease;
}
.gpsc-qv-actions .add_to_cart_button:hover,
.gpsc-qv-actions .button:hover {
	transform: translateY( -3px ) !important;
	box-shadow: 0 8px 25px rgba( 231, 76, 60, 0.45 ) !important;
}
.gpsc-qv-actions .add_to_cart_button:hover::before,
.gpsc-qv-actions .button:hover::before {
	left: 100%;
}

/* Cart icon before Add to Cart text */
.gpsc-qv-actions .add_to_cart_button::after,
.gpsc-qv-actions .button.product_type_simple::after {
	content: '';
	width: 18px;
	height: 18px;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E" );
	background-size: contain;
	background-repeat: no-repeat;
	order: -1;
}

/* Added to cart - success green */
.gpsc-qv-actions .added_to_cart {
	background: linear-gradient( 135deg, #27ae60 0%, #219150 100% ) !important;
	color: #fff !important;
	box-shadow: 0 4px 15px rgba( 39, 174, 96, 0.3 ) !important;
}
.gpsc-qv-actions .added_to_cart:hover {
	transform: translateY( -3px ) !important;
	box-shadow: 0 8px 25px rgba( 39, 174, 96, 0.45 ) !important;
}

/* View Details - Elegant outline */
.gpsc-qv-link {
	background: transparent !important;
	color: #1a1a1a !important;
	border: 2px solid #e5e7eb !important;
	flex: 1 1 auto;
}
.gpsc-qv-link:hover {
	border-color: #1a1a1a !important;
	background: #1a1a1a !important;
	color: #fff !important;
	transform: translateY( -3px );
	box-shadow: 0 8px 20px rgba( 0, 0, 0, 0.2 );
}

/* Loading */
.gpsc-qv-loading {
	padding: 90px 40px;
	text-align: center;
	width: 100%;
	color: #888;
	font-size: 15px;
}
.gpsc-qv-loading::after {
	content: '';
	display: block;
	width: 36px;
	height: 36px;
	margin: 18px auto 0;
	border: 3px solid #e8e8e8;
	border-top-color: #e74c3c;
	border-radius: 50%;
	animation: gpsc-spin 0.8s linear infinite;
}
@keyframes gpsc-spin {
	to { transform: rotate( 360deg ); }
}
.gpsc-qv-error {
	padding: 90px 40px;
	text-align: center;
	width: 100%;
	color: #e74c3c;
	font-size: 15px;
}

/* Responsive */
@media ( max-width: 700px ) {
	.gpsc-qv-content {
		flex-direction: column;
		max-height: 88vh;
		overflow-y: auto;
	}
	.gpsc-qv-image,
	.gpsc-qv-details {
		flex: 1 1 100%;
		min-width: 100%;
		padding: 28px;
	}
	.gpsc-qv-image img {
		max-height: 260px;
	}
	.gpsc-qv-details h2 {
		font-size: 24px;
	}
	.gpsc-qv-actions {
		flex-direction: column;
	}
}

/* ===== Auto Badges Feature ===== */
.gpsc-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 9;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
}
.gpsc-badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	border-radius: 6px;
	line-height: 1.4;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.2 );
	animation: gpsc-badge-in 0.4s ease backwards;
}
@keyframes gpsc-badge-in {
	from { transform: translateX( -20px ); opacity: 0; }
	to { transform: translateX( 0 ); opacity: 1; }
}
.gpsc-badge-new {
	background: linear-gradient( 135deg, #2ecc71 0%, #27ae60 100% );
}
.gpsc-badge-sale {
	background: linear-gradient( 135deg, #e74c3c 0%, #c0392b 100% );
}
.gpsc-badge-hot {
	background: linear-gradient( 135deg, #e67e22 0%, #d35400 100% );
}
.gpsc-badge-stock {
	background: linear-gradient( 135deg, #f39c12 0%, #e67e22 100% );
	text-transform: none;
	font-size: 10px;
}

/* Stagger animation for multiple badges */
.gpsc-badge:nth-child( 1 ) { animation-delay: 0.05s; }
.gpsc-badge:nth-child( 2 ) { animation-delay: 0.15s; }
.gpsc-badge:nth-child( 3 ) { animation-delay: 0.25s; }
.gpsc-badge:nth-child( 4 ) { animation-delay: 0.35s; }

/* ===== Sale Countdown Feature (Image Overlay) ===== */
.gpsc-img-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 0;
}
.gpsc-countdown {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.85 ) 0%, rgba( 0, 0, 0, 0.55 ) 65%, transparent 100% );
	color: #fff;
	padding: 22px 8px 8px;
	z-index: 7;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	pointer-events: none;
	line-height: 1.2;
}
.gpsc-countdown.gpsc-cd-ended {
	display: none;
}
.gpsc-countdown-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	flex-shrink: 0;
	white-space: nowrap;
	opacity: 0.95;
}
.gpsc-countdown-label svg {
	width: 12px;
	height: 12px;
	fill: #ff6b5b;
	flex-shrink: 0;
}
.gpsc-countdown-timer {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}
.gpsc-cd-block {
	background: rgba( 231, 76, 60, 0.95 );
	color: #fff;
	border-radius: 4px;
	padding: 3px 5px;
	min-width: 24px;
	text-align: center;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.3 );
	font-size: 12px;
}
.gpsc-cd-block small {
	font-size: 6px;
	opacity: 0.9;
	text-transform: uppercase;
	font-weight: 500;
	margin-top: 1px;
}

/* ===== Recently Viewed Feature ===== */
.gpsc-recently-viewed {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #f0f0f0;
}
.gpsc-rv-heading {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.gpsc-rv-heading::before {
	content: '';
	width: 4px;
	height: 20px;
	background: #e74c3c;
	border-radius: 2px;
}
.gpsc-rv-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
	gap: 16px;
}
.gpsc-rv-item {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.25s ease;
	background: #fff;
}
.gpsc-rv-item:hover {
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.12 );
	transform: translateY( -4px );
	border-color: #e74c3c;
}
.gpsc-rv-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f8f9fa;
}
.gpsc-rv-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.gpsc-rv-item:hover .gpsc-rv-img img {
	transform: scale( 1.05 );
}
.gpsc-rv-title {
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Responsive */
@media ( max-width: 600px ) {
	.gpsc-rv-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 12px;
	}
	.gpsc-rv-heading {
		font-size: 18px;
	}
}