:root {
  --navy:#0a2a66;
  --bg:#0b0d12;
  --text:#e6e9ef;
  --card:#11161f;
  --muted:#9aa8bd;
  --border:#1e2430;
  --accent:#2b63ff;
}
:root[data-theme="light"] {
  --bg:#ffffff;
  --text:#111216;
  --card:#f5f7fb;
  --muted:#5b6577;
  --border:#d7dde7;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--navy);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.1)}
.header-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px}
.brand{
  font-weight:700
}
.modes{
  display:flex;
  gap:8px
}
.mode-btn{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.2);
  background:transparent;
  color:#fff;
  cursor:pointer}

/* Layout */
.container{
  max-width:1200px;
  margin:16px auto;
  padding:0 16px;
  display:grid;
  grid-template-columns:1.8fr .9fr;
  gap:16px}
@media (max-width:1000px){.container{grid-template-columns:1fr}}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
}
.muted{
  color:var(--muted)
}
.grid{
  display:grid;
  gap:12px
}

/* Menu */
.menu-item{
  display:grid;
  grid-template-columns:96px 1fr auto;
  gap:12px;
  border-bottom:1px solid var(--border);
  padding:12px 0
}
.menu-item img{
  width:96px;height:72px;
  border-radius:10px;
  object-fit:cover;
  background:#00000022
}
.menu-title{
  font-weight:600
}
.menu-desc{
  font-size:14px;
  color:var(--muted);
  margin-top:4px;
  white-space:pre-line} /* supports \n */

/* Buttons & inputs */
.price{
  font-weight:600
}
.btn{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#1a2332;
  color:#fff;
  cursor:pointer
}
.btn:hover{
  opacity:.92
}
.btn-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff}
input[type="text"],select{
  padding:10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text)
}

/* Cart */
.cart-title{
  font-weight:700;
  margin-bottom:8px
}
.cart-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--border)
}
.cart-total{
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  font-weight:700
}
.checkout-fixed{
  position:sticky;
  top:76px;
  min-height: 180px; 
  overflow: visible;
  align-self: start;
}
@media (max-width: 1000px){
  .checkout-fixed{
    position: static;
    min-height: auto;
  }
}
/* Map & misc */
.mapbox{
  height:320px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#00000010
}
.greybox{
  margin-top:8px;
  padding:10px;
  border:1px dashed var(--border);
  border-radius:10px;
  color:var(--muted);
  font-family:ui-monospace,Consolas,monospace
}

/* Tables */
/*.table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px
}
.table th,.table td{
  padding:8px;
  border-bottom:1px solid var(--border)
}
*/
/* Tables: identical geometry for both */
.table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;               /* use the colgroup widths */
}
.table th,.table td{
  padding:8px 12px;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:left;
}
/* Align numeric columns */
.table .col-price   { text-align:right; }
.table .col-action,
.table .col-done    { text-align:center; }
/* Typography helpers */
.center{
  display:flex;
  justify-content:center;
  align-items:center;
  height:40vh
}
.big{
  font-size:22px;
  font-weight:800;
  margin-bottom:10px
}

/* Accessibility helper: visually-hidden but screen-reader readable */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
