:root {
  --red: #d62d1f;
  --red-dark: #a81e13;
  --orange: #ff7a1a;
  --amber: #ffb627;
  --paper: #fff7f0;
  --ink: #2a150e;
  --muted: #7a5a4c;
  --line: #f6dcc8;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.02rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
body.lock { overflow: hidden; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 3.8rem; }
.brand { font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--red); text-decoration: none; }
.cart-btn { display: flex; align-items: center; gap: .4rem; padding: .5rem 1rem; font-weight: 700; color: var(--red); background: #fff1e6; border: 2px solid var(--orange); border-radius: 999px; }
.cart-btn:hover { background: var(--orange); color: #fff; }
.badge { min-width: 1.5rem; padding: 0 .4rem; text-align: center; font-size: .85rem; font-weight: 800; color: #fff; background: var(--ink); border-radius: 999px; }
.badge.on { background: var(--red); }

/* Hero */
.hero { background: var(--red); color: #fff; padding: 4rem 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; color: #fff; }
.lead { max-width: 32em; margin: 1.2rem 0 1.8rem; font-size: 1.15rem; color: #ffe9dc; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.btn { display: inline-block; padding: .85rem 1.6rem; font-weight: 800; color: var(--ink); background: var(--amber); border-radius: 999px; text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.hours { font-weight: 700; color: #fff; padding: .4rem .9rem; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; }
.visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 340px; margin-left: auto; width: 100%; background: var(--orange); border-radius: 50%; }
.visual::before { content: ""; position: absolute; width: 38%; aspect-ratio: 1; top: -4%; right: -6%; background: var(--amber); border-radius: 50%; }
.visual::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; bottom: 2%; left: -4%; background: #fff; border-radius: 50%; opacity: .9; }
.visual span { position: relative; z-index: 1; font-size: clamp(6rem, 18vw, 10rem); line-height: 1; }

/* Menu */
.menu { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.menu h2, .list h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.chip { padding: .45rem 1.1rem; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; }
.chip:hover { border-color: var(--orange); }
.chip.on { color: #fff; background: var(--red); border-color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; padding: 1.4rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card[hidden] { display: none; }
.card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 12px 24px rgba(214, 45, 31, .12); }
.ikon { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1rem; font-size: 2.2rem; background: #fff1e6; border-radius: 16px; }
.card h3 { font-size: 1.2rem; font-weight: 800; }
.card p { margin: .4rem 0 1.2rem; color: var(--muted); flex: 1; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.6rem; }
.price { font-weight: 900; font-size: 1.2rem; color: var(--red); }
.add { padding: .5rem 1.2rem; font-weight: 800; color: #fff; background: var(--red); border: 0; border-radius: 999px; }
.add:hover { background: var(--orange); }
.step { display: inline-flex; align-items: center; background: #fff1e6; border: 2px solid var(--orange); border-radius: 999px; }
.step button { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; font-weight: 800; color: var(--red); background: transparent; border: 0; border-radius: 50%; }
.step button:hover { background: var(--orange); color: #fff; }
.step span { min-width: 1.6rem; text-align: center; font-weight: 800; }
.step.small button { width: 1.9rem; height: 1.9rem; }

/* Pesanan terbaru */
.list { background: var(--orange); padding: 3rem 0 3.5rem; }
.list h2 { color: #fff; margin-bottom: 1.25rem; }
.note { margin: 0; color: #fff; font-weight: 600; }
.scroll { overflow-x: auto; background: #fff; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: .7rem .9rem; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
td.wrap-cell { white-space: normal; min-width: 14rem; }
th { background: var(--red); color: #fff; }
tr:last-child td { border-bottom: 0; }

/* Footer */
footer { background: var(--ink); color: #f1e2d9; padding: 2rem 0 5rem; font-size: .95rem; }
footer p { margin: 0 0 .5rem; }
footer p:last-child { margin: 0; opacity: .85; }

/* Notifikasi */
.toast-top { position: fixed; top: 4.5rem; left: 50%; transform: translateX(-50%); z-index: 40; max-width: 92%; padding: .8rem 1.2rem; font-weight: 700; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: opacity .4s; }
.toast-top.ok { background: #e3f6d8; color: #1f5a10; }
.toast-top.error { background: #fde0dc; color: #8f1d12; }
.toast-top.hide { opacity: 0; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 5.5rem; z-index: 60; transform: translate(-50%, 20px); padding: .6rem 1.2rem; color: #fff; font-weight: 700; background: var(--ink); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Bar keranjang (mobile) */
.cart-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30; display: none; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; color: #fff; background: var(--red); border: 0; border-radius: 16px; box-shadow: 0 10px 24px rgba(168, 30, 19, .4); }
.cart-bar[hidden] { display: none; }

/* Drawer keranjang */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(42, 21, 14, .55); }
.overlay[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 55; display: flex; flex-direction: column; width: min(420px, 100%); background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; font-weight: 900; color: var(--red); }
.x { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; background: #fff1e6; border: 0; border-radius: 50%; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }
.empty { padding: 1.5rem 0; text-align: center; color: var(--muted); }
.line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.info { display: flex; flex-direction: column; font-size: .95rem; }
.info span { color: var(--muted); font-size: .88rem; }
label { display: block; margin: 1rem 0 .3rem; font-weight: 800; }
input, textarea { width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; }
input:focus, textarea:focus { outline: 3px solid var(--amber); border-color: var(--orange); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.25rem; padding-top: 1rem; border-top: 2px dashed var(--line); font-size: 1.15rem; }
.sum strong { font-size: 1.5rem; font-weight: 900; color: var(--red); }
.btn-order { width: 100%; margin-top: 1rem; padding: .95rem; font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--red); border: 0; border-radius: 14px; }
.btn-order:hover:not(:disabled) { background: var(--red-dark); }
.btn-order:disabled { background: #d9c4b8; cursor: not-allowed; }

@media (max-width: 800px) {
  .hero { padding: 2.5rem 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .visual { max-width: 180px; margin: 0 auto; order: -1; }
  .cart-bar { display: flex; }
  .cart-bar[hidden] { display: none; }
  .cart-btn { padding: .45rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
