/* The Just Margin, demo styles. Brand: near black header, amber accent. */
:root {
  --ink: #0a0a0c;
  --panel: #101012;
  --amber-hi: #ffb03a;
  --amber: #f07f13;
  --amber-text: #fba330;
  --bg: #f6f4f0;
  --card: #ffffff;
  --line: #e3ded4;
  --muted: #6b655c;
  --green: #1e7d46;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: #1c1a17;
}
.testmode {
  background: #b3261e;
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  font-size: 0.92rem;
}
header.brand {
  background: linear-gradient(180deg, var(--ink), var(--panel));
  color: #fff;
  padding: 26px 18px 20px;
}
header.brand .jm {
  color: var(--amber-text);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
header.brand h1 { margin: 6px 0 4px; font-size: 2rem; }
header.brand p { margin: 4px 0; color: #d8d2c8; max-width: 640px; }
header.brand .meta { font-size: 0.9rem; color: #a49c8f; }
main { max-width: 880px; margin: 0 auto; padding: 18px 14px 120px; }
h2.cat {
  margin: 26px 0 10px;
  font-size: 1.25rem;
  border-bottom: 3px solid var(--amber);
  display: inline-block;
  padding-bottom: 3px;
}
.dish {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.dish h3 { margin: 0 0 4px; font-size: 1.05rem; }
.dish p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.dish .price { font-weight: 800; white-space: nowrap; }
.badge3d {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}
button {
  font: inherit;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
button.amber { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); color: #201304; }
button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button:disabled { opacity: 0.45; cursor: default; }
.add { flex-shrink: 0; }
model-viewer {
  width: 100%;
  height: 320px;
  background: radial-gradient(circle at 50% 35%, #2a2a2e, var(--panel));
  border-radius: var(--radius);
}
.viewer-note { font-size: 0.85rem; color: var(--muted); margin: 6px 2px 0; }

/* Cart bar */
#cartbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 40;
}
#cartbar.show { display: flex; }

/* Modal + panels */
.overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 12, 0.55);
  display: none;
  z-index: 50;
  overflow-y: auto;
  padding: 18px 10px;
}
.overlay.show { display: block; }
.panel {
  background: #fff;
  border-radius: var(--radius);
  max-width: 560px;
  margin: 0 auto;
  padding: 18px;
}
.panel h3 { margin-top: 0; }
.optgroup { margin: 14px 0; }
.optgroup .gname { font-weight: 700; margin-bottom: 6px; }
.optgroup label {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 9px; margin: 5px 0; cursor: pointer;
}
.qtyrow { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.qtyrow button { width: 38px; height: 38px; padding: 0; font-size: 1.1rem; }
.line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.line small { color: var(--muted); display: block; }
.totals { margin-top: 12px; }
.totals .line { border-bottom: 0; }
.totals .grand { font-weight: 800; font-size: 1.1rem; }
input[type="text"], textarea, select {
  width: 100%; font: inherit; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 9px; margin: 5px 0 12px;
}
.status-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: #fff; background: #8a8378;
}
.status-recue { background: #b3261e; }
.status-en_preparation { background: var(--amber); color: #201304; }
.status-prete { background: var(--green); }
.status-annulee { background: #555; }
footer.note { max-width: 880px; margin: 0 auto; padding: 0 14px 30px; color: var(--muted); font-size: 0.85rem; }
a { color: var(--amber); }

/* Restaurant landing page additions */
header.brand .tagline { font-size: 1.12rem; color: #fff; }
header.brand .hero-note { font-size: 0.9rem; color: #a49c8f; margin-top: 12px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
a.btn-big {
  display: inline-block;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: #201304;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 12px;
}
a.btn-ghost-light {
  display: inline-block;
  color: #fff;
  border: 1px solid #6f6a61;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
}
.story { max-width: 680px; line-height: 1.55; }
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.info-card h3 { margin: 0 0 4px; font-size: 0.95rem; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.menu-intro { color: var(--muted); max-width: 640px; }
h3.subcat {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  color: #1c1a17;
}
.order-cta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 26px;
}
.order-cta-note { color: var(--muted); font-size: 0.9rem; }
.order-card { max-width: 100%; margin: 10px 0; }
.order-mode { color: var(--muted); font-size: 0.9rem; margin-left: 6px; }
