* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #f5f5f5;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
	color: #1e1e2f;
	line-height: 1.4;
	padding: 0px 16px 40px;
}

/* main card container */
.restaurant-card {
	max-width: 550px;
	margin: 0 auto;
	background: white;
	border-radius: 0;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
	overflow: hidden;
	transition: all 0.2s ease;
}

/* Cover image area */
.cover-image {
	position: relative;
	height: 180px;
	background: linear-gradient(135deg, #f9b43a 0%, #fb8c3c 100%);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 16px;
}
.cover-image::after {
	content: "🍜 🍛 🥢";
	position: absolute;
	bottom: 12px;
	right: 16px;
	font-size: 48px;
	opacity: 0.3;
	pointer-events: none;
}
.cover-badge {
	background: rgba(0,0,0,0.65);
	backdrop-filter: blur(6px);
	border-radius: 40px;
	padding: 6px 14px;
	color: white;
	font-size: 13px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.cover-image-img{width:100%;}
/* Main content area */
.restaurant-info {
	padding: 20px 20px 0 20px;
}

.title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}
.restaurant-name {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.3px;
	color: #1c1c1e;
}
.uber-badge {
	background-color: #000000;
	color: white;
	border-radius: 40px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.stats-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 12px 0 12px 0;
	font-size: 14px;
	color: #5e5e6a;
}
.rating {
	display: flex;
	align-items: center;
	gap: 4px;
	background: #fef2e0;
	padding: 4px 10px;
	border-radius: 40px;
	font-weight: 500;
}
.rating i { color: #ffb347; }
.rating span:first-of-type { font-weight: 700; color: #2c2c2e; }
.distance, .reorder { display: flex; align-items: center; gap: 6px; }
.reorder i, .distance i { color: #10b981; }
.reorder strong { color: #1e1e2f; }

.badge-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.badge {
	background: #f2f2f6;
	border-radius: 30px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.badge i { color: #ff7a2f; }
.badge-green { background: #e8f3ef; color: #1f7b4d; }

/* Menu category block style (category title without icon) */
.menu-sections {
	padding: 0 0 30px 0;
}
.menu-section {
	scroll-margin-top: 80px;
	margin-bottom: 32px;
}
.section-header {
	margin-bottom: 16px;
	padding: 0 4px;
}
.section-header h3 {
	font-size: 22px;
	font-weight: 700;
	color: #2c2c2e;
}
.menu-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.menu-item {
	display: flex;
	gap: 16px;
	background: white;
	border-radius: 24px;
	padding: 12px;
	border: 1px solid #f0f0f0;
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.item-img {
	width: 80px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	flex-shrink: 0;
}
.item-img img{width:80px;}
.item-details { flex: 1; }
.item-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}
.item-title h4 { font-size: 17px; font-weight: 700; }
.rank-badge {
	background: #ffedd5;
	border-radius: 30px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 700;
	color: #c2410c;
}
.item-desc {
	font-size: 13px;
	color: #7c7c86;
	margin: 6px 0 8px 0;
	display: flex;
	gap: 12px;
}
.price { font-weight: 700; font-size: 16px; color: #2c2c2e; }
.order-btn {
	margin-left: auto;
	background: #fb8c3c10;
	border-radius: 40px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #fb8c3c;
	border: 1px solid #fb8c3c30;
	cursor: default;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: center;
}
.full-day-banner {
	background: #fff7ef;
	border-radius: 24px;
	padding: 16px 18px;
	margin-bottom: 20px;
	border-left: 5px solid #f39c12;
}
.time-range {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 6px;
}
.footer-note {
	text-align: center;
	padding: 16px 20px 24px;
	font-size: 12px;
	color: #a1a1aa;
	border-top: 1px solid #f0f0f0;
	margin-top: 8px;
}

/* ========= Fixed top navigation bar (supports touch sliding + gradient mask) ========= */
.fixed-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid #f0f0f0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transform: translateY(-100%);
	transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.fixed-nav.visible {
	transform: translateY(0);
}
.nav-container {
	max-width: 550px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	position: relative;
}
.nav-menu-trigger {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: #f2f2f6;
	border-radius: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #e67e22;
	cursor: pointer;
	transition: 0.2s;
	z-index: 2;
}
.nav-menu-trigger:active { background: #e5e5ea; transform: scale(0.96); }

/* Slide the scroll area */
.nav-scroll-wrapper {
	flex: 1;
	position: relative;
	overflow: hidden;
	border-radius: 40px;
}
.nav-scroll {
	overflow-x: hidden;
	overflow-y: hidden;
	touch-action: pan-y pinch-zoom;
	cursor: grab;
}
.nav-scroll:active {
	cursor: grabbing;
}
.nav-list {
	display: inline-flex;
	gap: 8px;
	padding: 4px 4px 8px 0;
	white-space: nowrap;
	transition: transform 0.1s ease-out;
	will-change: transform;
}
.nav-item {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	background: #f8f8fc;
	border-radius: 40px;
	font-size: 14px;
	font-weight: 500;
	color: #5e5e6a;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	user-select: none;
}
.nav-item.active {
	background: #fff1e6;
	color: #e67e22;
	font-weight: 600;
	box-shadow: 0 2px 6px rgba(230,126,34,0.12);
}
/* Left-right gradient mask */
.nav-mask-left, .nav-mask-right {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 30px;
	pointer-events: none;
	z-index: 3;
	transition: opacity 0.2s;
	opacity: 0;
}
.nav-mask-left {
	left: 0;
	background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0));
}
.nav-mask-right {
	right: 0;
	background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0));
}
.nav-mask-left.visible, .nav-mask-right.visible {
	opacity: 1;
}

/* bottom pop-up */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	z-index: 1100;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s, opacity 0.2s;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.modal-overlay.active {
	visibility: visible;
	opacity: 1;
}
.bottom-sheet {
	background: white;
	width: 100%;
	max-width: 550px;
	border-radius: 32px 32px 0 0;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
	padding: 24px 20px 30px;
	max-height: 80vh;
	overflow-y: auto;
}
.modal-overlay.active .bottom-sheet {
	transform: translateY(0);
}
.sheet-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
	font-weight: 700;
	font-size: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f3f3f3;
}
.close-sheet { font-size: 24px; color: #aaa; cursor: pointer; }
.all-cats-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
}
.all-cat-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #fafafc;
	border-radius: 20px;
	font-weight: 500;
	font-size: 17px;
	cursor: pointer;
}
.hide-btn {
	background: #f2f2f6;
	text-align: center;
	padding: 14px;
	border-radius: 40px;
	font-weight: 600;
	color: #8e8e98;
	cursor: pointer;
}
@media (max-width: 480px) {
	body { padding: 0px 12px 30px; }
	.item-img { width: 70px; height: 70px; font-size: 30px; }
	.item-img img{width:70px;}
}
/* Shopping cart floating button + corner label */
.cart-float {
	position: fixed; bottom: 24px; right: 24px; z-index: 1050;
	background: #fb8c3c; width: 56px; height: 56px; border-radius: 28px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: transform 0.1s;
}
.cart-float:active { transform: scale(0.94); }
.cart-float i { font-size: 26px; color: white; }
.cart-badge {
	position: absolute; top: -6px; right: -6px; background: #e63946; color: white;
	font-size: 12px; font-weight: bold; min-width: 20px; height: 20px; border-radius: 20px;
	display: flex; align-items: center; justify-content: center; padding: 0 5px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* Bottom shopping cart pop-up window */
.cart-modal {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
	background: white; border-radius: 32px 32px 0 0; transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.2,0.9,0.4,1.1);
	max-height: 80vh; display: flex; flex-direction: column;
	box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}
.cart-modal.open { transform: translateY(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 12px; border-bottom: 1px solid #f0f0f0; font-weight: 700; font-size: 20px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; gap: 12px; }
.cart-item-info { flex: 2; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: #fb8c3c; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; }
.cart-qty-btn { width: 32px; height: 32px; background: #f2f2f6; border-radius: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; }
.cart-qty { min-width: 28px; text-align: center; font-weight: 500; border: none;}
.cart-item-remove { color: #e63946; cursor: pointer; font-size: 18px; margin-left: 8px; }
.cart-footer { padding: 16px 20px 30px; background: white; border-radius: 0 0 32px 32px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.checkout-btn { background: #fb8c3c; color: white; text-align: center; padding: 14px; border-radius: 40px; font-weight: 600; cursor: pointer; }
.empty-cart { text-align: center; padding: 40px 20px; color: #aaa; }
.cart-loading { text-align: center; padding: 40px 20px; color: #fb8c3c; }
.cart-loading i { font-size: 32px; margin-bottom: 12px; display: block; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.cart-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4);
	backdrop-filter: blur(4px); z-index: 1150; visibility: hidden; opacity: 0;
	transition: visibility 0.2s, opacity 0.2s;
}
.cart-overlay.active { visibility: visible; opacity: 1; }
@media (max-width: 480px) { .item-img { width: 70px; height: 70px; font-size: 30px; } }
/* flyer */
.flyer {
	position: fixed;
	z-index: 9999;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: white;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	will-change: transform, opacity;
	transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.45s ease-out;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.flyer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
	background: #f8fafc;
}
.flyer-start {
	opacity: 1;
	transform: scale(1);
}
.flyer-fly {
	opacity: 0;
	transform: scale(0.2) rotate(20deg);
}