:root {
  --orange: #ff5a00;
  --orange-dark: #e04b00;
  --orange-light: #fff2e9;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #eceff3;
  --bg: #f7f8fa;
  --white: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(16, 24, 40, .10);
  --radius: 22px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: 0; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: auto; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { height: 74px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 950; font-size: 25px; letter-spacing: -.5px; color: var(--orange); }
.logo-mark { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--orange), #ff8a3d); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255,90,0,.25); }
.nav-spacer { flex: 1; }
.location-pill, .search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 16px; color: var(--muted); min-width: 260px; }
.search-box input { border: 0; outline: 0; width: 100%; font-size: 14px; }
.btn { border-radius: 999px; padding: 12px 18px; background: var(--orange); color: #fff; font-weight: 850; box-shadow: 0 10px 20px rgba(255,90,0,.2); transition: .15s ease; }
.btn:hover { transform: translateY(-1px); background: var(--orange-dark); }
.btn.light { background: var(--orange-light); color: var(--orange); box-shadow: none; }
.btn.dark { background: #101828; color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 9px 12px; font-size: 13px; }
.hero { padding: 32px 0 18px; }
.hero-card { border-radius: 32px; min-height: 310px; overflow: hidden; background: linear-gradient(100deg, #fff, #fff4ec 58%, #ffe1ce); display: grid; grid-template-columns: 1fr .85fr; align-items: center; box-shadow: var(--shadow); border: 1px solid #fff; }
.hero-content { padding: 42px; }
.badge { display: inline-flex; gap: 8px; align-items: center; color: var(--orange); background: #fff; border: 1px solid #ffd7bf; border-radius: 999px; padding: 8px 13px; font-weight: 800; font-size: 13px; }
h1 { font-size: clamp(36px, 6vw, 66px); line-height: .96; letter-spacing: -2.5px; margin: 18px 0 14px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; line-height: 1.6; }
.hero-art { height: 100%; min-height: 310px; background: radial-gradient(circle at 20% 30%, #fff 0, transparent 28%), radial-gradient(circle at 70% 75%, #ffb47d 0, transparent 27%); display: grid; place-items: center; padding: 22px; }
.food-stack { width: min(460px, 90%); aspect-ratio: 1.2; border-radius: 34px; background-image: url('https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=1200&q=80'); background-size: cover; background-position: center; box-shadow: 0 30px 80px rgba(255,90,0,.25); transform: rotate(-2deg); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 14px; }
.section-title h2 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.grid { display: grid; gap: 16px; }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; transition: .18s ease; }
.category-card:hover, .category-card.active { transform: translateY(-3px); border-color: #ffc7a6; box-shadow: var(--shadow); }
.category-emoji { font-size: 36px; }
.category-card strong { font-size: 19px; }
.store-grid { grid-template-columns: repeat(3, 1fr); }
.store-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(16,24,40,.04); transition: .18s ease; }
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.store-img { height: 160px; background-size: cover; background-position: center; position: relative; }
.store-status { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 999px; padding: 7px 10px; font-weight: 900; font-size: 12px; color: var(--green); }
.store-body { padding: 15px; }
.store-body h3 { margin: 0 0 6px; }
.store-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.store-meta span { background: #f4f5f7; border-radius: 999px; padding: 6px 9px; }
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 20px rgba(16,24,40,.04); }
.cart-panel { position: sticky; top: 92px; }
.menu-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.menu-head img { width: 94px; height: 94px; object-fit: cover; border-radius: 20px; }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 12px; }
.chip { flex: none; padding: 10px 14px; background: #f4f5f7; border-radius: 999px; font-weight: 850; font-size: 13px; }
.product-card { display: grid; grid-template-columns: 1fr 100px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-card:last-child { border-bottom: 0; }
.product-card h4 { margin: 0 0 6px; }
.product-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.product-img { width: 100px; height: 96px; object-fit: cover; border-radius: 16px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-weight: 950; color: var(--orange); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-light); color: var(--orange); font-weight: 900; }
.summary-row { display: flex; justify-content: space-between; margin: 10px 0; color: var(--muted); }
.summary-row.total { color: var(--ink); font-weight: 950; font-size: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 24px 10px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: none; place-items: center; z-index: 90; padding: 18px; }
.modal-backdrop.show { display: grid; }
.modal { width: min(560px, 100%); background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 24px; max-height: 90vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.close { width: 36px; height: 36px; border-radius: 50%; background: #f4f5f7; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.field label { font-size: 13px; color: var(--muted); display: block; margin: 0 0 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; outline: 0; background: #fff; }
.field textarea { min-height: 84px; resize: vertical; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #101828; color: #fff; padding: 13px 18px; border-radius: 999px; display: none; z-index: 100; font-weight: 800; }
.toast.show { display: block; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: linear-gradient(135deg, #fff8f3, #f7f8fa); }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 32px; margin: 18px 0 8px; letter-spacing: -1px; }
.dashboard-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-left: 1px solid var(--line); padding: 22px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side-nav { display: grid; gap: 8px; margin-top: 24px; }
.side-nav button { text-align: right; background: transparent; border-radius: 14px; padding: 12px 14px; font-weight: 850; color: var(--muted); }
.side-nav button.active, .side-nav button:hover { background: var(--orange-light); color: var(--orange); }
.main { padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 28px; margin-top: 6px; }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.status { display: inline-flex; border-radius: 999px; padding: 6px 9px; font-weight: 850; background: #f3f4f6; color: #374151; font-size: 12px; }
.status.delivered { background: #dcfce7; color: #166534; }
.status.cancelled { background: #fee2e2; color: #991b1b; }
.status.pending { background: #fef3c7; color: #92400e; }
.driver-top { display: grid; grid-template-columns: 1fr 360px; gap: 16px; margin-bottom: 18px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 12px; }
.order-card h3 { margin: 0 0 8px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.footer { padding: 36px 0; color: var(--muted); text-align: center; }
@media (max-width: 960px) {
  .nav { height: auto; flex-wrap: wrap; padding: 12px 0; }
  .location-pill, .search-box { min-width: 100%; }
  .hero-card { grid-template-columns: 1fr; }
  .category-grid, .store-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .layout, .admin-grid, .driver-top, .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; border-left: 0; border-bottom: 1px solid var(--line); }
  .cart-panel { position: relative; top: 0; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1180px); }
  .hero-content { padding: 26px; }
  .category-grid, .store-grid, .stats, .form-grid.two { grid-template-columns: 1fr; }
  .hero-art { min-height: 210px; }
  .product-card { grid-template-columns: 1fr; }
  .product-img { width: 100%; height: 160px; }
}
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.support-card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:16px; display:grid; gap:6px; box-shadow:0 6px 20px rgba(16,24,40,.04); }
.support-card strong { font-size:18px; }
.support-card span { color:var(--muted); }
.support-card a { color:var(--orange); font-weight:900; }
.notice { background:#f4f5f7; border:1px solid var(--line); border-radius:16px; padding:12px 14px; color:var(--ink); line-height:1.55; }
.notice.success { background:#dcfce7; border-color:#bbf7d0; color:#166534; font-weight:900; }
.notice.warning { background:#fff7ed; border-color:#fed7aa; color:#9a3412; font-weight:900; }
.saved-addresses { display:grid; gap:8px; }
.saved-address { text-align:right; background:#fff; border:1px solid var(--line); border-radius:16px; padding:12px; display:grid; gap:4px; }
.saved-address.active, .saved-address:hover { border-color:#ffb37d; background:var(--orange-light); }
.saved-address span { color:var(--muted); font-size:13px; }
.wide-modal { width:min(780px, 100%); }
.map-box { height:460px; border-radius:20px; overflow:hidden; border:1px solid var(--line); background:#eef2f7; }
.driver-line { display:grid; grid-template-columns: 1.2fr 1fr .7fr .9fr 1fr; gap:10px; padding:10px; border-bottom:1px solid var(--line); align-items:center; }
.driver-line span { color:var(--muted); font-size:13px; }
@media (max-width: 960px) { .support-grid { grid-template-columns:1fr; } .driver-line { grid-template-columns:1fr; } .map-box { height:340px; } }

/* Map location pickers and delivery zones */
.map-picker { height: 330px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #eef2f7; }
.admin-map-picker { height: 360px; }
.driver-trip-map { height: 500px; }
.zones-map { height: 520px; }
.map-help { margin: 6px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.map-status { margin-top: 10px; }
.field small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.leaflet-container { font-family: inherit; z-index: 1; }
.leaflet-popup-content { direction: rtl; text-align: right; line-height: 1.6; }
@media (max-width: 620px) {
  .map-picker, .admin-map-picker { height: 280px; }
  .driver-trip-map, .zones-map { height: 360px; }
}

/* Multi-banner slider */
.banner-slider { position: relative; min-height: 360px; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); background: #111827; }
.banner-track { min-height: 360px; }
.banner-slide { position: relative; min-height: 360px; display: flex; align-items: center; background-size: cover; background-position: center; isolation: isolate; }
.banner-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,17,31,.92) 0%, rgba(10,17,31,.68) 48%, rgba(10,17,31,.12) 100%); }
.banner-content { width: min(620px, 88%); padding: 46px; color: #fff; animation: bannerFade .35s ease; }
.banner-content h1 { margin: 14px 0 12px; font-size: clamp(34px, 5.4vw, 62px); line-height: 1; }
.banner-content p { color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.65; margin: 0 0 20px; }
.banner-kicker { display: inline-flex; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.13); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 13px; font-weight: 900; }
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.banner-login { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: none; }
.banner-login:hover { background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 30px; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.banner-prev { right: 18px; }
.banner-next { left: 18px; }
.banner-dots { position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.banner-dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.52); padding: 0; transition: .2s ease; }
.banner-dot.active { width: 28px; background: #fff; }
@keyframes bannerFade { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Discounts */
.discount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.discount-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 20px rgba(16,24,40,.04); transition: .18s ease; }
.discount-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.discount-image-wrap { position: relative; height: 170px; overflow: hidden; }
.discount-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge, .mini-discount { display: inline-flex; background: #dc2626; color: #fff; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 950; }
.discount-badge { position: absolute; top: 12px; right: 12px; }
.discount-body { padding: 15px; }
.discount-body h3 { margin: 5px 0 12px; font-size: 18px; }
.discount-store { color: var(--muted); font-size: 13px; }
.discount-prices { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.discount-prices strong { color: var(--orange); font-size: 20px; }
.discount-prices del, .price del { color: #9ca3af; font-size: 13px; font-weight: 700; }
.price { display: inline-flex; align-items: center; gap: 8px; }
.product-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-title-line h4 { margin: 0; }
.banner-thumb { width: 92px; height: 54px; object-fit: cover; border-radius: 10px; }

@media (max-width: 960px) {
  .discount-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .banner-slider, .banner-track, .banner-slide { min-height: 420px; }
  .banner-content { width: 100%; padding: 30px 24px 54px; align-self: flex-end; }
  .banner-content h1 { font-size: 38px; }
  .banner-arrow { width: 38px; height: 38px; font-size: 25px; }
  .banner-prev { right: 10px; }
  .banner-next { left: 10px; }
  .discount-grid { grid-template-columns: 1fr; }
}

/* v6.1: clearer product descriptions and direct order assignment */
.product-card p { color: var(--muted); line-height: 1.55; margin: 8px 0 12px; }
.order-actions { display: grid; gap: 7px; min-width: 190px; }
.order-actions select { width: 100%; }

.alerts-list{display:grid;gap:12px;margin-top:14px}.alert-card{border:1px solid var(--line);border-radius:18px;padding:14px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;background:#fff}.alert-card.unread{border-color:#ffb4a2;background:#fff6f2}.alert-card p{margin:6px 0;color:var(--text);line-height:1.6}.alert-card small{color:var(--muted)}.always-on-hint{border:1px dashed #ff8a00;background:#fff8ed;border-radius:16px;padding:12px;line-height:1.7;color:#6b3a00;margin:12px 0}


.delivery-choice-strip { margin-top: -8px; margin-bottom: 18px; }
.delivery-choice-card { background:#fff; border:1px solid var(--line); box-shadow: var(--shadow); border-radius:22px; padding:14px; display:grid; grid-template-columns:1.2fr minmax(190px,.55fr) auto .8fr; gap:12px; align-items:center; }
.delivery-choice-card strong { display:block; font-size:18px; margin-bottom:4px; }
.delivery-choice-card span { color:var(--muted); font-size:13px; line-height:1.5; }
.delivery-choice-card select { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; font-weight:800; }
.delivery-choice-card .area-hint { font-weight:700; color:var(--primary); }
.order-workflow-note { color:var(--muted); font-size:12px; margin-top:4px; display:block; }
@media (max-width: 850px) { .delivery-choice-card { grid-template-columns: 1fr; } .delivery-choice-strip { margin-top: 0; } }


/* =========================================================
   v8.1 — Mobile-first customer experience
   ========================================================= */

.mobile-bottom-nav,
.mobile-cart-bar,
.mobile-cart-backdrop,
.mobile-menu-back,
.mobile-cart-close { display: none; }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* Better touch targets on every screen */
.customer-app .btn,
.customer-app button,
.customer-app select,
.customer-app input {
  min-height: 44px;
}

.customer-app .product-card {
  min-width: 0;
}

@media (max-width: 700px) {
  :root {
    --radius: 18px;
    --shadow: 0 10px 28px rgba(16,24,40,.08);
  }

  html { scroll-padding-top: 145px; }

  body.customer-app {
    background: #fff;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .customer-app .container {
    width: calc(100% - 24px);
    max-width: none;
  }

  /* Compact app header */
  .customer-app .topbar {
    background: #fff;
    box-shadow: 0 4px 18px rgba(15,23,42,.07);
    border-bottom: 0;
  }

  .customer-app .nav {
    min-height: auto;
    height: auto;
    padding: calc(9px + env(safe-area-inset-top)) 0 11px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 10px;
  }

  .customer-app .logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 20px;
  }

  .customer-app .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .customer-app #customerAccountBtn {
    grid-column: 2;
    grid-row: 1;
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
    max-width: 135px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-app .nav-spacer,
  .customer-app .staff-login-link {
    display: none;
  }

  .customer-app .location-pill {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 13px;
    background: #fff7f0;
    border-color: #ffe0cc;
    color: #7c2d12;
    font-weight: 800;
    justify-content: flex-start;
    overflow: hidden;
  }

  .customer-app #locationText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .search-box {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 9px 13px;
    border-radius: 13px;
    background: #f5f6f8;
    border: 0;
  }

  .customer-app .search-box input {
    background: transparent;
    font-size: 15px;
  }

  /* Hero like delivery apps, not a desktop billboard */
  .customer-app .hero {
    padding: 13px 0 8px;
  }

  .customer-app .banner-slider,
  .customer-app .banner-track,
  .customer-app .banner-slide {
    min-height: 190px;
    border-radius: 20px;
  }

  .customer-app .banner-slider {
    box-shadow: none;
  }

  .customer-app .banner-overlay {
    background: linear-gradient(90deg, rgba(10,17,31,.88), rgba(10,17,31,.38));
  }

  .customer-app .banner-content {
    width: 78%;
    padding: 22px 18px 34px;
    align-self: center;
  }

  .customer-app .banner-kicker {
    padding: 5px 9px;
    font-size: 10px;
  }

  .customer-app .banner-content h1 {
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.8px;
    margin: 10px 0 6px;
  }

  .customer-app .banner-content p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .customer-app .banner-content .btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .customer-app .banner-arrow {
    display: none;
  }

  .customer-app .banner-dots {
    bottom: 10px;
  }

  /* Delivery address card */
  .customer-app .delivery-choice-strip {
    margin: 6px auto 10px;
  }

  .customer-app .delivery-choice-card {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 13px;
    border-radius: 17px;
    box-shadow: none;
    background: #fffaf6;
    border-color: #ffe5d3;
  }

  .customer-app .delivery-choice-card > div strong {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .customer-app .delivery-choice-card > div span,
  .customer-app .area-hint {
    font-size: 11px;
  }

  .customer-app .delivery-choice-card select,
  .customer-app .delivery-choice-card .btn {
    width: 100%;
    border-radius: 13px;
    min-height: 44px;
  }

  /* Titles */
  .customer-app .section-title {
    margin: 19px 0 10px;
    align-items: center;
  }

  .customer-app .section-title h2 {
    font-size: 20px;
    letter-spacing: -.3px;
  }

  .customer-app .section-title > span {
    display: none;
  }

  .customer-app #showAllStores {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 11px;
  }

  /* Horizontal category carousel */
  .customer-app .category-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 2px 12px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .customer-app .category-grid::-webkit-scrollbar,
  .customer-app .discount-grid::-webkit-scrollbar,
  .customer-app .h-scroll::-webkit-scrollbar {
    display: none;
  }

  .customer-app .category-card {
    flex: 0 0 92px;
    width: 92px;
    min-height: 94px;
    padding: 11px 8px;
    border-radius: 17px;
    text-align: center;
    align-items: center;
    scroll-snap-align: start;
    box-shadow: none;
    gap: 4px;
  }

  .customer-app .category-card:hover {
    transform: none;
  }

  .customer-app .category-card.active {
    background: var(--orange-light);
    border-color: #ffb988;
    transform: none;
  }

  .customer-app .category-emoji {
    font-size: 29px;
    line-height: 1;
  }

  .customer-app .category-card strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .customer-app .category-card span:last-child {
    display: none;
  }

  /* Horizontal offers */
  .customer-app .discount-grid {
    display: flex;
    overflow-x: auto;
    gap: 11px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 2px 12px 10px;
    scroll-snap-type: x proximity;
  }

  .customer-app .discount-card {
    flex: 0 0 218px;
    width: 218px;
    border-radius: 18px;
    scroll-snap-align: start;
    box-shadow: none;
  }

  .customer-app .discount-image-wrap {
    height: 126px;
  }

  .customer-app .discount-body {
    padding: 12px;
  }

  .customer-app .discount-body h3 {
    font-size: 15px;
    margin: 4px 0 8px;
  }

  /* Talabat-style vertical restaurant rows */
  .customer-app .store-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-app .store-card {
    display: grid;
    grid-template-columns: 114px minmax(0,1fr);
    min-height: 114px;
    border-radius: 18px;
    box-shadow: none;
    text-align: right;
  }

  .customer-app .store-card:hover {
    transform: none;
    box-shadow: none;
  }

  .customer-app .store-img {
    height: 100%;
    min-height: 114px;
    border-radius: 0 18px 18px 0;
  }

  .customer-app .store-status {
    left: 7px;
    top: 7px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .customer-app .store-body {
    padding: 12px;
    min-width: 0;
  }

  .customer-app .store-body h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .customer-app .store-body > p {
    font-size: 11px !important;
    margin-bottom: 7px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .customer-app .store-meta {
    gap: 5px;
    font-size: 10px;
  }

  .customer-app .store-meta span {
    padding: 4px 6px;
  }

  /* Menu */
  .customer-app .layout {
    display: block !important;
    width: 100%;
    margin-top: 12px !important;
  }

  .customer-app .menu-panel {
    border: 0;
    border-radius: 0;
    padding: 14px 12px 110px;
    box-shadow: none;
  }

  .customer-app .mobile-menu-back {
    display: inline-flex;
    align-items: center;
    background: #f4f5f7;
    border-radius: 999px;
    min-height: 38px;
    padding: 7px 12px;
    font-weight: 850;
    margin-bottom: 12px;
  }

  .customer-app .menu-head {
    align-items: flex-start;
    gap: 11px;
  }

  .customer-app .menu-head img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .customer-app .menu-head h2 {
    font-size: 21px;
  }

  .customer-app .menu-head p {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .customer-app .h-scroll {
    position: sticky;
    top: 137px;
    z-index: 20;
    margin: 0 -12px 8px;
    padding: 9px 12px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .customer-app .chip {
    padding: 8px 12px;
    font-size: 11px;
    background: #f4f5f7;
  }

  .customer-app #menuList > div > h3 {
    font-size: 18px;
    margin: 18px 0 5px !important;
  }

  .customer-app .product-card {
    grid-template-columns: minmax(0,1fr) 96px;
    gap: 11px;
    padding: 13px 0;
    align-items: center;
  }

  .customer-app .product-card h4 {
    font-size: 15px;
    line-height: 1.35;
  }

  .customer-app .product-card p {
    font-size: 11px;
    line-height: 1.45;
    margin: 5px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .customer-app .product-img {
    width: 96px;
    height: 86px;
    border-radius: 14px;
    object-fit: cover;
  }

  .customer-app .price-row {
    align-items: flex-end;
  }

  .customer-app .price {
    font-size: 14px;
  }

  .customer-app .price-row .btn {
    min-height: 34px;
    padding: 6px 12px;
    background: #fff;
    color: var(--orange);
    border: 1px solid #ffc9a8;
    box-shadow: none;
    font-size: 11px;
  }

  /* Mobile bottom-sheet cart */
  .customer-app .cart-panel {
    display: block;
    position: fixed;
    z-index: 112;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    max-height: 82vh;
    overflow: auto;
    border: 0;
    border-radius: 24px 24px 0 0;
    padding: 18px 17px calc(26px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform .23s ease;
    box-shadow: 0 -18px 50px rgba(15,23,42,.18);
  }

  .customer-app .cart-panel.mobile-open {
    transform: translateY(0);
  }

  .customer-app .mobile-cart-close {
    display: grid;
  }

  .customer-app .mobile-cart-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 111;
    background: rgba(15,23,42,.43);
  }

  .customer-app .mobile-cart-backdrop.show {
    display: block;
  }

  .customer-app .mobile-cart-bar {
    display: none;
    position: fixed;
    z-index: 80;
    right: 12px;
    left: 12px;
    bottom: calc(67px + env(safe-area-inset-bottom));
    min-height: 57px;
    border-radius: 16px;
    padding: 8px 12px;
    background: var(--orange);
    color: #fff;
    box-shadow: 0 12px 32px rgba(255,90,0,.34);
    align-items: center;
    gap: 10px;
    text-align: right;
  }

  .customer-app .mobile-cart-bar.show {
    display: flex;
  }

  .customer-app .mobile-cart-count {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.2);
    font-weight: 950;
  }

  .customer-app .mobile-cart-label {
    flex: 1;
    display: grid;
    gap: 1px;
  }

  .customer-app .mobile-cart-label small {
    color: rgba(255,255,255,.82);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .mobile-cart-total {
    white-space: nowrap;
  }

  /* Fixed app navigation */
  .customer-app .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    position: fixed;
    z-index: 79;
    right: 0;
    left: 0;
    bottom: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 7px env(safe-area-inset-bottom);
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -7px 24px rgba(15,23,42,.08);
    backdrop-filter: blur(12px);
  }

  .customer-app .mobile-bottom-nav button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1px;
    background: transparent;
    color: #6b7280;
    min-height: 52px;
  }

  .customer-app .mobile-bottom-nav button span {
    font-size: 21px;
    line-height: 1;
  }

  .customer-app .mobile-bottom-nav button small {
    font-size: 10px;
    font-weight: 800;
  }

  /* Bottom sheet modals */
  .customer-app .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .customer-app .modal {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .customer-app .modal-head {
    position: sticky;
    top: -18px;
    z-index: 3;
    margin: -18px -16px 12px;
    padding: 16px;
    background: #fff;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid var(--line);
  }

  .customer-app .modal-head h2 {
    font-size: 19px;
    margin: 0;
  }

  .customer-app .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .customer-app .map-picker {
    height: 280px;
  }

  .customer-app .support-grid {
    grid-template-columns: 1fr;
  }

  .customer-app .support-card {
    border-radius: 16px;
    box-shadow: none;
  }

  .customer-app .footer {
    padding: 28px 15px 118px;
    font-size: 12px;
  }

  .customer-app .toast {
    bottom: calc(132px + env(safe-area-inset-bottom));
    max-width: calc(100% - 28px);
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .customer-app .product-card {
    grid-template-columns: minmax(0,1fr) 84px;
  }
  .customer-app .product-img {
    width: 84px;
    height: 80px;
  }
  .customer-app .store-card {
    grid-template-columns: 98px minmax(0,1fr);
  }
}


/* =========================================================
   v8.2 — Clean product cards, real descriptions only
   ========================================================= */

.menu-category-block {
  margin-top: 22px;
}

.menu-category-title {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ink);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.product-info {
  min-width: 0;
}

.product-title-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}

.product-title-line h4 {
  margin: 0;
  color: var(--ink);
}

.product-description {
  margin: 7px 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.product-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-media {
  position: relative;
  width: 150px;
  height: 118px;
  border-radius: 18px;
  overflow: visible;
  background: #f5f6f7;
}

.product-media.image-missing {
  background: linear-gradient(135deg, #fff4ec, #f8fafc);
}

.product-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: #f5f6f7;
}

.product-add-btn {
  position: absolute;
  left: -8px;
  bottom: -8px;
  width: 42px;
  height: 42px;
  min-height: 42px !important;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--orange);
  border: 2px solid #ffd5ba;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(15,23,42,.15);
  cursor: pointer;
}

.product-add-btn:active {
  transform: scale(.94);
}

@media (max-width: 700px) {
  .customer-app .menu-category-block {
    margin-top: 18px;
  }

  .customer-app .menu-category-title {
    margin: 0 0 3px;
    font-size: 19px;
  }

  .customer-app .product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    direction: rtl;
    gap: 12px;
    align-items: center;
    min-height: 124px;
    padding: 13px 0;
  }

  .customer-app .product-info {
    grid-column: 1;
    min-width: 0;
  }

  .customer-app .product-media {
    grid-column: 2;
    width: 104px;
    height: 96px;
    border-radius: 15px;
  }

  .customer-app .product-img {
    width: 104px;
    height: 96px;
    border-radius: 15px;
  }

  .customer-app .product-title-line {
    display: block;
  }

  .customer-app .product-title-line h4 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
  }

  .customer-app .product-description {
    margin: 5px 0 7px;
    font-size: 11px;
    line-height: 1.55;
    color: #667085;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .customer-app .product-price-line {
    margin-top: 8px;
  }

  .customer-app .product-price-line .price {
    font-size: 15px;
    font-weight: 900;
    color: var(--orange);
  }

  .customer-app .product-add-btn {
    left: -7px;
    bottom: -7px;
    width: 38px;
    height: 38px;
    min-height: 38px !important;
    font-size: 23px;
  }
}

@media (max-width: 380px) {
  .customer-app .product-card {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .customer-app .product-media,
  .customer-app .product-img {
    width: 92px;
    height: 88px;
  }
}


/* =========================================================
   v8.3 — Mobile account header + separate cart page
   ========================================================= */

.customer-mobile-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.account-summary-btn {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  text-align: right;
  color: var(--ink);
  text-decoration: none;
}

.account-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-light);
  font-size: 20px;
}

.account-summary-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-summary-copy strong,
.account-summary-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary-copy strong {
  font-size: 13px;
}

.account-summary-copy small {
  color: var(--muted);
  font-size: 10px;
}

.header-cart-btn {
  position: relative;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: #fff7f0;
  border: 1px solid #ffd9bf;
  border-radius: 15px;
  text-decoration: none;
}

.header-cart-icon {
  font-size: 22px;
}

.header-cart-btn b {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #9ca3af;
  color: #fff;
  font-size: 10px;
  border: 2px solid #fff;
}

.header-cart-btn b.has-items,
.header-cart-btn.active b {
  background: var(--orange);
}

.customer-search {
  grid-column: 1 / -1;
  width: 100%;
}

.account-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 5px;
  margin-bottom: 15px;
  background: #f3f4f6;
  border-radius: 14px;
}

.account-login-tabs button {
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.account-login-tabs button.active {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
}

.account-login-intro {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
  font-size: 13px;
}

.customer-profile-card,
.customer-info-card,
.account-order-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
}

.customer-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-bottom: 12px;
}

.customer-profile-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--orange-light);
  font-size: 25px;
}

.customer-profile-card > div {
  display: grid;
  gap: 4px;
}

.customer-profile-card strong {
  font-size: 17px;
}

.customer-profile-card small {
  color: var(--muted);
}

.customer-info-card {
  padding: 15px;
  margin-bottom: 17px;
  background: #fffaf7;
  border-color: #ffe0cc;
}

.customer-info-heading,
.account-order-head,
.account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-info-heading > div {
  display: grid;
  gap: 3px;
}

.customer-info-heading small {
  color: var(--muted);
  font-size: 10px;
}

.account-address-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
}

.account-address-line p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-area-pill {
  display: inline-flex;
  margin-top: 11px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font-size: 11px;
  font-weight: 850;
}

.account-orders-section {
  display: grid;
  gap: 10px;
}

.account-section-title h3 {
  margin: 0;
}

.account-section-title > span {
  color: var(--muted);
  font-size: 12px;
}

.account-order-card {
  padding: 13px;
}

.account-order-head > div {
  display: grid;
  gap: 3px;
}

.account-order-head small {
  color: var(--muted);
}

.account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0;
}

.account-order-meta span {
  padding: 6px 8px;
  border-radius: 9px;
  background: #f5f6f7;
  font-size: 10px;
}

.compact-empty {
  padding: 18px;
}

.account-modal-actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.danger-outline {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

#menuSection {
  grid-template-columns: 1fr !important;
}

/* Separate cart page */
.cart-page-main {
  padding-top: 22px;
  padding-bottom: 110px;
}

.cart-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-page-title h1 {
  margin: 0;
  font-size: 27px;
}

.cart-page-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.back-circle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
}

.cart-delivery-info {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #ffe0cc;
  background: #fff8f3;
  border-radius: 18px;
}

.cart-delivery-info > div:first-child:not(.cart-address-icon) {
  flex: 1;
}

.cart-delivery-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-address-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  font-size: 22px;
}

.cart-address-copy {
  min-width: 0;
  flex: 1;
}

.cart-address-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.cart-items-panel,
.cart-summary-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 17px;
}

.cart-summary-panel {
  position: sticky;
  top: 110px;
}

.cart-summary-panel h2 {
  margin: 0 0 14px;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.cart-page-item:last-child {
  border-bottom: 0;
}

.cart-page-item img {
  width: 92px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  background: #f4f5f7;
}

.cart-page-item-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.cart-page-item-info small {
  color: var(--muted);
}

.cart-page-qty {
  display: inline-grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.cart-page-qty button {
  min-height: 34px !important;
  background: #f7f7f8;
  color: var(--orange);
  font-size: 18px;
}

.cart-page-qty b {
  text-align: center;
}

.cart-page-item-side {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.cart-remove {
  min-height: 0 !important;
  background: transparent;
  color: #dc2626;
  font-size: 11px;
}

.cart-confirm-btn,
.cart-continue-btn {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.cart-empty-state,
.cart-success-panel {
  min-height: 340px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
}

.cart-empty-state > span,
.success-big-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--orange-light);
  font-size: 36px;
  color: var(--orange);
}

.cart-empty-state h2,
.cart-success-panel h1 {
  margin: 5px 0 0;
}

.cart-empty-state p,
.cart-success-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 460px;
}

.cart-success-panel {
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.mobile-bottom-nav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  background: transparent;
  color: #6b7280;
  min-height: 52px;
  text-decoration: none;
}

.mobile-bottom-nav a span {
  font-size: 21px;
  line-height: 1;
}

.mobile-bottom-nav a small {
  font-size: 10px;
  font-weight: 800;
}

.mobile-bottom-nav a.active {
  color: var(--orange);
}

@media (max-width: 700px) {
  body.customer-app {
    background: #fff;
  }

  .customer-app .customer-mobile-nav {
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 7px;
    padding: calc(8px + env(safe-area-inset-top)) 0 9px;
  }

  .customer-app .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .customer-app .account-summary-btn {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 46px;
    padding: 5px 7px;
  }

  .customer-app .account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
  }

  .customer-app .account-summary-copy strong {
    font-size: 12px;
  }

  .customer-app .account-summary-copy small {
    font-size: 9px;
  }

  .customer-app .header-cart-btn {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .customer-app .customer-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .customer-app .search-box {
    grid-row: 2;
  }

  .customer-app .hero {
    padding-top: 10px;
  }

  .customer-app .layout {
    width: 100%;
  }

  .account-entry-modal,
  .customer-information-modal {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .customer-information-modal {
    max-height: 91vh;
  }

  .cart-page .customer-mobile-nav {
    grid-template-columns: auto minmax(0,1fr) auto;
  }

  .cart-page-main {
    width: calc(100% - 24px);
    padding-top: 15px;
  }

  .cart-page-title h1 {
    font-size: 22px;
  }

  .cart-page-title p {
    font-size: 11px;
  }

  .cart-delivery-info {
    padding: 12px;
    border-radius: 16px;
  }

  .cart-page-layout {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .cart-items-panel,
  .cart-summary-panel {
    border-radius: 18px;
    padding: 13px;
  }

  .cart-summary-panel {
    position: static;
  }

  .cart-page-item {
    grid-template-columns: 80px minmax(0,1fr) auto;
    gap: 9px;
  }

  .cart-page-item img {
    width: 80px;
    height: 72px;
    border-radius: 12px;
  }

  .cart-page-item-info strong {
    font-size: 13px;
    line-height: 1.35;
  }

  .cart-page-item-info small {
    font-size: 10px;
  }

  .cart-page-item-side strong {
    font-size: 12px;
  }

  .cart-page-qty {
    grid-template-columns: 30px 27px 30px;
  }

  .cart-page-qty button {
    min-height: 30px !important;
  }

  .cart-confirm-btn {
    position: sticky;
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 4;
    box-shadow: 0 10px 28px rgba(255,90,0,.25);
  }

  .customer-app .footer {
    padding-bottom: 88px;
  }

  /* The old cart drawer is fully retired. */
  .mobile-cart-bar,
  .mobile-cart-backdrop,
  .cart-panel {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .customer-app .logo > span:last-child {
    display: none;
  }

  .cart-page-item {
    grid-template-columns: 68px minmax(0,1fr);
  }

  .cart-page-item img {
    width: 68px;
    height: 66px;
  }

  .cart-page-item-side {
    grid-column: 2;
    grid-template-columns: 1fr auto;
    width: 100%;
    align-items: center;
  }
}


/* =========================================================
   v8.4 — Dedicated store pages
   ========================================================= */
.store-page{background:#f7f8fa}
.store-page .customer-mobile-nav{grid-template-columns:auto minmax(0,1fr) auto}
.store-profile-hero{background:#fff;overflow:hidden}
.store-profile-cover{height:280px;background-size:cover;background-position:center}
.store-profile-content{position:relative;display:grid;grid-template-columns:44px 108px minmax(0,1fr);gap:16px;align-items:end;margin-top:-68px;padding-bottom:20px}
.store-page-back{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--ink);text-decoration:none;font-size:22px;box-shadow:0 8px 22px rgba(15,23,42,.16)}
.store-profile-logo-wrap{width:108px;height:108px;padding:7px;border-radius:24px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.16)}
.store-profile-logo-wrap img{width:100%;height:100%;object-fit:contain;border-radius:18px;background:#fff}
.store-profile-copy{min-width:0;padding:15px 17px;border-radius:21px;background:rgba(255,255,255,.97);box-shadow:0 12px 30px rgba(15,23,42,.10)}
.store-profile-status{display:inline-flex;padding:6px 9px;border-radius:999px;background:#dcfce7;color:#166534;font-size:11px;font-weight:900}
.store-profile-status.closed{background:#fee2e2;color:#991b1b}
.store-profile-copy h1{margin:8px 0 5px;font-size:28px}
.store-profile-copy>p{margin:0;color:var(--muted);line-height:1.55}
.store-profile-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.store-profile-meta span{padding:7px 9px;border-radius:10px;background:#f4f5f7;color:#475467;font-size:11px;font-weight:800}
.store-page-search-wrap{padding:12px 0;background:#fff;border-top:1px solid var(--line)}
.store-product-search{max-width:620px;margin:auto;background:#f4f5f7;border:0}
.store-category-nav{position:sticky;top:0;z-index:35;background:rgba(255,255,255,.96);border-top:1px solid var(--line);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.store-category-scroll{display:flex;gap:8px;overflow-x:auto;padding-top:10px;padding-bottom:10px;scrollbar-width:none}
.store-category-scroll::-webkit-scrollbar{display:none}
.store-category-chip{flex:0 0 auto;padding:9px 13px;border-radius:999px;background:#f3f4f6;color:#475467;text-decoration:none;font-size:12px;font-weight:900;white-space:nowrap}
.store-category-chip.active{background:var(--orange);color:#fff}
.store-menu-content{padding-top:8px;padding-bottom:120px}
.store-menu-section{scroll-margin-top:84px;margin-top:20px}
.store-menu-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.store-menu-section-head h2{margin:0;font-size:23px}
.store-menu-section-head span{color:var(--muted);font-size:11px}
.store-products-list{overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff}
.store-product-card{display:grid;grid-template-columns:minmax(0,1fr) 154px;gap:17px;align-items:center;min-height:150px;padding:15px;border-bottom:1px solid var(--line)}
.store-product-card:last-child{border-bottom:0}
.store-product-info{min-width:0}
.store-product-name-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.store-product-name-row h3{margin:0;font-size:18px;line-height:1.4}
.store-product-info>p{margin:7px 0 10px;color:var(--muted);line-height:1.65}
.store-product-price{display:flex;align-items:center;gap:9px}
.store-product-price strong{color:var(--orange);font-size:17px}
.store-product-price del{color:#98a2b3;font-size:12px}
.store-product-media{position:relative;width:154px;height:120px}
.store-product-media img{width:100%;height:100%;object-fit:cover;border-radius:17px;background:#f4f5f7}
.store-product-media button{position:absolute;left:-7px;bottom:-7px;width:43px;height:43px;min-height:43px!important;display:grid;place-items:center;border:2px solid #ffd6bb;border-radius:50%;background:#fff;color:var(--orange);font-size:27px;font-weight:900;box-shadow:0 8px 24px rgba(15,23,42,.16)}
.store-cart-toast{position:fixed;z-index:90;right:50%;bottom:24px;transform:translate(50%,140px);width:min(500px,calc(100% - 24px));min-height:64px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border-radius:18px;background:#111827;color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.28);transition:transform .22s ease}
.store-cart-toast.show{transform:translate(50%,0)}
.store-cart-toast>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--orange);font-weight:900}
.store-cart-toast>div{min-width:0;display:grid;gap:2px}
.store-cart-toast small{color:#cbd5e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-cart-toast a{color:#fff;font-weight:900}
.store-loading,.store-no-results{min-height:300px;display:grid;justify-items:center;align-content:center;gap:9px;text-align:center;color:var(--muted)}
.store-no-results>span{font-size:42px}
.store-no-results h2,.store-no-results p{margin:0}
.store-card{text-decoration:none;color:inherit}

@media(max-width:700px){
.store-page{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
.store-page .customer-mobile-nav{padding:calc(8px + env(safe-area-inset-top)) 0 9px}
.store-page .logo>span:last-child{display:none}
.store-profile-cover{height:185px}
.store-profile-content{width:calc(100% - 24px);grid-template-columns:40px 74px minmax(0,1fr);gap:8px;margin-top:-52px;padding-bottom:13px}
.store-page-back{width:39px;height:39px;font-size:19px}
.store-profile-logo-wrap{width:74px;height:74px;padding:5px;border-radius:18px}
.store-profile-logo-wrap img{border-radius:14px}
.store-profile-copy{padding:10px 11px;border-radius:17px}
.store-profile-status{padding:4px 7px;font-size:9px}
.store-profile-copy h1{margin:6px 0 3px;font-size:18px;line-height:1.2}
.store-profile-copy>p{font-size:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-profile-meta{gap:4px;margin-top:7px}
.store-profile-meta span{padding:5px 6px;font-size:8px}
.store-page-search-wrap{padding:9px 0}
.store-category-scroll{width:100%;padding:8px 12px}
.store-category-chip{padding:8px 11px;font-size:10px}
.store-menu-content{width:calc(100% - 24px);padding-bottom:105px}
.store-menu-section{scroll-margin-top:64px;margin-top:15px}
.store-menu-section-head h2{font-size:18px}
.store-products-list{border-radius:18px}
.store-product-card{grid-template-columns:minmax(0,1fr) 106px;gap:11px;min-height:126px;padding:12px}
.store-product-name-row{display:block}
.store-product-name-row h3{font-size:14px;line-height:1.35}
.store-product-info>p{margin:5px 0 8px;font-size:10px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-product-price strong{font-size:14px}
.store-product-media{width:106px;height:94px}
.store-product-media img{border-radius:14px}
.store-product-media button{width:38px;height:38px;min-height:38px!important;font-size:23px}
.store-cart-toast{bottom:calc(70px + env(safe-area-inset-bottom));min-height:58px;border-radius:16px}
}


/* =========================================================
   v8.5 — Restaurant visibility + login icon fix
   ========================================================= */
.account-person-icon{flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff1e8;color:var(--orange)}
.account-summary-btn.is-logged-in .account-person-icon{background:var(--orange);color:#fff}
.account-summary-btn{visibility:visible!important;opacity:1!important;display:flex!important}
.account-summary-copy{display:grid!important;min-width:0}
.account-summary-copy strong{color:var(--ink)}
.store-grid{min-height:140px}
.stores-loading-card,.stores-error-card,.stores-empty-card{grid-column:1/-1;min-height:170px;display:grid;justify-items:center;align-content:center;gap:8px;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff;text-align:center}
.stores-error-card p,.stores-empty-card p{margin:0;color:var(--muted)}
.loading-spinner{width:34px;height:34px;border:4px solid #ffe1cd;border-top-color:var(--orange);border-radius:50%;animation:tawsela-spin .8s linear infinite}
@keyframes tawsela-spin{to{transform:rotate(360deg)}}
.store-card-logo{position:absolute;right:9px;bottom:9px;width:42px;height:42px;object-fit:contain;padding:4px;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.16)}
.store-status.closed{background:#fee2e2;color:#991b1b}
.store-body p{color:var(--muted);margin:0 0 9px;line-height:1.45}

@media(max-width:700px){
  .customer-app .customer-mobile-nav{display:grid!important;grid-template-columns:auto minmax(116px,1fr) 44px!important;gap:7px!important}
  .customer-app .account-summary-btn{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;height:46px!important;padding:5px 7px!important;border-radius:13px!important}
  .customer-app .account-person-icon{width:34px;height:34px;border-radius:10px}
  .customer-app .account-summary-copy strong{font-size:12px!important;line-height:1.2}
  .customer-app .account-summary-copy small{display:block!important;font-size:9px!important;line-height:1.2}
  .customer-app .header-cart-btn{grid-column:3!important;grid-row:1!important}
  .customer-app .customer-search{grid-column:1/-1!important;grid-row:2!important}
  .customer-app .store-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .customer-app .store-card{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;width:100%!important;min-height:114px!important;visibility:visible!important;opacity:1!important}
  .customer-app .store-img{position:relative;width:112px!important;min-height:114px!important;background-size:cover!important;background-position:center!important}
}


/* =========================================================
   v8.7 — Static safe homepage and store pages
   ========================================================= */
.static-home-banner{
  min-height:100%;
  background-size:cover;
  background-position:center;
}
.static-home-store{
  visibility:visible!important;
  opacity:1!important;
}
.static-store-page .store-menu-content{
  display:block!important;
}
.standalone-account-main{
  padding-top:22px;
  padding-bottom:80px;
  max-width:760px;
}
.standalone-account-card{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
}
.account-standalone-page{
  background:#f7f8fa;
}
.static-store-page .account-summary-btn,
.account-standalone-page .account-summary-btn{
  text-decoration:none;
}
@media(max-width:700px){
  .standalone-account-main{
    width:calc(100% - 24px);
    padding-top:15px;
    padding-bottom:95px;
  }
  .standalone-account-card{
    padding:14px;
    border-radius:18px;
  }
}
