@import url("./fonts/fonts.css");

:root{
  --night:#141127; --panel:#1E1A38; --panel2:#29234A; --line:#3A3363;
  --paper:#F5F1E8; --paper2:#E9E3D6; --ink:#17132B; --muted:#A79FC9; --muted-ink:#5E5878;
  --amber:#FF8A1F; --amber-d:#E2700A; --lake:#5BC0EB; --ok:#3DDC97; --ok-ink:#0E8A5A; --err:#FF5D73; --err-ink:#C0243C;
  --r-l:22px; --r-m:14px; --r-s:10px;
  --font:'Montserrat','Noto Sans Arabic','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  --gutter:20px;
  color-scheme:dark;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --night:#141127; } }
:root[data-theme="dark"]{ --night:#141127; }
html[dir="rtl"]{ --font:'Noto Sans Arabic','Montserrat',system-ui,Arial,sans-serif; }
@media (max-width:520px){ :root{ --gutter:16px; } }

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--night); color:var(--paper); font-family:var(--font); font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased;
  padding-bottom:env(safe-area-inset-bottom,0px); }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; color:inherit; }
input,select,textarea{ font-family:inherit; font-size:16px; }
a{ color:inherit; }
:focus-visible{ outline:3px solid var(--lake); outline-offset:2px; }
.hidden{ display:none !important; }
.wrap{ max-width:1320px; margin-inline:auto; padding-inline:max(var(--gutter), env(safe-area-inset-left,0px)) max(var(--gutter), env(safe-area-inset-right,0px)); }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.muted{ color:var(--muted); }
.num{ font-variant-numeric:tabular-nums; direction:ltr; unicode-bidi:isolate; }

/* ---------- Header ---------- */
.top{ border-bottom:1px solid var(--line);
  background:
    radial-gradient(1100px 360px at 90% -40%, rgba(91,192,235,.16), transparent 60%),
    radial-gradient(700px 300px at 0% 120%, rgba(255,138,31,.12), transparent 60%), var(--night);
  padding-top:env(safe-area-inset-top,0px); }
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding-block:18px 6px; }
.brand{ display:flex; align-items:center; gap:12px; min-width:0; text-decoration:none; }
.mark{ width:46px; height:46px; flex:none; }
.wordmark{ margin:0; font-weight:900; font-size:clamp(21px,4.6vw,40px); line-height:1.02; letter-spacing:-.03em; }
@media (max-width:520px){ .wordmark{ max-width:9.5ch; } }
.top-actions{ display:flex; align-items:center; gap:8px; flex:none; }
.langsel{ position:relative; }
.langsel select{ appearance:none; -webkit-appearance:none; height:44px; border-radius:999px; border:1.5px solid var(--line); background:var(--panel); color:var(--paper); font-weight:700; font-size:14px; padding-inline:14px 30px; cursor:pointer; }
.langsel::after{ content:""; position:absolute; inset-inline-end:13px; top:50%; width:7px; height:7px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.acct-btn{ position:relative; display:inline-flex; align-items:center; gap:8px; height:44px; padding-inline:16px; border-radius:999px; border:0; background:var(--paper); color:var(--ink); font-weight:800; font-size:15px; white-space:nowrap; }
.acct-btn svg{ width:20px; height:20px; flex:none; }
.acct-btn .badge{ position:absolute; top:-3px; inset-inline-end:-3px; width:14px; height:14px; border-radius:50%; background:var(--amber); border:2px solid var(--night); }
@media (max-width:420px){ .acct-btn .lbl{ display:none; } .acct-btn{ width:44px; padding:0; justify-content:center; } }
.tagline{ margin:6px 0 16px; color:var(--muted); font-weight:600; font-size:15px; }
.infogrid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding-bottom:18px; }
@media (max-width:760px){ .infogrid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.tile{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r-m); padding:12px 14px; min-width:0; text-align:start; font:inherit; color:var(--paper); display:flex; flex-direction:column; gap:2px; }
.tile .k{ font-size:12.5px; color:var(--muted); font-weight:600; display:flex; align-items:center; gap:6px; }
.tile .v{ font-size:16px; font-weight:800; line-height:1.3; overflow-wrap:anywhere; }
.tile .v small{ font-weight:600; color:var(--muted); font-size:13px; }
button.tile{ cursor:pointer; border-style:dashed; }
button.tile:hover{ border-color:var(--amber); }
.dot{ width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px rgba(61,220,151,.2); flex:none; }
.dot.closed{ background:var(--err); box-shadow:0 0 0 3px rgba(255,93,115,.2); }
.strip{ background:var(--paper); color:var(--ink); overflow:hidden; white-space:nowrap; font-weight:700; font-size:14px; direction:ltr; }
.strip-track{ display:inline-flex; gap:48px; padding:10px 0; animation:slide 40s linear infinite; }
.strip-track span{ display:inline-flex; gap:8px; align-items:center; }
@keyframes slide{ from{ transform:translateX(0) } to{ transform:translateX(-50%) } }
@media (prefers-reduced-motion: reduce){ .strip-track{ animation:none; } }

/* Active order bar */
.activebar{ position:sticky; top:0; z-index:45; background:var(--amber); color:var(--ink); box-shadow:0 6px 20px rgba(0,0,0,.35); padding-top:env(safe-area-inset-top,0px); }
.activebar a{ display:flex; align-items:center; gap:12px; padding-block:11px; text-decoration:none; font-weight:800; font-size:15px; }
.activebar .pulse{ width:10px; height:10px; border-radius:50%; background:var(--ink); flex:none; animation:pulse 1.6s ease-in-out infinite; }
@keyframes pulse{ 50%{ opacity:.25 } }
.activebar .go{ margin-inline-start:auto; background:var(--ink); color:var(--paper); border-radius:999px; padding:6px 14px; font-size:13.5px; white-space:nowrap; }
.activebar .txt{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- Layout ---------- */
.layout{ display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:28px; padding-block:22px 130px; align-items:start; }
@media (max-width:980px){ .layout{ grid-template-columns:minmax(0,1fr); } .cart-aside{ display:none; } }
.search{ display:flex; align-items:center; gap:12px; background:var(--panel); border:1.5px solid var(--line); border-radius:999px; padding-inline:18px; height:54px; }
.search:focus-within{ border-color:var(--amber); }
.search input{ flex:1; min-width:0; background:transparent; border:0; color:var(--paper); outline:none; height:100%; }
.search input::placeholder{ color:var(--muted); }
.refbanner{ display:flex; align-items:center; gap:12px; width:100%; margin-top:12px; padding:12px 16px; border-radius:var(--r-m); border:1px dashed var(--line); background:transparent; color:var(--paper); font-weight:700; font-size:14.5px; text-align:start; }
.refbanner:hover{ border-color:var(--amber); }
.refbanner .arr{ margin-inline-start:auto; color:var(--amber); }
html[dir="rtl"] .refbanner .arr{ transform:scaleX(-1); }
.cats{ display:flex; gap:6px; overflow-x:auto; padding:16px 0 4px; scrollbar-width:none; margin-inline:calc(var(--gutter) * -1); padding-inline:var(--gutter); }
.cats::-webkit-scrollbar{ display:none; }
.cat{ flex:none; border:0; background:transparent; color:var(--muted); font-weight:700; font-size:15px; padding:9px 14px; border-radius:999px; }
.cat:hover{ color:var(--paper); }
.cat.active{ background:var(--amber); color:var(--ink); }
.section-title{ font-size:22px; font-weight:800; letter-spacing:-.01em; margin:22px 0 12px; }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:16px; }
@media (max-width:520px){ .grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } }
.card{ position:relative; background:var(--paper); color:var(--ink); border-radius:var(--r-l); padding:14px 14px 16px; display:flex; flex-direction:column; text-align:start; transition:transform .15s ease; cursor:pointer; }
.card:hover{ transform:translateY(-2px); }
.card.out{ opacity:.55; }
.thumb{ aspect-ratio:1/1; border-radius:var(--r-m); background:var(--paper2); display:grid; place-items:center; overflow:hidden; margin-bottom:12px; }
.thumb img{ width:100%; height:100%; object-fit:contain; }
.card h3{ font-size:15.5px; line-height:1.25; margin:0 0 6px; font-weight:700; }
.card .price{ font-size:21px; font-weight:800; margin-top:auto; letter-spacing:-.01em; }
.card .meta{ font-size:12px; color:var(--muted-ink); line-height:1.35; margin-top:2px; }
.add-btn{ position:absolute; top:12px; inset-inline-end:12px; width:40px; height:40px; border-radius:50%; border:0; background:var(--amber); color:var(--ink); font-size:24px; font-weight:700; display:grid; place-items:center; line-height:1; box-shadow:0 4px 14px rgba(255,138,31,.35); }
.add-btn:hover{ background:var(--amber-d); }
.add-btn:disabled{ background:#CFC8B9; box-shadow:none; cursor:not-allowed; }
.badges{ position:absolute; top:12px; inset-inline-start:12px; display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.badge18{ direction:ltr; unicode-bidi:isolate; font-size:11px; font-weight:800; background:var(--ink); color:var(--paper); border-radius:999px; padding:3px 8px; }
.badge-low{ font-size:11px; font-weight:800; background:#FFE2C4; color:#8A3B00; border-radius:999px; padding:3px 8px; }
.badge-out{ font-size:11px; font-weight:800; background:var(--err-ink); color:#fff; border-radius:999px; padding:3px 8px; }
.empty{ padding:40px 20px; text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:var(--r-l); }

/* ---------- Cart ---------- */
.cart{ background:var(--paper); color:var(--ink); border-radius:var(--r-l); padding:22px 20px; position:sticky; top:16px; max-height:calc(100vh - 32px); display:flex; flex-direction:column; }
.cart h2{ margin:0; font-size:26px; font-weight:900; letter-spacing:-.02em; }
.cart .hours{ font-size:13px; color:var(--muted-ink); margin:2px 0 12px; }
#cartSheet .cart-scroll{ overflow:visible; flex:none; }
.cart-scroll{ overflow-y:auto; flex:1; min-height:60px; margin-inline:-6px; padding-inline:6px; }
.cart-group{ font-size:12px; font-weight:800; color:var(--muted-ink); margin:12px 0 4px; }
.ci{ display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--paper2); }
.ci img{ width:46px; height:46px; object-fit:contain; background:var(--paper2); border-radius:10px; }
.ci .n{ font-size:14px; font-weight:700; line-height:1.25; }
.ci .s{ font-size:12.5px; color:var(--muted-ink); }
.ci .right{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.qty{ display:inline-flex; align-items:center; background:var(--amber); border-radius:999px; height:34px; direction:ltr; }
.qty button{ width:32px; height:34px; border:0; background:transparent; color:var(--ink); font-size:18px; font-weight:800; }
.qty button:disabled{ opacity:.35; cursor:not-allowed; }
.qty span{ min-width:22px; text-align:center; font-weight:800; font-size:14px; }
.ci .lt{ font-weight:800; font-size:14px; }
.pairs{ margin:12px 0 4px; }
.pairs h3{ font-size:14px; margin:0 0 8px; }
.pairs-row{ display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; scrollbar-width:thin; }
.pair{ flex:none; width:128px; background:#fff; border-radius:var(--r-m); padding:8px; display:flex; flex-direction:column; gap:4px; position:relative; border:0; text-align:start; color:var(--ink); }
.pair img{ width:100%; height:64px; object-fit:contain; background:var(--paper2); border-radius:8px; }
.pair .pn{ font-size:12px; font-weight:700; line-height:1.2; height:2.4em; overflow:hidden; }
.pair .pp{ font-size:13px; font-weight:800; }
.pair .add-btn{ width:30px; height:30px; font-size:18px; top:6px; inset-inline-end:6px; }
.totals{ border-top:1px solid var(--paper2); padding-top:10px; margin-top:8px; font-size:14px; }
.totals .row{ display:flex; justify-content:space-between; gap:12px; padding:3px 0; }
.totals .row.discount{ color:var(--ok-ink); font-weight:700; }
.totals .row.sum{ font-size:19px; font-weight:900; border-top:1px solid var(--paper2); margin-top:6px; padding-top:10px; }
.eta-line{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; background:#fff; border-radius:var(--r-s); padding:8px 12px; margin-top:10px; }
.note-ink{ font-size:12.5px; color:var(--muted-ink); margin:8px 0 0; }
.primary{ width:100%; border:0; border-radius:999px; min-height:54px; padding:0 18px; background:var(--amber); color:var(--ink); font-weight:800; font-size:16px; margin-top:12px; }
.primary:hover{ background:var(--amber-d); }
.primary:disabled{ background:#D7D0C1; color:#8A8499; cursor:not-allowed; }
.primary.danger{ background:#D7263D; color:#fff; }
.primary.dark{ background:var(--ink); color:var(--paper); }
.minbar{ margin-top:12px; }
.minbar p{ margin:0 0 8px; font-size:13.5px; font-weight:600; color:#B4471B; }
.minbar p.ok{ color:var(--ok-ink); }
.bar{ height:10px; border-radius:999px; background:var(--paper2); overflow:hidden; }
.bar i{ display:block; height:100%; width:0; background:linear-gradient(90deg,var(--amber),#FFB25B); border-radius:999px; transition:width .35s ease; }
html[dir="rtl"] .bar i{ margin-inline-start:auto; background:linear-gradient(270deg,var(--amber),#FFB25B); }
.bar i.full{ background:linear-gradient(90deg,#22B07D,var(--ok)); }
.cart-empty{ text-align:center; padding:28px 10px; color:var(--muted-ink); font-size:14px; }
.cart-empty strong{ display:block; color:var(--ink); font-size:16px; margin-bottom:4px; }

.cartbar{ position:fixed; inset-inline:0; bottom:0; padding:12px var(--gutter) calc(12px + env(safe-area-inset-bottom,0px)); background:linear-gradient(180deg,transparent,rgba(20,17,39,.96) 35%); z-index:40; display:none; }
@media (max-width:980px){ .cartbar{ display:block; } }
.cartbar .mini{ height:5px; border-radius:999px; background:rgba(255,255,255,.15); overflow:hidden; margin-bottom:8px; }
.cartbar .mini i{ display:block; height:100%; background:var(--amber); width:0; transition:width .35s; }
.cartbar .mini i.full{ background:var(--ok); }
.cartbar button{ width:100%; height:56px; border:0; border-radius:999px; background:var(--amber); color:var(--ink); font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:space-between; padding-inline:22px; }

/* ---------- Modals ---------- */
.overlay{ position:fixed; inset:0; background:rgba(10,8,22,.72); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); z-index:60; display:flex; align-items:center; justify-content:center; padding:20px; }
.overlay.sheet{ align-items:flex-end; padding:0; }
.modal,.admin-form,.cart,.driver-card{ color-scheme:light; }
.modal{ background:var(--paper); color:var(--ink); border-radius:26px; width:100%; max-width:540px; max-height:calc(100dvh - 40px); overflow-y:auto; padding:28px 24px; position:relative; overscroll-behavior:contain; }
.modal.wide{ max-width:760px; }
.overlay.sheet .modal{ border-radius:26px 26px 0 0; max-height:92dvh; padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
.modal h2{ margin:0 0 8px; font-size:24px; font-weight:900; letter-spacing:-.02em; line-height:1.15; padding-inline-end:36px; }
.modal h3{ font-size:16px; margin:18px 0 8px; }
.modal p{ margin:0 0 14px; color:var(--muted-ink); }
.x{ position:absolute; top:14px; inset-inline-end:14px; width:38px; height:38px; border-radius:50%; border:0; background:var(--paper2); color:var(--ink); font-size:20px; font-weight:700; z-index:2; }
.center{ text-align:center; }
.center h2{ padding-inline:0; }
.icon-circle{ width:68px; height:68px; border-radius:50%; background:var(--amber); display:grid; place-items:center; margin:0 auto 14px; font-size:30px; }
.icon-circle.err{ background:var(--err); }
.zipinput{ width:100%; height:62px; border-radius:var(--r-m); border:2px solid var(--amber); text-align:center; font-size:28px; font-weight:800; letter-spacing:.3em; color:var(--ink); background:#fff; direction:ltr; }
.field{ display:flex; flex-direction:column; gap:5px; margin-bottom:12px; min-width:0; }
.field > label,.label{ font-size:13px; font-weight:700; }
.field input,.field select,.field textarea{ height:48px; border-radius:var(--r-s); border:1.5px solid #D6CFBF; background:#fff; color:var(--ink); padding-inline:14px; width:100%; }
.field textarea{ height:84px; padding-block:10px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{ border-color:var(--amber); outline:none; }
.field input[readonly]{ background:var(--paper2); color:var(--muted-ink); }
.two{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.two.street{ grid-template-columns:minmax(0,2.2fr) minmax(0,1fr); }
.grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.grid4{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
@media (max-width:600px){ .grid3,.grid4{ grid-template-columns:1fr 1fr; } }
.msg-err{ color:var(--err-ink); font-weight:700; font-size:14px; margin:8px 0 0; min-height:1em; }
.ok-msg{ color:var(--ok-ink); font-weight:700; font-size:13.5px; margin:4px 0 0; }
.bad-msg{ color:var(--err-ink); font-weight:700; font-size:13.5px; margin:4px 0 0; }
.choice{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:4px 0 14px; }
.choice label{ border:2px solid #D6CFBF; border-radius:var(--r-m); padding:12px; cursor:pointer; display:flex; flex-direction:column; gap:2px; background:#fff; position:relative; }
.choice label b{ font-size:15px; }
.choice label span{ font-size:12.5px; color:var(--muted-ink); }
.choice input{ position:absolute; opacity:0; pointer-events:none; }
.choice label:has(input:checked){ border-color:var(--amber); background:#FFF4E8; }
.choice label:has(input:focus-visible){ outline:3px solid var(--lake); outline-offset:2px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 6px; }
.chips label{ position:relative; }
.chips input{ position:absolute; opacity:0; pointer-events:none; }
.chips span{ display:inline-block; border:2px solid #D6CFBF; background:#fff; border-radius:999px; padding:8px 16px; font-weight:800; font-size:14px; cursor:pointer; }
.chips input:checked + span{ border-color:var(--amber); background:#FFF4E8; }
.chips input:focus-visible + span{ outline:3px solid var(--lake); outline-offset:2px; }
.check{ display:flex; gap:10px; align-items:flex-start; font-weight:600; font-size:14px; margin:8px 0 10px; line-height:1.4; }
.check input{ width:22px; height:22px; accent-color:var(--amber); flex:none; margin:0; }
.check a,.linkbtn{ font-weight:800; text-decoration:underline; text-underline-offset:3px; background:none; border:0; padding:0; color:var(--ink); font-size:inherit; }
.inline{ display:flex; gap:8px; }
.inline input{ flex:1; min-width:0; }
.inline button{ flex:none; height:48px; border-radius:var(--r-s); border:0; background:var(--ink); color:var(--paper); font-weight:700; padding-inline:16px; }
.credit-box{ background:#E6F6EE; border-radius:var(--r-m); padding:12px 14px; font-size:14px; margin:4px 0 12px; color:var(--ink); }
.info-box{ background:#fff; border-radius:var(--r-m); padding:12px 14px; font-size:14px; margin:10px 0; color:var(--ink); }
.info-box dl,.review dl{ display:grid; grid-template-columns:auto 1fr; gap:5px 14px; margin:8px 0 0; }
.info-box dt,.review dt{ color:var(--muted-ink); }
.info-box dd,.review dd{ margin:0; font-weight:700; }
.review dl{ margin:0 0 14px; font-size:14.5px; }
.review .items{ background:#fff; border-radius:var(--r-m); padding:10px 14px; margin-bottom:12px; font-size:14px; }
.review .items div{ display:flex; justify-content:space-between; gap:10px; padding:3px 0; }
.btn2{ display:grid; grid-template-columns:1fr 1.4fr; gap:10px; margin-top:12px; }
.btn2 .primary{ margin-top:0; }
.secondary{ min-height:54px; border-radius:999px; border:2px solid var(--ink); background:transparent; color:var(--ink); font-weight:800; font-size:16px; padding:0 16px; }
.combo{ position:relative; }
.combo-list{ position:absolute; inset-inline:0; top:100%; margin:4px 0 0; padding:4px; list-style:none; background:#fff; border:1.5px solid #D6CFBF; border-radius:var(--r-s); max-height:230px; overflow-y:auto; z-index:5; box-shadow:0 12px 30px rgba(23,19,43,.18); }
.combo-list li{ padding:10px 12px; border-radius:8px; cursor:pointer; font-size:15px; color:var(--ink); }
.combo-list li:hover,.combo-list li.hl{ background:#FFF4E8; }
.combo-list li.other{ color:var(--muted-ink); border-top:1px solid var(--paper2); }
.combo-list li.hint{ cursor:default; color:var(--muted-ink); font-size:13px; }
.pd-img{ position:relative; background:var(--paper2); border-radius:var(--r-l); aspect-ratio:4/3; max-height:46vh; width:100%; overflow:hidden; margin-bottom:16px; }
.pd-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:10px; box-sizing:border-box; display:block; }
.age{ display:flex; gap:12px; align-items:center; border:1.5px solid var(--ink); border-radius:var(--r-m); padding:10px 14px; font-size:14px; font-weight:600; margin:10px 0 14px; }
.age b{ flex:none; width:36px; height:36px; border-radius:50%; border:2px solid var(--amber); color:var(--amber-d); display:grid; place-items:center; font-size:13px; }
.pd-price{ font-size:32px; font-weight:900; letter-spacing:-.02em; }
.pd-sub{ font-size:14px; color:var(--muted-ink); margin-bottom:6px; }
.pd-actions{ display:flex; gap:12px; margin-top:18px; border-top:1px solid #D6CFBF; padding-top:18px; }
.pd-actions .primary{ margin-top:0; flex:1; }
.stepper{ display:flex; align-items:center; border:2px solid var(--ink); border-radius:999px; height:54px; flex:none; direction:ltr; }
.stepper button{ width:46px; height:100%; background:none; border:0; font-size:22px; font-weight:800; color:var(--ink); }
.stepper span{ min-width:28px; text-align:center; font-weight:800; font-size:18px; }
.legal{ white-space:pre-wrap; font-size:14px; line-height:1.6; color:var(--ink); background:#fff; border-radius:var(--r-m); padding:14px 16px; direction:ltr; text-align:left; }
.legal-note{ font-size:13px; background:#FFF4E8; border-radius:var(--r-s); padding:8px 12px; margin-bottom:10px; color:var(--ink); }
.codebox{ font-size:30px; font-weight:900; letter-spacing:.14em; background:#fff; border:2px dashed var(--amber); border-radius:var(--r-m); padding:14px; text-align:center; color:var(--ink); user-select:all; margin:8px 0 14px; direction:ltr; }
.acc-orders{ display:flex; flex-direction:column; gap:8px; }
.acc-order{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; background:#fff; border-radius:var(--r-m); padding:12px 14px; color:var(--ink); }
.acc-order .info{ flex:1 1 180px; min-width:0; }
.acc-order .info b{ display:block; font-size:15px; }
.acc-order .info span{ font-size:12.5px; color:var(--muted-ink); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acc-order .acts{ display:flex; gap:6px; flex:none; }
.hist{ font-size:13.5px; margin-top:8px; }
.hist div{ display:flex; justify-content:space-between; gap:10px; padding:5px 0; border-bottom:1px solid var(--paper2); }
.toast{ position:fixed; left:50%; top:calc(14px + env(safe-area-inset-top,0px)); transform:translateX(-50%); background:var(--paper); color:var(--ink); padding:12px 20px; border-radius:999px; font-weight:700; font-size:14px; z-index:90; box-shadow:0 10px 30px rgba(0,0,0,.4); max-width:calc(100vw - 32px); text-align:center; }

/* Status pills */
.status{ display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.st-neu{ background:#4A3A12; color:#FFC965; }
.st-unterwegs{ background:#123A4A; color:var(--lake); }
.st-geliefert{ background:#0F3B2A; color:var(--ok); }
.st-storniert{ background:#3B1520; color:var(--err); }
.status.light.st-neu{ background:#FFF0C9; color:#7A5600; }
.status.light.st-unterwegs{ background:#D9F1FB; color:#0B5C7E; }
.status.light.st-geliefert{ background:#D8F5E7; color:#0B6B45; }
.status.light.st-storniert{ background:#FBDDE2; color:#9B1B30; }

/* ---------- Thank you / tracking ---------- */
.thanks{ max-width:760px; margin-inline:auto; padding:30px var(--gutter) 80px; }
.thanks .head{ text-align:center; margin-bottom:20px; }
.thanks h1{ font-size:clamp(25px,5vw,38px); font-weight:900; letter-spacing:-.02em; margin:10px 0 6px; line-height:1.12; }
.pill-no{ display:inline-block; background:var(--amber); color:var(--ink); font-weight:900; border-radius:999px; padding:6px 16px; font-size:15px; }
.panel{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r-l); padding:20px; margin-bottom:16px; }
.map{ border-radius:var(--r-m); overflow:hidden; background:#1A1636; direction:ltr; }
.map > svg{ display:block; width:100%; height:auto; }
.eta{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:16px 0 10px; flex-wrap:wrap; }
.eta .big{ font-size:34px; font-weight:900; letter-spacing:-.02em; line-height:1; }
.eta .small{ color:var(--muted); font-size:14px; }
.track{ height:12px; border-radius:999px; background:var(--panel2); overflow:hidden; direction:ltr; }
html[dir="rtl"] .track{ transform:scaleX(-1); }
.track i{ display:block; height:100%; width:0; background:linear-gradient(90deg,var(--amber),#FFB25B); transition:width 1s linear; }
.track i.done{ background:var(--ok); }
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0 0; list-style:none; padding:0; }
.steps li{ font-size:13px; font-weight:700; color:var(--muted); display:flex; flex-direction:column; gap:6px; }
.steps li::before{ content:attr(data-n); width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--panel2); color:var(--muted); font-weight:800; }
.steps li.on{ color:var(--paper); }
.steps li.on::before{ background:var(--amber); color:var(--ink); }
.steps li.done::before{ background:var(--ok); color:var(--ink); content:"✓"; }
.late{ background:#3A1F35; border:1px solid #6B2F4F; border-radius:var(--r-m); padding:16px; margin-top:16px; }
.late h3{ margin:0 0 4px; font-size:17px; }
.late p{ margin:0 0 12px; color:#E9C6D2; font-size:14px; }
.btnrow{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:0 18px; border-radius:999px; font-weight:800; font-size:15px; text-decoration:none; border:0; white-space:nowrap; }
.btn.amber{ background:var(--amber); color:var(--ink); }
.btn.green{ background:#25D366; color:#0B2B17; }
.btn.ghost{ background:transparent; color:var(--paper); border:1.5px solid var(--line); }
.btn.ghost-ink{ background:transparent; color:var(--ink); border:1.5px solid var(--ink); }
.btn.dark{ background:var(--ink); color:var(--paper); }
.btn.red{ background:transparent; color:var(--err); border:1.5px solid var(--err); }
.btn.red-ink{ background:transparent; color:var(--err-ink); border:1.5px solid var(--err-ink); }
.btn.small{ min-height:36px; padding:0 14px; font-size:13px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.sumlist .row{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:14.5px; border-bottom:1px solid var(--line); }
.sumlist .row:last-child{ border:0; }
.sumlist .row.total{ font-weight:900; font-size:17px; }
.savebox{ background:var(--panel2); border-radius:var(--r-m); padding:14px 16px; margin-top:16px; font-size:14px; }
.savebox p{ margin:0 0 10px; color:var(--muted); }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--line); padding:26px 0 calc(40px + env(safe-area-inset-bottom,0px)); color:var(--muted); font-size:14px; }
footer .wrap{ display:flex; flex-wrap:wrap; gap:10px 20px; justify-content:center; }
footer button{ background:none; border:0; color:var(--muted); font-weight:600; font-size:14px; padding:4px 0; }
footer button:hover{ color:var(--paper); }
.has-cartbar footer{ padding-bottom:120px; }

/* ---------- Admin & Fahrer ---------- */
.admin{ padding-block:22px 80px; }
.admin h1{ font-size:28px; font-weight:900; letter-spacing:-.02em; margin:0; }
.admin-top{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.tabs{ display:flex; gap:6px; margin-bottom:16px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.tabs::-webkit-scrollbar{ display:none; }
.tabs button{ flex:none; border:1px solid var(--line); background:var(--panel); color:var(--muted); font-weight:700; padding:10px 16px; border-radius:999px; }
.tabs button.active{ background:var(--paper); color:var(--ink); border-color:var(--paper); }
.tabs button .cnt{ display:inline-grid; place-items:center; min-width:20px; height:20px; border-radius:999px; background:var(--amber); color:var(--ink); font-size:12px; margin-inline-start:6px; padding:0 6px; }
.filters{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
.filters .fchip{ border:1px solid var(--line); background:transparent; color:var(--muted); font-weight:700; font-size:13.5px; padding:8px 12px; border-radius:999px; }
.filters .fchip.active{ background:var(--amber); color:var(--ink); border-color:var(--amber); }
.filters select,.filters input{ height:40px; border-radius:999px; border:1px solid var(--line); background:var(--panel); color:var(--paper); padding-inline:14px; font-size:14px; }
.filters input{ flex:1; min-width:180px; }
.kpis{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
@media (max-width:640px){ .kpis{ grid-template-columns:1fr 1fr; } }
.kpi{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r-m); padding:12px 14px; }
.kpi .k{ font-size:12.5px; color:var(--muted); font-weight:600; }
.kpi .v{ font-size:22px; font-weight:900; }
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-m); }
table{ width:100%; border-collapse:collapse; font-size:14px; min-width:680px; }
th,td{ text-align:start; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
th{ font-size:12.5px; color:var(--muted); font-weight:700; background:var(--panel); }
td img{ width:44px; height:44px; object-fit:contain; background:var(--paper2); border-radius:8px; }
td input.stock{ width:76px; height:36px; border-radius:8px; border:1px solid var(--line); background:var(--night); color:var(--paper); padding-inline:8px; }
.order-card{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r-m); padding:16px; margin-bottom:12px; }
.order-card.is-new{ border-color:var(--amber); box-shadow:0 0 0 1px var(--amber); }
.order-card .top{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:8px; }
.order-card .top b{ font-size:18px; }
.order-card .lines{ font-size:14px; color:var(--muted); margin:6px 0 12px; }
.order-card .tag18{ background:var(--err-ink); color:#fff; font-size:11.5px; font-weight:800; border-radius:6px; padding:2px 8px; }
.order-card .tagpre{ background:var(--lake); color:var(--ink); font-size:11.5px; font-weight:800; border-radius:6px; padding:2px 8px; }
.admin-form{ background:var(--paper); color:var(--ink); border-radius:var(--r-l); padding:20px; margin-bottom:18px; }
.admin-form h2{ margin:0 0 14px; font-size:20px; }
.admin-form details{ background:#fff; border-radius:var(--r-m); padding:10px 14px; margin-bottom:12px; }
.admin-form summary{ font-weight:800; cursor:pointer; font-size:14px; }
.imgpick{ display:flex; gap:12px; align-items:center; }
.imgpick img{ width:72px; height:72px; object-fit:contain; background:var(--paper2); border-radius:12px; }
.catrow{ background:#fff; border-radius:var(--r-m); padding:12px 14px; margin-bottom:10px; }
.catrow .head{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.catrow .head input{ background:#fff; color:var(--ink); flex:1; min-width:150px; height:42px; border-radius:var(--r-s); border:1.5px solid #D6CFBF; padding-inline:12px; font-weight:700; }
.catrow .head .id{ font-size:12px; color:var(--muted-ink); }
.iconbtn{ width:38px; height:38px; border-radius:10px; border:1.5px solid #D6CFBF; background:#fff; color:var(--ink); font-weight:800; }
.pairpick{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.pairpick label{ font-size:12.5px; font-weight:700; border:1.5px solid #D6CFBF; border-radius:999px; padding:4px 10px; display:inline-flex; gap:6px; align-items:center; cursor:pointer; }
.pairpick label:has(input:checked){ border-color:var(--amber); background:#FFF4E8; }
.note{ font-size:13px; color:var(--muted); margin:8px 0 0; }
.login-card{ max-width:420px; margin:40px auto; }
.driver-card{ background:var(--paper); color:var(--ink); border-radius:var(--r-l); padding:18px; margin-bottom:14px; }
.driver-card .head{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.driver-card .head b{ font-size:22px; }
.driver-card .addr{ font-size:20px; font-weight:800; margin:10px 0 2px; line-height:1.25; }
.driver-card .who{ font-size:15px; color:var(--muted-ink); }
.driver-card .idwarn{ background:var(--err-ink); color:#fff; font-weight:900; border-radius:var(--r-s); padding:10px 12px; margin:10px 0; font-size:15px; }
.driver-card .collect{ background:#FFF4E8; border-radius:var(--r-s); padding:10px 12px; margin:10px 0; font-weight:800; font-size:16px; }
.driver-card ul{ margin:6px 0 10px; padding-inline-start:18px; font-size:15px; }
.driver-card .btnrow .btn{ flex:1; }

/* Admin: Produktsuche */
.psearch{ position:sticky; top:0; z-index:5; display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:18px 0 10px; padding:10px 0; background:var(--night); }
.psearch input{ flex:1 1 260px; min-width:0; height:46px; border-radius:999px; border:1.5px solid var(--amber); background:var(--panel); color:var(--paper); padding-inline:18px; font-size:15px; }
.psearch select{ flex:0 1 auto; max-width:100%; height:46px; border-radius:999px; border:1px solid var(--line); background:var(--panel); color:var(--paper); padding-inline:14px; font-size:14px; }
.psearch .pcount{ color:var(--muted); font-size:13.5px; font-weight:700; white-space:nowrap; }
tr.p-hidden td{ opacity:.55; }
tr.p-hidden td:last-child{ opacity:1; }

/* Fahrer: aus Telegram geöffnete Bestellung hervorheben */
.driver-card.focus{ outline:3px solid var(--amber); outline-offset:2px; }

/* Telegram-Button auf der Bestellseite */
.btn.tg-btn{ background:#2AABEE; color:#fff; border-color:#2AABEE; display:inline-flex; align-items:center; gap:8px; }
.btn.tg-btn:hover{ background:#1E96D4; }

/* Echte Karte auf der Bestellseite */
.map.real{ height:340px; padding:0; overflow:hidden; border-radius:16px; background:#1A1636; }
.map.real .lmap{ width:100%; height:100%; }
@media (max-width:600px){ .map.real{ height:280px; } }
.map.real .leaflet-container .leaflet-control-attribution{ background:rgba(20,17,39,.75); color:#A79FC9; font-size:10px; }
.map.real .leaflet-container .leaflet-control-attribution a{ color:#C9C3E6; }
.mk{ display:flex; align-items:center; justify-content:center; border-radius:50%; font-size:20px; line-height:1; }
.mk-store{ background:#FF8A1F; box-shadow:0 0 0 4px rgba(255,138,31,.25); }
.mk-scooter{ background:#F5F1E8; box-shadow:0 4px 12px rgba(0,0,0,.4); transition:transform .9s linear; }
.mk-dest{ background:rgba(91,192,235,.25); }
.mk-dest i{ width:18px; height:18px; border-radius:50%; background:#5BC0EB; box-shadow:inset 0 0 0 5px #5BC0EB, 0 0 0 0 #141127; display:block; position:relative; }
.mk-dest i::after{ content:""; position:absolute; inset:6px; border-radius:50%; background:#141127; }
.leaflet-tooltip.mk-tip{ background:transparent; border:0; box-shadow:none; color:#F5F1E8; font-family:Montserrat,Arial,sans-serif; font-weight:700; font-size:13px; text-shadow:0 1px 3px #000, 0 0 6px #000; padding:0; }
.leaflet-tooltip.mk-tip::before{ display:none; }

/* Cookie-Banner */
.consent{ position:fixed; inset-inline:12px; bottom:calc(84px + env(safe-area-inset-bottom,0px)); z-index:60; display:flex; justify-content:center; pointer-events:none; }
.consent.hidden{ display:none; }
.consent-in{ pointer-events:auto; max-width:720px; width:100%; background:var(--panel2); border:1px solid var(--line); border-radius:18px; padding:14px 16px; box-shadow:0 14px 40px rgba(0,0,0,.45); color:var(--paper); display:flex; gap:12px 16px; align-items:center; flex-wrap:wrap; }
.consent-in p{ margin:0; flex:1 1 320px; font-size:14px; line-height:1.45; color:var(--muted); }
.consent-in p b{ color:var(--paper); }
.consent-in .linkbtn{ color:var(--lake); }
.consent-btns{ display:flex; gap:8px; flex:0 0 auto; }
.consent-btns .btn{ min-width:120px; justify-content:center; }
@media (min-width:981px){ .consent{ bottom:20px; } }

/* Katalog: „Mehr anzeigen“ */
.more-wrap{ display:flex; flex-direction:column; align-items:center; gap:8px; margin:22px 0 8px; }
.more-btn{ min-width:220px; justify-content:center; }
.more-count{ color:var(--muted); font-size:13.5px; }
.card .thumb img{ width:100%; height:100%; object-fit:contain; }

/* Admin: Produktkarte */
.modal.wide{ max-width:860px; }
.pedit h2{ margin-top:0; }
.pe-grid{ display:grid; grid-template-columns:220px 1fr; gap:18px; align-items:start; margin-bottom:6px; }
.pe-imgbox{ aspect-ratio:1; background:#F2EEE6; border:1px solid #E2DCCC; border-radius:14px; display:grid; place-items:center; overflow:hidden; }
.pe-imgbox img{ width:100%; height:100%; object-fit:contain; }
.pe-img{ display:flex; flex-direction:column; gap:8px; }
.pe-upload{ justify-content:center; cursor:pointer; }
.pe-langs{ border:1px solid #E2DCCC; border-radius:14px; padding:12px; margin:4px 0 14px; display:grid; gap:10px; }
.pe-lang{ display:grid; grid-template-columns:90px 1fr; gap:6px 10px; align-items:start; }
.pe-lang input, .pe-lang textarea{ width:100%; border:1.5px solid #D6CFBF; border-radius:10px; padding:8px 10px; font:inherit; font-size:14px; }
.pe-lang textarea{ grid-column:2; min-height:54px; resize:vertical; }
.pe-lname{ font-weight:700; font-size:13px; padding-top:9px; }
.pe-actions{ border-top:1px solid #E2DCCC; padding-top:14px; flex-wrap:wrap; }
.linkbtn.pname{ color:inherit; font-weight:600; text-align:start; }
.confirm-check{ margin:10px 0 4px; }
button[data-yes]:disabled{ opacity:.45; cursor:not-allowed; }
@media (max-width:640px){ .pe-grid{ grid-template-columns:1fr; } .pe-img{ max-width:240px; } .pe-lang{ grid-template-columns:1fr; } .pe-lang textarea{ grid-column:1; } }

/* Produktfotos mit hellem/weißem Hintergrund nahtlos in die Kachel einblenden
   (multiply: Weiß wird zur Kachelfarbe; transparente PNG/WebP bleiben unverändert) */
/* Bildfläche = Farbe der Karte → transparente Fotos stehen direkt auf der Karte, keine sichtbare Kachel */
.thumb, .pd-img, .pe-imgbox{ background:var(--paper); isolation:isolate; }
.pe-imgbox{ border-style:dashed; }
.thumb img, .pd-img img, .pe-imgbox img{ mix-blend-mode:multiply; }
/* Badges und „+“ immer über dem Foto */
.card .badges, .card .add-btn{ z-index:3; }
