:root {
  --primary: #1a6fe0;
  --primary-dark: #0f4fb0;
  --primary-light: #eaf2ff;
  --secondary: #ff8a1e;
  --secondary-dark: #e06e00;
  --secondary-light: #fff2e3;
  --dark: #16202e;
  --gray: #6b6b6b;
  --gray-light: #9a9a9a;
  --light-bg: #f7f8fa;
  --border: #ececec;
  --green: #48c479;
  --navy-deep: #081633;
  --navy-mid: #0f2f66;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(20,20,20,.05);
  --shadow-md: 0 8px 24px rgba(20,20,20,.08);
  --shadow-lg: 0 16px 40px rgba(20,20,20,.12);
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; overflow-x:hidden; width:100%; }
body { font-family:'Poppins',sans-serif; color:var(--dark); background:#fff; line-height:1.5; -webkit-font-smoothing:antialiased; overflow-x:hidden; width:100%; position:relative; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
ul { list-style:none; }
button { font-family:inherit; }

/* ================= Header ================= */
.site-header { background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:200; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:72px; gap:16px; }
.header-left { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.header-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* Round logo badge — left corner, image admin-controlled via Settings > Logo
   (falls back to the site name's first letter when no logo is uploaded). */
.logo-round {
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  width:46px; height:46px; border-radius:50%; overflow:hidden;
  background:linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:var(--shadow-sm);
}
.logo-round img { width:100%; height:100%; object-fit:cover; display:block; }
.logo-round span { font-size:19px; font-weight:800; color:#fff; }

/* Site name — centered text next to the logo (shown in place of the nav
   links once those move into the bottom app bar on mobile). */
.header-site-name {
  display:none; flex:1; text-align:center; font-size:17px; font-weight:800;
  letter-spacing:-.3px; color:var(--dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.main-nav { display:flex; align-items:center; gap:26px; font-weight:500; font-size:14.5px; }
.main-nav a { color:var(--dark); position:relative; padding:6px 0; transition:color .15s; }
.main-nav a:hover { color:var(--primary); }
.btn-nav { background:var(--secondary); color:#fff !important; padding:9px 20px; border-radius:24px; font-weight:600; box-shadow:0 4px 12px rgba(255,138,30,.3); }
.btn-nav:hover { background:var(--secondary-dark); }
.cart-link { position:relative; display:inline-flex; align-items:center; }
.cart-badge { position:absolute; top:-9px; right:-14px; background:var(--secondary); color:#fff; font-size:10.5px; font-weight:700; padding:1px 6px; border-radius:10px; min-width:17px; text-align:center; box-shadow:0 2px 4px rgba(0,0,0,.2); }
.mobile-cart-icon { display:none; color:var(--dark); }
.nav-right-mobile { display:none; align-items:center; gap:14px; }

/* Hamburger */
.hamburger { display:none; flex-direction:column; justify-content:center; gap:5px; width:34px; height:34px; background:none; border:none; cursor:pointer; padding:0; }
.hamburger span { width:100%; height:2.4px; background:var(--dark); border-radius:2px; transition:.25s; }
.hamburger.active span:nth-child(1) { transform:translateY(7.4px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:translateY(-7.4px) rotate(-45deg); }

/* ================= Bottom App Nav (mobile, Zomato-style) ================= */
.bottom-nav { display:none; }
@media (max-width: 768px) {
  body { padding-bottom:calc(60px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:300;
    background:#fff; border-top:1px solid var(--border);
    box-shadow:0 -3px 14px rgba(0,0,0,.06);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:2px; padding:9px 4px 7px; color:var(--gray-light); font-size:10.5px; font-weight:600;
    transition:.15s; position:relative;
  }
  .bottom-nav a svg { width:22px; height:22px; transition:.15s; }
  .bottom-nav a.active { color:var(--primary); }
  .bottom-nav a.active::before {
    content:''; position:absolute; top:2px; left:50%; transform:translateX(-50%);
    width:40px; height:26px; border-radius:14px; background:var(--primary-light); z-index:-1;
  }
  .bottom-nav .bn-icon-wrap { position:relative; display:inline-flex; }
  .bottom-nav .bn-badge {
    position:absolute; top:-6px; right:-9px; background:var(--secondary); color:#fff;
    font-size:9px; font-weight:700; padding:1px 5px; border-radius:8px; min-width:15px; text-align:center;
    box-shadow:0 1px 3px rgba(0,0,0,.25);
  }
  .whatsapp-float { z-index:250; }
  .detail-buy-bar { bottom:calc(60px + env(safe-area-inset-bottom)) !important; z-index:260; }
  .site-footer { display:none; } /* redundant on mobile once bottom nav + account menu exist */
}


/* ================= Hero ================= */
.hero-search {
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(255,138,30,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 45%, var(--primary) 100%);
  padding:38px 0 44px; text-align:center; color:#fff; position:relative; overflow:hidden;
}
.hero-search h1 { font-size:30px; font-weight:800; margin-bottom:8px; letter-spacing:-.5px; }
.hero-search p { opacity:.85; margin-bottom:22px; font-size:14.5px; }
.hero-search form { max-width:560px; margin:0 auto; display:flex; gap:8px; background:#fff; padding:6px; border-radius:50px; box-shadow:var(--shadow-lg); width:100%; position:relative; }
.hero-search .search-icon { position:absolute; left:20px; top:50%; transform:translateY(-50%); color:var(--gray-light); pointer-events:none; }
.hero-search input { flex:1 1 auto; min-width:0; width:100%; padding:12px 16px 12px 40px; border-radius:50px; border:none; font-size:14.5px; color:var(--dark); font-family:inherit; background:transparent; }
.hero-search input:focus { outline:none; }
.hero-search button { flex:0 0 auto; white-space:nowrap; border-radius:50px !important; padding:12px 26px !important; }

/* Filter chips under hero search */
.filter-chips { max-width:560px; margin:18px auto 0; display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding:2px 2px; }
.section .filter-chips, .container > .filter-chips { max-width:none; margin:0; }
.filter-chips::-webkit-scrollbar { display:none; }
.filter-chip {
  flex:0 0 auto; padding:8px 18px; border-radius:50px; font-size:13px; font-weight:600;
  color:#fff; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3); transition:.15s;
}
.filter-chip:hover { background:rgba(255,255,255,.24); }
.filter-chip.active { background:#fff; color:var(--primary-dark); border-color:#fff; }

/* Delivery info strip, floats over the hero/content boundary */
.info-strip {
  max-width:520px; margin:-22px auto 0; position:relative; z-index:3;
  background:#fff; border-radius:50px; box-shadow:var(--shadow-md);
  display:flex; align-items:center; gap:10px; padding:12px 20px; font-size:13.5px; font-weight:600; color:var(--dark);
}
.info-strip svg { flex-shrink:0; color:var(--secondary); }
.info-strip span.note { font-weight:400; color:var(--gray); margin-left:auto; font-size:12.5px; text-align:right; }

/* ================= Sections ================= */
.section { padding:36px 0; }
.section-title { font-size:22px; font-weight:800; margin-bottom:18px; letter-spacing:-.3px; position:relative; padding-left:14px; }
.section-title::before { content:''; position:absolute; left:0; top:3px; bottom:3px; width:5px; border-radius:4px; background:linear-gradient(var(--primary), var(--secondary)); }

/* ================= Banner ================= */
.banner-slider { width:100%; overflow:hidden; margin-top:18px; position:relative; z-index:2; }
.banner-slider img { width:calc(100% - 40px); max-width:1160px; margin:0 auto; height:280px; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-md); }

/* ================= Category cards ================= */
.category-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr)); gap:14px; }
.category-card {
  display:block; text-align:center; border-radius:16px; padding:16px 8px 12px;
  border:2px solid transparent; transition:.2s; position:relative;
}
.category-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-sm); }
.category-card.active { border-color:var(--primary); }
.category-card.active span { color:var(--primary); }

/* Rotating vibrant pastel backgrounds, cycling through categories */
.category-card:nth-child(6n+1) { background:#e9f3ff; }
.category-card:nth-child(6n+2) { background:#fff1e0; }
.category-card:nth-child(6n+3) { background:#eafbf3; }
.category-card:nth-child(6n+4) { background:#f5edff; }
.category-card:nth-child(6n+5) { background:#ffeaf1; }
.category-card:nth-child(6n+6) { background:#fff9db; }

.category-card-img {
  width:68px; height:68px; border-radius:50%; overflow:hidden; margin:0 auto 10px;
  background:#fff; border:3px solid #fff; box-shadow:0 4px 12px rgba(20,20,20,.1);
}
.category-card-img img, .category-card-img video { width:100%; height:100%; object-fit:cover; }
.category-card-all {
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff; font-weight:800; font-size:14px; letter-spacing:1px;
}
.category-card span { display:block; font-weight:700; font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--dark); }

/* ================= Food grid ================= */
.food-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:24px 20px; }
.food-card { border:1px solid var(--border); border-radius:var(--radius); overflow:visible; background:#fff; transition:.2s; }
.food-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.food-img-wrap { position:relative; }
.food-card .food-img { height:160px; overflow:hidden; position:relative; background:var(--light-bg); display:block; border-radius:var(--radius) var(--radius) 0 0; }
.food-card .food-img img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius) var(--radius) 0 0; }
.veg-badge { position:absolute; top:10px; left:10px; width:18px; height:18px; border:2px solid var(--green); border-radius:4px; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 4px rgba(0,0,0,.15); }
.veg-badge::after { content:''; width:8px; height:8px; border-radius:50%; background:var(--green); }
.non-veg-badge { border-color:var(--secondary); }
.non-veg-badge::after { background:var(--secondary); }
.portion-badge { position:absolute; bottom:8px; left:8px; background:rgba(0,0,0,.65); color:#fff; font-size:10px; font-weight:600; padding:3px 8px; border-radius:5px; }
.food-add-btn {
  position:absolute; bottom:-15px; right:14px; z-index:5;
  display:inline-flex; align-items:center; gap:4px; background:var(--secondary); color:#fff;
  border:none; border-radius:50px; padding:8px 16px; font-size:12.5px; font-weight:700;
  box-shadow:0 4px 10px rgba(255,138,30,.4); cursor:pointer; transition:.15s;
}
.food-add-btn:hover { background:var(--secondary-dark); transform:translateY(-1px); }
.food-add-btn:disabled { opacity:.7; cursor:default; transform:none; }
.food-info { padding:22px 14px 14px; border-radius:0 0 var(--radius) var(--radius); }
.food-info h3 { font-size:15.5px; margin-bottom:4px; font-weight:600; }
.food-info p { font-size:12.5px; color:var(--gray); margin-bottom:10px; min-height:32px; line-height:1.4; }
.food-price-row { display:flex; align-items:center; justify-content:space-between; }
.food-price { font-weight:700; font-size:16px; }
.rating-chip { background:var(--green); color:#fff; font-size:11.5px; padding:3px 8px; border-radius:6px; font-weight:600; display:inline-flex; align-items:center; gap:2px; }

/* ================= Section title row (title + "See All") ================= */
.section-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.section-title-row .section-title { margin-bottom:0; }
.see-all-link { font-size:13.5px; font-weight:700; color:var(--primary); white-space:nowrap; }
.see-all-link:hover { text-decoration:underline; }

/* ================= Restaurant cards ================= */
.restaurant-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:20px; }
.restaurant-scroll-row { display:flex; gap:16px; overflow-x:auto; padding-bottom:6px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.restaurant-scroll-row .restaurant-card { flex:0 0 250px; scroll-snap-align:start; }
.restaurant-card { display:block; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#fff; transition:.2s; color:inherit; }
.restaurant-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.restaurant-card-img { position:relative; height:150px; background:var(--light-bg); }
.restaurant-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.restaurant-closed-badge {
  position:absolute; top:10px; right:10px; background:rgba(0,0,0,.72); color:#fff;
  font-size:11px; font-weight:700; padding:4px 9px; border-radius:6px; letter-spacing:.2px;
}
.restaurant-card-body { padding:14px; }
.restaurant-card-body h3 { font-size:16px; font-weight:700; margin-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.restaurant-meta-row { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--gray); flex-wrap:wrap; }
.restaurant-cuisines { font-size:12.5px; color:var(--gray); margin-top:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.restaurant-hero { width:100%; height:220px; overflow:hidden; background:var(--light-bg); }
.restaurant-hero img { width:100%; height:100%; object-fit:cover; display:block; }
.restaurant-detail-head h1 { font-size:24px; font-weight:800; margin-bottom:2px; }

/* ================= Buttons ================= */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:11px 22px; border-radius:10px; font-weight:600; cursor:pointer; border:none; font-size:14px; transition:.18s; }
.btn-primary { background:var(--secondary); color:#fff; }
.btn-primary:hover { background:var(--secondary-dark); box-shadow:0 4px 14px rgba(255,138,30,.35); }
.btn-outline { background:#fff; border:1.5px solid var(--primary); color:var(--primary); }
.btn-outline:hover { background:var(--primary-light); }
.btn-block { width:100%; }
.btn-sm { padding:7px 14px; font-size:12.5px; border-radius:8px; }
.btn-secondary { background:var(--dark); color:#fff; }
.btn-danger { background:#fdeaea; color:#c22029; }
.btn-danger:hover { background:#f8d7da; }

/* ================= Forms ================= */
.auth-wrap { max-width:420px; margin:50px auto; padding:32px 28px; border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.auth-wrap h2 { margin-bottom:22px; text-align:center; font-size:22px; font-weight:800; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; margin-bottom:6px; font-weight:500; font-size:13.5px; color:var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:12px 14px; border:1.5px solid var(--border); border-radius:10px; font-size:14.5px; font-family:inherit; transition:.15s; background:#fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(26,111,224,.1); }
.form-row { display:flex; gap:14px; }
.form-row .form-group { flex:1; }
.form-hint { display:block; margin-top:6px; font-size:12px; color:var(--gray); line-height:1.5; }

/* ================= Embedded location-picker map (checkout + order-detail pages) ================= */
.checkout-map, .order-map {
  width:100%; height:260px; border-radius:12px; margin-top:12px;
  border:1px solid var(--border); background:var(--light-bg); z-index:0;
}
.order-map { height:220px; margin-bottom:8px; }
.leaflet-container { border-radius:12px; font-family:inherit; }
.leaflet-control-attribution {
  font-size:9.5px !important; padding:1px 5px !important; opacity:.75;
  background:rgba(255,255,255,.75) !important;
}
.leaflet-control-attribution a { color:var(--gray); }
.media-type-toggle { display:flex; gap:10px; flex-wrap:wrap; }
.media-type-toggle label { display:flex; align-items:center; gap:6px; padding:9px 14px; border:1.5px solid var(--border,#e2e2e2); border-radius:8px; cursor:pointer; font-weight:500; font-size:13.5px; margin-bottom:0; }
.media-type-toggle input[type="radio"] { width:auto; margin:0; }
.media-type-toggle label:has(input:checked) { border-color:var(--primary); background:rgba(26,111,224,.06); color:var(--primary); }
.alert { padding:13px 16px; border-radius:10px; margin-bottom:16px; font-size:13.5px; }
.alert-error { background:#fdeaea; color:var(--primary-dark); border:1px solid #f5c2c7; }
.alert-success { background:#e7f9ef; color:#1e7e42; border:1px solid #b7ebc9; }
.text-center { text-align:center; }
.text-left { text-align:left; }
.mt-16 { margin-top:16px; }

/* ================= My Account page ================= */
.account-guest {
  max-width:380px; margin:60px auto; text-align:center; padding:36px 28px;
  border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm);
}
.account-guest-icon {
  width:76px; height:76px; margin:0 auto 18px; border-radius:50%; background:var(--primary-light);
  color:var(--primary); display:flex; align-items:center; justify-content:center;
}
.account-guest h2 { font-size:20px; font-weight:800; margin-bottom:8px; }
.account-guest p { color:var(--gray); font-size:13.5px; margin-bottom:22px; }
.account-guest-actions { display:flex; flex-direction:column; gap:10px; }

.account-profile-card {
  display:flex; align-items:center; gap:16px; background:linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color:#fff; border-radius:var(--radius); padding:22px; margin-bottom:18px; box-shadow:var(--shadow-md);
}
.account-avatar {
  flex-shrink:0; width:60px; height:60px; border-radius:50%; background:rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:800;
  border:2px solid rgba(255,255,255,.5);
}
.account-profile-info h2 { font-size:18px; font-weight:800; margin-bottom:4px; }
.account-profile-info p { font-size:12.5px; opacity:.92; line-height:1.5; }

.account-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
.account-stat {
  text-align:center; background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:16px 8px; transition:.15s;
}
.account-stat:hover { border-color:var(--primary); box-shadow:var(--shadow-sm); }
.account-stat-num { display:block; font-size:22px; font-weight:800; color:var(--secondary); }
.account-stat-label { display:block; font-size:11.5px; color:var(--gray); margin-top:2px; font-weight:600; }

.account-menu { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.account-menu-item {
  display:flex; align-items:center; gap:14px; padding:15px 18px; border-bottom:1px solid var(--border);
  font-weight:600; font-size:14px; transition:.15s;
}
.account-menu-item:last-child { border-bottom:none; }
.account-menu-item:hover { background:var(--light-bg); }
.account-menu-icon { color:var(--primary); flex-shrink:0; display:flex; }
.account-menu-text { flex:1; }
.account-menu-arrow { color:var(--gray-light); font-size:20px; }
.account-menu-badge { background:var(--secondary,#ff7a45); color:#fff; font-size:11px; font-weight:700; min-width:18px; height:18px; padding:0 5px; border-radius:10px; display:flex; align-items:center; justify-content:center; line-height:1; margin-left:auto; margin-right:4px; }
.account-menu-logout .account-menu-icon, .account-menu-logout .account-menu-text { color:var(--secondary-dark); }

/* ================= Cart page ================= */
.cart-layout { display:grid; grid-template-columns:1.6fr 1fr; gap:26px; align-items:start; }
.cart-item {
  display:flex; align-items:center; gap:14px; padding:14px; margin-bottom:12px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm);
}
.cart-item img { width:68px; height:68px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.cart-item-info { flex:1; min-width:0; }
.cart-item-info h3 { font-size:14.5px; font-weight:600; }
.cart-item-info .unit-price { color:var(--gray); font-size:12.5px; margin-top:2px; }
.portion-tag { display:inline-block; background:var(--light-bg); border:1px solid var(--border); color:var(--gray); font-size:10.5px; font-weight:600; padding:1px 7px; border-radius:6px; margin-left:4px; vertical-align:middle; }
.qty-control { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.qty-control button { width:28px; height:28px; border-radius:50%; border:1.5px solid var(--border); background:#fff; cursor:pointer; font-size:16px; line-height:1; display:flex; align-items:center; justify-content:center; }
.qty-control button:hover { border-color:var(--primary); color:var(--primary); }
.cart-item-total { width:64px; text-align:right; font-weight:700; font-size:14px; flex-shrink:0; }
.cart-item-remove { flex-shrink:0; width:32px; height:32px; border-radius:8px; border:none; background:#fdeaea; color:#c22029; font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.cart-item-remove:hover { background:#f8d7da; }

.cart-summary { background:var(--light-bg); border-radius:var(--radius); padding:22px; border:1px solid var(--border); }
.summary-row { display:flex; justify-content:space-between; margin-bottom:11px; font-size:14px; color:var(--gray); }
.summary-row.total { font-weight:800; font-size:18px; color:var(--dark); border-top:1.5px dashed var(--border); padding-top:14px; margin-top:14px; }
.promo-box { display:flex; gap:8px; margin-bottom:14px; }
.promo-box input { flex:1; }
#promo_msg { min-height:18px; }

/* ================= WhatsApp float ================= */
.whatsapp-float {
  position:fixed; bottom:22px; right:20px; background:#25D366; width:56px; height:56px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.28); z-index:150; animation:pulse 2.2s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 14px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ================= Footer ================= */
.site-footer { background:var(--dark); color:#999; text-align:center; padding:26px 0; margin-top:44px; font-size:13px; }

/* Locks page scroll while mobile drawer is open */
body.menu-open { overflow:hidden; height:100vh; }
.nav-backdrop {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:198;
}
body.menu-open .nav-backdrop { display:block; }

/* ================= Badges ================= */
.badge { padding:4px 11px; border-radius:20px; font-size:11.5px; font-weight:700; white-space:nowrap; }
.badge-placed { background:#fff3cd; color:#856404; }
.badge-confirmed, .badge-preparing { background:#cce5ff; color:#004085; }
.badge-out_for_delivery { background:#d1ecf1; color:#0c5460; }
.badge-delivered { background:#d4edda; color:#155724; }
.badge-cancelled { background:#f8d7da; color:#721c24; }
.badge-ready { background:#e3d4fd; color:#5a2d9c; }
.badge-served { background:#d4edda; color:#155724; }

/* ================= Food Detail Page ================= */
.detail-layout { display:grid; grid-template-columns:1fr 1.1fr; gap:34px; align-items:start; }
.detail-img-wrap { position:relative; border-radius:var(--radius); overflow:hidden; background:var(--light-bg); box-shadow:var(--shadow-sm); }
.detail-img-wrap img { width:100%; height:360px; object-fit:cover; }
.detail-img-wrap .veg-badge { position:absolute; top:14px; left:14px; width:22px; height:22px; }
.detail-info h1 { font-size:26px; font-weight:800; margin-bottom:8px; letter-spacing:-.3px; }
.detail-rating { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.detail-rating .stars { color:var(--green); font-size:16px; letter-spacing:1px; }
.detail-rating .rating-num { font-size:13px; color:var(--gray); font-weight:600; }
.detail-rating .review-count { font-size:12.5px; color:var(--gray-light); }
.detail-desc { color:var(--gray); font-size:14.5px; margin-bottom:22px; line-height:1.6; }

/* ================= Ratings & Reviews ================= */
.review-layout { display:grid; grid-template-columns:320px 1fr; gap:28px; align-items:start; }
.review-form-card { background:var(--light-bg); border-radius:var(--radius); padding:20px; }
.review-form-title { font-size:16px; font-weight:700; margin-bottom:12px; }
.review-hint { color:var(--gray); font-size:13.5px; }
.review-hint a { color:var(--primary); font-weight:600; }
.star-picker { font-size:30px; color:var(--border); margin-bottom:14px; cursor:pointer; letter-spacing:4px; }
.star-picker .star-pick { transition:.1s; }
.star-picker .star-pick.picked, .star-picker .star-pick.hover-pick { color:var(--secondary); }
.review-form-card textarea {
  width:100%; border:1.5px solid var(--border); border-radius:var(--radius-sm); padding:10px 12px;
  font-family:inherit; font-size:13.5px; resize:vertical; margin-bottom:12px; background:#fff;
}
.review-form-card textarea:focus { outline:none; border-color:var(--primary); }
.review-msg { font-size:12.5px; margin-top:10px; font-weight:600; min-height:16px; }
.review-msg.success { color:var(--green); }
.review-msg.error { color:var(--secondary-dark); }
.review-list { display:flex; flex-direction:column; gap:14px; }
.review-item { border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px 16px; }
.review-item-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.review-author { font-weight:700; font-size:13.5px; }
.review-stars { color:var(--green); font-size:13px; letter-spacing:1px; }
.review-text { font-size:13.5px; color:var(--dark); line-height:1.5; margin-bottom:8px; }
.review-date { font-size:11.5px; color:var(--gray-light); }

.portion-select { margin-bottom:20px; }
.portion-title { display:block; font-weight:700; font-size:13.5px; margin-bottom:10px; }
.portion-options { display:flex; gap:12px; }
.portion-option {
  flex:1; border:1.5px solid var(--border); border-radius:var(--radius-sm); padding:12px 14px;
  display:flex; flex-direction:column; gap:4px; cursor:pointer; transition:.15s; position:relative;
}
.portion-option input { position:absolute; opacity:0; }
.portion-option.selected, .portion-option:has(input:checked) { border-color:var(--primary); background:var(--primary-light); }
.portion-name { font-weight:600; font-size:13.5px; }
.portion-price { font-weight:700; font-size:15px; color:var(--secondary); }

.detail-price-row { display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-top:1px dashed var(--border); border-bottom:1px dashed var(--border); margin-bottom:18px; font-size:14px; color:var(--gray); }
.detail-price { font-size:22px; font-weight:800; color:var(--dark); }
.detail-qty { margin-bottom:20px; }
.detail-qty span { font-weight:700; font-size:16px; min-width:20px; text-align:center; }
.detail-actions { display:flex; gap:12px; }
.detail-actions .btn { flex:1; padding:13px; font-size:14.5px; }

/* ================= Order cards ================= */
.order-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:18px; margin-bottom:16px; box-shadow:var(--shadow-sm); }

/* ---------- Notifications ---------- */
.notification-list { display:flex; flex-direction:column; gap:12px; }
.notification-link-wrap { text-decoration:none; color:inherit; display:block; }
.notification-item { display:flex; gap:14px; background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow-sm); }
.notification-item.notification-unread { border-color:var(--primary); background:var(--primary-light, #f2edff); }
.notification-icon { font-size:22px; flex-shrink:0; line-height:1; }
.notification-body { flex:1; min-width:0; }
.notification-title-row { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.notification-title-row strong { font-size:15px; }
.notification-new-badge { background:var(--primary); color:#fff; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:20px; text-transform:uppercase; letter-spacing:.3px; }
.notification-body p { color:var(--gray); font-size:13.5px; margin-bottom:6px; line-height:1.5; }
.notification-time { color:var(--gray-light); font-size:12px; }

/* ---------- Header bell ---------- */
/* Notification bell — same rounded "card" look as the bottom-nav buttons */
.notif-bell-btn {
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:var(--radius, 14px);
  background:var(--primary-light); color:var(--primary);
  box-shadow:var(--shadow-sm); transition:.15s;
}
.notif-bell-btn:hover { background:var(--primary); color:#fff; }
.notif-bell-btn svg { display:block; }
.notif-bell-badge { position:absolute; top:-4px; right:-6px; background:var(--secondary,#ff7a45); color:#fff; font-size:10px; font-weight:700; min-width:16px; height:16px; padding:0 3px; border-radius:10px; display:flex; align-items:center; justify-content:center; line-height:1; box-shadow:0 2px 4px rgba(0,0,0,.2); }

/* ---------- Saved addresses ---------- */
.address-list { display:flex; flex-direction:column; gap:12px; margin-bottom:8px; }
.address-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow-sm); }
.address-card-default { border-color:var(--primary); }
.address-card-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.address-default-badge { background:var(--primary); color:#fff; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:20px; text-transform:uppercase; letter-spacing:.3px; }
.address-card p { color:var(--dark); font-size:14px; margin-bottom:4px; line-height:1.5; }
.address-card-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* ================= Admin ================= */
.admin-body { background:#f4f5f7; min-height:100vh; }
.admin-wrap { display:flex; min-height:100vh; }
.admin-sidebar { width:230px; background:#101d33; color:#fff; flex-shrink:0; }
.admin-sidebar .logo { padding:20px; font-size:19px; font-weight:800; color:#fff !important; background:none; -webkit-background-clip:border-box; background-clip:border-box; border-bottom:1px solid #24314a; display:block; }
.admin-sidebar nav a { display:block; padding:13px 20px; color:#b9c3d6; font-size:14px; border-left:3px solid transparent; transition:.15s; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background:#182a4a; color:#fff; border-left-color:var(--secondary); }
.admin-main { flex:1; padding:26px; min-width:0; }
.admin-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.admin-topbar h1 { font-size:21px; font-weight:800; }
.stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; border-radius:12px; padding:20px; box-shadow:var(--shadow-sm); border-top:3px solid transparent; border-image:linear-gradient(90deg, var(--primary), var(--secondary)) 1; }
.stat-card .num { font-size:26px; font-weight:800; }
.stat-card .label { color:var(--gray); font-size:12.5px; margin-top:2px; }
.admin-card { background:#fff; border-radius:12px; padding:22px; box-shadow:var(--shadow-sm); margin-bottom:20px; overflow-x:auto; }
table { width:100%; border-collapse:collapse; }
table th, table td { text-align:left; padding:11px 12px; border-bottom:1px solid var(--border); font-size:13.5px; white-space:nowrap; }
table th { color:var(--gray); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.4px; }
table img.thumb, table video.thumb { width:44px; height:44px; object-fit:cover; border-radius:8px; }
.admin-login-wrap { display:flex; align-items:center; justify-content:center; min-height:100vh; background:linear-gradient(135deg,#0c1830,var(--primary)); padding:20px; }

/* Admin mobile topbar (hamburger) - hidden on desktop */
.admin-mobile-topbar {
  display:none; align-items:center; justify-content:space-between; background:#101d33; color:#fff;
  padding:0 16px; height:60px; box-sizing:border-box; position:sticky; top:0; z-index:210;
}
.admin-mobile-topbar .logo { color:#fff; font-weight:800; font-size:17px; }
.admin-hamburger {
  display:none; flex-direction:column; justify-content:center; gap:5px; width:34px; height:34px;
  background:none; border:none; cursor:pointer; padding:0;
}
.admin-hamburger span { display:block; width:24px; height:2.5px; background:#fff; border-radius:2px; transition:.25s; }
.admin-hamburger.active span:nth-child(1) { transform:translateY(7.5px) rotate(45deg); }
.admin-hamburger.active span:nth-child(2) { opacity:0; }
.admin-hamburger.active span:nth-child(3) { transform:translateY(-7.5px) rotate(-45deg); }
.admin-sidebar-backdrop {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:198;
}
.admin-sidebar-backdrop.show { display:block; }

/* Delivery panel reuses the same admin-* classes with a lighter accent */
.delivery-badge-strip { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }

/* ================= Mobile ================= */
@media (max-width: 860px) {
  .cart-layout { grid-template-columns:1fr; }
  .detail-layout { grid-template-columns:1fr; gap:20px; }
  .review-layout { grid-template-columns:1fr; gap:20px; }
}

@media (max-width: 768px) {
  .admin-mobile-topbar { display:flex; }
  .admin-hamburger { display:flex; }
  .admin-wrap { flex-direction:column; }
  .admin-sidebar {
    position:fixed; top:60px; left:0; height:calc(100vh - 60px); width:78%; max-width:280px; z-index:199;
    transform:translateX(-100%); transition:transform .28s ease; overflow-y:auto;
    padding-bottom:16px; /* breathing room so Logout isn't flush with the screen edge */
  }
  .admin-sidebar.show { transform:translateX(0); }
  .admin-sidebar .logo { display:none; } /* shown in the mobile topbar instead */
  .admin-sidebar-backdrop { top:60px; } /* sit below the sticky topbar so it stays clickable */
  .admin-sidebar nav a { padding:14px 20px; font-size:15px; } /* bigger touch targets on mobile */
  .admin-main { padding:16px; }
  .admin-topbar h1 { font-size:18px; }
  .stat-cards { grid-template-columns:repeat(2, 1fr); gap:10px; }
  .stat-card { padding:14px; }
  .stat-card .num { font-size:20px; }
  .admin-card { padding:14px; border-radius:10px; }
  table th, table td { padding:9px 8px; font-size:12.5px; }

  .container { padding:0 16px; }
  .order-detail-grid { grid-template-columns:1fr !important; }

  /* Header -> primary navigation now lives in the bottom app bar on mobile.
     Keep logo pinned to the left corner and the bell pinned to the right corner
     (previously both got centered together as one block — that was the bug). */
  .main-nav { display:none; }
  .header-inner { justify-content:space-between; }
  .header-site-name { display:block; font-size:16px; }
  .logo-round { width:40px; height:40px; }
  .logo-round span { font-size:17px; }
  .notif-bell-btn { width:38px; height:38px; }

  .hero-search { padding:28px 0 34px; }
  .hero-search h1 { font-size:22px; }
  .hero-search p { font-size:13px; margin-bottom:16px; }
  .hero-search form { max-width:100%; }
  .hero-search input { padding:11px 12px 11px 38px; font-size:13.5px; }
  .hero-search .search-icon { left:16px; }
  .hero-search button { padding:11px 16px !important; font-size:13px; }
  .filter-chips { margin-top:14px; }
  .filter-chip { padding:7px 14px; font-size:12px; }
  .info-strip { margin:-18px auto 0; padding:10px 16px; font-size:12.5px; max-width:94%; }
  .info-strip span.note { font-size:11px; }
  .banner-slider img { height:150px; border-radius:10px; }
  .banner-slider { margin-top:14px; }

  .section { padding:26px 0; }
  .section-title { font-size:19px; }
  .category-grid { grid-template-columns:repeat(auto-fill, minmax(90px,1fr)); gap:10px; }
  .category-card { padding:12px 6px 10px; }
  .category-card-img { width:54px; height:54px; margin-bottom:8px; }
  .category-card span { font-size:11px; padding:0; }
  .food-grid { grid-template-columns:repeat(2, 1fr); gap:16px 12px; }
  .food-card .food-img { height:110px; }
  .food-add-btn { padding:6px 12px; font-size:11px; bottom:-12px; right:10px; }
  .food-info { padding:18px 10px 10px; }
  .food-info h3 { font-size:13.5px; }
  .food-info p { font-size:11.5px; min-height:auto; margin-bottom:8px; -webkit-line-clamp:1; overflow:hidden; }
  .food-price { font-size:14px; }
  .food-info .btn { padding:8px 12px; font-size:12.5px; }

  .auth-wrap { margin:30px auto; padding:26px 20px; max-width:100%; }
  .form-row { flex-direction:column; gap:0; }

  .cart-item { padding:12px; gap:10px; flex-wrap:wrap; }
  .cart-item img { width:56px; height:56px; }
  .cart-item-info { flex:1 1 100%; order:1; }
  .qty-control { order:2; }
  .cart-item-total { order:3; }
  .cart-item-remove { order:4; }

  .whatsapp-float { width:50px; height:50px; bottom:calc(74px + env(safe-area-inset-bottom)); right:14px; }

  .detail-img-wrap img { height:220px; }
  .detail-info h1 { font-size:21px; }
  .detail-actions { flex-direction:column; }
  .portion-options { flex-direction:column; }

  /* Mobile: full-bleed hero image, bigger tap targets, sticky buy bar */
  .detail-page { padding-left:0; padding-right:0; padding-bottom:88px; }
  .detail-page .detail-layout { gap:0; }
  .detail-page > p { padding:0 16px; }
  .detail-img-wrap { border-radius:0; }
  .detail-img-wrap img { height:260px; }
  .detail-info { padding:16px; }

  .portion-option { padding:16px; }
  .portion-name { font-size:14.5px; }
  .portion-price { font-size:16px; }

  .detail-buy-bar {
    position:fixed; left:0; right:0; bottom:0; z-index:150;
    display:flex; align-items:center; gap:10px;
    background:#fff; padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px rgba(0,0,0,.1);
  }
  .detail-buy-bar .qty-control.detail-qty { flex-shrink:0; margin-bottom:0; }
  .detail-buy-bar .detail-actions { flex:1; flex-direction:row; gap:8px; }
  .detail-buy-bar .detail-actions .btn { padding:12px 10px; font-size:13px; }

  /* Keep the WhatsApp bubble from overlapping the sticky buy bar (which itself now sits above the bottom nav) */
  body:has(.detail-buy-bar) .whatsapp-float { bottom:calc(150px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .food-grid { grid-template-columns:repeat(2, 1fr); gap:10px; }
  .logo-round { width:36px; height:36px; }
  .header-site-name { font-size:14.5px; }
}

/* ---------- QR / UPI Payment ---------- */
.qr-payment-box {
  margin-top:14px;
  padding:16px;
  background:#fafafa;
  border:1px dashed var(--border);
  border-radius:12px;
  text-align:center;
}
.qr-image-wrap { display:flex; justify-content:center; align-items:center; margin:0 auto; }
.qr-payment-box .qr-image {
  width:170px;
  height:170px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  display:block;
}
.qr-payee-name { font-size:13px; color:var(--gray); margin-top:8px; font-weight:600; }
.qr-payment-box .form-group { text-align:left; }

.upi-copy-row { display:flex; flex-direction:column; gap:8px; margin:14px 0; }
.upi-copy-item {
  display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--border);
  border-radius:10px; padding:10px 12px; text-align:left;
}
.upi-copy-label { font-size:11.5px; color:var(--gray); text-transform:uppercase; letter-spacing:.3px; flex-shrink:0; width:78px; }
.upi-copy-value { flex:1; font-weight:700; font-size:14px; word-break:break-all; }
.copy-btn {
  flex-shrink:0; border:1.5px solid var(--primary); color:var(--primary); background:#fff;
  border-radius:8px; padding:7px 14px; font-size:12.5px; font-weight:700; cursor:pointer; transition:.15s;
}
.copy-btn:hover { background:var(--primary-light); }
.copy-btn.copied { background:var(--primary); color:#fff; border-color:var(--primary); }

@media (max-width: 480px) {
  .qr-payment-box .qr-image { width:140px; height:140px; }
  .upi-copy-item { flex-wrap:wrap; }
  .upi-copy-label { width:auto; }
  .upi-copy-value { flex-basis:100%; order:1; }
  .copy-btn { order:2; margin-left:auto; }
}

