@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+HK:wght@400;500;600;700;800&display=swap');

:root {
  font-family: "DM Sans", "Noto Sans HK", sans-serif;
  color: #29251f;
  background: #f8f6f1;
  font-synthesis: none;
  --red: #bd472f;
  --muted: #89847b;
  --line: #e9e4da;
  --cream: #f1e7d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #d88a55;
  outline-offset: 3px;
}

.topbar, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: var(--red); }
.top-link { color: #625e56; font-size: 13px; }
.top-link span { margin-left: 8px; color: var(--red); }

.hero { position: relative; min-height: 340px; padding: 55px 9%; display: flex; align-items: center; overflow: hidden; border-radius: 8px; background: var(--cream); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
h1, h2, p { margin-top: 0; }
.hero h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 54px); line-height: 1.28; letter-spacing: .03em; }
.hero-text { margin-bottom: 25px; color: #746d62; font-size: 14px; }
.primary-link { display: inline-flex; gap: 24px; align-items: center; padding: 12px 17px; color: white; background: var(--red); border-radius: 3px; font-size: 12px; }
.hero-art { position: absolute; right: 12%; bottom: 10px; width: 300px; height: 290px; }
.pot { position: absolute; bottom: 31px; left: 36px; width: 220px; height: 137px; display: grid; place-items: center; border: 8px solid #51423a; border-radius: 12px 12px 48% 48%; background: #bd472f; box-shadow: inset 0 10px 0 #d9744d, 0 16px 0 -7px #51423a; color: #f3d9ac; font-size: 34px; font-weight: 800; }
.pot::before { position: absolute; top: -19px; left: -18px; right: -18px; height: 24px; border: 7px solid #51423a; border-radius: 50%; background: #f5d9a6; content: ""; }
.pot-base { position: absolute; bottom: 18px; left: 99px; width: 94px; height: 14px; border-radius: 0 0 50% 50%; background: #51423a; }
.steam { position: absolute; bottom: 190px; width: 15px; height: 66px; border-left: 3px solid #c18b5c; border-radius: 50%; transform: rotate(12deg); opacity: .7; }
.steam-one { left: 94px; }.steam-two { left: 143px; bottom: 205px; height: 76px; }.steam-three { left: 190px; }
.pepper { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #78905b; }
.pepper-one { bottom: 170px; left: 110px; }.pepper-two { bottom: 165px; left: 175px; background: #e3b65e; }
.hero-note { position: absolute; right: 34px; bottom: 28px; color: #9b8e79; font-size: 11px; line-height: 1.8; text-align: right; }

.menu-section { padding: 66px 0 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; font-size: 28px; }
.search-box { display: flex; align-items: center; gap: 9px; width: 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--muted); }
.search-box span { font-size: 22px; line-height: 16px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.categories { display: flex; gap: 9px; margin: 25px 0; overflow-x: auto; }
.category-button { flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: #746d62; cursor: pointer; font-size: 12px; }
.category-button.active, .category-button:hover { border-color: var(--red); background: var(--red); color: white; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 28px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-card { display: flex; min-height: 124px; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: #fffdfa; }
.food-art { flex: 0 0 88px; display: grid; place-items: center; border-radius: 4px; background: #f2e8d9; font-size: 42px; }
.menu-card:nth-child(3n + 2) .food-art { background: #f3e7e2; }
.menu-card:nth-child(3n) .food-art { background: #e9eee2; }
.food-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.food-info h3 { margin: 3px 0 4px; font-size: 14px; }
.food-info p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.food-bottom { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; }
.food-price { color: var(--red); font-size: 14px; font-weight: 700; }
.add-button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f4e9e4; color: var(--red); cursor: pointer; font-size: 20px; line-height: 1; }
.add-button:hover { background: var(--red); color: white; }
.empty-message { padding: 24px 0; color: var(--muted); font-size: 13px; }

.cart { position: sticky; top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: #fffdfa; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.cart-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.cart-heading h2 { margin: 0; font-size: 17px; }
.cart-heading h2 span { color: var(--muted); font-size: 12px; font-weight: 500; }
.cart-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f4e9e4; color: var(--red); }
.cart-items { max-height: 290px; overflow-y: auto; }
.cart-empty { padding: 24px 0; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 13px 0; border-bottom: 1px solid #f0ece5; }
.cart-line h3 { margin: 0 0 4px; font-size: 12px; }
.cart-line p { margin: 0; color: var(--muted); font-size: 11px; }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button { width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.quantity span { min-width: 12px; font-size: 12px; text-align: center; }
.cart-bottom { padding-top: 16px; }
.table-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; }
#table-number { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; background: white; }
.total-row { display: flex; justify-content: space-between; margin: 19px 0 14px; font-size: 13px; }
.total-row strong { color: var(--red); font-size: 19px; }
.checkout-button { width: 100%; display: flex; justify-content: space-between; padding: 13px 14px; border: 0; border-radius: 3px; background: var(--red); color: white; cursor: pointer; font-weight: 600; }
.checkout-button:disabled { background: #c9c4bb; cursor: not-allowed; }
.cart-notice { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
footer { display: flex; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer span:first-child { color: var(--red); font-weight: 700; letter-spacing: .08em; }

@media (max-width: 760px) {
  .hero { min-height: 320px; padding: 38px 7%; }
  .hero-art { right: -17px; opacity: .45; transform: scale(.8); transform-origin: right bottom; }
  .hero-copy { max-width: 70%; }
  .hero-note { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .cart { position: static; }
  .cart-items { max-height: 230px; }
}
@media (max-width: 520px) {
  .topbar, main, footer { width: min(100% - 32px, 1120px); }
  .topbar { height: 68px; }
  .hero { min-height: 300px; }
  .hero h1 { font-size: 36px; }
  .hero-art { right: -70px; opacity: .3; transform: scale(.72); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .menu-section { padding-top: 48px; }
  .menu-grid { grid-template-columns: 1fr; }
  .food-art { flex-basis: 82px; }
  footer { gap: 12px; flex-wrap: wrap; }
}
