/* Bestelpagina. Telefoon: één kolom + balk onderin. iPad liggend en groter: menu links, bestelling rechts. */
.hero { position: relative; color: #fff; background: #0B2A22 url('/img/hero.jpg') center 30% / cover no-repeat; padding: calc(28px + env(safe-area-inset-top, 0px)) 16px 26px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,42,34,.55) 0%, rgba(11,42,34,.35) 45%, rgba(11,42,34,.85) 100%); }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; display: grid; gap: 6px; justify-items: start; }
.hero-logo img { width: 150px; height: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.hero-title { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(26px, 6vw, 40px); line-height: 1.05; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-sub { margin: 0; font-weight: 700; opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.state { margin-top: 8px; font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: #8FD6A4; }
.state.closed::before { background: #F28B7D; }
@media (min-width: 960px) { .hero { padding-top: 48px; padding-bottom: 40px; } .hero-logo img { width: 190px; } }
.banner { border-radius: 0; text-align: center; }

.layout { max-width: 1200px; margin: 0 auto; padding: 0 16px calc(110px + env(safe-area-inset-bottom, 0px)); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); font-weight: 700; }

.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 12px; margin: 0 -16px; background: var(--cream); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; min-height: 42px; border: 2px solid var(--green); background: transparent; color: var(--green); border-radius: 999px; padding: 6px 18px; font-weight: 800; white-space: nowrap; }
.cat[aria-current="true"] { background: var(--green); color: var(--cream); }

.section { scroll-margin-top: 70px; padding-top: 10px; }
.section h2 { color: var(--orange); font-size: 30px; margin: 6px 0 12px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }

.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-width: 0; transition: box-shadow .15s, transform .15s; }
.card.picked { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.card.off .poster, .card.off .poster-btn { filter: grayscale(.6); opacity: .75; }
.poster-btn { position: relative; display: block; padding: 0; border: 0; background: none; width: 100%; cursor: pointer; }
.poster-btn:disabled { cursor: default; }
.poster { display: block; width: 100%; height: auto; aspect-ratio: 480 / 671; object-fit: cover; background: var(--cream); }
.ribbon { position: absolute; left: 10px; bottom: 10px; background: var(--yellow); color: var(--green); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .4px; padding: 4px 10px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.badge { position: absolute; right: 10px; top: 10px; min-width: 34px; height: 34px; border-radius: 99px; background: var(--orange); color: #fff; font-weight: 900; display: grid; place-items: center; padding: 0 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-variant-numeric: tabular-nums; }
.card-body { padding: 12px 12px 12px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.card-name { font-weight: 900; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.card-desc { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-self: end; }
.price { font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; margin-right: auto; }
.ctrl { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.step { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 22px; font-weight: 900; line-height: 1; color: var(--ink); display: grid; place-items: center; }
.step.add { background: var(--orange); border-color: var(--orange); color: #fff; }
.step:disabled { background: #EEE5D5; border-color: #EEE5D5; color: #A39C8C; }
.qty { min-width: 20px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.soon { font-size: 13px; font-weight: 800; color: var(--muted); }

/* Kaart in Saus'é-stijl voor gerechten zonder eigen kaart */
.gen { display: grid; place-items: center; position: relative; background: var(--gen-bg); overflow: hidden; }
.gen::before { content: ""; position: absolute; inset: -20%; background: url('/img/icon.svg') 0 0 / 70px 70px repeat; opacity: .06; transform: rotate(-12deg); }
.gen-blob { position: relative; display: grid; justify-items: center; gap: 2px; transform: rotate(-6deg); padding: 0 8%; text-align: center; }
.gen-1, .gen-2 { font-family: var(--font-display); line-height: .95; padding: 6px 14px 10px; border-radius: 40px; }
.gen-1 { background: var(--cream); color: var(--gen-bg); font-size: clamp(22px, 6vw, 36px); }
.gen-2 { background: var(--gen-fg); color: var(--cream); font-size: clamp(26px, 7vw, 44px); margin-top: -6px; }
.gen-2:empty { display: none; }
.gen-tag { position: absolute; right: 10%; bottom: 9%; font-family: var(--font-display); color: var(--cream); font-size: clamp(14px, 3.6vw, 20px); transform: rotate(-8deg); opacity: .9; }
.sheet-poster { display: grid; justify-items: center; }
.sheet-poster .sheet-photo { width: min(240px, 60vw); aspect-ratio: 480 / 671; height: auto; max-height: none; border-radius: 18px; object-fit: cover; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--cream) 70%, rgba(247,237,220,0)); }
.bar-btn { width: 100%; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 18px; border: 0; border-radius: 16px; background: var(--orange); color: #fff; font-weight: 900; font-size: 17px; box-shadow: 0 8px 20px rgba(232,83,43,.35); }
.bar-btn span:nth-child(2) { flex: 1; text-align: left; }
.bar-count { background: rgba(0,0,0,.18); border-radius: 10px; padding: 3px 10px; font-variant-numeric: tabular-nums; }

/* Bestelling: op telefoon in een paneel van onder, op iPad/desktop vast rechts */
.cart-panel { display: none; }
.order { display: grid; gap: 14px; }
.order h2 { color: var(--green); font-size: 28px; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line-name { font-weight: 800; }
.line-sub { color: var(--muted); font-size: 14px; grid-column: 1; }
.line-right { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 6px; }
.line .step { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
.totals { display: flex; justify-content: space-between; font-weight: 900; font-size: 19px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.form { display: grid; gap: 12px; }
.err { color: var(--bad); font-weight: 800; }
.safe { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 700; }

@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 40px; }
  .cart-panel { display: block; position: sticky; top: 16px; margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; max-height: calc(100vh - 32px); overflow: auto; }
  .bar { display: none !important; }
}

/* Paneel (keuze sauzen, bestelling op telefoon, betalen) */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(11,74,58,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet { background: var(--cream); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px)); animation: up .2s ease-out; display: grid; gap: 14px; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; padding: 24px; } .sheet { border-radius: 22px; } }
.sheet-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.sheet h3 { font-size: 28px; color: var(--green); }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11,74,58,.08); font-size: 22px; font-weight: 900; color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; border: 2px solid var(--green); background: #fff; color: var(--green); border-radius: 999px; padding: 6px 16px; font-weight: 800; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.chip-count { font-weight: 800; color: var(--muted); font-size: 14px; }
.chip-count.done { color: var(--ok); }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }

/* Betalen */
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 800; text-align: left; }
.pay-method[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,74,58,.15); }
.pay-method small { display: block; font-weight: 600; color: var(--muted); }
.pay-method:disabled { opacity: .55; }
.pay-icon { width: 40px; height: 28px; border-radius: 6px; background: var(--green); color: var(--cream); display: grid; place-items: center; font-size: 12px; font-weight: 900; flex: none; }

/* Status na betalen */
.status { max-width: 520px; margin: 30px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px 20px; text-align: center; display: grid; gap: 14px; }
.status .big { font-family: var(--font-display); font-size: 84px; line-height: 1; color: var(--orange); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0; }
.steps li { list-style: none; padding: 10px 4px; border-radius: 12px; background: #EEE5D5; color: var(--muted); font-weight: 800; font-size: 13px; }
.steps li.on { background: var(--green); color: var(--cream); }
.steps { padding: 0; }
.status p { margin: 0; }

/* Afstand delen */
.loc { display: grid; gap: 10px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; }
.loc.on { border-color: var(--ok); background: #F1FAF4; }
.loc-text { display: grid; gap: 4px; }
.loc-text small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cart-panel[hidden] { display: none !important; }

/* Kop op smalle schermen: status op eigen regel */

/* Voet met links */
.site-foot { background: var(--green); color: var(--cream); padding: 24px 16px calc(120px + env(safe-area-inset-bottom, 0px)); margin-top: 30px; }
@media (min-width: 960px) { .site-foot { padding-bottom: 28px; } }
.foot-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 10px; }
.foot-title { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--yellow); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links a { color: var(--cream); text-decoration: none; font-weight: 800; border: 1.5px solid rgba(247,237,220,.4); border-radius: 999px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }
.foot-links a:hover { background: rgba(255,255,255,.1); }
.foot-small { margin: 0; font-size: 13px; opacity: .8; }
.review { display: grid; gap: 8px; }
.left { color: var(--orange-press); font-weight: 900; font-size: 13px; }
.ful { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ful-opt { display: grid; gap: 2px; text-align: left; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.ful-opt b { font-size: 16px; }
.ful-opt small { color: var(--muted); font-weight: 700; }
.ful-opt[aria-checked="true"] { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,74,58,.15); }
.totals.sub { font-size: 15px; font-weight: 700; color: var(--muted); }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.four li { font-size: 12px; padding: 10px 2px; }
.table-badge { font-weight: 900; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--yellow); color: var(--green); }
.last-order { margin-top: 14px; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 12px 16px; background: var(--green); color: var(--cream); font-weight: 900; min-height: 48px; }
