/* ---------- Tokens ---------- */
:root {
  --cream: #F7F1E8;
  --ivory: #FFFCF7;
  --sand: #EADCC9;
  --line: #E3D5C3;
  --espresso: #2B1D14;
  --roast: #4A3222;
  --terracotta: #B5542D;
  --terracotta-dark: #96431F;
  --gold: #C89B3C;
  --muted: #6B5B4E;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(43, 29, 20, 0.08);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em, .brand-name em { font-style: italic; font-weight: 400; color: var(--terracotta); }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .9rem;
}
.lead { font-size: 1.2rem; color: var(--roast); max-width: 34rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(181, 84, 45, .28); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }
.btn-small { min-height: 40px; padding: .5rem 1.1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--espresso); }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--espresso); text-decoration: none; font-weight: 500; position: relative; padding: .25rem 0; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn).is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 8px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(200, 155, 60, .18), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-facts li { display: flex; flex-direction: column; line-height: 1.3; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.hero-facts span { font-size: .85rem; color: var(--muted); }

.hero-art { margin: 0; position: relative; }
.photo {
  border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #EADCC9 0%, #D9C2A6 55%, #B5542D 140%);
  box-shadow: var(--shadow-soft); display: grid; place-items: center;
}
.photo-hero { aspect-ratio: 5 / 6; }
.illus { width: 78%; height: auto; }
.hero-badge {
  position: absolute; left: -1.25rem; bottom: 2rem; background: var(--ivory); border: 1px solid var(--line);
  border-radius: 16px; padding: .85rem 1.1rem; display: flex; align-items: center; gap: .75rem; box-shadow: var(--shadow-soft);
}
.hero-badge-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.hero-badge-txt { font-size: .8rem; line-height: 1.35; color: var(--gold); }
.hero-badge-txt br + * { color: var(--muted); }

/* ---------- Pillars ---------- */
.pillars { padding: 1rem 0 clamp(3rem, 6vw, 5rem); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.pillar .icon { width: 36px; height: 36px; fill: none; stroke: var(--terracotta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Menu ---------- */
.menu-section { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--ivory); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-sub { color: var(--muted); }
.menu-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.menu-tabs button {
  font: inherit; font-weight: 600; font-size: .95rem; min-height: 44px; padding: .5rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--roast); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.menu-tabs button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.menu-tabs button[aria-selected="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
.menu-group h3 { font-size: 1.5rem; padding-bottom: .6rem; border-bottom: 2px solid var(--gold); display: inline-block; margin-bottom: 1rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; justify-content: space-between; gap: 1.25rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.item-name { display: block; font-weight: 600; font-size: 1.05rem; }
.item-desc { display: block; color: var(--muted); font-size: .92rem; margin-top: .1rem; }
.item-price { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-note { margin-top: 2.5rem; color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about { padding: clamp(3rem, 7vw, 6rem) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-art { position: relative; padding-bottom: 3rem; }
.photo-about { aspect-ratio: 1; width: 82%; }
.photo-about-2 { aspect-ratio: 4 / 3; width: 52%; position: absolute; right: 0; bottom: 0; border: 6px solid var(--cream); background: linear-gradient(160deg, #B5542D, #8A5A3B); }
.about-copy p { color: var(--roast); }
blockquote { margin: 1.75rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--gold); }
blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--espresso); margin-bottom: .4rem; }
blockquote cite { font-style: normal; font-size: .9rem; color: var(--muted); }

/* ---------- Visit (dark band) ---------- */
.visit { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--espresso); color: var(--cream); }
.section-head-light .eyebrow { color: var(--gold); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.visit-card { background: rgba(255, 252, 247, .06); border: 1px solid rgba(255, 252, 247, .14); border-radius: var(--radius); padding: 2rem; }
.visit-card h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 1.1rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255, 252, 247, .12); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: rgba(247, 241, 232, .8); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }
.visit-note { margin: 1.25rem 0 0; font-weight: 600; color: var(--gold); }
.visit-note:empty { display: none; }
address { font-style: normal; line-height: 1.6; margin-bottom: 1rem; }
.visit-links a { color: var(--gold); }
.visit-links a:hover { color: #E4BB63; }
.visit-amenities { margin: 1.25rem 0 0; padding-left: 1.1rem; color: rgba(247, 241, 232, .8); }
.visit-amenities li { margin-bottom: .3rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(3rem, 7vw, 6rem) 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy p { color: var(--roast); }
.contact-direct a { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.socials { display: flex; gap: .75rem; margin-top: 1.5rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--espresso); background: var(--ivory); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--espresso); min-height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(181, 84, 45, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.form-error { color: #B3261E; font-size: .92rem; font-weight: 600; margin: -.25rem 0 1rem; }
.form-success { color: #2E6B3A; font-size: .95rem; font-weight: 600; margin: 1rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer-brand p { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { color: var(--espresso); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--terracotta); }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Motion (enhancement only; base state is fully visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin-inline: auto; width: 100%; }
  .hero-badge { left: .75rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .menu-cols { grid-template-columns: 1fr; gap: 2rem; }
  .visit-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 520px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-soft);
  }
  .site-nav[hidden] { display: none; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
  .hero-facts { gap: 1.25rem 1.75rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { width: min(1140px, 100% - 2rem); }
  .hero-actions .btn { width: 100%; }
  .contact-form, .visit-card { padding: 1.4rem; }
  .menu-list li { flex-direction: column; gap: .15rem; }
}

/* ======================================================================
   Ordering, tracking and staff desk
   ====================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container.narrow { width: min(760px, 100% - 2.5rem); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
.tiny { font-size: .85rem; color: var(--muted); }
.optional { font-weight: 400; color: var(--muted); }
.notice { border-radius: 12px; padding: .9rem 1.1rem; margin: 1rem 0; font-size: .95rem; }
.notice-demo { background: #FFF4D6; border: 1px solid #F0D48A; color: #6B4E00; }
.notice-success { background: #E8F3EA; border: 1px solid #BFDCC5; color: #1F5A2C; }
.notice-cancelled { background: #FBE9E7; border: 1px solid #F1C2BB; color: #8C2A1E; }
.code-chip, .track-code { font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn-fb { background: #0866FF; color: #fff; gap: .5rem; margin-top: .6rem; }
.btn-fb:hover { background: #0555D6; color: #fff; }
.btn-fb svg { width: 20px; height: 20px; fill: currentColor; }
.btn-danger { background: transparent; color: #B3261E; border-color: #B3261E; }
.btn-danger:hover { background: #B3261E; color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Order page layout */
.order-layout { display: grid; grid-template-columns: 1.35fr .95fr; gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
.order-menu .menu-tabs { position: sticky; top: var(--header-h); background: var(--cream); z-index: 5; padding-top: .75rem; }
.item-side { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.add-btn {
  font: inherit; font-weight: 600; font-size: .85rem; min-height: 40px; padding: .4rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--terracotta); background: transparent; color: var(--terracotta); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.add-btn:hover, .add-btn.in-cart { background: var(--terracotta); color: #fff; }
.cart-panel { position: sticky; top: calc(var(--header-h) + .75rem); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-size: 1.5rem; margin: 0; }
.cart-close { display: none; font-size: 1.75rem; line-height: 1; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--espresso); border-radius: 8px; }
.cart-list { list-style: none; margin: 1rem 0 0; padding: 0; max-height: 34vh; overflow: auto; }
.cart-list li { padding: .6rem 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.cart-line { display: flex; flex-direction: column; min-width: 0; }
.cart-name { font-weight: 600; }
.cart-price { font-size: .9rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.15rem; cursor: pointer; color: var(--espresso); }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 1.75rem; text-align: center; font-weight: 600; }
.cart-empty { color: var(--muted); margin: 1rem 0 0; }
.cart-totals { margin: 1rem 0; }
.cart-totals div { display: flex; justify-content: space-between; padding: .3rem 0; }
.cart-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-totals .total { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .6rem; font-weight: 700; font-size: 1.1rem; }
.segmented { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented legend { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; text-align: center; padding: .65rem; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.segmented input:checked + span { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.cart-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: var(--ivory); border-top: 1px solid var(--line); z-index: 40; box-shadow: 0 -8px 24px rgba(43,29,20,.1); }

/* Tracker */
.track-form { display: flex; gap: .5rem; max-width: 420px; margin: 1.25rem 0 .5rem; }
.track-form input { flex: 1; font: inherit; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; min-height: 48px; }
.track-form input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(181,84,45,.18); }
.track-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); margin-bottom: 4rem; }
.track-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.track-label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.track-code { margin: 0; font-size: 1.6rem; }
.status-pill { display: inline-block; padding: .35rem .85rem; border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; background: var(--sand); color: var(--espresso); }
.status-received { background: #FFF4D6; color: #6B4E00; }
.status-preparing { background: #FBE4D3; color: #8A3B14; }
.status-ready, .status-out_for_delivery { background: #DDEBF7; color: #1F4E79; }
.status-delivered, .status-completed { background: #E8F3EA; color: #1F5A2C; }
.status-cancelled { background: #FBE9E7; color: #8C2A1E; }
.stepper { --n: 4; list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: .5rem; position: relative; }
.stepper::before { content: ""; position: absolute; top: 11px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 3px; background: var(--line); }
.stepper li { position: relative; text-align: center; padding-top: 2rem; font-size: .9rem; color: var(--muted); }
.step-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); border: 3px solid var(--line); box-sizing: border-box; }
.stepper li.is-done .step-dot { background: var(--terracotta); border-color: var(--terracotta); }
.stepper li.is-done .step-dot::after { content: ""; position: absolute; inset: 5px 6px 8px 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.stepper li.is-current .step-dot { border-color: var(--terracotta); box-shadow: 0 0 0 5px rgba(181,84,45,.18); }
.stepper li.is-done, .stepper li.is-current { color: var(--espresso); }
.stepper li.is-current .step-label { font-weight: 700; }
.step-label { display: block; }
.step-note { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.track-rider { background: #DDEBF7; color: #1F4E79; border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1.5rem; }
.track-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.track-details h3 { font-size: 1.15rem; }
.receipt { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .95rem; }
.track-updated { margin: 1.5rem 0 0; }

/* Staff desk */
.staff-body { background: #F2ECE3; }
.desk-tag { display: inline-block; font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--espresso); color: var(--cream); padding: .2rem .5rem; border-radius: 6px; margin-left: .4rem; vertical-align: middle; }
.desk-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; cursor: pointer; }
.desk { padding: 2rem 0 4rem; }
.login-card { max-width: 420px; margin: 3rem auto; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); }
.login-card h1 { font-size: 1.75rem; }
.desk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.desk-head h1 { font-size: 1.9rem; margin: 0; }
.count-chip { display: inline-block; font-family: var(--font-body); font-size: .9rem; font-weight: 700; background: var(--terracotta); color: #fff; border-radius: 999px; padding: .15rem .65rem; vertical-align: middle; }
.desk-empty { color: var(--muted); }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.order-card { background: var(--ivory); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-soft); }
.order-card.is-new { border-left-color: var(--gold); }
.order-card.status-preparing { border-left-color: var(--terracotta); }
.order-card.status-ready, .order-card.status-out_for_delivery { border-left-color: #1F4E79; }
.order-card.status-delivered, .order-card.status-completed { border-left-color: #2E6B3A; opacity: .8; }
.order-card.status-cancelled { border-left-color: #B3261E; opacity: .7; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.order-card .track-code { font-size: 1.2rem; }
.order-meta { margin: 0 0 .35rem; font-size: .95rem; }
.order-notes { margin: .25rem 0 .5rem; font-style: italic; color: var(--roast); }
.type-chip { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; background: var(--sand); }
.type-delivery { background: #DDEBF7; color: #1F4E79; }
.order-card .receipt { margin: .75rem 0; padding-top: .5rem; border-top: 1px dashed var(--line); }
.order-total { display: flex; justify-content: space-between; margin: 0 0 .75rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.rider-form { display: grid; grid-template-columns: 1fr 90px auto; gap: .4rem; margin-bottom: .75rem; }
.rider-form input { font: inherit; font-size: .9rem; padding: .45rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); min-height: 40px; }
.order-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 960px) {
  .order-layout { grid-template-columns: 1fr; }
  .cart-bar { display: block; }
  .cart-close { display: block; }
  .cart-panel {
    position: fixed; inset: 0; top: auto; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; z-index: 60;
    transform: translateY(105%); transition: transform .3s var(--ease); padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  .cart-panel.is-open { transform: translateY(0); }
  body.cart-open { overflow: hidden; }
  .cart-list { max-height: none; }
  .track-details { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .stepper::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .stepper li { text-align: left; padding: 0 0 1.1rem 2.25rem; }
  .step-dot { left: 0; transform: none; }
  .track-form { flex-direction: column; }
  .rider-form { grid-template-columns: 1fr 1fr; }
  .rider-form button { grid-column: 1 / -1; }
}

/* Homepage order call-to-action */
.menu-cta { margin: 2.5rem 0 1rem; padding: 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.menu-cta p { margin: 0; max-width: 28rem; }
.menu-cta .hero-actions { margin: 0; }
[hidden] { display: none !important; }

/* Payment capture, rider page, reports */
.type-dine_in { background: #EADCC9; color: #4A3222; }
.order-paid { margin: 0 0 .5rem; font-size: .9rem; color: #1F5A2C; font-weight: 600; }
.pay-form { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.pay-form label { font-size: .85rem; font-weight: 600; display: flex; flex-direction: column; gap: .25rem; }
.pay-form input, .pay-form select { font: inherit; font-size: 1rem; padding: .5rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); min-height: 44px; background: #fff; }
.pay-form button { grid-column: 1 / -1; }
.rider-name { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.rider-name input { font: inherit; padding: .45rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); min-height: 40px; width: 9rem; }
.desk-sub { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.report-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin: .5rem 0 .75rem; }
.report-controls label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: .25rem; }
.report-controls input[type="date"] { font: inherit; padding: .45rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); min-height: 40px; background: #fff; }
.quick { display: flex; gap: .4rem; flex-wrap: wrap; }
.quick button { font: inherit; font-size: .85rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--ivory); cursor: pointer; min-height: 40px; }
.quick button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1rem 0; }
.tile { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.tile-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.tile-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: .8rem; color: var(--muted); }
.tile:first-child { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.tile:first-child .tile-label, .tile:first-child .tile-sub { color: #C9B8A6; }
.table-wrap { overflow-x: auto; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.report-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.report-table th, .report-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--cream); }
.report-table td:nth-child(n+5) { font-variant-numeric: tabular-nums; }
.report-table tr.row-cancelled td { color: var(--muted); text-decoration: line-through; }
@media print {
  .no-print, .site-header, .desk-tools { display: none !important; }
  body, .staff-body { background: #fff; }
  .tile, .table-wrap { border-color: #999; box-shadow: none; break-inside: avoid; }
  .tile:first-child { background: #fff; color: #000; }
  .report-table th, .report-table td { white-space: normal; }
}
.segmented-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Kitchen display */
.kitchen-body { background: #1E1512; color: #F7F1E8; }
.kitchen-header { background: #2B1D14; border-bottom-color: #4A3222; }
.kitchen-header .brand, .kitchen-header .brand-name { color: #F7F1E8; }
.kitchen-header .btn-ghost { color: #F7F1E8; border-color: #6B5B4E; }
.kitchen-header .tiny { color: #C9B8A6; }
.container-wide { width: min(1600px, 100% - 2rem); margin: 0 auto; }
.kitchen-body .login-card { color: var(--espresso); }
.kitchen-body .notice-demo { color: #6B4E00; }
.kds-columns { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 1.25rem; align-items: start; }
.kds-title { font-family: var(--font-body); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .12em; color: #C9B8A6; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.kds-title .tiny { text-transform: none; letter-spacing: 0; color: #8C7B6E; }
.kds-empty { color: #8C7B6E; }
.kds-list { display: grid; gap: 1rem; }
.kds-ticket { background: #F7F1E8; color: #2B1D14; border-radius: 14px; padding: 1rem 1.1rem; border-top: 8px solid #C89B3C; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.kds-ticket.status-preparing { border-top-color: #B5542D; }
.kds-ticket.status-ready { border-top-color: #2E6B3A; opacity: .75; }
.kds-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.kds-code { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.kds-age { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.25rem; padding: .1rem .55rem; border-radius: 8px; background: #EADCC9; }
.kds-age.is-late { background: #B3261E; color: #fff; }
.kds-type { display: inline-block; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 8px; margin-bottom: .5rem; }
.kds-dinein { background: #2B1D14; color: #F7F1E8; }
.kds-togo { background: #DDEBF7; color: #1F4E79; }
.kds-name { margin: 0 0 .5rem; font-weight: 600; color: var(--muted); }
.kds-items { list-style: none; margin: 0; padding: 0; }
.kds-items li { font-size: 1.45rem; font-weight: 700; line-height: 1.3; padding: .3rem 0; border-bottom: 1px dashed #D9CCBB; }
.kds-items li:last-child { border-bottom: 0; }
.kds-qty { display: inline-block; min-width: 2.4rem; color: #B5542D; }
.kds-sub { margin: .6rem 0 .1rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kds-bar li { font-size: 1.15rem; font-weight: 600; }
.kds-notes { margin: .6rem 0 0; background: #FFF4D6; border-left: 5px solid #C89B3C; padding: .5rem .7rem; font-weight: 700; font-size: 1.05rem; border-radius: 6px; }
.kds-actions { display: flex; gap: .6rem; margin-top: .9rem; }
.kds-btn { flex: 1; font: inherit; font-weight: 800; font-size: 1.05rem; min-height: 54px; border-radius: 10px; border: 0; cursor: pointer; }
.kds-start { background: #B5542D; color: #fff; }
.kds-done { background: #2E6B3A; color: #fff; }
.kds-btn:disabled { opacity: .5; }
.kds-donelabel { margin: .75rem 0 0; font-weight: 700; color: #2E6B3A; }
.kitchen-body .desk .tiny { color: #8C7B6E; }
.order-card.is-dim { opacity: .55; }
@media (max-width: 900px) { .kds-columns { grid-template-columns: 1fr; } .kds-col-done { order: 3; } }

/* Kitchen TV display mode */
.kds-display .kitchen-header .brand-name { font-size: 1.1rem; }
.kds-display .desk { padding-top: 1rem; }
.kds-display .kds-columns { grid-template-columns: 1.1fr 1.1fr .6fr; gap: 1.5rem; }
.kds-display .kds-list { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.kds-display .container-wide { width: min(1900px, 100% - 2rem); }
.kds-display .kds-title { font-size: 1.5rem; }
.kds-display .kds-code { font-size: 1.6rem; }
.kds-display .kds-age { font-size: 1.7rem; }
.kds-display .kds-type { font-size: 1.35rem; padding: .4rem .9rem; }
.kds-display .kds-name { font-size: 1.15rem; }
.kds-display .kds-items li { font-size: 1.95rem; }
.kds-display .kds-bar li { font-size: 1.5rem; }
.kds-display .kds-notes { font-size: 1.35rem; }
.kds-display .kds-sub { font-size: .95rem; }
.kds-display .kds-donelabel { font-size: 1.2rem; }
.kds-display .kds-col-done .kds-ticket { padding: .7rem .9rem; }
.kds-display .kds-col-done .kds-items li { font-size: 1.2rem; }
.kds-display #last-refresh, .kds-display #who { display: none; }
.kds-display .kds-ticket { cursor: default; }
@media (min-width: 1900px) { .kds-display .kds-items li { font-size: 2.3rem; } .kds-display .kds-type { font-size: 1.6rem; } }

/* Time clock */
.tc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.tc-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.tc-card h1 { font-size: 1.75rem; margin: 0 0 1rem; }
.tc-card h2 { font-size: 1.3rem; margin: 0 0 .25rem; }
.tc-card select, .tc-card input[type="password"] { font: inherit; font-size: 1.1rem; width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-height: 50px; }
.tc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0 .5rem; }
.tc-btn { font: inherit; font-weight: 800; font-size: 1.2rem; min-height: 64px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; }
.tc-in { background: #2E6B3A; } .tc-out { background: #B5542D; } .tc-btn:disabled { opacity: .5; }
.tc-today { list-style: none; margin: .75rem 0 0; padding: 0; }
.tc-today li { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.tc-today li .tiny { grid-column: 2 / -1; }
.tc-badge { font-size: .75rem; font-weight: 800; letter-spacing: .08em; padding: .2rem .5rem; border-radius: 6px; color: #fff; }
.tc-in.tc-badge, .tc-badge.tc-in { background: #2E6B3A; } .tc-badge.tc-out { background: #B5542D; }
.tc-section { margin-top: 2rem; }
.tc-section h2 { font-size: 1.4rem; }
.tc-add { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin-bottom: .75rem; }
.tc-add label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: .25rem; }
.tc-add input { font: inherit; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 42px; }
.report-table tr.row-total td { background: var(--cream); }

/* Inventory */
.inv-tabs { margin: .5rem 0 1rem; }
.inv-add { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin: .5rem 0 1rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.inv-add label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: .25rem; }
.inv-add input, .inv-add select { font: inherit; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 42px; background: #fff; min-width: 7rem; }
.inv-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.inv-adjust { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .25rem 0; }
.inv-adjust .adj-label { font-weight: 700; font-size: .9rem; }
.inv-adjust input { font: inherit; padding: .45rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 40px; }
.inv-adjust input[name="amount"] { width: 7rem; } .inv-adjust input[name="note"] { flex: 1; min-width: 10rem; }
.report-table tr.row-low td { background: #FFF4D6; }
.report-table tr.row-inactive td { opacity: .5; }
.report-table td.neg { color: #B3261E; font-weight: 700; } .report-table td.pos { color: #1F5A2C; font-weight: 700; }
.inv-recipe-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }
.inv-recipe-head label { font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.inv-recipe-head select { font: inherit; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 42px; background: #fff; }
.inv-missing { margin-top: 1rem; } .inv-missing summary { cursor: pointer; font-weight: 600; }

/* Rider sharing + tracker map */
.share-box { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: .25rem 0 1rem; }
#share-loc.is-on { background: #1F4E79; color: #fff; border-color: #1F4E79; }
.track-map-wrap { margin-bottom: 1.5rem; }
.track-map { height: 300px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.pin-icon { background: transparent; border: 0; }
.pin { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.35); border: 2px solid #fff; }
#pin-loc { margin-top: .5rem; }
@media (max-width: 760px) { .tc-grid { grid-template-columns: 1fr; } }

/* Sold out + menu manager */
.menu-list li.is-soldout .item-name, .menu-list li.is-soldout .item-desc, .menu-list li.is-soldout .item-price { opacity: .5; }
.soldout-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #FBE9E7; color: #8C2A1E; border-radius: 6px; padding: .1rem .4rem; margin-left: .4rem; opacity: 1; vertical-align: middle; }
.add-btn:disabled { border-color: var(--line); color: var(--muted); background: transparent; cursor: not-allowed; }
.mm-toolbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .25rem 0 1rem; position: sticky; top: var(--header-h); background: #F2ECE3; padding: .6rem 0; z-index: 4; }
.mm-toolbar input[type="search"] { font: inherit; padding: .55rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; min-height: 42px; min-width: 16rem; background: #fff; }
.mm-toast { font-weight: 700; color: #1F5A2C; opacity: 0; transition: opacity .2s; }
.mm-toast.is-on { opacity: 1; } .mm-toast.is-bad { color: #B3261E; }
.mm-cat { margin-bottom: 2rem; }
.mm-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.mm-cat-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.mm-cat-form input[type="text"] { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; border: 1.5px solid transparent; border-radius: 8px; padding: .25rem .5rem; background: transparent; min-width: 12rem; }
.mm-cat-form input[type="text"]:hover, .mm-cat-form input[type="text"]:focus { border-color: var(--line); background: #fff; outline: none; }
.mm-cat-tools { display: flex; gap: .4rem; align-items: center; }
.mm-table td { padding: .35rem .5rem; white-space: normal; }
.mm-table input[type="text"], .mm-table input[type="number"] { font: inherit; font-size: .92rem; width: 100%; padding: .4rem .5rem; border: 1.5px solid transparent; border-radius: 8px; background: transparent; min-height: 38px; }
.mm-table input:hover, .mm-table input:focus { border-color: var(--line); background: #fff; outline: none; }
.mm-table td:nth-child(1) { min-width: 11rem; } .mm-table td:nth-child(2) { min-width: 8rem; } .mm-table td:nth-child(3) { min-width: 12rem; } .mm-table td:nth-child(4) { width: 6rem; }
.mm-table tr.is-dirty td { background: #FFFBEA; }
.mm-switch { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mm-switch input { width: 18px; height: 18px; accent-color: var(--terracotta); }
.mm-actions { display: flex; gap: .3rem; align-items: center; white-space: nowrap; }
.mm-arrow { font: inherit; width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--ivory); cursor: pointer; font-size: .7rem; }
.mm-arrow:disabled { opacity: .35; cursor: default; }
.mm-add { margin-top: .6rem; }
.mm-add label:nth-child(3) input { min-width: 16rem; }
.rate-form { display: inline-flex; gap: .4rem; align-items: center; }
.rate-form input { font: inherit; width: 6rem; padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 36px; }
@media print { #request, #manage, .tc-grid, #log { display: none !important; } }

/* Loyalty */
.loyalty-box { margin-top: .5rem; background: #FFF4D6; border: 1px solid #F0D48A; border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .35rem; }
.loyalty-box .check { font-weight: 700; }
.loyalty-amount { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.loyalty-amount label { font-size: .85rem; font-weight: 600; }
.loyalty-amount input { font: inherit; width: 6rem; padding: .4rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 40px; }
.track-points { background: #FFF4D6; border-left: 5px solid #C89B3C; border-radius: 8px; padding: .7rem 1rem; margin: 1.25rem 0 0; }
.points-card { max-width: 560px; margin: 1.5rem auto 3rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); }
.points-big { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; line-height: 1; margin: .5rem 0 0; }
.points-sub { color: var(--muted); margin: .25rem 0 1rem; }
.points-form { display: flex; gap: .5rem; max-width: 420px; margin: 1rem 0; }
.points-form input { flex: 1; font: inherit; font-size: 1.1rem; padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; min-height: 48px; }
.points-rules { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.points-rules li { padding-left: 1.4rem; position: relative; }
.points-rules li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }
.points-panel { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-soft); }
.points-panel-head { display: flex; justify-content: space-between; align-items: center; }
.points-panel-head h2 { margin: 0; font-size: 1.4rem; }
.points-panel .cart-close { display: block; }
.points-panel .points-form { margin: .75rem 0; }
.pp-balance { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .5rem 0; }
.pp-balance strong { font-family: var(--font-display); font-size: 1.8rem; }
.pp-adjust { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; margin: .5rem 0; }
.pp-adjust label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: .25rem; }
.pp-adjust input { font: inherit; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 42px; }
.pp-adjust input[type="text"] { min-width: 16rem; }

/* ===== 528 Minimart theme ===== */
.mm { --cream: #F5F7F2; --ivory: #FFFFFF; --sand: #E3EBDD; --line: #D9E2D3; --espresso: #14301F; --roast: #2F5A3B; --terracotta: #1F7A4D; --terracotta-dark: #17603C; --gold: #F59E0B; --muted: #5B6B5F; --font-display: "Sora", "Helvetica Neue", Arial, sans-serif; }
.mm h1, .mm h2, .mm h3 { letter-spacing: -0.02em; }
.mm h1 em, .mm h2 em, .mm .brand-name em { font-style: normal; font-weight: 800; color: var(--terracotta); }
.mm .brand-name { font-weight: 800; }
.mm .btn-primary { box-shadow: 0 6px 18px rgba(31, 122, 77, .25); }
.mm .site-header { background: rgba(245, 247, 242, .92); }
.mm .hero-badge-txt, .mm .eyebrow { color: var(--terracotta); }
.mm .site-footer { background: var(--sand); }
.mm .kitchen-body, .mm.kitchen-body { background: #0F2417; }
.mm.kitchen-body .kitchen-header { background: #14301F; border-bottom-color: #2F5A3B; }
.mm.staff-body { background: #EEF3EA; }
.mm .desk-tag { background: var(--espresso); }
.mm .status-received { background: #FEF3C7; color: #7C4A03; }
.mm .status-preparing { background: #DCEFE3; color: #17603C; }
.mm-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.mm-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.mm-search { display: flex; gap: .5rem; max-width: 560px; margin-top: 1.25rem; }
.mm-search input { flex: 1; font: inherit; font-size: 1.05rem; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; min-height: 50px; }
.mm-search input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(31, 122, 77, .18); }
.mm-cats { position: sticky; top: var(--header-h); background: var(--cream); z-index: 5; padding: .75rem 0 .5rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; margin-top: .75rem; }
.mm-card { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: .75rem; display: flex; flex-direction: column; gap: .3rem; transition: box-shadow .2s, transform .2s; }
.mm-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.mm-card.is-soldout { opacity: .65; }
.mm-img { position: relative; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(160deg, #E3EBDD, #CFE0D3); display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #2F5A3B; }
.mm-img img { width: 100%; height: 100%; object-fit: cover; }
.mm-img .soldout-tag { position: absolute; top: .5rem; left: .5rem; margin: 0; }
.mm-name { font-family: var(--font-body); font-size: .98rem; font-weight: 700; margin: .25rem 0 0; line-height: 1.25; }
.mm-size { margin: 0; font-size: .82rem; color: var(--muted); }
.mm-card-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.mm-card .item-price { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.mm-card .add-btn { padding: .35rem .7rem; min-height: 36px; font-size: .82rem; }
.mm-card .qty button { width: 32px; height: 32px; }
.mm-how { padding: clamp(3rem, 6vw, 5rem) 0; }
.mm-how h2 { text-align: center; margin-bottom: 1.5rem; }
.mm-how .pillar h3 { font-family: var(--font-display); font-size: 1.1rem; }
.mm-stock { white-space: nowrap; }
.mm-stock .btn { padding: .25rem .55rem; min-height: 32px; font-size: .78rem; margin-left: .25rem; }
.mm .cart-panel { top: calc(var(--header-h) + .75rem); }
@media (max-width: 560px) { .mm-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .mm-card { padding: .6rem; } }
.mm-photo-cell { white-space: nowrap; }
.mm-thumb { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: .4rem; background: #E3EBDD; color: #2F5A3B; font-weight: 800; font-size: .8rem; }
.mm-upload { cursor: pointer; }

/* POS */
.pos-page { padding-top: 1rem; }
.pos-layout { display: grid; grid-template-columns: 1.3fr .8fr; gap: 1.25rem; align-items: start; }
.pos-scan { display: flex; gap: .5rem; margin-bottom: .75rem; }
.pos-scan input { flex: 1; font: inherit; font-size: 1.25rem; padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--terracotta); background: #fff; min-height: 56px; }
.pos-scan input:focus { outline: none; box-shadow: 0 0 0 4px rgba(31, 122, 77, .2); }
.pos-cam { margin-bottom: .75rem; } .pos-cam video { width: 100%; max-height: 260px; border-radius: 12px; background: #000; }
.pos-cats { position: static; padding: 0; margin-bottom: .5rem; border: 0; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.pos-tile { font: inherit; text-align: left; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; cursor: pointer; display: flex; flex-direction: column; gap: .15rem; min-height: 84px; transition: background .15s; }
.pos-tile:hover { background: var(--sand); } .pos-tile:active { transform: scale(.98); }
.pos-tile.is-out { opacity: .45; }
.pos-tile-name { font-weight: 700; font-size: .95rem; line-height: 1.2; } .pos-tile-size { font-size: .78rem; color: var(--muted); } .pos-tile-price { font-family: var(--font-display); font-weight: 800; margin-top: auto; }
.pos-cart { position: sticky; top: calc(var(--header-h) + .5rem); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-soft); }
.pos-cart h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.pos-lines { max-height: 32vh; }
.pos-change { margin: .4rem 0 0; font-weight: 800; font-size: 1.1rem; color: #17603C; min-height: 1.4em; }
.pos-charge { font-size: 1.25rem; min-height: 60px; margin-top: .5rem; }
.receipt-wrap { max-width: 420px; margin: 1rem auto; }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; font-family: "Courier New", monospace; font-size: .92rem; color: #000; }
.receipt h2 { font-family: inherit; text-align: center; margin: 0 0 .25rem; font-size: 1.3rem; } .receipt p { text-align: center; margin: .2rem 0; }
.receipt table { width: 100%; border-collapse: collapse; margin: .75rem 0; } .receipt td { padding: .2rem 0; vertical-align: top; } .receipt td:last-child { text-align: right; white-space: nowrap; }
.receipt .receipt-totals { border-top: 1px dashed #000; } .receipt .tot td { font-weight: 800; font-size: 1.1rem; border-top: 1px solid #000; }
.receipt-thanks { margin-top: .75rem !important; font-weight: 700; }
.receipt-actions { display: flex; gap: .5rem; justify-content: center; margin-top: .75rem; }
.adj-cost { display: inline-flex; align-items: center; gap: .3rem; } .adj-cost input { width: 6rem; }
.pl-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin: .5rem 0 1rem; }
@media (max-width: 900px) { .pos-layout { grid-template-columns: 1fr; } .pos-cart { position: static; } .pl-grid { grid-template-columns: 1fr; } }
@media print { .pos-page .site-header, .pos-layout, .receipt-actions, .notice { display: none !important; } .receipt-wrap { max-width: 80mm; margin: 0; } .receipt { border: 0; padding: 0; } body.staff-body { background: #fff; } }

/* Receive delivery */
.rc-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-soft); display: grid; gap: .9rem; }
.rc-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.rc-form label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: .3rem; }
.rc-form label.check { flex-direction: row; align-items: center; }
.rc-form input[type="text"], .rc-form input[type="date"], .rc-form select { font: inherit; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 42px; background: #fff; }
.rc-photo .mm-upload { align-self: flex-start; }
.rc-table td { white-space: normal; }
.rc-table .rc-search, .rc-table .rc-item { font: inherit; font-size: .92rem; width: 100%; padding: .4rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 38px; background: #fff; }
.rc-table .rc-search { margin-bottom: .25rem; }
.rc-table .rc-qty, .rc-table .rc-cost { font: inherit; width: 6rem; padding: .4rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; min-height: 38px; }
.rc-table td:first-child { min-width: 14rem; }
.rc-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rc-total { font-size: 1.1rem; } .rc-total strong { font-family: var(--font-display); font-size: 1.5rem; margin-left: .4rem; }

.rc-scan { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; grid-column: 1 / -1; }
.rc-line.rc-unmatched td { background: #FFF1E6; } .rc-line.rc-check td { background: #FFFBEA; }
