.center-screen { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }

.cover {
  min-height: 260px; display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light, #f08a3c)) center / cover no-repeat;
}
.cover-inner { width: 100%; max-width: 960px; margin: 0 auto; padding: 24px 16px; display: flex; align-items: center; gap: 16px; }
.logo { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; background: #fff; border: 3px solid #fff; flex: none; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.cover h1 { font-size: 30px; font-weight: 800; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.status { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.92); }
.status.open { color: var(--ok); }
.status.closed { color: var(--danger); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.info { margin-top: -20px; position: relative; padding: 20px; }
.intro { margin: 0 0 14px; font-size: 16px; white-space: pre-line; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.fact-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.fact-ic .ic { width: 18px; height: 18px; }
.cta .btn .ic { width: 18px; height: 18px; }
.cta .btn:not(.btn-primary) .ic { color: var(--brand); }
.facts .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.facts a { color: var(--text); font-weight: 600; text-decoration: none; word-break: break-word; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cta .btn { flex: 1 1 160px; }

.sec { font-size: 22px; margin: 28px 0 10px; }
.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--bg); scrollbar-width: none; }
.cats a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.cat { font-size: 17px; margin: 18px 0 10px; scroll-margin-top: 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dish { display: flex; gap: 12px; padding: 10px; align-items: center; }
.dish.off { opacity: .55; }
.dish img, .noimg { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg); }
.noimg { display: grid; place-items: center; font-size: 30px; }
.dish-body { min-width: 0; }
.dish-name { font-weight: 700; }
.dish-desc { font-size: 13px; color: var(--muted); }
.dish-price { font-weight: 800; color: var(--brand); margin-top: 2px; }
.dish-price small { color: var(--muted); font-weight: 500; }

.tip { margin: 28px 0 0; padding: 14px; border-radius: 12px; background: var(--brand-soft); text-align: center; font-weight: 600; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px; }

@media (max-width: 600px) {
  .cover { min-height: 220px; }
  .cover h1 { font-size: 24px; }
  .logo { width: 72px; height: 72px; }
}

/* ---------- đặt trước ---------- */
.small { font-size: 13px; }
.center { text-align: center; }
.preorder-hint { margin: -4px 0 6px; color: var(--muted); }
.dish-body { flex: 1; }
.dish.selectable { cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.dish.selected { border-color: var(--brand); background: var(--brand-soft); }
.dish-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tick { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: #fff; font-weight: 800; font-size: 16px; }
.dish.selected .tick { background: var(--brand); border-color: var(--brand); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--brand); }
.qty span { min-width: 24px; text-align: center; font-weight: 800; }

body.has-cart .foot { padding-bottom: 110px; }
.cartbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 20; width: 100%; max-width: 960px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.cart-total { font-size: 22px; font-weight: 800; color: var(--brand); }
.cartbar .btn { min-height: 48px; padding: 0 24px; font-size: 16px; }

.sheet { align-items: flex-end; padding: 0; }
.sheet .modal-box { max-width: 560px; border-radius: 20px 20px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .sheet { align-items: center; padding: 16px; } .sheet .modal-box { border-radius: 18px; } }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 18px; margin: 12px 0 16px; }
.total-row span:last-child { color: var(--brand); }

.my-orders { margin-top: 8px; }
.my-order { padding: 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.my-order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cancel-reason { color: var(--danger); }


/* khuyến mãi đang chạy */
.promo-banners { display: grid; gap: 8px; }
.promo-banner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-soft), #fff8ec); border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); }
.promo-banner-pct { flex: none; display: grid; place-items: center; min-width: 54px; height: 40px; padding: 0 8px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16px; }
.promo-banner b { display: block; }
.promo-banner small { display: block; font-size: 12.5px; color: var(--muted); }
#promoBanners { margin-top: 16px; }
