:root {
	--brand-primary: #f9b80f;
	--brand-accent: #f9b80f;
	--brand-bg: #e8ebe4;
	--brand-nav-bg: #ffffff;
	--brand-nav-text: #212529;
	--brand-footer-bg: #0000003e;
	--brand-footer-text: #706d6d;
	--brand-bg-image: none;
	--bg-light: #fafafa;
	--card-bg: #ffffff;
	--text-dark: #1a1a1a;
	--text-mid: #555;
	--text-light: #999;
	--border-color: #e0e0e0;
	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 50px;
	--shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
	--frame-max-width: 768px;
}

* { box-sizing: border-box; }

body {
	font-family: 'DM Sans', sans-serif;
	background: var(--brand-bg);
	color: var(--text-dark);
	min-height: 100vh;
	padding: 40px 20px;
	margin: 0;
}

body.menu-outlet-bg-image {
	background-image: var(--brand-bg-image);
	background-size: cover;
	background-position: center center;
	background-attachment: fixed;
}

.menu-top-nav {
	width: min(100%, var(--frame-max-width));
	margin: 0 auto;
	background: var(--card-bg);
	border-radius: 36px 36px 0 0;
	box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
}

.menu-app-shell {
	display: flex;
	justify-content: center;
}

.screen-view { width: 100%; }

.phone-frame {
	width: min(100%, var(--frame-max-width));
	min-height: 700px;
	background: var(--card-bg);
	border-radius: 0 0 36px 36px;
	box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
}

.menu-header {
	padding: 22px 20px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.menu-header-stacked {
	display: block;
	padding-top: 14px;
}
.menu-header-row-logo {
	display: flex;
	justify-content: center;
	padding-bottom: 10px;
}
.menu-header-row-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.menu-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
.menu-header-logo {
	/* width: clamp(64px, 22vw, 108px); */
	max-width: 100%;
	height: 60px;
}
.menu-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e8f5e9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-accent);
}
.menu-greeting {
	font-size: 12px;
	color: var(--text-light);
}
.menu-name {
	font-size: 15px;
	font-weight: 700;
}
.menu-cart-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 0;
	background: none;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	color: var(--brand-accent);
}
.menu-cart-icon .badge-dot {
	position: absolute;
	top: 5px;
	right: 5px;
	min-width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--brand-accent);
	color: #fff;
	font-size: 9px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}

.cart-badge-pulse {
	animation: cartBadgePulse 0.45s ease;
}

@keyframes cartBadgePulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.45); }
	100% { transform: scale(1); }
}

.cart-fly-dot {
	position: fixed;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--brand-accent);
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	z-index: 12000;
	opacity: 0.95;
	pointer-events: none;
	transition: left 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s ease, opacity 0.5s ease;
}

.cart-fly-dot.is-flying {
	transform: scale(0.4);
	opacity: 0.1;
}

.menu-search {
	padding: 16px 20px 0;
}
.search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--bg-light);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	border: 1px solid transparent;
}
.search-box input {
	border: 0;
	background: transparent;
	outline: 0;
	font-size: 13px;
	flex: 1;
}
.search-icon {
	color: var(--text-light);
}

.header-image-wrap {
	margin: 16px 20px 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--border-color);
}
.header-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: cover;
}

.order-type-gate {
	background: #f7f7f7;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 10px;
}
.order-type-title {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 8px;
}
.order-type-gate .btn {
	font-size: 12px;
}

.category-section {
	padding: 18px 20px 0;
}
.section-label {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
}
.category-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-chip {
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	border: 1.5px solid var(--border-color);
	background: transparent;
	color: var(--text-mid);
}
.category-chip.active {
	background: var(--brand-accent);
	color: #fff;
	border-color: var(--brand-accent);
}

.menu-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 8px;
}
.menu-section-header h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

.menu-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding: 0 20px 24px;
}
.menu-card {
	background: var(--bg-light);
	border-radius: var(--radius);
	padding: 14px;
	position: relative;
}
.menu-card-emoji {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: #e8f5e9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin-bottom: 8px;
}

.menu-card-image {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	margin-bottom: 8px;
}
.menu-card-name {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 2px;
}
.menu-card-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--brand-primary);
	margin-bottom: 8px;
}
.menu-card-rating {
	font-size: 11px;
	color: var(--text-light);
}
.menu-card-add {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 0;
	background: var(--brand-accent);
	color: #fff;
	font-size: 16px;
	line-height: 1;
}

.product-hero {
	background: var(--brand-accent);
	border-radius: 0 0 40px 40px;
	padding: 20px 20px 0;
	position: relative;
	overflow: hidden;
	min-height: 290px;
}
.product-hero::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -30px;
	width: 140px;
	height: 140px;
	background: rgba(255,255,255,0.18);
	border-radius: 50%;
}
.product-hero::after {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	width: 100px;
	height: 100px;
	background: rgba(255,255,255,0.12);
	border-radius: 50%;
}
.hero-nav {
	display: flex;
	justify-content: space-between;
	position: relative;
	z-index: 2;
}
.nav-circle {
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.18);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	border: none;
}
.pizza-image-wrap {
	text-align: center;
	position: relative;
	z-index: 2;
	margin-top: 8px;
}
.pizza-emoji-hero,
.product-detail-image {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 80px;
	background: rgba(255,255,255,0.1);
	color: #fff;
	object-fit: cover;
	filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3));
}
.product-body {
	padding: 20px 20px 0;
	flex: 1;
}
.product-title {
	font-family: 'Playfair Display', serif;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
}
.price-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.product-price {
	font-size: 26px;
	font-weight: 700;
	color: var(--text-dark);
}
.qty-control {
	display: flex;
	align-items: center;
	gap: 14px;
}
.qty-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--brand-accent);
	background: transparent;
	color: var(--brand-accent);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.qty-num {
	font-size: 18px;
	font-weight: 700;
	min-width: 20px;
	text-align: center;
}
.ingredients-row {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.ingredient-chip {
	display: inline-flex;
	align-items: center;
	background: var(--bg-light);
	border-radius: var(--radius-pill);
	padding: 6px 12px;
	font-size: 12px;
	color: var(--text-mid);
}
.bottom-bar {
	padding: 14px 20px 24px;
}

.cart-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px 20px 14px;
	position: relative;
}
.cart-header h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}
.cart-close {
	position: absolute;
	right: 20px;
	top: 22px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: var(--bg-light);
	font-size: 16px;
}

.cart-items {
	padding: 0 20px;
	flex: 1;
	overflow-y: auto;
}
.cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border-color);
}
.cart-item-image {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: #e8f5e9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
}
.cart-item-info { flex: 1; }
.cart-item-name {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
}
.cart-item-price {
	font-size: 13px;
	color: var(--text-light);
}

.qty-stepper {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.qty-stepper button {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid var(--border-color);
	background: transparent;
	font-size: 14px;
}
.qty-stepper .qty-value {
	min-width: 14px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}

.promo-row {
	display: flex;
	gap: 8px;
	padding: 16px 20px;
}
.promo-input {
	flex: 1;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	font-size: 13px;
}
.btn-promo {
	background: var(--brand-accent);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
}

.summary-line {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--text-mid);
	margin-bottom: 8px;
}
.summary-line.total {
	font-weight: 700;
	color: var(--text-dark);
	font-size: 16px;
	border-top: 1.5px solid var(--border-color);
	padding-top: 10px;
	margin-top: 4px;
}
.cart-summary {
	padding: 10px 20px 0;
}

.cart-bottom,
.checkout-bottom {
	padding: 14px 20px 24px;
}

.btn-green-pill {
	width: 100%;
	background: var(--brand-accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-pill);
	padding: 14px;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.btn-green-pill.uppercase {
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.checkout-header {
	display: flex;
	align-items: center;
	padding: 22px 20px 10px;
	gap: 12px;
}
.checkout-header h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}
.nav-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.nav-circle.light {
	background: var(--bg-light);
	color: var(--brand-accent);
}

.checkout-body {
	padding: 0 20px;
	flex: 1;
	overflow-y: auto;
}
.checkout-section-label {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
	margin-top: 16px;
}

.checkout-summary {
	padding: 0 20px;
	margin-top: 16px;
}

.success-icon {
	font-size: 44px;
	color: var(--brand-accent);
}

#appFooter {
	width: min(100%, var(--frame-max-width));
	margin: 10px auto 0;
	padding: 0 12px 14px;
	background: transparent;
	color: var(--brand-footer-text);
	text-align: center;
}
#appFooter a { color: inherit; text-decoration: none; }
#footerContent.footer-powered {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	/* background: var(--brand-footer-bg); */
	/* border: 1px solid rgba(255, 255, 255, 0.18); */
}
.footer-powered-label {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.2px;
	opacity: 0.95;
}
#footerContent img {
	height: 22px;
	width: auto;
	display: block;
}
#footerContent p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
	body {
		padding: 0;
	}
	.menu-grid {
		grid-template-columns: 1fr;
	}
	.menu-top-nav {
		width: 100%;
		border-radius: 0;
		box-shadow: none;
	}
	.phone-frame {
		width: 100%;
		min-height: 100vh;
		border-radius: 0;
		box-shadow: none;
	}
	#appFooter {
		width: 100%;
		margin-top: 0;
		padding: 10px 12px 14px;
	}
}
