/* wfqv modal wrapper */
.wfqv-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

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

.wfqv-modal-content {
	background: #fff;
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	border-radius: 8px;
	position: relative;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.wfqv-modal.wfqv-open .wfqv-modal-content {
	transform: translateY(0);
}

/* Modal Size Variants */
.wfqv-modal.wfqv-modal-small .wfqv-modal-content {
	max-width: 600px;
}

.wfqv-modal.wfqv-modal-medium .wfqv-modal-content {
	max-width: 900px;
}

.wfqv-modal.wfqv-modal-large .wfqv-modal-content {
	max-width: 1200px;
}

.wfqv-modal.wfqv-modal-full .wfqv-modal-content {
	max-width: 95vw;
}

.wfqv-close {
	position: absolute;
	top: 15px;
	right: 20px;
	cursor: pointer;
	font-size: 24px;
	font-weight: bold;
	color: #666;
	z-index: 10;
}

.wfqv-close:hover {
	color: #000;
}

/* Quick View Button in product listing */
.wfqv-button-wrapper {
	margin-top: 5px;
	display: flex;
	gap: 8px;
}

.wfqv-quick-view-btn {
	background: #333 !important;
	color: #fff !important;
	border: none !important;
	padding: 8px 18px !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: background 0.3s ease, transform 0.2s ease !important;
	text-decoration: none !important;
}

.wfqv-quick-view-btn:hover {
	background: #555 !important;
	color: #fff !important;
	transform: translateY(-1px) !important;
}

/* Grid Layout (Left Details, Right Image) */
.wfqv-popup-grid {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	/* Ensure details left, image right */
}

.wfqv-popup-info {
	flex: 1 1 50%;
	padding: 40px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wfqv-popup-media {
	flex: 1 1 50%;
	background: #f9f9f9;
	padding: 40px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Typography inside modal */
.wfqv-product-title {
	font-size: 28px;
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
}

.wfqv-product-price {
	font-size: 22px;
	font-weight: 600;
	color: #d32f2f;
	margin-bottom: 20px;
}

.wfqv-product-short-description {
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}

.wfqv-product-full-description {
	color: #444;
	line-height: 1.6;
	margin-bottom: 25px;
	font-size: 14px;
}

.wfqv-product-meta {
	border-top: 1px solid #eee;
	padding-top: 15px;
	margin-bottom: 25px;
	font-size: 14px;
	color: #555;
}

.wfqv-meta-line {
	margin-bottom: 5px;
}

.wfqv-meta-line a {
	color: #0073aa;
	text-decoration: none;
}

.wfqv-meta-line a:hover {
	text-decoration: underline;
}

/* WhatsApp button wrapper */
.wfqv-wa-button-wrapper {
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.wfqv-btn-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #25d366;
	/* WA green */
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-weight: bold;
	font-size: 16px;
	transition: background 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.wfqv-btn-wa:hover {
	background: #1ebc5a;
	color: #fff;
	transform: translateY(-2px);
}

.wfqv-btn-wa svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Media wrap (Right side) */
.wfqv-media-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

img.wfqv-main-img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	margin-bottom: 15px;
}

.wfqv-gallery-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 5px;
	width: 100%;
}

.wfqv-thumb {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border 0.3s;
}

.wfqv-thumb:hover,
.wfqv-thumb.active {
	border-color: #333;
}

/* Loading state */
.wfqv-loader {
	display: none;
	text-align: center;
	padding: 40px;
}

.wfqv-modal.loading .wfqv-loader {
	display: block;
}

.wfqv-modal.loading .wfqv-popup-inner {
	display: none;
}

.wfqv-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #333;
	border-radius: 50%;
	animation: wfqv-spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes wfqv-spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Responsive Grid Media Top Info Bottom Stack Mobile */
@media (max-width: 768px) {
	.wfqv-popup-grid {
		flex-direction: column;
		/* Media is naturally first in DOM now */
	}

	.wfqv-popup-info,
	.wfqv-popup-media {
		flex: 1 1 100%;
		padding: 20px;
	}
}