/* Quick view popup (loop grid "Add" button). */

.zqv-lock {
	overflow: hidden;
}

.zqv-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .25s ease, visibility 0s linear .25s;
}

.zqv-modal.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity .25s ease;
}

.zqv-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.zqv-dialog {
	position: relative;
	width: min(980px, 100%);
	max-height: calc(100vh - 32px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	overflow: hidden;
	transform: translateY(14px) scale(.98);
	transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.zqv-modal.is-open .zqv-dialog {
	transform: none;
}

.zqv-modal .zqv-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	color: #111 !important;
	background: #fff !important;
	border: 1px solid #e2dedb !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	line-height: 1;
	cursor: pointer;
}

.zqv-modal .zqv-close:hover,
.zqv-modal .zqv-close:focus {
	color: #fff !important;
	background: #111 !important;
	border-color: #111 !important;
}

.zqv-modal .zqv-close svg,
.zqv-modal .zqv-nav svg {
	display: block;
	fill: none;
	stroke: currentColor;
	pointer-events: none;
}

.zqv-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	max-height: calc(100vh - 32px);
}

/* Left: image only, with prev / next. */
.zqv-gallery {
	position: relative;
	align-self: start;
	overflow: hidden;
	background: #f6f4f3;
}

.zqv-track {
	display: flex;
	transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.zqv-slide {
	flex: 0 0 100%;
	margin: 0;
}

.zqv-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.zqv-modal .zqv-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	color: #111 !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.zqv-modal .zqv-nav:hover,
.zqv-modal .zqv-nav:focus {
	color: #fff !important;
	background: #111 !important;
}

.zqv-nav--prev {
	left: 10px;
}

.zqv-nav--next {
	right: 10px;
}

/* Right: product details column from the single product template. */
.zqv-details {
	min-width: 0;
	max-height: calc(100vh - 32px);
	padding: 16px 18px 16px 20px;
	overflow-y: auto;
	font-size: 13px;
}

.zqv-details .elementor-element.elementor-element-7d9d677 {
	--width: 100%;
	width: 100%;
	max-width: 100%;
}

.zqv-details .product-details-right {
	max-height: none;
	overflow: visible;
}

.zqv-loading {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.zqv-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid #109765;
	border-top-color: transparent;
	border-radius: 50%;
	animation: zqv-spin .7s linear infinite;
}

@keyframes zqv-spin {
	to {
		transform: rotate(360deg);
	}
}

.zqv-error {
	grid-column: 1 / -1;
	margin: 0;
	padding: 48px 24px;
	text-align: center;
}

@media (max-width: 860px) {
	.zqv-modal {
		padding: 0;
		align-items: flex-end;
	}

	.zqv-dialog {
		width: 100%;
		max-height: 92vh;
		border-radius: 14px 14px 0 0;
		overflow-y: auto;
	}

	.zqv-body {
		display: block;
		max-height: none;
	}

	.zqv-details {
		max-height: none;
		padding: 16px;
		overflow: visible;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zqv-modal,
	.zqv-dialog,
	.zqv-track {
		transition-duration: .01s;
	}
}

/* Compact right column: tighter gaps, smaller type and controls. */
.zqv-details .elementor {
	--kit-widget-spacing: 0px;
}

.zqv-details .e-con,
.zqv-details .e-con > .e-con-inner {
	--gap: 6px;
	--row-gap: 6px;
	--column-gap: 6px;
	gap: 6px;
}

.zqv-details .elementor-widget:not(:last-child) {
	margin-block-end: 0;
}

.zqv-details .elementor-widget-container {
	padding: 0;
}

.zqv-details .elementor-element .elementor-heading-title {
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: 0;
}

.zqv-details .product-title .elementor-heading-title {
	padding-right: 36px; /* clear the close button */
	font-size: 18px;
	line-height: 1.25;
}

.zqv-details .zestify-product-form .variations th,
.zqv-details .zestify-product-form .variations td {
	padding: 0 0 4px;
}

.zqv-details .zestify-product-form .zestify-size-options {
	gap: 6px;
	margin: 4px 0 10px;
}

.zqv-details .zestify-product-form .zestify-size-options button {
	min-width: 40px;
	height: 34px;
	padding: 0 10px;
	font-size: 13px;
}

.zqv-details .zestify-product-form .quantity {
	width: 108px;
	height: 36px;
}

.zqv-details .zestify-product-form .quantity .qty,
.zqv-details .zestify-product-form .zestify-qty-btn {
	height: 34px;
}

.zqv-details .zestify-product-form .single_variation_wrap {
	margin-top: 8px;
}

.zqv-details .zestify-product-form .single_add_to_cart_button {
	min-height: 42px;
	margin-top: 10px !important;
	padding: 8px 16px !important;
	font-size: 14px !important;
}

.zqv-details .elementor-widget-button .elementor-button {
	padding: 10px 16px;
	font-size: 14px;
}

.zqv-details .elementor-icon-box-title {
	font-size: 12px;
}

.zqv-details .elementor-icon-box-description {
	font-size: 11px;
	line-height: 1.3;
}

.zqv-details .elementor-icon-box-wrapper .elementor-icon svg {
	width: 22px;
	height: 22px;
}

/* Product info rows (category, sizes ...): shorter rows. */
.zqv-details .elementor-element-04974ee,
.zqv-details .elementor-element-a910685,
.zqv-details .elementor-element-3d9efd6,
.zqv-details .elementor-element-4248963,
.zqv-details .elementor-element-24ffa8e > .e-con {
	--padding-top: 6px;
	--padding-bottom: 6px;
}

.zqv-details .elementor-element-6782be0,
.zqv-details .elementor-element-8af4dce {
	--padding-top: 0px;
	--padding-bottom: 0px;
}

@media (max-width: 860px) {
	.zqv-details {
		padding: 12px 14px 16px;
	}
}

/* Responsive form: label above its options, rows wrap instead of overflowing. */
.zqv-details .zestify-product-form .variations,
.zqv-details .zestify-product-form .variations tbody,
.zqv-details .zestify-product-form .variations th,
.zqv-details .zestify-product-form .variations td {
	display: block;
	width: 100%;
	text-align: left;
}

.zqv-details .zestify-product-form .variations tr {
	display: block;
	margin: 0 0 6px;
}

.zqv-details .zestify-product-form .variations th.label {
	padding: 0 0 4px;
}

.zqv-details .zestify-product-form .variations select#pa_color {
	max-width: 100% !important;
}

.zqv-details .zestify-product-form .zestify-size-options {
	justify-content: flex-start;
}

/* Quantity + Add to cart + wishlist row. */
.zqv-details .elementor-element-6774f8f {
	flex-wrap: wrap;
	align-items: flex-end;
}

.zqv-details .elementor-element-6774f8f > .e-con {
	min-width: 0;
}

.zqv-details .elementor-element-9b170c9 {
	flex: 1 1 200px;
	width: auto;
}

/* Heart button: same height as the Add to cart button (42px), bottom-aligned with it. */
.zqv-details .elementor-element-701a9a2 {
	flex: 0 0 42px;
	align-self: flex-end;
	width: 42px;
	height: 42px;
	min-height: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Price row and info rows never push the column wider. */
.zqv-details .elementor-element-c50adb6 {
	flex-wrap: wrap;
}

.zqv-details .elementor-element-79d467c {
	width: auto;
}

.zqv-details img,
.zqv-details svg {
	max-width: 100%;
}

@media (max-width: 480px) {
	.zqv-details .elementor-element-24ffa8e {
		flex-direction: column;
	}

	.zqv-details .elementor-element-24ffa8e > .e-con {
		width: 100%;
	}

	.zqv-details .elementor-element-04974ee,
	.zqv-details .elementor-element-a910685,
	.zqv-details .elementor-element-3d9efd6,
	.zqv-details .elementor-element-4248963 {
		flex-wrap: wrap;
	}
}

/* Desktop: fixed popup height, left image fills the whole left column. */
@media (min-width: 861px) {
	.zqv-dialog {
		height: 88vh;
		max-height: 88vh;
	}

	.zqv-body {
		height: 100%;
		max-height: none;
	}

	.zqv-gallery {
		align-self: stretch;
		height: 100%;
		min-height: 0;
	}

	.zqv-track {
		height: 100%;
	}

	.zqv-slide {
		height: 100%;
	}

	.zqv-img {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
	}

	.zqv-details {
		max-height: none;
		height: 100%;
	}
}

/* Price block: same look as the single product page (regular, sale, save). */
.zqv-details #dynamic-product-price {
	min-width: 0;
	max-width: 100%;
}

.zqv-details #dynamic-product-price .price {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 20px;
	font-weight: 600;
	text-transform: capitalize;
}

.zqv-details #dynamic-product-price .price ins {
	order: -1 !important;
	font-family: "Inter", sans-serif;
	font-size: 30px;
	font-weight: 600;
	text-decoration: none;
}

.zqv-details #dynamic-product-price .price del {
	order: 1 !important;
	margin: 0;
	color: #999;
	font-weight: 400;
	opacity: .6;
}

.zqv-details #dynamic-product-price .price .woocommerce-Price-amount {
	white-space: nowrap;
}

.zqv-details .save-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	max-width: 100%;
	padding: 3px 8px;
	background: #ecfdf5;
	border: 1px solid #a7f3d099;
	border-radius: 6px;
}

.zqv-details .save-price .elementor-heading-title {
	margin: 0;
	color: #047857;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25em;
	text-transform: capitalize;
	white-space: nowrap;
}

/* Colour row above size row, same as the single product page. */
.zqv-details .zestify-product-form .variations tbody {
	display: flex;
	flex-direction: column;
}

.zqv-details .zestify-product-form .variations tbody tr.zestify-color-row {
	order: -1;
}
