:root {
  --primary: #FFC72C;
  --accent: #E8590C;
  --bg: #16130f;
  --surface: #221d17;
  --surface-2: #2c261e;
  --text: #f6f1e8;
  --muted: #b5aa98;
  --line: #3a3228;
  --ok: #3ccf7a;
  --danger: #ff6b5b;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 "Poppins", system-ui, sans-serif;
  padding-bottom: 96px;
}
button, input { font: inherit; }
[hidden] { display: none !important; }

.hero {
  text-align: center; padding: 32px 16px 20px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
}
.hero-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.hero h1 {
  font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: 1px;
  font-size: clamp(42px, 11vw, 64px); line-height: 1; margin: 8px 0 4px; color: var(--primary);
}
.tagline { margin: 0; color: var(--text); opacity: .9; }
.hours { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.banner { margin: 0 16px 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; text-align: center; }
.banner-closed { background: color-mix(in srgb, var(--danger) 22%, var(--surface)); color: var(--text); font-weight: 600; }

.cat-nav {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; background: var(--bg); scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.cat-nav a.active { background: var(--primary); color: #1a1408; }

.menu { max-width: 860px; margin: 0 auto; padding: 8px 16px; }
.cat h2 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 30px; letter-spacing: .5px; margin: 22px 0 10px; color: var(--primary); }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; text-align: left; color: inherit; width: 100%;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { border-color: var(--primary); }
.card:active { transform: scale(.985); }
.card.soldout { opacity: .5; cursor: not-allowed; }
.card-img, .card-ph {
  flex: none; width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--surface-2);
}
.card-ph { display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface-2)), var(--surface-2)); }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-name { font-weight: 600; font-size: 15px; }
.card-desc { color: var(--muted); font-size: 12.5px; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; color: var(--primary); }
.add-pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.soldout-pill { background: var(--line); color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; }

.cart-bar {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 14px 18px; border: 0; border-radius: 999px; background: var(--primary); color: #1a1408;
  font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.45); cursor: pointer;
}
.cart-count { background: #1a1408; color: var(--primary); border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; }

.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  animation: up .2s ease-out;
}
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; z-index: 1; }
.sheet h2 { margin: 0 0 12px; font-size: 20px; }
.sheet h3 { margin: 20px 0 8px; font-size: 15px; color: var(--primary); }

.item-hero { width: calc(100% + 36px); margin: -20px -18px 14px; height: 210px; object-fit: cover; border-radius: 22px 22px 0 0; display: block; }
.item-hero.ph { display: grid; place-items: center; font-size: 80px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 45%, var(--surface-2)), var(--surface-2)); }
.item-title { font-size: 21px; font-weight: 700; margin: 0; padding-right: 40px; }
.item-desc { color: var(--muted); margin: 4px 0 0; }
.group { margin-top: 16px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.group-head b { font-size: 15px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.req { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); color: var(--text); }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); margin-bottom: 6px; cursor: pointer; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.choice span { flex: 1; }
.choice small { color: var(--muted); }
.note { width: 100%; margin-top: 6px; }

.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 999px; padding: 4px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 18px; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.item-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; position: sticky; bottom: 0; padding-top: 10px; background: var(--bg); }
.item-actions .btn-main { margin: 0; flex: 1; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
input[type=text], input:not([type]), input[type=tel], input[type=number], textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px;
}
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 12px 8px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); color: var(--text); font-weight: 500; cursor: pointer; }
.seg input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); }

.btn-main { display: block; width: 100%; margin-top: 18px; padding: 15px; border: 0; border-radius: 999px; background: #25D366; color: #08240f; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-main.alt { background: var(--accent); color: #fff; }
.btn-main:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { width: 100%; padding: 12px; border-radius: 12px; border: 2px dashed var(--primary); background: transparent; color: var(--primary); font-weight: 600; cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; }
.hint.ok { color: var(--ok); }
.pay-box { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.pay-box:empty { display: none; }
.pay-box img { display: block; width: 180px; max-width: 100%; margin: 10px auto 0; border-radius: 10px; background: #fff; }
.yape-num { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.copy-btn { margin-left: 8px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 12px; cursor: pointer; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl-main { flex: 1; min-width: 0; }
.cl-name { font-weight: 600; }
.cl-opts { color: var(--muted); font-size: 12.5px; }
.cl-price { font-weight: 600; white-space: nowrap; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-side .qty button { width: 28px; height: 28px; font-size: 15px; }
.empty { color: var(--muted); text-align: center; padding: 20px 0; }

.totals { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.form-error { color: var(--danger); font-size: 13.5px; min-height: 1em; margin: 10px 0 0; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.done-steps { margin: 0; padding-left: 22px; }
.done-steps li { margin-bottom: 12px; line-height: 1.5; }
.done-steps li b { color: var(--primary); }
.done-steps li.must { background: color-mix(in srgb, var(--accent) 28%, var(--surface)); border-radius: 12px; padding: 10px 12px; margin-left: -10px; font-size: 16px; }
footer.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px; }