:root {
  --ink: #173329;
  --muted: #6e7d76;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --green: #184c3a;
  --green-2: #23654e;
  --orange: #dc6d3f;
  --line: #e5e0d6;
  --shadow: 0 18px 50px rgba(26, 56, 45, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.app-shell { width: min(100%, 760px); margin: 0 auto; padding: 0 18px 120px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px 18px; }
.topbar h1 { margin: 3px 0 0; font-size: clamp(1.25rem, 5vw, 1.65rem); line-height: 1.1; letter-spacing: -.04em; }
.eyebrow { margin: 0; color: var(--orange); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.table-pill { flex: none; padding: 9px 13px; border: 1px solid rgba(24, 76, 58, .18); border-radius: 999px; background: rgba(255,255,255,.55); font-size: .76rem; font-weight: 750; }
.intro-card { position: relative; overflow: hidden; display: flex; min-height: 190px; justify-content: space-between; padding: 26px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #143c2e, #25694f); box-shadow: var(--shadow); }
.intro-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px; border: 35px solid rgba(255,255,255,.07); border-radius: 50%; }
.intro-kicker { margin: 0 0 10px; color: #dcb97f; font-size: .78rem; font-weight: 750; }
.intro-card h2 { position: relative; z-index: 1; margin: 0; max-width: 380px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.75rem, 7vw, 2.55rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.cup-mark { align-self: flex-end; position: relative; z-index: 1; font-size: 4.2rem; filter: drop-shadow(0 12px 12px rgba(0,0,0,.18)); transform: rotate(-8deg); }
.status-card { display: grid; gap: 5px; margin-top: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid #cadad4; background: #edf8f3; }
.status-card span { color: var(--muted); font-size: .86rem; }
.status-card.warning { border-color: #efd7a0; background: #fff8e8; }
.status-card.danger { border-color: #efc7bf; background: #fff0ed; }
.category-list { display: flex; gap: 9px; overflow-x: auto; padding: 23px 0 15px; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip { flex: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); font-size: .8rem; font-weight: 750; cursor: pointer; transition: .2s ease; }
.category-chip.active { border-color: var(--green); color: #fff; background: var(--green); box-shadow: 0 6px 16px rgba(24,76,58,.18); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 14px 2px; }
.section-heading h2 { margin: 3px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -.035em; }
.section-heading > span { color: var(--muted); font-size: .8rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.menu-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(219,213,201,.9); border-radius: 22px; background: var(--paper); box-shadow: 0 9px 25px rgba(35,60,50,.06); }
.menu-visual { position: relative; display: grid; min-height: 134px; place-items: center; background: radial-gradient(circle at 55% 35%, #f4d8b4, #e6b681); background-position: center; background-size: cover; }
.menu-visual > img { width: 100%; height: 134px; object-fit: cover; }
.menu-visual > span { font-size: 4rem; filter: drop-shadow(0 10px 12px rgba(62,37,16,.2)); }
.menu-visual em { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .6rem; font-style: normal; font-weight: 800; letter-spacing: .04em; }
.menu-copy { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.menu-copy h3 { margin: 0; font-size: .98rem; line-height: 1.2; letter-spacing: -.025em; }
.menu-copy > p { display: -webkit-box; overflow: hidden; margin: 7px 0 13px; color: var(--muted); font-size: .74rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.menu-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.menu-bottom > strong { font-size: .84rem; }
.add-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.25rem; cursor: pointer; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.qty-control span { min-width: 12px; text-align: center; font-size: .78rem; font-weight: 800; }
.cart-bar { position: fixed; z-index: 20; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: grid; width: min(calc(100% - 28px), 700px); grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; transform: translateX(-50%); padding: 12px 16px; border: 0; border-radius: 18px; background: var(--green); color: #fff; box-shadow: 0 15px 35px rgba(17,52,39,.32); cursor: pointer; }
.cart-bar > span:nth-child(2) { text-align: left; font-size: .86rem; font-weight: 750; }
.cart-count { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); font-size: .8rem; font-weight: 800; }
.cart-bar strong { font-size: .86rem; }
.sheet-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(10,33,24,.48); backdrop-filter: blur(3px); }
.cart-sheet { position: fixed; z-index: 31; right: 0; bottom: 0; left: 0; width: min(100%, 760px); max-height: 88vh; margin: 0 auto; overflow-y: auto; padding: 10px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--paper); box-shadow: 0 -24px 60px rgba(17,52,39,.2); transform: translateY(105%); transition: transform .28s ease; }
.cart-sheet.open { transform: translateY(0); }
.sheet-handle { width: 44px; height: 5px; margin: 2px auto 18px; border-radius: 999px; background: #d9d5cc; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet-heading h2 { margin: 3px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; font-weight: 500; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.4rem; cursor: pointer; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item > div:first-child { display: grid; gap: 4px; }
.cart-item span { color: var(--muted); font-size: .75rem; }
.checkout-form { display: grid; gap: 12px; margin-top: 18px; }
.checkout-form label { color: var(--ink); font-size: .78rem; font-weight: 750; }
.checkout-form label span { color: var(--muted); font-weight: 500; }
.checkout-form input, .checkout-form textarea { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: #fff; resize: none; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(35,101,78,.12); }
.total-row { display: flex; justify-content: space-between; margin: 19px 0 12px; font-size: 1rem; }
.total-row strong { font-size: 1.12rem; }
.primary-button { width: 100%; padding: 14px 18px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.secure-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: .7rem; }
.empty-state { grid-column: 1 / -1; display: grid; min-height: 160px; place-items: center; align-content: center; gap: 7px; padding: 25px; border: 1px dashed #cbc6bc; border-radius: 20px; text-align: center; }
.empty-state > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #efe6d7; font-weight: 900; }
.empty-state p { max-width: 320px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.skeleton { height: 270px; border-radius: 22px; background: linear-gradient(90deg, #e8e2d8 25%, #f5f0e7 37%, #e8e2d8 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.toast { position: fixed; z-index: 40; top: 18px; left: 50%; width: min(calc(100% - 36px), 460px); transform: translateX(-50%); padding: 13px 16px; border-radius: 13px; background: #152b23; color: #fff; box-shadow: var(--shadow); text-align: center; font-size: .8rem; }
.sheet-open { overflow: hidden; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (min-width: 640px) {
  .app-shell { padding-inline: 24px; }
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-card { min-height: 230px; padding: 34px; }
  .cup-mark { font-size: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
