.mmo-menu {
	--mmo-ink: #23201c;
	--mmo-soft: #6f6862;
	--mmo-line: #e6e1da;
	--mmo-paper: #fffdfa;
	--mmo-accent: #9a3f1f;
	--mmo-radius: 10px;

	color: var(--mmo-ink);
	max-width: 1140px;
	margin: 0 auto;
}

.mmo-menu *,
.mmo-drawer *,
.mmo-modal * { box-sizing: border-box; }

/* Sections */

.mmo-group { margin-bottom: 52px; }

.mmo-group-title {
	font-size: 1.5rem;
	letter-spacing: 0.02em;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--mmo-line);
}

.mmo-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.mmo-menu[data-columns="2"] .mmo-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.mmo-menu[data-columns="4"] .mmo-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Cards */

.mmo-card {
	background: var(--mmo-paper);
	border: 1px solid var(--mmo-line);
	border-radius: var(--mmo-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.mmo-card:hover {
	box-shadow: 0 8px 22px rgba(35, 32, 28, 0.09);
	transform: translateY(-2px);
}

.mmo-card.is-unavailable { opacity: 0.72; }

.mmo-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f2ede6;
	overflow: hidden;
}

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

.mmo-card-placeholder {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #f2ede6, #f2ede6 12px, #ece5dc 12px, #ece5dc 24px);
}

.mmo-soldout {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(35, 32, 28, 0.85);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
}

.mmo-card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mmo-card-title { font-size: 1.08rem; margin: 0 0 6px; line-height: 1.3; }
.mmo-card-short { margin: 0 0 10px; color: var(--mmo-soft); font-size: 0.9rem; line-height: 1.5; }

.mmo-allergens { font-size: 0.78rem; color: var(--mmo-soft); margin: 0 0 12px; }

.mmo-allergen-label {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 0.68rem;
	margin-right: 4px;
}

.mmo-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 8px;
}

.mmo-price { font-weight: 700; font-size: 1.05rem; }

/* Buttons */

.mmo-btn {
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 6px;
	border: 1px solid var(--mmo-accent, #9a3f1f);
	background: transparent;
	color: var(--mmo-accent, #9a3f1f);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.mmo-btn:hover { background: var(--mmo-accent, #9a3f1f); color: #fff; }

.mmo-btn-primary {
	background: var(--mmo-accent, #9a3f1f);
	color: #fff;
	padding: 12px 20px;
}

.mmo-btn-primary:hover { filter: brightness(1.08); }
.mmo-btn-quiet { border-color: #cfc7bd; color: #6f6862; }
.mmo-btn:disabled { opacity: 0.6; cursor: default; }

.mmo-closed {
	background: #fdf3e3;
	border-left: 4px solid #d59a2f;
	padding: 12px 16px;
	margin-bottom: 28px;
}

/* Modal */

.mmo-modal,
.mmo-drawer { position: fixed; inset: 0; z-index: 9999; }

.mmo-modal[hidden],
.mmo-drawer[hidden] { display: none; }

.mmo-modal-backdrop,
.mmo-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 21, 18, 0.55);
}

.mmo-modal-panel {
	position: relative;
	max-width: 620px;
	max-height: 88vh;
	margin: 5vh auto;
	background: #fffdfa;
	border-radius: 12px;
	overflow-y: auto;
	padding: 26px 28px 30px;
	color: #23201c;
}

.mmo-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 0;
	font-size: 26px;
	line-height: 1;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	color: #23201c;
}

.mmo-modal-gallery img { display: none; width: 100%; border-radius: 8px; }
.mmo-modal-gallery img.is-active { display: block; }

.mmo-thumbs { display: flex; gap: 8px; margin: 10px 0 4px; }

.mmo-thumbs button {
	border: 2px solid transparent;
	background: none;
	padding: 0;
	border-radius: 6px;
	cursor: pointer;
	line-height: 0;
	overflow: hidden;
}

.mmo-thumbs button.is-active { border-color: var(--mmo-accent, #9a3f1f); }
.mmo-thumbs img { width: 56px; height: 44px; object-fit: cover; }

.mmo-modal-panel h2 { margin: 16px 0 4px; font-size: 1.5rem; }
.mmo-modal-panel h3 { margin: 22px 0 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6f6862; }
.mmo-modal-price { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; }
.mmo-modal-desc { line-height: 1.6; }
.mmo-modal-video { margin: 16px 0; }
.mmo-modal-video video, .mmo-video-frame iframe { width: 100%; border-radius: 8px; }

.mmo-ingredients { margin: 0; padding-left: 18px; line-height: 1.7; }
.mmo-modal-allergens { font-size: 0.88rem; margin: 14px 0 0; }
.mmo-prep { font-size: 0.85rem; color: #6f6862; }

.mmo-addon {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--mmo-line, #e6e1da);
	border-radius: 8px;
	margin-bottom: 8px;
	cursor: pointer;
}

.mmo-addon:hover { background: #faf7f2; }
.mmo-addon span:nth-of-type(1) { flex: 1; }
.mmo-addon-cost { font-weight: 600; font-size: 0.9rem; }

.mmo-notes-field,
.mmo-checkout label {
	display: block;
	margin: 16px 0 0;
	font-size: 0.85rem;
	font-weight: 600;
}

.mmo-notes-field textarea,
.mmo-checkout input,
.mmo-checkout select,
.mmo-checkout textarea {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
	border: 1px solid #d8d1c8;
	border-radius: 6px;
	background: #fff;
}

.mmo-qty-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
}

.mmo-stepper {
	display: flex;
	align-items: center;
	border: 1px solid #d8d1c8;
	border-radius: 6px;
	overflow: hidden;
}

.mmo-step {
	width: 40px;
	height: 42px;
	border: 0;
	background: #f6f2ec;
	font-size: 18px;
	cursor: pointer;
	color: #23201c;
}

.mmo-step:hover { background: #ece5dc; }
.mmo-qty { min-width: 44px; text-align: center; font-weight: 700; }
.mmo-qty-row .mmo-btn-primary { flex: 1; }
.mmo-soldout-note { margin-top: 20px; font-weight: 600; color: #9a3f1f; }

/* Floating cart button */

.mmo-cart-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	border: 0;
	border-radius: 40px;
	background: #23201c;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(24, 21, 18, 0.3);
	transition: transform 0.2s ease;
}

.mmo-cart-button[hidden] { display: none; }
.mmo-cart-button.is-bumped { transform: scale(1.08); }

.mmo-cart-count {
	background: #9a3f1f;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
}

.mmo-cart-total { opacity: 0.75; font-weight: 400; }

/* Drawer */

.mmo-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 100%);
	background: #fffdfa;
	color: #23201c;
	display: flex;
	flex-direction: column;
}

.mmo-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px 14px;
	border-bottom: 1px solid #e6e1da;
}

.mmo-drawer-head h2 { margin: 0; font-size: 1.2rem; }
.mmo-drawer-head .mmo-modal-close { position: static; background: none; }
.mmo-drawer-body { padding: 18px 22px 30px; overflow-y: auto; flex: 1; }

.mmo-cart-lines { list-style: none; margin: 0; padding: 0; }

.mmo-cart-line {
	padding: 12px 0;
	border-bottom: 1px solid #f0ebe4;
}

.mmo-line-main { display: flex; gap: 8px; align-items: baseline; }
.mmo-line-qty { font-weight: 700; }
.mmo-line-name { flex: 1; }
.mmo-line-total { font-weight: 600; }
.mmo-line-extras, .mmo-line-notes { margin: 4px 0 0 22px; font-size: 0.82rem; color: #6f6862; }
.mmo-line-notes { font-style: italic; }

.mmo-line-remove {
	background: none;
	border: 0;
	padding: 2px 0 0 22px;
	font-size: 0.78rem;
	color: #9a3f1f;
	cursor: pointer;
	text-decoration: underline;
}

.mmo-cart-empty { color: #6f6862; padding: 18px 0; }
.mmo-cart-summary { margin-top: 18px; padding-top: 14px; border-top: 2px solid #e6e1da; }
.mmo-sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }
.mmo-sum-total { font-size: 1.15rem; font-weight: 700; padding-top: 8px; }

.mmo-checkout h3 { margin: 26px 0 4px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6f6862; }
.mmo-optional { font-weight: 400; color: #9a938b; }
.mmo-checkout .mmo-btn-primary { width: 100%; margin-top: 20px; }
.mmo-fineprint { font-size: 0.78rem; color: #6f6862; margin-top: 10px; text-align: center; }

.mmo-error, .mmo-error-text {
	background: #fbeaea;
	border-left: 3px solid #a12525;
	color: #7d1d1d;
	padding: 10px 12px;
	margin-top: 16px;
	font-size: 0.88rem;
}

.mmo-success { text-align: center; padding: 30px 0; }
.mmo-order-number { font-size: 2rem; font-weight: 700; margin: 10px 0; }

body.mmo-locked { overflow: hidden; }

/* Lookup */

.mmo-lookup { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.mmo-lookup label { font-size: 0.85rem; font-weight: 600; }
.mmo-lookup input { display: block; margin-top: 5px; padding: 10px 12px; font: inherit; border: 1px solid #d8d1c8; border-radius: 6px; }
.mmo-lookup-result { margin-top: 18px; padding: 16px 18px; background: #faf7f2; border-radius: 8px; }
.mmo-lookup-number { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; }

@media (max-width: 600px) {
	.mmo-modal-panel { margin: 0; max-height: 100vh; border-radius: 0; padding: 22px 18px 26px; }
	.mmo-cart-button { left: 16px; right: 16px; justify-content: center; }
}

/* Parallax layers */

.mmo-card-media.has-layers,
.mmo-modal-layers {
	position: relative;
	overflow: hidden;
	background: #f2ede6;
}

.mmo-modal-layers {
	aspect-ratio: 16 / 10;
	border-radius: 8px;
}

.mmo-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	will-change: transform;
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mmo-layer-bg { transform: scale(1.08); z-index: 1; }

.mmo-layer-fg {
	object-fit: contain;
	transform: scale(1.04);
	z-index: 2;
	filter: drop-shadow(0 12px 18px rgba(28, 22, 16, 0.28));
}

.mmo-card:hover .mmo-layer { transition-duration: 0.12s; }

@media (prefers-reduced-motion: reduce) {
	.mmo-layer { transition: none; transform: none !important; }
}

/* Live pricing in the modal */

.mmo-addon.is-on {
	border-color: var(--mmo-accent, #9a3f1f);
	background: #fdf6f2;
}

.mmo-addon input { accent-color: var(--mmo-accent, #9a3f1f); }

.mmo-live-total { font-variant-numeric: tabular-nums; opacity: 0.92; }
.mmo-live-total:not(:empty)::before { content: " · "; opacity: 0.6; }

.mmo-unit-price {
	margin: 14px 0 0;
	font-size: 0.82rem;
	color: #6f6862;
	text-align: right;
	min-height: 1em;
}

/* Address lookup */

.mmo-address-field { margin: 16px 0 0; position: relative; }
.mmo-address-field label { display: block; font-size: 0.85rem; font-weight: 600; }

.mmo-suggestions {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	border: 1px solid #d8d1c8;
	border-radius: 6px;
	background: #fff;
	max-height: 190px;
	overflow-y: auto;
	position: relative;
	z-index: 5;
}

.mmo-suggestions li {
	padding: 9px 12px;
	font-size: 0.84rem;
	cursor: pointer;
	border-bottom: 1px solid #f2ede6;
	line-height: 1.4;
}

.mmo-suggestions li:last-child { border-bottom: 0; }
.mmo-suggestions li:hover { background: #faf7f2; }

.mmo-map {
	height: 200px;
	margin-top: 10px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #d8d1c8;
}

.mmo-map-hint { font-size: 0.78rem; color: #6f6862; margin: 6px 0 0; }
.pac-container { z-index: 10000; }
