:root{--forest:#14302a;--saffron:#f0b429;--line:#e3e9e4;--bs-body-font-family:'DM Sans',system-ui,sans-serif;--bs-body-bg:#f5f7f4;--bs-body-color:#16221f}
h1,h2,h3,.serif{font-family:'DM Serif Display',Georgia,serif;font-weight:400}
.btn-saffron{--bs-btn-bg:#f0b429;--bs-btn-border-color:#f0b429;--bs-btn-color:#14302a;--bs-btn-hover-bg:#d99d16;--bs-btn-hover-border-color:#d99d16;--bs-btn-hover-color:#14302a;font-weight:700}
/* "incomplete" = looks disabled but stays tappable, so it can guide the guest to the missing choice */
.btn-saffron.incomplete,.btn-saffron.incomplete:hover{background:#e6ebe7;border-color:#e6ebe7;color:#4d5f58}
.topbar{background:var(--forest);color:#fff}
/* Thumbnails: put a photo path/URL in the data or leave an emoji as a placeholder */
.th{display:grid;place-items:center;background:#eef3ee;border-radius:12px;overflow:hidden;flex:none;line-height:1}
.th img{width:100%;height:100%;object-fit:cover}
.th.lg{width:96px;height:96px;font-size:2.8rem;background:linear-gradient(135deg,#2c5b4e,#14302a)}
.th.md{width:44px;height:44px;font-size:1.5rem}
.th.sm{width:40px;height:40px;font-size:1.3rem;border-radius:10px}
.dish{background:#fff;border:1px solid var(--line);border-radius:18px;cursor:pointer;transition:border-color .15s}
.dish:hover,.dish:focus-visible{border-color:var(--forest)}
#list.grid .items{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
#list.grid .dish{flex-direction:column;align-items:stretch!important;gap:.75rem!important;padding:0!important;overflow:hidden;position:relative}
#list.grid .dish .th.lg{width:100%;height:auto;aspect-ratio:4/3;border-radius:0;font-size:3.6rem;position:relative}   /* 4:3 like most food photos, so pictures aren't cut to a strip */
#list.grid .dish .th.lg img{position:absolute;inset:0}   /* fill the frame, centred (a % height doesn't work in an aspect-ratio box) */
@media (max-width:575.98px){#list.grid .dish .th.lg:not(:has(img)){aspect-ratio:2/1}}   /* phones, one card per row: an emoji doesn't need a tall frame */
#list.grid .dish .body{padding:0 1rem 1rem}
#list.grid .dish .go{position:absolute;right:.75rem;bottom:.75rem}
#list:not(.grid) .items{display:flex;flex-direction:column;gap:1rem}
#list:not(.grid) .dish .body{flex:1 1 auto}
.ab{border:0;background:#eef3ee;color:var(--forest);border-radius:999px;padding:.25rem .7rem;font-size:.8rem;font-weight:600;margin-top:.5rem;display:inline-flex;align-items:center;gap:.4rem}
.ab svg{transition:transform .2s}.ab[aria-expanded=true] svg{transform:rotate(180deg)}
.ab:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.ab-card{margin:0 1rem .5rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:16px;font-size:.9rem;color:#33423d;max-height:34vh;overflow:auto;padding-bottom:0}
.ab-stats{display:flex;background:#f3f6f3;border-radius:14px;margin-bottom:.9rem}
.ab-stats div{flex:1;text-align:center;padding:.55rem .25rem;display:flex;flex-direction:column;gap:.05rem;min-width:0}
.ab-stats div+div{border-left:1px solid #dfe6e1}
.ab-stats strong{font-size:.95rem;color:var(--forest);white-space:nowrap}
.ab-stats span{font-size:.68rem;color:#6b7a75;text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.ab-dim{opacity:.22}
.ab-d{margin:0 0 .6rem;line-height:1.5;color:#33423d}
.ab-sec{padding:.45rem 0}
.ab-h{font-size:.7rem;font-weight:700;color:#8a9892;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.3rem}
.ab-x{display:flex;align-items:center;justify-content:center;gap:.4rem;width:auto;margin:0;border:0;background:#eef3ee;color:var(--forest);border-radius:999px;padding:.4rem 1rem;font-weight:600;font-size:.85rem;box-shadow:0 1px 4px rgba(20,48,42,.15)}
.ab-xb{display:flex;justify-content:flex-end;position:sticky;bottom:0;margin:.5rem -1rem 0;padding:.6rem 1rem .75rem;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 28%)}
.ab-x:hover{background:#e2eae3}.ab-x:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.ab-card{scrollbar-width:thin;scrollbar-color:#c5d0c9 transparent}
.ab-card::-webkit-scrollbar{width:6px}.ab-card::-webkit-scrollbar-track{background:transparent;margin:10px 0}
.ab-card::-webkit-scrollbar-thumb{background:#c5d0c9;border-radius:99px}.ab-card::-webkit-scrollbar-thumb:hover{background:#a9b8af}
.ab-t{line-height:1.5;color:#5c6b66;font-size:.85rem}
.ab-c{display:inline-block;background:#f3f6f3;border:1px solid var(--line);border-radius:999px;padding:.12rem .65rem;font-size:.82rem;margin:0 .3rem .3rem 0}
.ab-c.al{background:#fff4d6;border-color:#f1d58a;color:#7a5200}
.ab-note{margin-top:.5rem;padding-top:.6rem;border-top:1px solid var(--line);font-size:.75rem;color:#8a9892;line-height:1.4}
.ab-card .tg{font-size:.78rem;padding:.15rem .6rem;border-radius:999px;margin:0 .3rem .3rem 0}
.clrb{display:inline-flex;align-items:center;gap:.35rem;border:1.5px solid #e6c7c3;background:#fff;color:#b42318;border-radius:999px;padding:.25rem .8rem;font-size:.85rem;font-weight:600;transition:background .15s}
.clrb:hover{background:#fde4e1}.clrb:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.tools{position:sticky;top:0;z-index:20;background:var(--bs-body-bg);padding:.6rem .75rem .5rem;margin:0 -.75rem}
.srch{position:relative}.srch svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#6b7a75;pointer-events:none}
.srch input{padding-left:38px;border-radius:12px;min-height:44px}
.cats{display:flex;gap:.5rem;overflow-x:auto;padding:.65rem 0 .15rem;scrollbar-width:none}.cats::-webkit-scrollbar{display:none}
.cats button,.pl{white-space:nowrap;border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:.35rem .9rem;font-weight:500;color:inherit}
.cats button.on,.pl.on{background:var(--forest);border-color:var(--forest);color:#fff}
.pl{padding:.3rem .8rem;font-size:.9rem}.pl.no.on{background:#b42318;border-color:#b42318}
.pl:focus-visible,.cats button:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.tg{font-size:.68rem;font-weight:700;border-radius:6px;padding:.1rem .4rem;display:inline-block;margin:0 .25rem .25rem 0;line-height:1.3}
.tg.veg{background:#e4f3e8;color:#1f7a3d}.tg.vegan{background:#d3efda;color:#14602e}.tg.gf{background:#fdf0d5;color:#8a5a00}.tg.halal{background:#e1ecf8;color:#1d4e89}.tg.spicy{background:#fde4e1;color:#b42318}.tg.pop{background:#fff1c9;color:#7a5200}
.ing{font-size:.8rem;color:#5c6b66;margin-bottom:.5rem}
.dsc{display:none}#list:not(.grid) .dsc{display:block}
.cat-h{margin:1.4rem 0 .75rem}
.xchip{display:inline-flex;align-items:center;gap:.3rem;background:#fde4e1;color:#b42318;border-radius:999px;padding:.2rem .3rem .2rem .7rem;font-size:.88rem;margin:0 .35rem .35rem 0}
.xchip button{border:0;background:#fff;color:#b42318;border-radius:50%;width:22px;height:22px;line-height:1;padding:0}
.vt{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.vt button{border:0;background:none;padding:.4rem .6rem;color:#6b7280;line-height:0}
.vt button.on{background:var(--forest);color:#fff}
.sheet .modal-dialog{max-width:400px}
.sheet .modal-content{border:0;border-radius:20px}
.sheet .modal-body{padding:0 1rem}.sheet .modal-header,.sheet .modal-footer{border:0}
.grp{padding:.9rem .5rem;margin:0 -.5rem;border-top:1px solid var(--line);border-radius:12px}
.grp.flash{animation:fl 1.2s}@keyframes fl{0%,100%{background:transparent}25%,60%{background:#fff0c2}}
.grp h4{font-size:.95rem;font-weight:700;margin:0}
.rule{font-size:.72rem;font-weight:600;padding:.15rem .5rem;border-radius:99px;background:#eef3ee;color:#3d524a;white-space:nowrap}
.rule.req{background:var(--forest);color:#fff}.rule.ok{background:#d6f0dd;color:#14532d}
.opts{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.opt{border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:.5rem .3rem;min-height:44px;text-align:center;font-size:.8rem;line-height:1.2;display:flex;flex-direction:column;align-items:center;gap:.3rem}
.opt.on{border-color:var(--forest);background:#eef6f1;box-shadow:inset 0 0 0 1px var(--forest)}
.opt:disabled{opacity:.4}
.row-sub{display:flex;align-items:center;gap:.7rem;padding:.35rem 0}
.row-sub.out{opacity:.45}
.step{display:inline-flex;align-items:center;background:#eef3ee;border-radius:99px;padding:2px}
.step button{width:44px;height:44px;border:0;border-radius:50%;background:#fff;font-size:1.2rem;font-weight:700;line-height:1;color:var(--forest)}
.step button:disabled{background:transparent;color:#a8b5af}
.step span{min-width:30px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.seg .btn{--bs-btn-padding-y:.55rem}
.act{display:inline-flex;align-items:center;gap:.35rem;min-height:40px;padding:0 .75rem;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--forest);font-size:.82rem;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}
.cl-row .step button{width:38px;height:38px}
.ico{width:1.05em;height:1.05em;flex:none;vertical-align:-.15em}
.step .cm.del{color:#b42318}
.act.yes{background:#b42318;border-color:#b42318;color:#fff}.act.yes:hover{background:#951c12;border-color:#951c12}
#im [data-bs-target="#bdL"] .ico{transition:transform .15s}#im [data-bs-target="#bdL"][aria-expanded=true] .ico{transform:rotate(180deg)}
/* Details open as a floating panel above the footer, so the option list never shrinks */
#im .modal-footer{position:relative}
#bdL{position:absolute;left:.5rem;right:.5rem;bottom:100%;margin-bottom:.25rem;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 -6px 20px rgba(20,48,42,.14);z-index:5}
#bd{padding:.75rem 1rem}
.dish.out{opacity:.55;cursor:not-allowed}
.act:disabled{opacity:.45;cursor:not-allowed}
.part{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--forest);margin-bottom:.4rem}
.grp.first-of-part{border-top:2px solid var(--forest);margin-top:.6rem}
.grp.dep{background:#f1f6f2;margin-top:.4rem;border-top:0}
/* Combo layout: each part shows its items as tiles; the chosen item's options sit in a panel attached beneath it */
.pt{padding:1rem 0;border-top:1px solid var(--line)}
.pt:first-of-type{border-top:0}
.pt-h{display:flex;align-items:center;gap:.6rem;margin-bottom:.7rem}
.pt-n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--forest);color:#fff;display:grid;place-items:center;font-size:.8rem;font-weight:700}
.pt.done .pt-n{background:#14532d}
.pt-t{font-family:var(--bs-body-font-family);font-size:1rem;font-weight:700;margin:0;flex:1}
.pt .grp{margin:0;padding:0;border:0}
.nest{position:relative;margin-top:.8rem;padding:.8rem;background:#f1f6f2;border-radius:14px}
.nest::before{content:"";position:absolute;top:-6px;left:var(--c,50%);width:12px;height:12px;background:#f1f6f2;border-radius:3px;transform:translateX(-50%) rotate(45deg)}
.nest-title{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:700;color:var(--forest)}
.nest .grp{padding-top:.7rem}
.nest .grp:not(.d-none)~.grp:not(.d-none){margin-top:.7rem;border-top:1px dashed #cdddd3}
.chips{display:flex;flex-wrap:wrap;gap:.4rem}
.opt.chip{flex-direction:row;gap:.4rem;min-height:40px;padding:.35rem .85rem;border-radius:99px;background:#fff}
.act:hover{background:#eef3ee;border-color:#c9d6cd}
.cartbar{position:fixed;left:0;right:0;bottom:0;padding:.7rem;background:linear-gradient(transparent,#f5f7f4 40%)}
/* one joined bar: [bag + count | Checkout -> total]. Left part opens the cart, the rest goes to checkout. Same colours as the Checkout button. */
.cb-join{display:flex;align-items:stretch;min-height:56px;border-radius:var(--btn-r,14px);overflow:hidden;background:#f0b429;color:#14302a;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.cb-join button{border:0;background:none;color:inherit;font:inherit;font-weight:700;font-size:1.05rem;min-width:0}
.cb-join button:hover{background:rgba(0,0,0,.06)}
.cb-join button:focus-visible{outline:3px solid rgba(0,0,0,.35);outline-offset:-3px}
.cb-view{position:relative;flex:none;width:62px;display:grid;place-items:center;border-right:1px solid rgba(0,0,0,.14)!important}
.cb-n{position:absolute;top:7px;right:9px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#14302a;color:#f0b429;font-size:11px;line-height:18px;text-align:center}
.cb-co{flex:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;white-space:nowrap}
button:focus-visible,.dish:focus-visible{outline:3px solid var(--saffron)!important;outline-offset:2px}
@media(max-width:575px){.sheet .modal-dialog{margin:0;min-height:100%;align-items:flex-end;max-width:none}.sheet .modal-content{border-radius:20px 20px 0 0;max-height:90vh;width:100%}}
/* reduced motion: no sliding or lifting, but gentle colour and fade changes stay (they are not motion) */
@media(prefers-reduced-motion:reduce){*{animation:none!important}.dish:not(.out):hover,.dish:not(.out):hover .go,button:active,.dish:active{transform:none!important}}

/* loading states */
.skel{background:linear-gradient(90deg,#e9eeea 25%,#f4f7f4 37%,#e9eeea 63%);background-size:400% 100%;animation:sk 1.2s ease infinite;border-radius:10px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}
#list.busy{opacity:.55;transition:opacity .15s;pointer-events:none}
.retry{text-align:center;padding:1.5rem 1rem}

/* ---------- Smooth motion: hover, switches and list changes ---------- */
:root{--ease:cubic-bezier(.2,.7,.2,1);--t:.45s} /* <- change --t to make ALL hover/switch transitions slower (e.g. .6s) or faster (.25s) */
.dish{transition:border-color var(--t) var(--ease),box-shadow var(--t) var(--ease),transform var(--t) var(--ease),opacity var(--t)}
.dish:not(.out):hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,48,42,.10)}
.dish:active{transform:translateY(-1px)}
.dish .go{transition:transform var(--t) var(--ease),background-color var(--t)}
.dish:not(.out):hover .go{transform:scale(1.1)}
.cats button,.pl,.opt,.act,.ab,.ab-x,.clrb,.vt button,.step button,.xchip button,.btn,.tg,.ab-c,.rule,.row-sub,.nest{transition:background-color var(--t) ease,border-color var(--t) ease,color var(--t) ease,box-shadow var(--t) ease,transform .18s var(--ease),opacity var(--t) ease}
.cats button:active,.pl:active,.opt:active,.act:active,.step button:active,.btn:active,.vt button:active{transform:scale(.96)}
.opt.on{transition:background-color var(--t) ease,border-color var(--t) ease,box-shadow var(--t) ease}
.srch input,.form-control,.form-select{transition:border-color var(--t) ease,box-shadow var(--t) ease}
/* things that appear when a switch changes (display none -> shown) fade in */
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.grp:not(.d-none),.nest:not(.d-none){animation:fadeUp var(--t) var(--ease)}
.grp.flash:not(.d-none){animation:fl 1.2s}
#hold:not(.d-none),.cl-row,.xchip{animation:fadeUp var(--t) var(--ease)}
/* list: cards fade in after a search, filter or layout switch (not on silent background refreshes) */
#list{transition:opacity var(--t) ease}
#list.anim .dish,#list.anim .cat-h{animation:fadeUp var(--t) var(--ease) both}
#list.anim .dish:nth-child(2){animation-delay:.04s}#list.anim .dish:nth-child(3){animation-delay:.08s}#list.anim .dish:nth-child(4){animation-delay:.12s}#list.anim .dish:nth-child(n+5){animation-delay:.16s}
@media(prefers-reduced-motion:reduce){.dish:not(.out):hover,.dish:not(.out):hover .go{transform:none}}

/* store picker and "Ordering from" bar */
.stc-list{display:flex;flex-direction:column;gap:10px}
.stc{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center;background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:14px 16px;color:inherit;text-decoration:none}
.stc>span:not(.stc-go){grid-column:1}
.stc-go{grid-column:2;grid-row:1/span 4;font-size:1.3rem;color:var(--forest)}
a.stc:hover{border-color:var(--forest);color:inherit}
a.stc:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.stc.cur{border-color:var(--forest);background:#f3f8f4}
.stc.disabled{opacity:.6}
.stc-name{font-weight:700;font-size:1.05rem}
.stc-cur{font-size:11px;font-weight:700;background:var(--forest);color:#fff;border-radius:999px;padding:2px 8px;vertical-align:middle;margin-left:4px}
.stc-st{font-size:13px;font-weight:600;color:#8a5a00}
.stc-st.on{color:#15803d}.stc-st.off{color:#b42318}
.stc-meta{font-size:13px;color:#5b6b65}
.storebar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin:10px 0 4px}
.sb-st{font-size:13px;font-weight:600;color:#8a5a00;margin-left:6px}.sb-st.on{color:#15803d}
.sb-change{background:none;border:0;font-weight:700;color:var(--forest);text-decoration:underline;min-height:40px;padding:0 4px}

/* store pop-up (<dialog>) */
.stdlg{border:0;border-radius:20px;padding:20px;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 24px 60px rgba(0,0,0,.3);background:#f5f7f4;color:inherit}
.stdlg::backdrop{background:rgba(10,24,20,.55)}
.stdlg-h{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px}
.stdlg-h h2{font-size:1.6rem;margin:0}
.stdlg-x{width:40px;height:40px;border-radius:50%;border:0;background:#e3e9e4;font-size:24px;line-height:1;color:#16221f;flex:none}
.stdlg-x:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.stdlg-sub{font-size:14px;color:#5b6b65;margin:0 0 14px}
.stdlg.nomodal{position:static;display:block;margin:16px auto}
@media(max-width:520px){.stdlg{margin:auto auto 0;width:100vw;max-width:100vw;border-radius:20px 20px 0 0;max-height:85vh}}
