@font-face { font-family: 'Oswald'; src: url('/assets/fonts/oswald-latin.woff2') format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-latin.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --red: #c8141f; --red-d: #8e0d15; --red-dd: #5e070d;
  --yel: #f6b625; --yel-l: #fde7a6; --sand: #fff6e0;
  --ink: #23140f; --mut: #6f5a4f; --line: #ecdcc0; --card: #fff;
  --green: #128c4a; --wa: #25d366;
  --r: 16px;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 6px 20px rgba(60, 20, 0, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; font: 16px/1.45 var(--body); color: var(--ink); background: var(--sand); min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--red-d); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; margin: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 2px; }

/* ---------- header ---------- */
.top { background: linear-gradient(180deg, var(--red) 0%, var(--red-d) 100%); color: #fff; position: relative; z-index: 5; }
.top::after { content: ''; display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--yel) 0 14px, #1c8a4a 14px 28px, var(--red) 28px 42px, #fff 42px 56px); }
.top__in { max-width: 820px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand img { width: 64px; height: auto; border-radius: 12px; background: #fff; padding: 3px; }
.top__txt { flex: 1; min-width: 0; }
.top__store { margin: 0; font-family: var(--head); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.pill { margin: 2px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 99px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9e9e9e; }
.pill.is-open .dot { background: #4ae38a; box-shadow: 0 0 0 3px rgba(74,227,138,.25); }
.pill.is-closed .dot { background: #ffb3b3; }
.top__my { background: var(--yel); color: var(--ink); text-decoration: none; font-weight: 900; font-size: 14px; padding: 8px 12px; border-radius: 99px; white-space: nowrap; }

/* ---------- layout ---------- */
#app { max-width: 820px; margin: 0 auto; padding: 0 16px 120px; }
.loading { padding: 60px 0; text-align: center; color: var(--mut); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { margin: 14px 0 0; background: var(--yel-l); border: 2px solid var(--yel); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.notice--closed { background: #ffe1e1; border-color: #f19a9a; }

.hero { margin: 16px 0 6px; }
.hero h1 { font-size: clamp(28px, 7vw, 40px); color: var(--red-d); }
.hero p { margin: 4px 0 0; color: var(--mut); }

/* order type switch */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.mode { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; transition: .15s; }
.mode b { display: block; font-family: var(--head); font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.mode small { display: block; color: var(--mut); font-size: 12.5px; font-weight: 700; }
.mode .ico { font-size: 22px; line-height: 1; display: block; margin-bottom: 2px; }
.mode.is-on { border-color: var(--red); background: var(--red); color: #fff; box-shadow: var(--shadow); }
.mode.is-on small { color: #ffe0b0; }
.mode:disabled { opacity: .45; cursor: not-allowed; }

/* categories bar */
.cats { position: sticky; top: 0; z-index: 4; background: var(--sand); margin: 0 -16px; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; color: var(--ink); background: #fff; border: 1.5px solid var(--line); padding: 7px 13px; border-radius: 99px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.cats a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.search { margin: 12px 0 0; position: relative; }
.search input { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px 11px 40px; background: #fff; }
.search::before { content: '⌕'; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); font-size: 20px; color: var(--mut); }

.cat { padding-top: 22px; }
.cat h2 { font-size: 26px; color: var(--red-d); display: inline-block; position: relative; }
.cat h2::after { content: ''; display: block; height: 5px; background: var(--yel); border-radius: 3px; margin-top: 3px; }
.cat__blurb { margin: 6px 0 0; color: var(--mut); font-size: 14.5px; }
.items { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 700px) { .items { grid-template-columns: 1fr 1fr; } }
.item { display: flex; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; align-items: stretch; transition: transform .1s, box-shadow .15s; width: 100%; }
.item:hover { box-shadow: var(--shadow); }
.item:active { transform: scale(.99); }
.item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item__name { font-weight: 900; font-size: 16px; line-height: 1.25; }
.item__desc { color: var(--mut); font-size: 13.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__price { margin-top: auto; padding-top: 8px; font-weight: 900; color: var(--red-d); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item__img { width: 104px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; background: var(--yel-l); }
.item__ph { width: 104px; height: 92px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--yel) 0%, #f08a1c 100%); display: grid; place-items: center; font-family: var(--head); color: #fff; font-size: 30px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.item.is-out { opacity: .55; }
.tag { font-family: var(--body); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: var(--yel-l); color: #7a4b00; padding: 2px 7px; border-radius: 6px; }
.tag--out { background: #eee; color: #555; }
.tag--red { background: var(--red); color: #fff; }
.empty { color: var(--mut); padding: 30px 0; text-align: center; }

/* ---------- cart bar ---------- */
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; background: var(--red); color: #fff; border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 900; font-size: 17px; box-shadow: 0 10px 30px rgba(120,0,0,.35); }
.cartbar span:nth-child(2) { flex: 1; text-align: left; }
.cartbar__n { background: #fff; color: var(--red); min-width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.cartbar.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.05); } }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet__bg { position: absolute; inset: 0; background: rgba(30,10,5,.55); animation: fade .2s; }
.sheet__box { position: relative; background: #fff; width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .25s ease-out; overflow: hidden; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet__box { border-radius: 22px; max-height: 88vh; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet__head { padding: 18px 18px 6px; display: flex; gap: 10px; align-items: flex-start; }
.sheet__head h2 { flex: 1; font-size: 25px; color: var(--red-d); }
.x { border: 0; background: #f3ece0; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; flex: none; }
.sheet__img { width: 100%; height: 190px; object-fit: cover; }
.sheet__img + .x { position: absolute; top: 12px; right: 12px; background: #fff; box-shadow: var(--shadow); }
.sheet__body { padding: 4px 18px 18px; }
.sheet__desc { color: var(--mut); margin: 4px 0 0; }
.sheet__note { margin: 10px 0 0; background: var(--yel-l); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.sheet__foot { border-top: 1px solid var(--line); padding: 12px 18px max(14px, env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; background: #fff; }

.grp { margin-top: 18px; }
.grp__head { display: flex; align-items: baseline; gap: 8px; background: #faf3e6; margin: 0 -18px; padding: 8px 18px; }
.grp__head h3 { font-size: 17px; flex: 1; }
.grp__head small { font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--mut); }
.grp__head small.req { color: var(--red); }
.grp.is-missing .grp__head { background: #ffe2e2; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2e8d8; cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 22px; height: 22px; accent-color: var(--red); flex: none; margin: 0; }
.opt span { flex: 1; }
.opt em { font-style: normal; font-weight: 800; color: var(--mut); font-size: 14px; }
.opt.is-off { opacity: .45; cursor: not-allowed; }
.opt--rm span { color: #9a1a1a; }

textarea, .in { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
textarea { min-height: 70px; resize: vertical; }
textarea:focus, .in:focus { border-color: var(--red); outline: none; }

.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; }
.qty button { border: 0; background: #fff; width: 40px; height: 44px; font-size: 22px; font-weight: 900; }
.qty output { min-width: 30px; text-align: center; font-weight: 900; }
.qty--sm button { width: 34px; height: 34px; font-size: 18px; }
.btn { border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 900; font-size: 16px; background: var(--red); color: #fff; display: inline-flex; justify-content: center; align-items: center; gap: 10px; text-decoration: none; }
.btn--full { flex: 1; }
.btn--ghost { background: #f3ece0; color: var(--ink); }
.btn--wa { background: var(--wa); color: #06331a; }
.btn--yel { background: var(--yel); color: var(--ink); }
.btn:disabled, .btn.is-busy { opacity: .6; cursor: progress; }
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.link { border: 0; background: none; color: var(--red-d); font-weight: 800; padding: 0; text-decoration: underline; }

/* cart */
.cl { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #f2e8d8; }
.cl__main { flex: 1; min-width: 0; }
.cl__name { font-weight: 900; }
.cl__mods { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--mut); }
.cl__mods .rm { color: #a01818; }
.cl__mods .add { color: var(--green); }
.cl__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl__price { font-weight: 900; }
.cl__acts { display: flex; gap: 14px; margin-top: 6px; font-size: 14px; }
.sum { margin-top: 14px; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum .tot { font-weight: 900; font-size: 19px; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; }

/* checkout form */
.fld { display: block; margin-top: 14px; }
.fld > span { display: block; font-weight: 800; margin-bottom: 5px; }
.fld small { display: block; color: var(--mut); margin-top: 4px; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 800; }
.chip.is-on { border-color: var(--red); background: var(--red); color: #fff; }
.err { background: #ffe2e2; color: #8a0b0b; border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 12.5px; color: var(--mut); margin: 12px 0 0; }

/* tracking */
.track { margin-top: 18px; background: #fff; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.track__top { background: var(--red); color: #fff; padding: 18px; }
.track__top h1 { font-size: 30px; }
.track__top p { margin: 4px 0 0; color: #ffe0b0; font-weight: 700; }
.track__body { padding: 18px; }
.big { font-family: var(--head); font-size: 26px; text-transform: uppercase; line-height: 1.15; color: var(--red-d); margin: 0; }
.big--ok { color: var(--green); }
.lead { margin: 6px 0 0; color: var(--mut); font-size: 16px; }
.steps { list-style: none; padding: 0; margin: 18px 0 6px; display: flex; gap: 4px; }
.steps li { flex: 1; text-align: center; font-size: 12px; font-weight: 800; color: var(--mut); }
.steps li::before { content: ''; display: block; height: 7px; border-radius: 4px; background: #eadfcb; margin-bottom: 6px; }
.steps li.done::before { background: var(--green); }
.steps li.now::before { background: var(--yel); animation: pulse 1.4s infinite; }
.steps li.done, .steps li.now { color: var(--ink); }
@keyframes pulse { 50% { opacity: .45; } }
.countdown { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; background: var(--sand); border-radius: 14px; padding: 12px 16px; }
.countdown b { font-family: var(--head); font-size: 44px; color: var(--red-d); line-height: 1; }
.wa-step { margin-top: 16px; background: #e8fbef; border: 2px solid #9fe3b8; border-radius: 16px; padding: 14px; }
.wa-step p { margin: 0 0 10px; font-weight: 700; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.acts .btn { flex: 1 1 200px; }
.track h3 { margin-top: 20px; font-size: 18px; }

/* footer */
.foot { background: var(--ink); color: #f0e2cc; padding: 26px 16px 110px; }
.foot__in { max-width: 820px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.foot p { margin: 2px 0; }
.foot a { color: var(--yel); }
.foot__name { font-family: var(--head); font-size: 20px; text-transform: uppercase; color: #fff; }
.foot__halaal { border: 2px solid #3c8a4a; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; align-self: flex-start; }
.foot__halaal strong { color: #8fe0a0; }
.foot__halaal span { font-size: 13px; }
.foot__small { max-width: 820px; margin: 14px auto 0 !important; font-size: 13px; color: #b8a58c; }

.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast--bad { background: #a01010; }

@media (max-width: 380px) {
  .mode b { font-size: 15px; }
  .item__img, .item__ph { width: 84px; height: 80px; }
  .top__store { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.legal h1 { font-size: 34px; color: var(--red-d); }
.legal h2 { font-size: 21px; margin: 24px 0 6px; color: var(--red-d); }
.legal__updated { color: var(--mut); margin-top: 4px; }
.legal li { margin: 4px 0; }

.wa-step .btn { width: 100%; }
