/* =====================================================================
   Trang đặt món online dành cho khách — ưu tiên điện thoại
   ===================================================================== */

.shop-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.shop-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.shop-header .brand { display: flex; align-items: center; gap: 10px; }
.shop-header .brand .logo {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 19px;
}
.shop-header .brand b { display: block; font-size: 16px; line-height: 1.2; }
.shop-header .brand span { font-size: 12px; color: var(--muted); }
.shop-header .spacer { flex: 1; }

.cart-btn {
  position: relative; height: 42px; padding: 0 16px; border-radius: 22px;
  background: var(--brand); color: #fff; border: 0; font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.cart-btn:hover { background: var(--brand-dark); color: #fff; }
.cart-btn .n {
  background: var(--accent); color: #2a1d15; border-radius: 20px;
  min-width: 22px; padding: 0 6px; font-size: 12.5px; font-weight: 750; text-align: center;
}

.hero {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(217,131,43,.25), transparent 62%),
    linear-gradient(150deg, #3b2a1e, #22180f);
  color: #f2e8dd; padding: 44px 16px 40px;
}
.hero .inner { max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: 32px; color: #fff; margin-bottom: 8px; letter-spacing: -.02em; }
.hero p { font-size: 15.5px; color: #cfbdac; max-width: 540px; margin-bottom: 18px; }
.hero .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: #e0d0c0; }
.hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero .closed {
  display: inline-block; background: var(--danger); color: #fff;
  padding: 6px 14px; border-radius: 20px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px;
}

.shop-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }

.cat-nav {
  position: sticky; top: 63px; z-index: 20;
  background: var(--bg);
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 0;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 8px 16px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: var(--ink-2);
  white-space: nowrap;
}
.cat-nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.cat-section { padding-top: 10px; }
.cat-section h2 { font-size: 20px; margin: 18px 0 12px; display: flex; align-items: center; gap: 9px; }

.menu-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.dish {
  display: flex; gap: 12px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-1);
}
.dish .thumb {
  width: 84px; height: 84px; flex: none; border-radius: 9px;
  background: var(--brand-soft); display: grid; place-items: center;
  font-size: 30px; overflow: hidden;
}
.dish .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish .nm { font-size: 15px; font-weight: 650; line-height: 1.3; }
.dish .desc {
  font-size: 13px; color: var(--muted); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; }
.dish .price { font-size: 15.5px; font-weight: 750; color: var(--brand); }
.dish .add {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; font-size: 20px;
  cursor: pointer; display: grid; place-items: center; line-height: 1;
}
.dish .add:hover { background: var(--accent); color: #2a1d15; }

/* ------------------------------------------------------------- Giỏ hàng */
.cart-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.cart-row {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-row .body { flex: 1; min-width: 0; }
.cart-row .nm { font-weight: 650; font-size: 15px; }
.cart-row .op { font-size: 13px; color: var(--muted); }
.cart-row .amt { font-weight: 700; text-align: right; white-space: nowrap; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14.5px; }
.summary .line.total { font-size: 19px; font-weight: 750; border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 10px; }

.method-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.method-switch button {
  height: 48px; border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 9px; font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; color: var(--ink-2);
}
.method-switch button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* --------------------------------------------------------- Trạng thái đơn */
.track-steps { display: flex; gap: 0; margin: 22px 0; }
.track-steps .step { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--muted); }
.track-steps .step .dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--line);
  color: var(--muted); display: grid; place-items: center; margin: 0 auto 7px;
  font-size: 14px; font-weight: 700; position: relative; z-index: 2;
}
.track-steps .step::before {
  content: ''; position: absolute; top: 15px; left: 0; right: 50%; height: 2px; background: var(--line);
}
.track-steps .step::after {
  content: ''; position: absolute; top: 15px; left: 50%; right: 0; height: 2px; background: var(--line);
}
.track-steps .step:first-child::before,
.track-steps .step:last-child::after { display: none; }
.track-steps .step.on .dot { background: var(--ok); color: #fff; }
.track-steps .step.on { color: var(--ok); font-weight: 600; }
.track-steps .step.on::before { background: var(--ok); }

.shop-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13.5px;
}
.shop-footer a { color: var(--brand); }

@media (max-width: 640px) {
  .hero { padding: 30px 16px 28px; }
  .hero h1 { font-size: 25px; }
  .menu-grid { grid-template-columns: minmax(0,1fr); }
  .cat-nav { top: 63px; }
}
