/*
Theme mobile restaurant menu
Designed for mobile first
*/

:root {
	--rm-bg: #14110f;
	--rm-bg-soft: #211a16;
	--rm-card: #2a211c;
	--rm-card-2: #342923;
	--rm-gold: #d9a85e;
	--rm-gold-light: #f1ca89;
	--rm-text: #fffaf2;
	--rm-muted: rgba(255, 250, 242, 0.62);
	--rm-border: rgba(255, 255, 255, 0.11);
	--rm-green: #268159;
	--rm-red: #af573e;
}

/* ریست و پایه */
.restaurant-mobile-body {
	margin: 0;
	padding: 0;
	background:
		radial-gradient(circle at top left, #443026 0%, transparent 32%),
		linear-gradient(135deg, #17120f, #0d0b09);
	color: var(--rm-text);
	font-family: Vazirmatn, Tahoma, Arial, sans-serif;
	direction: rtl;
}

.restaurant-mobile-body * {
	box-sizing: border-box;
}

/* حذف کامل ساختار قدیمی قالب */
.restaurant-mobile-body #header,
.restaurant-mobile-body .header-wrapper,
.restaurant-mobile-body .mobile-menu-wrapper,
.restaurant-mobile-body .footer2,
.restaurant-mobile-body .page-bg,
.restaurant-mobile-body .animsition.global-wrapper > .footer,
.restaurant-mobile-body .wp-block-post-title {
	display: none !important;
}

/*
قاب اپ موبایل:
در گوشی تمام‌عرض است.
در دسکتاپ حداکثر 480px عرض دارد.
*/
.restaurant-app-shell {
	position: relative;
	width: 100%;
	max-width: 480px;
	min-height: 100vh;
	margin: 0 auto;

	/* مهم: برای عملکرد position: sticky */
	overflow: visible;

	background: var(--rm-bg);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}


@media (min-width: 700px) {
	.restaurant-app-shell {
		min-height: calc(100vh - 30px);
		margin-top: 15px;
		margin-bottom: 15px;
		border: 1px solid rgba(237, 193, 117, 0.18);
		border-radius: 28px;
		box-shadow:
			0 30px 90px rgba(0, 0, 0, 0.56),
			0 0 0 8px rgba(255, 255, 255, 0.025);
	}
}

/* هدر */
.restaurant-app-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(22, 17, 14, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.restaurant-header-inner {
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 16px;
}

.restaurant-brand {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 10px;
	color: #fff;
	text-decoration: none;
}

.restaurant-brand:hover {
	color: #fff;
}

.restaurant-logo-wrap {
	width: 45px;
	height: 45px;
	flex-shrink: 0;
	overflow: hidden;
	border: 1px solid rgba(229, 180, 97, 0.60);
	border-radius: 15px;
	background: #34261f;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.24);
}

.restaurant-logo {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.restaurant-brand-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.restaurant-brand-content strong {
	overflow: hidden;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.restaurant-brand-content span {
	color: rgba(255, 255, 255, 0.48);
	font-size: 9px;
}

.restaurant-header-buttons {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 7px;
}

.restaurant-header-action {
	width: 37px;
	height: 37px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(226, 175, 95, 0.30);
	border-radius: 12px;
	background: rgba(217, 168, 94, 0.09);
	color: var(--rm-gold-light);
	font-size: 15px;
	text-decoration: none;
	transition: 0.25s ease;
	cursor: pointer;
}

.restaurant-header-action:hover {
	border-color: var(--rm-gold);
	background: var(--rm-gold);
	color: #251a12;
}

/* Hero */
.restaurant-menu-hero {
	position: relative;
	overflow: hidden;
	padding: 42px 20px 38px;
	background:
		radial-gradient(circle at 85% 18%, rgba(221, 157, 72, 0.30), transparent 30%),
		radial-gradient(circle at 0% 100%, rgba(142, 43, 26, 0.30), transparent 35%),
		linear-gradient(135deg, #2d211b, #17120f);
	text-align: center;
}

.restaurant-menu-hero-pattern {
	position: absolute;
	top: -90px;
	left: -80px;
	width: 230px;
	height: 230px;
	border: 1px solid rgba(235, 191, 115, 0.17);
	border-radius: 50%;
	box-shadow:
		0 0 0 25px rgba(235, 191, 115, 0.025),
		0 0 0 50px rgba(235, 191, 115, 0.02);
}

.restaurant-menu-hero-content {
	position: relative;
	z-index: 2;
}

.restaurant-menu-hero-icon {
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	border: 1px solid rgba(234, 187, 106, 0.65);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
	color: var(--rm-gold-light);
	font-size: 24px;
	transform: rotate(-4deg);
}

.restaurant-menu-kicker {
	display: block;
	margin-bottom: 8px;
	color: var(--rm-gold-light);
	font-size: 10px;
	letter-spacing: 0.3px;
}

.restaurant-menu-title {
	margin: 0;
	color: #fff;
	font-size: 31px;
	font-weight: 900;
	line-height: 1.5;
}

.restaurant-menu-title span {
	color: var(--rm-gold-light);
}

.restaurant-menu-subtitle {
	max-width: 310px;
	margin: 10px auto 0;
	color: var(--rm-muted);
	font-size: 11px;
	line-height: 2;
}

.restaurant-menu-title-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 17px;
	color: var(--rm-gold);
	font-size: 10px;
}

.restaurant-menu-title-divider span {
	width: 50px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--rm-gold));
}

.restaurant-menu-title-divider span:last-child {
	background: linear-gradient(90deg, var(--rm-gold), transparent);
}

/* بدنه منو */
.restaurant-menu-section {
	position: relative;
	padding: 0 14px 90px;
	background:
		linear-gradient(180deg, #17120f 0%, #120e0c 100%);
}

/* فیلتر */
.restaurant-menu-filters-wrap {
	position: relative;
	z-index: 4;
	margin-top: -18px;
	margin-bottom: 24px;
	padding: 15px 12px;
	border: 1px solid var(--rm-border);
	border-radius: 19px;
	background: rgba(48, 37, 31, 0.92);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.restaurant-menu-filter-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-bottom: 12px;
	color: rgba(255, 255, 255, 0.60);
	font-size: 10px;
}

.restaurant-menu-filter-heading i {
	color: var(--rm-gold-light);
}

.restaurant-menu-filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px 3px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.restaurant-menu-filters::-webkit-scrollbar {
	display: none;
}

.restaurant-menu-filter {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.68);
	font-family: inherit;
	font-size: 11px;
	white-space: nowrap;
	transition: 0.25s ease;
	cursor: pointer;
}

.restaurant-menu-filter i {
	color: var(--rm-gold);
}

.restaurant-menu-filter.is-active {
	border-color: var(--rm-gold);
	background: var(--rm-gold);
	box-shadow: 0 7px 16px rgba(217, 168, 94, 0.22);
	color: #2a1e14;
}

.restaurant-menu-filter.is-active i {
	color: #2a1e14;
}

.restaurant-menu-filter-count {
	min-width: 17px;
	height: 17px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.13);
	font-size: 9px;
}

.restaurant-menu-filter.is-active .restaurant-menu-filter-count {
	background: rgba(43, 31, 21, 0.14);
}

/* کارت غذا */
.restaurant-food-list {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.restaurant-food-card {
	display: flex;
	overflow: hidden;
	min-height: 145px;
	border: 1px solid var(--rm-border);
	border-radius: 18px;
	background: linear-gradient(145deg, var(--rm-card-2), var(--rm-card));
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.restaurant-food-card.is-hidden {
	display: none;
}

.restaurant-food-card:active {
	transform: scale(0.98);
}

.restaurant-food-image-wrap {
	position: relative;
	width: 125px;
	flex-shrink: 0;
	overflow: hidden;
	background: #1e1713;
}

.restaurant-food-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.restaurant-food-image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(20, 14, 11, 0.76) 100%);
}

.restaurant-food-category {
	position: absolute;
	right: 7px;
	bottom: 8px;
	left: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	background: rgba(18, 13, 10, 0.60);
	backdrop-filter: blur(5px);
	color: #fff;
	font-size: 8px;
	text-align: center;
	white-space: nowrap;
}

.restaurant-food-category i {
	color: var(--rm-gold-light);
}

.restaurant-food-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 14px 13px 11px;
}

.restaurant-food-heading {
	display: flex;
	align-items: center;
	gap: 8px;
}

.restaurant-food-title {
	overflow: hidden;
	flex-shrink: 0;
	margin: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.restaurant-food-line {
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(225, 174, 93, 0.55));
}

.restaurant-food-description {
	display: -webkit-box;
	overflow: hidden;
	margin: 8px 0;
	color: rgba(255, 255, 255, 0.56);
	font-size: 10px;
	line-height: 1.9;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.restaurant-food-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 8px;
	margin-top: auto;
	border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.restaurant-food-price {
	display: flex;
	align-items: baseline;
	gap: 3px;
	color: var(--rm-gold-light);
	white-space: nowrap;
}

.restaurant-food-price > span {
	color: rgba(255, 255, 255, 0.40);
	font-size: 8px;
}

.restaurant-food-price strong {
	font-size: 14px;
	font-weight: 900;
}

.restaurant-food-price small {
	font-size: 8px;
}

.restaurant-food-more {
	width: 29px;
	height: 29px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid rgba(228, 178, 96, 0.44);
	border-radius: 9px;
	background: rgba(217, 168, 94, 0.08);
	color: var(--rm-gold-light);
	font-size: 11px;
	cursor: pointer;
}

/* حالت خالی */
.restaurant-menu-empty {
	padding: 55px 20px;
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	text-align: center;
}

.restaurant-menu-empty-icon {
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 13px;
	border-radius: 18px;
	background: rgba(217, 168, 94, 0.12);
	color: var(--rm-gold-light);
	font-size: 22px;
}

.restaurant-menu-empty h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.restaurant-menu-empty p {
	margin: 0;
	color: var(--rm-muted);
	font-size: 11px;
}

/* فوتر */
.restaurant-app-footer {
	padding: 25px 15px 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #0f0c0a;
	text-align: center;
}

.restaurant-footer-socials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 14px;
}

.restaurant-footer-socials a {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.70);
	font-size: 15px;
	text-decoration: none;
	transition: 0.25s ease;
}

.restaurant-footer-socials a:hover {
	border-color: var(--rm-gold);
	background: var(--rm-gold);
	color: #23180f;
}

.restaurant-footer-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: rgba(255, 255, 255, 0.43);
	font-size: 9px;
}

.restaurant-footer-text a {
	color: var(--rm-gold-light);
	text-decoration: none;
}

/* دکمه‌های شناور */
.restaurant-floating-actions {
	position: fixed;
	z-index: 90;
	left: max(14px, calc((100vw - 480px) / 2 + 14px));
	bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.restaurant-floating-button {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 0;
	border-radius: 15px;
	box-shadow: 0 9px 22px rgba(0, 0, 0, 0.28);
	color: #fff;
	font-family: inherit;
	text-decoration: none;
	transition: 0.25s ease;
	cursor: pointer;
}

.restaurant-floating-button span {
	display: none;
	font-size: 10px;
}

.restaurant-floating-call {
	background: linear-gradient(135deg, #3c9b6b, #1d6742);
}

.restaurant-floating-location {
	background: linear-gradient(135deg, #c98050, #98482e);
}

.restaurant-floating-button:hover {
	color: #fff;
	transform: translateY(-3px);
}

/* مدال */
.restaurant-location-modal {
	position: fixed;
	z-index: 9999;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	visibility: hidden;
	background: rgba(0, 0, 0, 0);
	transition: 0.25s ease;
}

.restaurant-location-modal.is-open {
	visibility: visible;
	background: rgba(0, 0, 0, 0.64);
}

.restaurant-location-modal-overlay {
	position: absolute;
	inset: 0;
}

.restaurant-location-modal-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 480px;
	padding: 34px 24px calc(26px + env(safe-area-inset-bottom));
	border: 1px solid rgba(229, 179, 98, 0.28);
	border-bottom: 0;
	border-radius: 25px 25px 0 0;
	background: linear-gradient(145deg, #382b23, #211914);
	box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.35);
	text-align: center;
	transform: translateY(110%);
	transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}

.restaurant-location-modal.is-open .restaurant-location-modal-dialog {
	transform: translateY(0);
}

.restaurant-location-modal-close {
	position: absolute;
	top: 13px;
	left: 13px;
	width: 31px;
	height: 31px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: transparent;
	color: rgba(255, 255, 255, 0.70);
	cursor: pointer;
}

.restaurant-location-modal-icon {
	width: 62px;
	height: 62px;
	display: inline-flex;
	align-items:
}



/* هر دکمه اندازه طبیعی خود را حفظ کند و به خط بعد نرود */
.restaurant-menu-filter {
	flex: 0 0 auto;
	white-space: nowrap;
}


/* ==========================================================
   Sticky Category Filters
   ========================================================== */
/* ==========================================================
   Sticky دسته‌بندی‌های منو
   ========================================================== */
.restaurant-menu-filters-wrap {
	position: -webkit-sticky;
	position: sticky;

	/* ارتفاع هدر restaurant-app-header برابر 72px است */
	top: 72px;

	z-index: 90;

	/* استایل اصلی کارت */
	margin-top: -18px;
	margin-bottom: 24px;
	padding: 15px 12px;

	border: 1px solid var(--rm-border);
	border-radius: 19px;

	/* پس‌زمینه باید مات باشد تا غذاها زیر آن دیده نشوند */
	background: rgba(48, 37, 31, 0.97);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);

	box-shadow:
		0 14px 30px rgba(0, 0, 0, 0.22),
		0 10px 20px rgba(0, 0, 0, 0.18);
}

/* اطمینان از اینکه والد Sticky محدودش نمی‌کند */
.restaurant-menu-section,
.restaurant-app-content {
	overflow: visible;
}


/* فاصله و اسکرول افقی خود دسته‌ها */
.restaurant-menu-filters-wrap .restaurant-menu-filters {
	padding-top: 4px;
	padding-bottom: 12px;
}

.restaurant-menu-category-title{
	text-align: center;
    padding-top: 68px;
    border-bottom: gold 5px solid;
}