/* Banh Mi Nga – giao diện. Màu lấy từ logo: xanh lá đậm, vàng đồng, hồng sen, kem. */
:root {
  --green: #0f4a2b;
  --green-2: #1d6b3f;
  --gold: #b97a1c;
  --gold-soft: #f1d9a8;
  --pink: #d9246f;
  --cream: #fbf6ec;
  --paper: #ffffff;
  --ink: #1d2a22;
  --muted: #5b685f;
  --line: #e7dcc4;
  --danger: #b3261e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 74, 43, .12);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .5em; color: var(--green); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Thanh preview */
.draft-bar { background: #fff3cd; color: #5a4300; text-align: center; font-size: 14px; font-weight: 700; padding: 6px 12px; border-bottom: 1px solid #ecd48a; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 246, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--green); letter-spacing: .2px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--gold); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--green); background: transparent; color: var(--green); border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.cart-btn:hover { background: var(--green); color: #fff; }
.cart-label { display: none; }
.cart-count { position: absolute; top: -8px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--pink); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(15, 74, 43, .25); }
.btn-primary:hover { background: var(--green-2); }
.btn-primary:disabled { background: #8a9a90; box-shadow: none; cursor: not-allowed; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-add { min-height: 44px; padding: 0 22px; background: var(--green); color: #fff; }
.btn-add:hover { background: var(--green-2); }

/* Hero */
.hero { padding: 28px 0 40px; background: radial-gradient(900px 400px at 85% 0%, #f9e6ee 0%, transparent 60%), radial-gradient(700px 360px at 0% 100%, #e7f0e0 0%, transparent 60%); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.status-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #b9b2a0; }
.status-chip.is-open { color: #0b5d2b; }
.status-chip.is-open .dot { background: #1fa856; box-shadow: 0 0 0 4px rgba(31, 168, 86, .2); }
.hero h1 { font-size: clamp(32px, 7vw, 54px); font-weight: 800; margin-bottom: .4em; }
.accent { color: var(--pink); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.tagline { font-family: var(--font-head); font-style: italic; color: var(--gold); font-size: 18px; margin: 0; }
.hero-art { position: relative; }
.hero-frame { border-radius: 28px 28px 120px 28px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; aspect-ratio: 4 / 3; background: #dde7f2; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo { position: absolute; right: -4px; bottom: -22px; width: 104px; height: 104px; padding: 8px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); object-fit: contain; }

/* Perks */
.perks { background: var(--green); color: #fff; }
.perks-grid { display: grid; gap: 4px; padding-top: 18px; padding-bottom: 18px; }
.perk { display: flex; flex-direction: column; padding: 8px 0; }
.perk strong { font-family: var(--font-head); font-size: 18px; color: var(--gold-soft); }
.perk span { color: #dbe8df; font-size: 15px; }

/* Menu */
.menu-section { padding: 48px 0 24px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 5vw, 38px); }
.section-head p { color: var(--muted); }
.cat-tabs { position: sticky; top: 68px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; background: var(--cream); scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.cat-tabs a.active { background: var(--green); color: #fff; border-color: var(--green); }
.cat { margin-bottom: 36px; }
.cat h3 { font-size: 28px; margin-bottom: .2em; }
.cat-blurb { color: var(--muted); margin-bottom: 16px; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(0, 0, 0, .02); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #f4ecd8; overflow: hidden; }
.card-img > img { width: 100%; height: 100%; object-fit: cover; }
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #fff7e6, #f7e7cb); }
.img-ph img { width: 88px; height: 88px; opacity: .9; object-fit: contain; }
.tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.tag-popular { background: var(--pink); color: #fff; }
.tag-vegetarian { background: #e1f3d8; color: #1b5e20; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card h4 { font-size: 21px; margin-bottom: 0; }
.vi { color: var(--gold); font-weight: 700; font-style: italic; margin: 2px 0 8px; font-size: 15px; }
.desc { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.allergens { font-size: 13px; color: var(--muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.allergens b { font-weight: 700; background: #f6efe0; border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; color: #6b4a12; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--green); }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--green); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 40px; border: 0; background: transparent; color: var(--green); font-size: 22px; font-weight: 800; cursor: pointer; }
.stepper button:hover { background: var(--green); color: #fff; }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; }
.allergy-note { margin: 8px 0 0; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--gold); font-size: 14.5px; color: var(--muted); }
.allergy-note strong { color: var(--green); display: block; margin-bottom: 4px; }
.allergy-note p { margin: 0; }

/* How */
.how { padding: 40px 0 48px; }
.how h2 { font-size: clamp(26px, 5vw, 34px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); }

/* Visit */
.visit { padding: 40px 0 56px; background: #fff; border-top: 1px solid var(--line); }
.visit-grid { display: grid; gap: 24px; }
.visit h2 { font-size: clamp(26px, 5vw, 34px); }
.visit h3 { font-size: 20px; margin-top: 18px; }
address { font-style: normal; font-size: 18px; margin-bottom: 10px; }
.phone-link { font-weight: 800; font-size: 20px; }
.hours { border-collapse: collapse; margin-bottom: 20px; width: 100%; max-width: 360px; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--pink); font-weight: 800; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; background: #eee8d9; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--green); color: #dbe8df; padding: 32px 0 96px; }
.footer-grid { display: grid; gap: 18px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; }
.footer-brand p { margin: 0; font-size: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; font-weight: 700; }

/* Mobile order bar */
.mobile-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 800; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); cursor: pointer; }
.mobile-bar[hidden] { display: none; }
.mobile-bar-cta { background: var(--pink); padding: 8px 16px; border-radius: 999px; }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(10, 30, 18, .5); opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.scrim[hidden], .drawer[hidden] { display: none; }
.drawer { position: fixed; z-index: 60; right: 0; top: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--cream); box-shadow: -10px 0 40px rgba(0, 0, 0, .25); transform: translateX(100%); transition: transform .22s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { margin: 0; font-size: 24px; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: #f1ead8; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 32px; }
.empty { color: var(--muted); text-align: center; padding: 40px 12px; }
.empty[hidden], .cart-total[hidden], #order-form[hidden], #done-view[hidden], #cart-view[hidden] { display: none; }
.cart-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-main { display: flex; flex-direction: column; }
.line-main small { color: var(--muted); }
.line-total { font-weight: 800; min-width: 64px; text-align: right; }
.line .stepper button { width: 36px; height: 34px; font-size: 20px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-size: 18px; }
.cart-total small { color: var(--muted); font-size: 12.5px; display: block; }
.cart-total strong { font-family: var(--font-head); font-size: 28px; color: var(--green); }
#order-form h3 { font-size: 20px; margin: 22px 0 10px; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 800; font-size: 15px; }
.field label small { font-weight: 600; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink);
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(29, 107, 63, .2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.err, .form-error { color: var(--danger); font-size: 14px; font-weight: 700; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: 13.5px; }
.form-error { background: #fdecea; padding: 10px 14px; border-radius: 10px; margin: 12px 0; }
.form-error[hidden] { display: none; }
.pay-options { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.pay-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.pay-card:has(input:checked) { border-color: var(--green); background: #f1f8f3; }
.pay-card input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--green); }
.pay-card span { display: flex; flex-direction: column; }
.pay-card small { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 8px 0 4px; }
.consent input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--green); flex: none; }

/* Confirmation */
.done-head { text-align: center; padding: 8px 0 14px; }
.tick { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #1fa856; color: #fff; font-size: 34px; display: grid; place-items: center; }
.done-head h3 { margin-bottom: 4px; font-size: 26px; }
.order-no { color: var(--muted); font-size: 18px; }
.done-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.done-box p:last-child { margin-bottom: 0; }
.done-lines { list-style: none; margin: 0; padding: 0; }
.done-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.done-lines li.sum { border: 0; font-weight: 800; font-size: 18px; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; padding: 12px; background: #f6efe0; border-radius: 12px; }
.bank dt { color: var(--muted); font-weight: 700; }
.bank dd { margin: 0; font-weight: 800; user-select: all; }
.demo-note { background: #fff3cd; border: 1px solid #ecd48a; color: #5a4300; padding: 10px 14px; border-radius: 10px; }
.muted { color: var(--muted); font-size: 15px; }
#done-view:focus { outline: none; }

/* Desktop */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cart-label { display: inline; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer { padding-bottom: 36px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1.1fr; align-items: stretch; }
  .mobile-bar { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .mobile-bar, .drawer, .scrim, .draft-bar { display: none !important; }
}

/* Trang pháp lý (privacy, terms) */
.legal-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 72px; }
.legal h1 { font-size: clamp(30px, 6vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: 15px; }
