/* Mac n Melts - styles. Warm mac-bar counter identity. The signature device is
   the cart rendered as a paper "check" in the same mono face the thermal
   printer uses, so the on-screen order previews the printed receipt. */

:root {
  --ceramic: #f7f2e9;
  --surface: #fffdf8;
  --crust:   #efe3cf;
  --cheddar: #e29a2b;
  --toast:   #c24b1f;
  --ink:     #2b1e12;
  --muted:   #7a6a56;
  --line:    #e7decf;
  --radius:  1.25rem;
  --shadow:  0 1px 2px rgba(43,30,18,.06), 0 8px 24px -12px rgba(43,30,18,.18);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ceramic);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--toast); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---- Top bar + category rail ---- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,242,233,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.brand .n { color: var(--toast); }
.brand-loc { color: var(--muted); font-size: .9rem; margin-left: .5rem; }
.rail { display: flex; gap: .5rem; overflow-x: auto; padding: 0 1rem .5rem; max-width: 1100px; margin: 0 auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; text-decoration: none; padding: .35rem .9rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, color .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--cheddar); color: var(--toast); }

/* ---- Layout ---- */
.layout { display: grid; gap: 2rem; padding: 2rem 0; }
@media (min-width: 1024px) { .layout { grid-template-columns: 1fr 360px; } }

.cat { scroll-margin-top: 8rem; margin-bottom: 3rem; }
.cat h2 { font-size: 1.5rem; font-weight: 800; }
.rule { border: 0; border-top: 1.5px dashed var(--line); margin: .5rem 0 1.25rem; }

.grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .35rem; transition: border-color .15s;
}
.card:hover { border-color: var(--cheddar); }
.card-top { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.card-name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.card:hover .card-name { color: var(--toast); }
.card-price { color: var(--cheddar); font-weight: 700; flex: 0 0 auto; }
.card-desc { color: var(--muted); font-size: .9rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tag { color: var(--muted); font-size: .72rem; margin-top: auto; padding-top: .25rem; }

/* ---- Cart "check" ---- */
.cart-wrap { display: none; }
@media (min-width: 1024px) { .cart-wrap { display: block; } .cart-sticky { position: sticky; top: 8rem; } }

.check {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  position: relative; margin-top: 10px; font-family: var(--mono); font-size: 13px;
}
.check::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle at 6px 0, transparent 0 5px, var(--surface) 5px);
  background-size: 12px 10px; background-repeat: repeat-x;
}
.check-body { padding: 1.25rem; }
.check-title { text-align: center; font-weight: 800; font-size: 1.05rem; }
.check-sub { text-align: center; color: var(--muted); font-size: .75rem; }
.dash { border: 0; border-top: 1.5px dashed var(--line); margin: .75rem 0; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem 0; line-height: 1.5; }
.line + .line { margin-top: .75rem; }
.line-head { display: flex; justify-content: space-between; gap: .5rem; font-weight: 700; }
.line-mods { color: var(--muted); padding-left: 1rem; font-size: 12px; line-height: 1.3; }
.line-notes { color: var(--muted); padding-left: 1rem; font-size: 12px; font-style: italic; }
.line-actions { padding-left: 1rem; margin-top: .25rem; display: flex; gap: .75rem; font-size: 12px; }
.line-actions button { background: none; border: 0; text-decoration: underline; color: var(--ink); padding: 0; }
.line-actions button:hover { color: var(--toast); }
.line-actions .rm { margin-left: auto; }
.totalrow { display: flex; justify-content: space-between; }
.check-foot { padding: 1rem; border-top: 1px solid var(--line); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3rem; padding: 0 1.5rem; border-radius: 999px; border: 0;
  background: var(--toast); color: #fff; font-weight: 700; font-family: var(--body);
  text-decoration: none; transition: filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { filter: brightness(.95); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost.sel { background: var(--toast); color: #fff; border-color: var(--toast); }
.btn-pill { height: 2.5rem; padding: 0 1rem; border-radius: 999px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); }
.btn-pill.sel { background: var(--toast); color: #fff; border-color: var(--toast); }
.btn-pill.tip.sel { background: rgba(226,154,43,.2); color: var(--ink); border-color: var(--cheddar); }

/* ---- Mobile cart bar + sheet ---- */
.mobilebar {
  display: none; position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 30;
  height: 3.5rem; border-radius: 999px; background: var(--toast); color: #fff;
  font-weight: 700; align-items: center; justify-content: space-between; padding: 0 1.25rem;
  border: 0; box-shadow: var(--shadow);
}
@media (max-width: 1023px) { .mobilebar.show { display: flex; } }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(43,30,18,.4);
  backdrop-filter: blur(4px); display: flex; }
.scrim.bottom { align-items: flex-end; }
.scrim.center { align-items: center; justify-content: center; }
.sheet { background: var(--ceramic); width: 100%; border-radius: var(--radius) var(--radius) 0 0;
  max-height: 88vh; overflow-y: auto; padding: 1rem; }

/* ---- Modal ---- */
.modal { background: var(--surface); width: 100%; max-height: 92vh; display: flex; flex-direction: column;
  overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
@media (min-width: 640px) { .modal { max-width: 32rem; border-radius: var(--radius); } }
.modal-head { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { font-size: 1.25rem; font-weight: 800; }
.modal-desc { color: var(--muted); font-size: .9rem; margin-top: .25rem; line-height: 1.3; }
.x { flex: 0 0 auto; height: 2.25rem; width: 2.25rem; border-radius: 999px; border: 0;
  background: none; color: var(--muted); font-size: 1.1rem; }
.x:hover { background: var(--crust); }
.modal-body { padding: 1rem 1.25rem; overflow-y: auto; flex: 1; }
.group { margin-bottom: 1.5rem; border: 0; padding: 0; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.group-name { font-weight: 700; font-size: .95rem; }
.req { color: var(--toast); margin-left: .15rem; }
.group-hint { color: var(--muted); font-size: .75rem; }
.group-err { color: var(--toast); font-size: .75rem; font-weight: 500; margin-bottom: .5rem; }
.opt { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: .6rem;
  border: 1px solid var(--line); cursor: pointer; margin-bottom: .35rem; transition: background .12s, border-color .12s; }
.opt:hover { background: rgba(239,227,207,.5); }
.opt.sel { border-color: var(--toast); background: rgba(194,75,31,.05); }
.opt.disabled { opacity: .5; cursor: not-allowed; }
.opt input { accent-color: var(--toast); width: 1rem; height: 1rem; }
.opt-name { flex: 1; font-size: .95rem; }
.opt-price { color: var(--muted); font-size: .9rem; }
.modal-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { height: 2.5rem; width: 2.5rem; border: 0; background: none; font-size: 1.1rem; }
.qty button:hover { background: var(--crust); }
.qty span { width: 2rem; text-align: center; font-weight: 700; }
textarea, input[type="text"], input[type="tel"], input[type="email"],
input[type="password"], input[type="number"], input[type="url"],
input[type="search"], input:not([type]) {
  width: 100%; border: 1px solid var(--line); background: rgba(247,242,233,.5);
  border-radius: .6rem; padding: .6rem .75rem; font-family: var(--body); font-size: .95rem; }
textarea:focus, input:focus { background: var(--surface); }
textarea { resize: none; }
.field-label { font-size: .75rem; color: var(--muted); font-weight: 500; display: block; margin-bottom: .25rem; }

/* ---- Checkout ---- */
.co-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .co-grid { grid-template-columns: 1fr 340px; } }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.section h2 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.two { display: grid; gap: .75rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); font-family: var(--mono); font-size: 13px; }
.summary-title { font-weight: 800; text-align: center; margin-bottom: .75rem; font-size: 1rem; }
.summary .totalrow { margin-bottom: .35rem; }
.summary .grand { font-weight: 800; font-size: .95rem; }
.err { color: var(--toast); font-weight: 500; font-size: .9rem; }
.co-sticky { position: static; }
@media (min-width: 1024px) { .co-sticky { position: sticky; top: 2rem; } }

/* ---- Offline banner ---- */
.offline {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--ink); color: var(--ceramic); text-align: center;
  padding: .6rem 1rem; font-size: .85rem;
}
.offline.show { display: block; }

/* ---- Success ---- */
.center-screen { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.success h1 { font-size: 2rem; font-weight: 800; }
.emoji { font-size: 3rem; margin-bottom: .5rem; }
.order-num { font-family: var(--mono); font-weight: 800; color: var(--toast); }

.loading { text-align: center; color: var(--muted); padding: 4rem 1rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============================================================
   HOMEPAGE (marketing)
   ============================================================ */
.home { background: var(--ceramic); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; transition: background .2s, box-shadow .2s; }
.nav.scrolled { background: rgba(247,242,233,.95); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav .brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-decoration: none; color: var(--ink); }
.nav .brand .n { color: var(--toast); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav-links a:hover { color: var(--toast); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); }
.btn-sm { height: 2.4rem; padding: 0 1.1rem; font-size: .9rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--ceramic); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .25rem; width: 100%; }
  .nav-links .btn { margin-top: .5rem; }
}

/* Hero */
.hero { padding: 3rem 0 2rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } .hero { padding: 4.5rem 0 3rem; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--toast); background: rgba(194,75,31,.08); padding: .35rem .8rem; border-radius: 999px; }
.eyebrow.light { color: #fff; background: rgba(255,255,255,.15); }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: .98; font-weight: 800; margin: 1.1rem 0; }
.hero-copy h1 .accent { color: var(--toast); }
.hero-copy p { font-size: 1.15rem; color: var(--muted); max-width: 30rem; line-height: 1.5; }
.hero-cta { display: flex; gap: .75rem; margin: 1.75rem 0 1.25rem; flex-wrap: wrap; }
.btn-lg { height: 3.4rem; padding: 0 1.9rem; font-size: 1.05rem; }
.hero-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-weight: 500; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; border-radius: 1.75rem; box-shadow: var(--shadow); display: block; }

/* Bands & sections */
.section-pad { padding: 4rem 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.link-more { color: var(--toast); font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.band { background: var(--crust); padding: 3.5rem 0; }
.band .section-title { text-align: center; margin-bottom: 2.25rem; }
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4,1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--toast);
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: .9rem; }
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* Featured menu */
.feature-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(4,1fr); } }
.feature-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s; }
.feature-card:hover { border-color: var(--cheddar); transform: translateY(-2px); }
.feature-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.feature-name { font-weight: 700; font-size: 1.05rem; }
.feature-price { color: var(--cheddar); font-weight: 800; }
.feature-desc { color: var(--muted); font-size: .9rem; line-height: 1.4; flex: 1; }
.feature-cta { color: var(--toast); font-weight: 700; font-size: .9rem; }

/* Split (story) */
.split { padding: 4rem 0; }
.split-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.split-art img { width: 100%; border-radius: 1.75rem; box-shadow: var(--shadow); display: block; }
.split-copy h2 { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin: 1rem 0; }
.split-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; margin-bottom: 1rem; max-width: 32rem; }

/* Catering */
.catering { background: var(--ink); color: var(--ceramic); padding: 4rem 0; }
.catering-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .catering-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.catering-copy h2 { color: #fff; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin: 1rem 0; }
.catering-copy p { color: rgba(247,242,233,.8); font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.25rem; max-width: 32rem; }
.catering-art img { width: 100%; border-radius: 1.75rem; box-shadow: var(--shadow); display: block; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); filter: none; }

/* Location */
.location-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 800px) { .location-grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; } }
.addr { font-size: 1.1rem; line-height: 1.5; margin: 1rem 0; }
.addr a { color: var(--toast); text-decoration: none; }
.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); font-family: var(--mono); }
.hours-title { font-weight: 800; font-size: 1.1rem; }
.hours-row { display: flex; justify-content: space-between; padding: .4rem 0; }

/* Footer */
.footer { background: var(--crust); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.footer-brand .n { color: var(--toast); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer-links a:hover { color: var(--toast); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); flex-wrap: wrap; gap: .5rem; }
.footer-staff { text-decoration: none; font-size: .85rem; }
.footer-staff:hover { color: var(--toast); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin { background: var(--ceramic); }
.admin-auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--ceramic); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; width: 100%; max-width: 25rem; }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem; }
.auth-form { display: grid; gap: .85rem; margin-top: 1rem; }
.auth-form label { display: block; }

.admin-bar { background: var(--ink); color: var(--ceramic); position: sticky; top: 0; z-index: 30; }
.admin-bar .brand { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.admin-bar .brand .n { color: var(--cheddar); }
.admin-bar .muted { color: rgba(247,242,233,.6); }
.admin-bar-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-nav { display: flex; gap: 1.25rem; align-items: center; }
.admin-nav a { color: rgba(247,242,233,.85); text-decoration: none; font-weight: 600; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; }
.admin-nav a.link-more { color: var(--cheddar); }
@media (max-width: 640px) { .admin-nav { gap: .85rem; font-size: .8rem; } .admin-nav a:nth-child(3) { display: none; } }

.admin-main { padding: 2rem 0 4rem; }
.admin-h1 { font-size: 1.9rem; font-weight: 800; }
.admin-h2 { font-size: 1.2rem; font-weight: 800; margin: 2rem 0 1rem; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3,1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-val { font-family: var(--display); font-weight: 800; font-size: 2rem; margin-top: .25rem; }

.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.admin-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.admin-card:hover { border-color: var(--cheddar); transform: translateY(-2px); }
.admin-card-icon { font-size: 1.8rem; }
.admin-card h3 { font-size: 1.15rem; font-weight: 700; margin: .5rem 0 .25rem; }

.adm-cat { margin-top: 1.75rem; }
.adm-cat-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--line); padding-bottom: .5rem; margin-bottom: .85rem; }
.adm-cat-head h2 { font-size: 1.25rem; font-weight: 800; }
.badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.badge.off { background: var(--crust); color: var(--muted); }

.adm-items { display: grid; gap: .75rem; }
.adm-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
  display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .adm-item { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.adm-item-main { display: grid; gap: .5rem; }
.adm-name { font-weight: 700; font-size: 1.05rem; }
.adm-desc { font-size: .9rem; }
.adm-item-side { display: grid; gap: .5rem; align-content: start; }
.adm-mini { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.adm-mini input { width: 6rem; }
.adm-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; }
.adm-check input { accent-color: var(--toast); width: 1.05rem; height: 1.05rem; }
.adm-select { width: 100%; border: 1px solid var(--line); background: rgba(247,242,233,.5); border-radius: .6rem; padding: .55rem .6rem; font-family: var(--body); }

.admin-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(2rem);
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; box-shadow: var(--shadow); }
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-toast.bad { background: var(--toast); }

/* ============================================================
   REGISTER (POS)
   ============================================================ */
.pos { background: var(--ceramic); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.pos-bar { background: var(--ink); color: var(--ceramic); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; flex: 0 0 auto; }
.pos-bar .brand { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.pos-bar .brand .n { color: var(--cheddar); }
.pos-bar .muted { color: rgba(247,242,233,.6); }
.pos-bar-right { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.pos-bar-right .link-more { color: var(--cheddar); }

.pos-layout { flex: 1; display: grid; grid-template-columns: 1fr; min-height: 0; }
@media (min-width: 820px) { .pos-layout { grid-template-columns: 1fr 360px; } }

.pos-menu { overflow-y: auto; padding: 1rem; }
.pos-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .75rem; position: sticky; top: 0; background: var(--ceramic); }
.pos-tab { flex: 0 0 auto; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.pos-tab.on { background: var(--toast); color: #fff; border-color: var(--toast); }
.pos-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 560px) { .pos-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1100px) { .pos-grid { grid-template-columns: repeat(4,1fr); } }
.pos-item { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; text-align: left; min-height: 5rem; justify-content: space-between; }
.pos-item:hover { border-color: var(--cheddar); }
.pos-item:active { transform: scale(.98); }
.pos-item-name { font-weight: 700; line-height: 1.15; }
.pos-item-price { color: var(--cheddar); font-weight: 700; }

.pos-ticket { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.pos-ticket-head { padding: .85rem; border-bottom: 1px solid var(--line); }
.seg { display: flex; gap: .35rem; }
.seg button { flex: 1; padding: .5rem; border-radius: .6rem; border: 1px solid var(--line); background: var(--ceramic); font-weight: 600; }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pos-lines { flex: 1; overflow-y: auto; padding: .85rem; }
.pos-line { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.pos-line-top { display: flex; justify-content: space-between; font-weight: 600; }
.pos-line-mods { color: var(--muted); font-size: .8rem; padding-left: .25rem; }
.pos-line-act { display: flex; gap: .75rem; margin-top: .3rem; font-size: .85rem; }
.pos-line-act button { background: none; border: 0; text-decoration: underline; color: var(--ink); padding: 0; }
.pos-line-act .rm { margin-left: auto; color: var(--toast); }
.pos-totals { padding: .85rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.pos-totals .trow { display: flex; justify-content: space-between; padding: .15rem 0; }
.pos-totals .grand { font-weight: 800; font-size: 1rem; border-top: 1px dashed var(--line); margin-top: .35rem; padding-top: .35rem; }
.pos-actions { padding: .85rem; display: flex; gap: .65rem; border-top: 1px solid var(--line); }
.pos-actions .btn-ghost { flex: 0 0 auto; }
.pos-charge { flex: 1; }

/* charge modal */
.pay-choose { display: grid; gap: .75rem; }
.cash-input { font-size: 1.4rem; font-family: var(--mono); text-align: center; }
.cash-quick { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.change-line { display: flex; justify-content: space-between; font-size: 1.1rem; margin: .75rem 0 1rem; }
.change-line strong { font-family: var(--mono); }

/* order status badges */
.badge.st-in_kitchen { background: rgba(226,154,43,.2); color: #8a5a10; }
.badge.st-ready { background: rgba(46,125,50,.15); color: #2e7d32; }
.badge.st-completed { background: var(--crust); color: var(--muted); }
.badge.st-canceled { background: rgba(194,75,31,.15); color: var(--toast); }
.badge.st-pending, .badge.st-paid { background: var(--crust); color: var(--ink); }

/* Brand logo mark (placeholder logo lives at /assets/icons/logo.png + logo-mark.png) */
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand-mark { height: 32px; width: 32px; border-radius: 8px; display: inline-block; vertical-align: middle; }
.footer-brand .brand-mark { height: 28px; width: 28px; }

/* ============================================================
   IMAGES (storefront) - only shown when an image_url is set
   ============================================================ */
.card.has-img { padding: 0; overflow: hidden; }
.card-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.card:not(.has-img) .card-body { padding: 0; }
.chip-img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-right: .4rem; vertical-align: middle; }
.opt-img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; margin-right: .25rem; }

/* order context bar (location · pickup · time) */
.order-context { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.order-context .ctx { white-space: nowrap; }
.order-context .ctx-change { color: var(--toast); font-weight: 700; text-decoration: none; }
.order-context .ctx-change:hover { text-decoration: underline; }

/* admin image bits */
.adm-imgrow input { width: 100%; }
.adm-thumb { width: 100%; max-width: 220px; border-radius: 10px; margin-top: .4rem; }
.adm-cat-thumb { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-right: .5rem; vertical-align: middle; }

/* ============================================================
   ORDER FLOW (location picker + schedule)
   ============================================================ */
.order-flow { background: var(--ceramic); min-height: 100vh; }
.flow-bar { background: var(--ink); color: #fff; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; }
.flow-bar .brand { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.flow-bar .brand .n { color: var(--cheddar); }
.flow-bar .brand-mark { height: 26px; vertical-align: middle; margin-right: .4rem; }
.flow-bar .link-more { color: var(--cheddar); text-decoration: none; font-weight: 600; font-size: .9rem; }

.picker { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 56px); }
@media (min-width: 860px) { .picker { grid-template-columns: 420px 1fr; } }
.picker-list { padding: 1.5rem; overflow-y: auto; max-height: calc(100vh - 56px); }
.picker-h1 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 1rem 0 .75rem; }
.picker-search { width: 100%; margin-bottom: 1rem; }
.picker-map { min-height: 50vh; }
.picker-map #map { width: 100%; height: 100%; min-height: 50vh; border-radius: 0; }
@media (min-width: 860px) { .picker-map { padding: 1.25rem 1.25rem 1.25rem 0; } .picker-map #map { border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; } }

.loc-list { display: grid; gap: .85rem; }
.loc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s; }
.loc-card:hover { border-color: var(--cheddar); }
.loc-name { font-weight: 800; font-size: 1.05rem; }
.loc-addr { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.loc-hours { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.loc-actions { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; }
.loc-phone { color: var(--ink); font-size: .85rem; text-decoration: none; }

.schedule { display: grid; place-items: start center; padding: 2rem 1.25rem; }
.sched-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.5rem; width: 100%; max-width: 32rem; }
.back-link { display: inline-block; margin: .5rem 0; color: var(--muted); text-decoration: none; font-weight: 600; }
.day-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; }
.day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ceramic); min-width: 3.2rem; }
.day.on { background: var(--toast); color: #fff; border-color: var(--toast); }
.day-name { font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.day-num { font-size: 1.05rem; font-weight: 800; }
.slots { display: grid; gap: .5rem; margin-top: 1rem; max-height: 44vh; overflow-y: auto; }
.slot { padding: .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; }
.slot:hover { border-color: var(--cheddar); }

/* ============================================================
   MENU BOARD GALLERY + LIGHTBOX
   ============================================================ */
.menu-gallery-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.menu-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-board { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .15s, border-color .15s; }
.menu-board:hover { transform: translateY(-3px); border-color: var(--cheddar); }
.menu-board img { width: 100%; display: block; }

.lightbox { position: fixed; inset: 0; background: rgba(10,7,4,.92); display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 200; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(247,242,233,.15); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lightbox-close:hover { background: rgba(247,242,233,.3); }

/* admin image uploader */
.adm-upload { display: inline-flex; align-items: center; gap: .4rem; }
.adm-upload input[type="file"] { display: none; }
.adm-imgrow-wrap { display: flex; align-items: center; gap: .5rem; }
.adm-imgrow-wrap .adm-imgrow { flex: 1; }
