:root {
  --brand: #a76b38;
  --brand-dark: #7a4b22;
  --brand-soft: #f3e6d8;
  --bg: #faf6f1;
  --card: #ffffff;
  --ink: #23201c;
  --muted: #7a716a;
  --line: #e8dfd5;
  --good: #2e7d4f;
  --good-soft: #e3f2e8;
  --warn: #b5651d;
  --warn-soft: #fbeedd;
  --bad: #c0392b;
  --bad-soft: #fbe4e1;
  --info: #3b5b8a;
  --info-soft: #e4ebf6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(60, 40, 20, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* hlavička */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand img { display: block; height: 44px; width: auto; }
.claim { font-size: .85rem; color: var(--muted); text-align: right; }

.hero { padding: 26px 0 8px; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* dny */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.pill { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 6px; }
.section-head h2 { margin: 0; }
.note { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }

/* karty položek */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 12px 0; }
.closed { text-align: center; padding: 28px 18px; }
.item {
  display: flex; gap: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; margin: 10px 0;
}
.item.soldout { opacity: .6; }
.thumb { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); }
.thumb.placeholder { display: grid; place-items: center; font-size: 2.2rem; }
.item .body { flex: 1; min-width: 0; }
.item h3 { margin: 2px 0 2px; }
.desc { font-size: .92rem; color: var(--muted); margin: 0 0 4px; }
.allergens { font-size: .78rem; color: var(--muted); margin: 0 0 6px; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.price { font-weight: 800; font-size: 1.1rem; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.stepper button {
  width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); cursor: pointer;
}
.stepper button:active { background: var(--brand-soft); }
.stepper input {
  width: 40px; height: 44px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 800; font-size: 1.1rem; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.item.has-qty { outline: 2px solid var(--brand); }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--info-soft); color: var(--info); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.good { background: var(--good-soft); color: var(--good); }

/* objednávka */
.checkout { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 22px; margin: 18px 0 90px; scroll-margin-top: 12px; }
.checkout h2 { margin-top: 14px; }
.checkout h2:first-child { margin-top: 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 8px 0 6px; }
.slot { position: relative; display: block; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px 6px; background: var(--bg); cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: block; font-weight: 800; font-size: 1.05rem; }
.slot small { display: block; font-size: .75rem; color: var(--muted); }
.slot:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot:has(input:checked) small { color: rgba(255, 255, 255, .8); }
.slot.full { opacity: .45; }

label { display: block; font-weight: 700; font-size: .92rem; margin: 10px 0 0; }
label small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
label .muted { font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; margin-top: 4px; padding: 12px 12px; font: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.terms { font-size: .82rem; color: var(--muted); margin: 14px 0 12px; }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:active { background: var(--brand-dark); }
.btn.big { width: 100%; padding: 16px; font-size: 1.1rem; }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(60, 40, 20, .08);
}
.sticky-bar[hidden] { display: none; }
body.has-bar { padding-bottom: 96px; }
.sticky-bar .sum { display: flex; flex-direction: column; line-height: 1.15; }
.sticky-bar .sum b { font-size: 1.05rem; }
.sticky-bar .sum span { color: var(--muted); font-size: .9rem; }

.flash { padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-weight: 600; }
.flash-error { background: var(--bad-soft); color: var(--bad); }
.flash-ok { background: var(--good-soft); color: var(--good); }

/* stav objednávky */
.order-status { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 18px; margin: 20px 0; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); margin: 0; }
.big-no { font-size: 3.4rem; font-weight: 800; line-height: 1; margin: 4px 0 10px; color: var(--brand-dark); }
.tag.status { font-size: .95rem; padding: 6px 16px; }
.status-new .tag.status { background: var(--info-soft); color: var(--info); }
.status-ready .tag.status { background: var(--good); color: #fff; }
.status-picked .tag.status { background: var(--good-soft); color: var(--good); }
.status-noshow .tag.status, .status-cancelled .tag.status { background: var(--bad-soft); color: var(--bad); }
.when { margin: 14px 0; font-size: 1.05rem; }
.order-lines { list-style: none; padding: 0; margin: 14px 0; text-align: left; border-top: 1px solid var(--line); }
.order-lines li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-lines .total { font-weight: 800; }
.help { background: var(--bg); border-radius: 10px; padding: 12px; font-size: .95rem; }
.status-ready .help { background: var(--good-soft); color: var(--good); font-weight: 700; }

.site-footer { padding: 24px 16px 40px; color: var(--muted); font-size: .88rem; text-align: center; }

@media (min-width: 600px) {
  body { font-size: 17px; }
  .brand img { height: 50px; }
  .thumb { flex-basis: 120px; width: 120px; height: 120px; }
}
