/**
 * Viva Menu Manager
 * Mobile-first, dark luxury UI matching the Viva child theme.
 */
.vmm-menu {
	--vmm-accent: var(--viva-color-gold, var(--e-global-color-accent, #d4af37));
	--vmm-accent-soft: var(--viva-color-gold-soft, #e0c56e);
	--vmm-surface: var(--viva-color-surface-1, #161b18);
	--vmm-surface-2: var(--viva-color-surface-2, #1d2420);
	--vmm-text: var(--viva-color-text, var(--e-global-color-text, #f4f1e8));
	--vmm-muted: var(--viva-color-text-muted, #96968e);
	--vmm-border: var(--viva-color-border, rgb(243 229 171 / 0.10));
	--vmm-radius: var(--viva-radius-md, 14px);
	color: var(--vmm-text);
	font-family: var(--viva-font, "Peyda", Tahoma, sans-serif);
	direction: rtl;
}

.vmm-filters {
	display: flex;
	gap: 0.55rem;
	margin-bottom: 1.4rem;
	padding-bottom: 0.35rem;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.vmm-filters::-webkit-scrollbar {
	display: none;
}

.vmm-filter {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0.65rem 1rem;
	border: 1px solid var(--vmm-border);
	border-radius: 999px;
	background: transparent;
	color: var(--vmm-muted);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 220ms ease,
		border-color 220ms ease,
		color 220ms ease,
		transform 220ms ease;
}

.vmm-filter:hover,
.vmm-filter.is-active {
	border-color: var(--vmm-accent);
	background: var(--vmm-accent);
	color: #17201c;
}

.vmm-items {
	display: grid;
	grid-template-columns: repeat(var(--vmm-columns, 1), minmax(0, 1fr));
	gap: 1rem;
}

.vmm-item {
	position: relative;
	overflow: hidden;
	display: grid;
	border: 1px solid var(--vmm-border);
	border-radius: var(--vmm-radius);
	background: var(--vmm-surface);
	transition:
		transform 240ms cubic-bezier(.22,1,.36,1),
		border-color 240ms ease,
		background-color 240ms ease;
}

.vmm-item:hover {
	border-color: color-mix(in srgb, var(--vmm-accent) 38%, transparent);
	background: var(--vmm-surface-2);
	transform: translateY(-2px);
}

.vmm-item.is-hidden {
	display: none;
}

.vmm-item.is-unavailable {
	opacity: 0.68;
}

.vmm-item__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #111513;
}

.vmm-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms cubic-bezier(.22,1,.36,1);
}

.vmm-item:hover .vmm-item__media img {
	transform: scale(1.025);
}

.vmm-item__body {
	padding: 1.15rem;
}

.vmm-item__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 0.75rem;
}

.vmm-item__title {
	margin: 0;
	color: var(--vmm-text);
	font-size: clamp(1rem, 3.8vw, 1.18rem);
	font-weight: 700;
	line-height: 1.55;
}

.vmm-item__price {
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
	color: var(--vmm-accent-soft);
	font-weight: 700;
	direction: rtl;
	white-space: nowrap;
}

.vmm-item__price-number {
	font-size: 1rem;
}

.vmm-item__currency {
	font-size: 0.72rem;
	font-weight: 500;
}

.vmm-item__description {
	margin: 0.65rem 0 0;
	color: var(--vmm-muted);
	font-size: 0.875rem;
	line-height: 1.9;
}

.vmm-item__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.8rem;
}

.vmm-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: rgb(212 175 55 / 0.09);
	color: var(--vmm-accent-soft);
	font-size: 0.72rem;
	font-weight: 600;
}

.vmm-badge--vegetarian {
	background: rgb(111 155 120 / 0.12);
	color: #9ac7a4;
}

.vmm-badge--spicy {
	background: rgb(185 99 95 / 0.13);
	color: #d98b87;
}

.vmm-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: 0.85rem;
	color: var(--vmm-muted);
	font-size: 0.75rem;
}

.vmm-item__unavailable {
	color: #d98b87;
}

.vmm-empty {
	grid-column: 1 / -1;
	padding: 2rem;
	border: 1px dashed var(--vmm-border);
	border-radius: var(--vmm-radius);
	color: var(--vmm-muted);
	text-align: center;
}

/* Compact list layout for menu-heavy mobile pages */
.vmm-layout-list .vmm-item {
	grid-template-columns: 92px minmax(0, 1fr);
}

.vmm-layout-list .vmm-item__media {
	aspect-ratio: auto;
	min-height: 100%;
}

.vmm-layout-list .vmm-item__body {
	padding: 1rem;
}

/* Card layout */
.vmm-layout-card .vmm-item {
	grid-template-rows: auto 1fr;
}

@media (min-width: 768px) {
	.vmm-layout-list .vmm-item {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.vmm-item__body {
		padding: 1.25rem;
	}
}

@media (max-width: 480px) {
	.vmm-layout-list .vmm-item:not(:has(.vmm-item__media)) {
		grid-template-columns: 1fr;
	}

	.vmm-item__header {
		grid-template-columns: 1fr;
	}

	.vmm-item__price {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vmm-item,
	.vmm-item__media img,
	.vmm-filter {
		transition-duration: 0.01ms !important;
	}
}



.vmm-item__daily-price {
	color: var(--vmm-accent-soft);
	font-size: 0.95rem;
	font-weight: 700;
}

.vmm-badge--discount {
	background: rgb(185 99 95 / 0.14);
	color: #e6a09c;
}

.vmm-badge--popular,
.vmm-badge--favorite {
	background: rgb(48 80 80 / 0.28);
	color: #b7d7d7;
}

.vmm-badge--new {
	background: rgb(111 155 120 / 0.14);
	color: #a8d1b0;
}

.vmm-item__price-number,
.vmm-item__currency,
.vmm-item__daily-price,
.vmm-item__meta {
	font-family: var(--viva-font, "Peyda", Tahoma, sans-serif);
	font-variant-numeric: normal;
}


.vmm-item__media {
	position: relative;
}

.vmm-item__badge-overlay {
	position: absolute;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	max-width: calc(100% - 1.5rem);
}

.vmm-item__badge-overlay .vmm-badge {
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.22);
	backdrop-filter: blur(8px);
}

.vmm-thousands-separator {
	display: inline-block;
	position: relative;
	top: 0.12em;
	margin-inline: 0.02em;
	line-height: 1;
}

.vmm-item__price-number {
	direction: ltr;
	unicode-bidi: isolate;
}


.vmm-filters {
	scroll-behavior: smooth;
	cursor: grab;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline proximity;
}

.vmm-filters.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.vmm-filter {
	scroll-snap-align: center;
	will-change: transform, background-color, color, border-color;
}

.vmm-filter.is-active {
	transform: none;
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--vmm-accent) 42%, transparent),
		0 8px 20px rgb(0 0 0 / 0.18);
}

.vmm-item {
	transform-origin: center top;
}

.vmm-item.is-entering {
	animation: vmmItemEnter 420ms cubic-bezier(.22,1,.36,1) both;
}

.vmm-menu.is-filtering .vmm-items {
	animation: vmmListPulse 520ms ease both;
}

@keyframes vmmItemEnter {
	from {
		opacity: 0;
		transform: translateY(14px) scale(.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes vmmListPulse {
	0% { filter: brightness(.98); }
	50% { filter: brightness(1.035); }
	100% { filter: brightness(1); }
}

.vmm-badge {
	border: 1px solid rgb(212 175 55 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
	.vmm-filters {
		scroll-behavior: auto;
	}

	.vmm-item.is-entering,
	.vmm-menu.is-filtering .vmm-items {
		animation: none !important;
	}
}


.vmm-item__media {
	border-style: solid;
	border-width: 0;
}

.vmm-item__category {
	color: var(--vmm-muted);
}

.vmm-item__description {
	word-break: break-word;
}


.vmm-variants {
	margin-top: 1rem;
}

.vmm-variants__label {
	margin-bottom: 0.55rem;
	color: var(--vmm-accent-soft);
	font-size: 0.8rem;
	font-weight: 700;
}

.vmm-variants__list {
	display: grid;
	gap: 0.4rem;
}

.vmm-variant {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.45rem 0.8rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--vmm-border);
	border-radius: 8px;
	background: rgb(255 255 255 / 0.025);
}

.vmm-variant__name {
	color: var(--vmm-text);
	font-size: 0.85rem;
	font-weight: 600;
}

.vmm-variant__price {
	color: var(--vmm-accent-soft);
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.vmm-variant__status {
	grid-column: 1 / -1;
	color: #d98b87;
	font-size: 0.72rem;
}

.vmm-variant.is-unavailable {
	opacity: 0.58;
}


/* Variant price layout: keep Persian number, separator and currency aligned. */
.vmm-variant__price {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	min-width: max-content;
	direction: rtl;
}

.vmm-variant__price-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 0.38rem;
	white-space: nowrap;
	direction: rtl;
	unicode-bidi: isolate;
}

.vmm-variant__price-number {
	display: inline-flex;
	align-items: baseline;
	direction: ltr;
	unicode-bidi: isolate;
	font-family: var(--viva-font, "Peyda", Tahoma, sans-serif);
	line-height: 1;
}

.vmm-variant__currency,
.vmm-variant__daily-price {
	display: inline-block;
	direction: rtl;
	unicode-bidi: isolate;
	line-height: 1;
}

.vmm-variant__price-number .vmm-thousands-separator {
	top: 0.08em;
}


/* Automatic placeholder media for items without a featured image */
.vmm-item__media--placeholder {
	aspect-ratio: 1 / 1;
	min-height: auto;
	background:
		radial-gradient(circle at top, rgb(243 229 171 / 0.12), transparent 54%),
		linear-gradient(160deg, rgb(48 80 80 / 0.95), rgb(22 27 24 / 1));
	color: #f3e5ab;
}

.vmm-layout-list .vmm-item__media--placeholder {
	aspect-ratio: 1 / 1;
	min-height: auto;
}

.vmm-item__media--restaurant {
	background:
		radial-gradient(circle at top, rgb(243 229 171 / 0.16), transparent 56%),
		linear-gradient(160deg, rgb(59 74 50 / 0.98), rgb(22 27 24 / 1));
}

.vmm-item__media--cafe {
	background:
		radial-gradient(circle at top, rgb(243 229 171 / 0.15), transparent 56%),
		linear-gradient(160deg, rgb(48 80 80 / 0.98), rgb(22 27 24 / 1));
}

.vmm-item__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
	padding: 1rem;
	color: inherit;
}

.vmm-item__placeholder svg {
	display: block;
	width: min(64px, 62%);
	height: auto;
	max-width: 72px;
	max-height: 72px;
}

.vmm-item__placeholder svg * {
	vector-effect: non-scaling-stroke;
}

.vmm-item__placeholder-dot {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.65;
}


/* Elementor style controls compatibility for filters and item price */
.vmm-filters {
	align-items: center;
}

.vmm-filter {
	box-sizing: border-box;
}

.vmm-item__price {
	box-sizing: border-box;
	border-style: solid;
	border-width: 0;
}

.vmm-layout-list .vmm-item__header,
.vmm-layout-card .vmm-item__header {
	min-width: 0;
}


/* v1.9.2: reliable category switching and smooth viewport movement */
.vmm-menu {
	--vmm-scroll-offset: 96px;
	scroll-behavior: smooth;
}

.vmm-item.is-hidden {
	display: none !important;
}

.vmm-item {
	scroll-margin-top: var(--vmm-scroll-offset);
}

.vmm-menu.is-filtering .vmm-items {
	will-change: contents;
}

.vmm-filters.is-dragging {
	cursor: grabbing;
	user-select: none;
	touch-action: pan-y;
}

.vmm-filter {
	position: relative;
	z-index: 1;
	pointer-events: auto;
	touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
	.vmm-menu,
	.vmm-filters {
		scroll-behavior: auto;
	}
}


/* v1.9.3: prevent the active category pill from being clipped */
.vmm-filters {
	padding-block-start: 4px;
	padding-inline: 2px;
	box-sizing: border-box;
}

.vmm-filter,
.vmm-filter:hover,
.vmm-filter.is-active {
	transform: none;
	transform-origin: center;
}

.vmm-filter.is-active {
	z-index: 2;
}

@media (max-width: 767px) {
	.vmm-filters {
		padding-block-start: 5px;
	}
}


/* v2.0.7: fill tall variant-item media with a blurred copy of the same image */
.vmm-item.has-variants .vmm-item__media:not(.vmm-item__media--placeholder) {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #111513;
}

.vmm-item__media-blur {
	position: absolute;
	z-index: 0;
	inset: -24px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(20px) saturate(0.92);
	transform: scale(1.12);
	opacity: 0.58;
	pointer-events: none;
}

.vmm-item.has-variants .vmm-item__media:not(.vmm-item__media--placeholder)::after {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgb(17 21 19 / 0.18),
			rgb(17 21 19 / 0.06) 45%,
			rgb(17 21 19 / 0.28)
		);
	pointer-events: none;
}

.vmm-item.has-variants .vmm-item__media-image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.vmm-item.has-variants .vmm-item__badge-overlay {
	z-index: 3;
}

.vmm-item.has-variants:hover .vmm-item__media-image {
	transform: scale(1.015);
}

@media (max-width: 767px) {
	.vmm-item__media-blur {
		inset: -18px;
		filter: blur(16px) saturate(0.94);
		opacity: 0.54;
	}
}


/* v2.0.7.1: variant placeholders and real images fill the full card height */
.vmm-layout-list .vmm-item.has-variants {
	align-items: stretch;
}

.vmm-layout-list .vmm-item.has-variants .vmm-item__media,
.vmm-layout-card .vmm-item.has-variants .vmm-item__media {
	align-self: stretch;
	min-height: 100%;
}

.vmm-layout-list .vmm-item.has-variants .vmm-item__media--placeholder,
.vmm-layout-card .vmm-item.has-variants .vmm-item__media--placeholder {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: auto;
	min-height: 100%;
	overflow: hidden;
}

.vmm-item.has-variants .vmm-item__media-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
}

.vmm-item__placeholder-blur {
	position: absolute;
	z-index: 0;
	inset: -18%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	opacity: 0.24;
	filter: blur(18px);
	transform: scale(1.7);
	pointer-events: none;
}

.vmm-item__placeholder-blur svg {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
}

.vmm-item.has-variants .vmm-item__media--placeholder::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		radial-gradient(circle at center, transparent 0 32%, rgb(17 21 19 / 0.12) 72%),
		linear-gradient(180deg, rgb(17 21 19 / 0.08), rgb(17 21 19 / 0.22));
	pointer-events: none;
}

.vmm-item.has-variants .vmm-item__media--placeholder .vmm-item__placeholder {
	position: relative;
	z-index: 2;
	min-height: 100%;
}

.vmm-item.has-variants .vmm-item__media--placeholder .vmm-item__placeholder svg {
	width: min(72px, 58%);
	max-width: 82px;
	max-height: 82px;
}

.vmm-item.has-variants .vmm-item__media--placeholder .vmm-item__badge-overlay {
	z-index: 4;
}


/* v2.0.7.2: make media fill the card height for every menu item */
.vmm-layout-list .vmm-item {
	align-items: stretch;
}

.vmm-layout-list .vmm-item .vmm-item__media,
.vmm-layout-card .vmm-item .vmm-item__media {
	position: relative;
	isolation: isolate;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	overflow: hidden;
	background: #111513;
}

.vmm-layout-list .vmm-item .vmm-item__media {
	aspect-ratio: auto;
}

/* Real featured images: sharp centered image over the blurred copy. */
.vmm-item .vmm-item__media:not(.vmm-item__media--placeholder) .vmm-item__media-image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
}

.vmm-item .vmm-item__media-blur {
	position: absolute;
	z-index: 0;
	inset: -24px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(20px) saturate(0.92);
	transform: scale(1.12);
	opacity: 0.58;
	pointer-events: none;
}

.vmm-item .vmm-item__media:not(.vmm-item__media--placeholder)::after {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgb(17 21 19 / 0.18),
			rgb(17 21 19 / 0.06) 45%,
			rgb(17 21 19 / 0.28)
		);
	pointer-events: none;
}

/* SVG placeholders: centered sharp icon with a blurred duplicate behind it. */
.vmm-layout-list .vmm-item .vmm-item__media--placeholder,
.vmm-layout-card .vmm-item .vmm-item__media--placeholder {
	aspect-ratio: auto;
	min-height: 100%;
}

.vmm-item .vmm-item__placeholder-blur {
	position: absolute;
	z-index: 0;
	inset: -18%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	opacity: 0.24;
	filter: blur(18px);
	transform: scale(1.7);
	pointer-events: none;
}

.vmm-item .vmm-item__placeholder-blur svg {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
}

.vmm-item .vmm-item__media--placeholder::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		radial-gradient(circle at center, transparent 0 32%, rgb(17 21 19 / 0.12) 72%),
		linear-gradient(180deg, rgb(17 21 19 / 0.08), rgb(17 21 19 / 0.22));
	pointer-events: none;
}

.vmm-item .vmm-item__media--placeholder .vmm-item__placeholder {
	position: relative;
	z-index: 2;
	min-height: 100%;
}

.vmm-item .vmm-item__media--placeholder .vmm-item__placeholder svg {
	width: min(72px, 58%);
	max-width: 82px;
	max-height: 82px;
}

.vmm-item .vmm-item__badge-overlay {
	z-index: 4;
}

.vmm-item:hover .vmm-item__media-image {
	transform: scale(1.015);
}

@media (max-width: 767px) {
	.vmm-item .vmm-item__media-blur {
		inset: -18px;
		filter: blur(16px) saturate(0.94);
		opacity: 0.54;
	}

	.vmm-item .vmm-item__placeholder-blur {
		filter: blur(15px);
		opacity: 0.22;
	}
}

/* v2.7.3 mobile menu item price alignment */
@media(max-width:767px){
	.vmm-item__header{
		grid-template-columns:1fr;
		gap:.35rem;
	}
	.vmm-item__price{
		white-space:normal;
		justify-content:flex-start;
		margin-top:.25rem;
	}
	.vmm-variant{
		grid-template-columns:1fr;
		align-items:start;
	}
	.vmm-variant__price{
		margin-top:.25rem;
	}
}
