:root {
	--emenu-primary: #0b5c44;
	--emenu-primary-dark: #073d2d;
	--emenu-accent: #d4af37;
	--emenu-bg: #f4f6f5;
	--emenu-card-bg: #ffffff;
	--emenu-text: #1f2a26;
	--emenu-muted: #6b7a75;
	--emenu-radius: 14px;
}

* { box-sizing: border-box; }

body.emenu-frontend-body {
	margin: 0;
	background: var(--emenu-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--emenu-text);
}

.emenu-phone-frame {
	max-width: 480px;
	margin: 0 auto;
	min-height: 100vh;
	background: var(--emenu-bg);
	box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

.emenu-cover {
	position: relative;
	background: linear-gradient(160deg, var(--emenu-accent, var(--emenu-primary)), var(--emenu-primary-dark));
	padding: 46px 20px 22px;
	text-align: center;
	color: #fff;
	border-bottom-left-radius: 24px;
	border-bottom-right-radius: 24px;
	overflow: hidden;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.emenu-cover-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.emenu-cover-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
	z-index: 1;
}

.emenu-cover.has-photo .emenu-business-name,
.emenu-cover.has-photo .emenu-lang-switcher {
	position: relative;
	z-index: 2;
}

.emenu-business-name {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.emenu-lang-switcher {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 12px;
	flex-wrap: wrap;
}

.emenu-lang-flag {
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 20px;
	padding: 4px 10px;
	font-size: 16px;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.emenu-lang-flag:hover { transform: translateY(-1px); }
.emenu-lang-flag.active { background: #fff; }

.emenu-categories-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 16px;
}

.emenu-cat-tile {
	position: relative;
	border: none;
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	background: #e2e6e4;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

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

.emenu-cat-tile-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	text-align: center;
	padding: 7px 4px;
	line-height: 1.25;
}

.emenu-back-to-categories-btn {
	display: block;
	width: calc(100% - 32px);
	background: var(--emenu-accent, var(--emenu-primary));
	border: none;
	color: #fff;
	padding: 14px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin: 12px 16px 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.emenu-back-to-categories-btn:hover { opacity: 0.92; }
.emenu-back-to-categories-btn-bottom { margin: 20px 16px 8px; }

.emenu-products-container {
	padding: 8px 16px 40px;
}

.emenu-hidden-section { display: none; }

.emenu-product-card {
	display: flex;
	gap: 14px;
	background: var(--emenu-card-bg);
	border-radius: var(--emenu-radius);
	padding: 12px;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	align-items: flex-start;
}

.emenu-product-card-img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
	background: #eee;
}

.emenu-product-card-body { flex: 1; min-width: 0; }

.emenu-product-card-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--emenu-text);
}

.emenu-product-card-desc {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--emenu-muted);
	line-height: 1.4;
}

.emenu-product-price {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	color: var(--emenu-accent, var(--emenu-primary));
}

.emenu-allergen-badges { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.emenu-allergen-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: #fff8ec;
	border: 1px solid #f0dfb8;
	border-radius: 50%;
	font-size: 12px;
	cursor: pointer;
}
.emenu-allergen-tip {
	position: absolute; transform: translate(-50%, -100%);
	background: #222; color: #fff; font-size: 12.5px; font-weight: 600;
	padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 99999;
	box-shadow: 0 4px 12px rgba(0,0,0,.25); pointer-events: none;
}
.emenu-allergen-tip::after {
	content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	border: 5px solid transparent; border-top-color: #222;
}

.emenu-empty-state {
	text-align: center;
	color: var(--emenu-muted);
	padding: 40px 20px;
}

.emenu-public-credit {
	text-align: center;
	font-size: 11px;
	color: #a8b3ae;
	padding: 0 16px 20px;
}
.emenu-public-credit a { color: #8a9994; }

/* ---------- Παραγγελίες / Καλάθι ---------- */

.emenu-qty-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}
.emenu-qty-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #d7dedb;
	background: #fff;
	color: var(--emenu-accent, var(--emenu-primary));
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}
.emenu-qty-controls.has-qty .emenu-qty-value { font-weight: 700; }
.emenu-qty-value { min-width: 18px; text-align: center; font-size: 14px; }

.emenu-cart-bar {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--emenu-accent, var(--emenu-primary));
	color: #fff;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
	z-index: 50;
}
.emenu-cart-bar button {
	background: rgba(255,255,255,0.2);
	border: 1px solid rgba(255,255,255,0.4);
	color: #fff;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.emenu-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	z-index: 200;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.emenu-cart-panel {
	background: #fff;
	width: 100%;
	max-width: 480px;
	max-height: 85vh;
	overflow-y: auto;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	padding: 20px;
}
.emenu-cart-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.emenu-cart-panel-header h3 { margin: 0; font-size: 17px; }
.emenu-cart-panel-header button {
	border: none;
	background: #f1f3f2;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 14px;
	cursor: pointer;
}

.emenu-table-field { margin-bottom: 14px; }
.emenu-table-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--emenu-text); }
.emenu-table-field input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d7dedb;
	font-size: 14px;
}
.emenu-table-field input[readonly] { background: #f1f3f2; color: #666; }

/* 🏨 Φόρμα δωματίου ξενοδοχείου (business.hotel_mode) */
.emenu-hotel-fields { margin-bottom: 6px; }
.emenu-hotel-field-row { display: flex; gap: 10px; }
.emenu-hotel-field-row .emenu-table-field { flex: 1; min-width: 0; }
.emenu-hotel-radio-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.emenu-hotel-radio-row label { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 400; }
#emenu-hotel-delivery-time { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #d7dedb; font-size: 14px; }

.emenu-cart-item-row {
	border-bottom: 1px solid #eee;
	padding: 12px 0;
}
.emenu-cart-item-top { display: flex; justify-content: space-between; align-items: center; }
.emenu-cart-item-title { font-weight: 700; font-size: 14px; }
.emenu-cart-item-remove { border: none; background: none; color: #b32d2e; font-size: 13px; cursor: pointer; }
.emenu-cart-item-qty { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.emenu-cart-item-price { margin-left: auto; font-weight: 700; color: var(--emenu-accent, var(--emenu-primary)); font-size: 13px; }
.emenu-cart-item-note {
	width: 100%;
	font-size: 12px;
	padding: 7px 9px;
	border-radius: 6px;
	border: 1px solid #e1e6e3;
	min-height: 40px;
	resize: vertical;
	font-family: inherit;
}

.emenu-cart-total {
	text-align: right;
	font-weight: 700;
	font-size: 15px;
	margin: 12px 0;
	color: var(--emenu-text);
}

.emenu-cart-msg { color: #b32d2e; font-size: 12px; min-height: 16px; margin-bottom: 6px; }

.emenu-cart-submit-btn {
	width: 100%;
	background: var(--emenu-accent, var(--emenu-primary));
	color: #fff;
	border: none;
	padding: 13px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.emenu-cart-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.emenu-call-waiter-btn {
	display: block;
	width: calc(100% - 32px);
	margin: 0 16px 14px;
	background: #fff;
	border: 2px solid var(--emenu-accent, var(--emenu-primary));
	color: var(--emenu-accent, var(--emenu-primary));
	padding: 12px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.emenu-call-waiter-btn:hover { background: #f7f9f8; }

@media (min-width: 481px) {
	.emenu-phone-frame {
		margin-top: 24px;
		margin-bottom: 24px;
		border-radius: 28px;
		overflow: hidden;
		min-height: auto;
	}
}
