/* Zestora - Dish Quick View popup (foodsinn.co style, Zestora colours) */

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

.zqv[hidden] { display: none; }

.zqv {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.zqv__overlay {
	position: absolute;
	inset: 0;
	background: rgba(31, 26, 18, .62);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .22s ease;
}

.zqv.is-open .zqv__overlay { opacity: 1; }

.zqv__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 48px);
	background: #FFFFFF;
	border-radius: 24px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 30px 80px rgba(31, 26, 18, .35);
	transform: translateY(18px) scale(.97);
	opacity: 0;
	transition: transform .26s cubic-bezier(.2, .8, .3, 1), opacity .26s ease;
}

.zqv.is-open .zqv__dialog {
	transform: none;
	opacity: 1;
}

.zqv .zqv__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #A03A13 !important;
	color: #FFFFFF !important;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(31, 26, 18, .28);
	transition: transform .18s ease, background .18s ease;
}

.zqv .zqv__close:hover {
	background: #7C2A0C !important;
	transform: scale(1.08);
}

/* WooCommerce's "View cart" link is not wanted inside the popup */
.zqv .added_to_cart,
.zqv__foot .added_to_cart { display: none !important; }

.zqv__scroll {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.zqv__media {
	position: relative;
	margin: 0;
	background: #F3E9D6;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.zqv__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zqv__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: #FFE600;
	color: #1F1A12;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(31, 26, 18, .2);
}

.zqv__badge[hidden] { display: none; }

.zqv__content { padding: 20px 22px 6px; }

.zqv__name {
	margin: 0 0 6px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #241813;
}

.zqv__price {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	color: #A03A13;
}

.zqv__price del {
	color: #6E5B51;
	font-weight: 500;
	opacity: .8;
	margin-right: 8px;
}

.zqv__price ins {
	color: #000000;
	text-decoration: none;
}

.zqv__desc {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: #6E5B51;
}

.zqv__desc p { margin: 0 0 10px; }
.zqv__desc p:last-child { margin-bottom: 0; }

.zqv__foot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 22px 20px;
	border-top: 1px solid #F3E9D6;
	background: #FFFFFF;
}

.zqv__qty {
	display: flex;
	align-items: center;
	gap: 2px;
	border: 1px solid #F3E9D6;
	background: #FFFFFF;
	border-radius: 999px;
	padding: 4px;
	flex: 0 0 auto;
}

.zqv__step {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #F3E9D6;
	color: #A03A13;
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.zqv__step:hover {
	background: #A03A13;
	color: #FFFFFF;
	transform: scale(1.06);
}

.zqv__num {
	width: 42px;
	height: 34px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #241813;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
}

.zqv__num::-webkit-outer-spin-button,
.zqv__num::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.zqv__num:focus { outline: none; }

.zqv__add {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #A03A13;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.zqv__add:hover {
	background: #7C2A0C;
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(160, 58, 19, .28);
}

.zqv__add.is-loading { opacity: .75; pointer-events: none; }
.zqv__add.is-done { background: #1F7A3A; }

.zqv__total { font-weight: 700; }

/* loading state */
.zqv.is-loading .zqv__scroll,
.zqv.is-loading .zqv__foot { visibility: hidden; }

.zqv__spinner {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
}

.zqv.is-loading .zqv__spinner { display: flex; }

.zqv__spinner span {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid #F3E9D6;
	border-top-color: #A03A13;
	animation: zqvspin .8s linear infinite;
}

@keyframes zqvspin { to { transform: rotate(360deg); } }

.zqv.is-loading .zqv__dialog { min-height: 220px; }

body.zqv-open { overflow: hidden; }

/* the card now looks clickable */
.zml__card { cursor: pointer; }

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

	.zqv__dialog {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 24px 24px 0 0;
		transform: translateY(40px);
	}

	.zqv__name { font-size: 21px; }
	.zqv__content { padding: 18px 18px 4px; }
	.zqv__foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
	.zqv__overlay,
	.zqv__dialog { transition: none; }
}
