:root{--cream:#e9ead4;--wine:#8a3536;--wine-dark:#6f282a;--ink:#302829;--muted:#746d67;--line:#deded0;--paper:#fffef8;--canvas:#f3f3e7;--success:#176e4a;--danger:#a63e37;--shadow:0 18px 50px #4d262120;--safe-bottom:max(16px,env(safe-area-inset-bottom))}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--canvas);color:var(--ink);font:14px Alexandria,Tahoma,sans-serif}
[hidden]{display:none!important}
button,input{font:inherit}
button{cursor:pointer}
.phone-app{width:min(100%,480px);min-height:100vh;margin:auto;background:var(--paper);padding-bottom:110px;box-shadow:0 0 50px #31201b12}
.mobile-header{height:74px;position:sticky;top:0;z-index:2;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;background:#fffef8f2;backdrop-filter:blur(12px);border-bottom:1px solid #eceadd}
.brand{width:102px;height:auto}
.cart-pill,.primary,.secondary,.add{border:0;font-weight:700}
.cart-pill{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:99px;background:var(--wine);color:#fff}
.cart-pill b{min-width:22px;height:22px;display:grid;place-items:center;background:#fff;color:var(--wine);border-radius:50%;font-size:11px}
.menu-head{padding:26px 16px 14px;display:flex;align-items:end;justify-content:space-between;gap:10px}
.eyebrow{display:block;color:var(--wine);font-size:10px;font-weight:800;letter-spacing:.04em;margin-bottom:7px}
h1,h2,h3,p{margin-top:0}
.menu-head h1{margin:0;font-size:25px;letter-spacing:-.06em}
.cash-note{border:1px solid var(--line);border-radius:9px;padding:7px 9px;color:var(--muted);font-size:10px;white-space:nowrap}
.category-tabs{position:sticky;top:74px;z-index:2;display:flex;gap:8px;overflow:auto;padding:11px 16px 14px;background:#fffef8f2;backdrop-filter:blur(12px);scrollbar-width:none}
.category-tabs::-webkit-scrollbar{display:none}
.category-tabs button{border:1px solid var(--line);background:#fff;color:var(--muted);white-space:nowrap;padding:9px 13px;border-radius:99px;font:600 12px Alexandria}
.category-tabs button.active{background:var(--wine);border-color:var(--wine);color:white}
.menu-page{padding:6px 16px 30px;min-height:560px;animation:pageIn .22s ease}
@keyframes pageIn{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
.page-heading{display:flex;justify-content:space-between;align-items:center;margin:8px 0 15px}
.page-heading h2{font-size:18px;margin:0}
.page-heading span{font-size:10px;color:var(--muted)}
.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.product{display:flex;flex-direction:column;min-width:0;border:1px solid #e8e5d9;border-radius:17px;background:#fff;padding:9px;box-shadow:0 5px 18px #542f2610}
.product.featured{grid-column:1/-1;display:grid;grid-template-columns:1.1fr .9fr;gap:13px;padding:10px}
.product-media{height:122px;border-radius:12px;background:#f4f4eb;overflow:hidden;display:grid;place-items:center}
.featured .product-media{height:180px}
.product-media>img{width:100%;height:100%;object-fit:cover}
.product-media.shawarma img{object-position:70% center}
.product-media.basbousa img{object-position:60% center}
.product-media.water img{object-fit:contain;padding:12px}
.drink-collage{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:3px;padding:4px}
.drink-collage img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:6px}
.product-copy{display:flex;flex:1;flex-direction:column;padding:11px 2px 2px}
.product h3{font-size:13px;margin:0 0 6px}
.product p{font-size:10px;color:var(--muted);line-height:1.7;margin:0}
.featured h3{font-size:17px}
.featured p{font-size:11px}
.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:auto;padding-top:12px}
.price{font-weight:800;color:var(--wine);white-space:nowrap}
.add{border:1px solid var(--wine);background:#fff;color:var(--wine);border-radius:9px;padding:7px 9px;font-size:11px}
.add:active{background:var(--wine);color:white}
.customer-footer{margin:0 16px;padding:14px;border-radius:12px;background:#f0f0e3;color:var(--muted);font-size:9px;line-height:1.8}
.floating-cart{position:fixed;z-index:3;bottom:var(--safe-bottom);left:50%;transform:translateX(-50%);width:min(calc(100% - 28px),452px);border:0;border-radius:14px;padding:15px 17px;background:var(--wine);color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 12px 35px #6f282a5c;font-weight:700}
.floating-cart b{display:inline-grid;place-items:center;background:white;color:var(--wine);border-radius:50%;width:22px;height:22px;margin-left:4px;font-size:11px}
.floating-cart strong{font-size:14px}
.backdrop,.staff-backdrop{position:fixed;inset:0;z-index:8;background:#35161768;opacity:0;pointer-events:none;transition:.22s}
.backdrop.show,.staff-backdrop.show{opacity:1;pointer-events:auto}
.bottom-sheet{position:fixed;z-index:9;right:50%;bottom:0;transform:translate(50%,105%);width:min(100%,480px);max-height:88vh;padding:8px 18px var(--safe-bottom);background:#fff;border-radius:24px 24px 0 0;box-shadow:var(--shadow);transition:transform .25s ease;display:flex;flex-direction:column}
.bottom-sheet.open{transform:translate(50%,0)}
.sheet-handle{width:42px;height:4px;border-radius:99px;background:#d6d4cb;align-self:center;margin:2px 0 15px}
.sheet-head,.drawer-head{display:flex;align-items:start;justify-content:space-between}
.sheet-head h2,.drawer-head h2{font-size:23px;margin:0}
.icon-button,.image-close{width:34px;height:34px;border:0;border-radius:50%;background:#f0efe7;color:var(--wine);font-size:23px;line-height:1}
.cart-items{overflow:auto;min-height:130px;max-height:50vh;margin:13px -2px;padding:0 2px}
.empty{text-align:center;color:var(--muted);padding:50px 10px;line-height:1.8}
.cart-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:13px 0;border-bottom:1px solid #efede5}
.cart-row h3{font-size:12px;margin:0 0 4px}
.cart-row small{display:block;color:var(--muted);font-size:9px;line-height:1.7}
.cart-price{text-align:left}
.cart-price>b{font-size:12px}
.qty{display:flex;align-items:center;gap:8px;margin-top:8px}
.qty button{width:25px;height:25px;border:0;border-radius:7px;background:#f1f0e8;color:var(--wine);font-size:16px}
.cart-footer{border-top:1px solid #eceae1;padding-top:15px}
.total{display:flex;justify-content:space-between;margin-bottom:13px}
.total strong{font-size:18px;color:var(--wine)}
.primary{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:14px 18px;border-radius:12px;background:var(--wine);color:#fff}
.primary:active{background:var(--wine-dark)}
.wide{width:100%}
dialog{border:0;padding:0;color:var(--ink);box-shadow:var(--shadow)}
dialog::backdrop{background:#35161768}
.sheet-dialog{width:min(100%,480px);max-width:none;margin:auto auto 0;border-radius:24px 24px 0 0;max-height:94vh}
.sheet-dialog form{position:relative}
.customizer-image{height:220px;background:#f5f4eb}
.customizer-image img{width:100%;height:100%;object-fit:cover;object-position:72% center}
.image-close{position:sticky;top:12px;z-index:20;display:block;margin:13px auto -47px 13px;background:#fffffff2;box-shadow:0 3px 14px #35161726}
.customizer-body{padding:22px 18px var(--safe-bottom)}
.customizer-title{display:flex;justify-content:space-between;align-items:start;gap:10px}
.customizer-title h2{margin:0;font-size:21px}
.customizer-title strong{color:var(--wine);white-space:nowrap}
.included,.muted{font-size:11px;color:var(--muted);line-height:1.8}
.customizer-quantity{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:13px 14px;border:1px solid #dedace;border-radius:13px;background:#faf9f2}
.customizer-quantity b{display:block;font-size:13px}.customizer-quantity small{display:block;margin-top:3px;color:var(--muted);font-size:9px}
.quantity-picker{display:grid;grid-template-columns:38px 34px 38px;align-items:center;text-align:center;direction:ltr}
.quantity-picker button{width:38px;height:38px;border:1px solid #dedace;border-radius:10px;background:#fff;color:var(--wine);font-size:21px;font-weight:700}
.quantity-picker button:disabled{opacity:.35}.quantity-picker output{font-size:16px;font-weight:800;color:var(--text)}
.quantity-dialog form{padding:21px 18px var(--safe-bottom)}
.quantity-head{padding:0 0 15px}.quantity-head h2{margin:2px 0 0;font-size:20px}
.product-quantity-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 18px;padding:16px;border:1px solid #dedace;border-radius:14px;background:#faf9f2}
.product-quantity-card>span{color:var(--wine);font-size:15px;font-weight:800}
.add-toast{position:fixed;z-index:60;right:50%;bottom:calc(86px + var(--safe-bottom));transform:translateX(50%);width:max-content;max-width:calc(100% - 32px);padding:11px 16px;border-radius:99px;background:#2f2825;color:#fff;font-size:11px;font-weight:700;box-shadow:0 10px 28px #2f282538}
fieldset{border:0;padding:0;margin:20px 0}
legend{font-weight:800;font-size:12px;margin-bottom:10px}
.choice{display:grid;grid-template-columns:24px 1fr auto;align-items:center;border:1px solid #e4e1d6;border-radius:11px;padding:12px;margin:8px 0;font-weight:600;font-size:12px}
.choice input{width:17px;height:17px;accent-color:var(--wine);margin:0}
.choice i{font-style:normal;font-size:9px;color:var(--muted)}
.checkout-form{padding:21px 18px var(--safe-bottom)}
.checkout-form>label{display:block;font-size:11px;font-weight:700;margin:15px 0}
.checkout-form input,.staff-card input{width:100%;margin-top:7px;border:1px solid #d8d5ca;border-radius:10px;padding:13px;outline:none}
.checkout-form input:focus,.staff-card input:focus{border-color:var(--wine);box-shadow:0 0 0 3px #8a353622}
.payment{display:flex;justify-content:space-between;background:var(--cream);padding:13px;border-radius:10px;margin:18px 0;font-size:11px}
.payment b{color:var(--wine)}
.success-dialog{width:min(calc(100% - 28px),430px);border-radius:22px}
.success{padding:28px 21px;text-align:center}
.success-icon{width:60px;height:60px;display:grid;place-items:center;margin:0 auto 15px;border-radius:50%;background:#ddf2e7;color:var(--success);font-size:31px}
.success h2{font-size:23px;margin-bottom:15px}
.success-order{text-align:right;background:var(--canvas);border-radius:12px;padding:13px;font-size:11px;line-height:1.9}
.success>p{font-size:11px;color:var(--muted);line-height:1.8;margin:15px 0}

/* Restaurant tablet */
.staff-shell{min-height:100vh;background:#f6f5eb;padding-bottom:50px}
.staff-top{height:82px;margin:0 28px;border-bottom:1px solid #dddacd;display:flex;align-items:center;justify-content:space-between}
.staff-top img{width:92px;vertical-align:middle}
.preview-badge{margin-right:9px;padding:5px 8px;border-radius:7px;background:#f3e3dc;color:var(--wine);font-size:9px;font-weight:700}
.live-dot{color:var(--success);font-size:11px;font-weight:700}
.live-dot:before{content:"";display:inline-block;width:8px;height:8px;background:var(--success);border-radius:50%;margin-left:5px}
.staff-login{min-height:calc(100vh - 82px);display:grid;place-items:center;padding:18px}
.staff-card{width:min(410px,100%);padding:32px;background:#fff;border-radius:20px;box-shadow:var(--shadow)}
.staff-card h1{margin:0;font-size:28px}
.staff-card p,.staff-card small{display:block;color:var(--muted);font-size:11px;line-height:1.9;margin:14px 0}
.staff-card label{display:block;margin:13px 0;font-size:11px;font-weight:700}.form-error{min-height:18px;color:var(--danger)!important;margin:7px 0!important}.staff-card button:disabled{opacity:.55;cursor:wait}
.staff-card .primary{margin-top:10px}
.staff-board{display:grid;grid-template-columns:76px 1fr;gap:24px;padding:0 28px}
.staff-rail{position:sticky;top:104px;align-self:start;margin-top:38px;display:flex;flex-direction:column;gap:9px}
.staff-rail button{border:1px solid #ddd9ca;border-radius:13px;background:white;color:var(--wine);padding:12px 6px;display:grid;gap:4px;place-items:center}
.staff-rail span{font-size:22px;line-height:1}
.staff-rail b{font-size:9px}
.staff-main{min-width:0}
.staff-intro{margin:38px 0 20px;display:flex;justify-content:space-between;align-items:end}
.staff-intro h1{margin:0;font-size:29px}
.secondary{padding:10px 14px;border:1px solid var(--wine);border-radius:10px;background:white;color:var(--wine)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.stats>div{min-height:100px;padding:17px;border:1px solid #e4e1d4;border-radius:15px;background:#fff}
.stats span{color:var(--muted);font-size:11px}
.stats b{display:block;margin-top:5px;color:var(--wine);font-size:28px}
.orders-title{display:flex;justify-content:space-between;align-items:center;margin:30px 0 12px}
.orders-title h2{font-size:16px;margin:0}
.orders-title span{font-size:10px;color:var(--muted)}
.order-card{background:white;border:1px solid #e3e0d4;border-radius:15px;padding:17px;margin-bottom:11px}
.order-head{display:flex;justify-content:space-between;gap:10px}
.order-id{font-weight:800}
.order-time{font-size:10px;color:var(--muted)}
.status{font-size:9px;border-radius:99px;padding:6px 9px;font-weight:700}
.status.new{background:#f7dfd3;color:#9a462c}.status.seen{background:#e4ecf6;color:#416183}.status.done{background:#dff0e7;color:#176e4a}.status.missed{background:#f7dddd;color:#9a3434}
.order-lines{margin:13px 0;color:var(--muted);font-size:11px;line-height:1.9}
.order-lines small{display:block;color:var(--wine)}
.order-customer{display:flex;justify-content:space-between;gap:10px;padding:9px;border-radius:8px;background:#f6f5ee;font-size:11px}
.order-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.order-actions button,.mini{border:1px solid #d8d5c9;border-radius:8px;padding:8px 10px;background:white;color:var(--ink);font:10px Alexandria;cursor:pointer}
.order-actions .danger,.mini.danger{color:var(--danger);border-color:#e9c7c5}
.empty-staff{background:#fff;border-radius:14px;padding:45px;text-align:center;color:var(--muted);font-size:11px}
.staff-side-drawer{position:fixed;z-index:12;top:0;right:0;width:min(430px,100%);height:100vh;background:#fff;padding:27px;box-shadow:var(--shadow);transform:translateX(105%);transition:.24s;overflow:auto}
.staff-side-drawer.open{transform:none}
.staff-side-drawer .drawer-head{margin-bottom:22px}
.staff-backdrop{z-index:11}
.block-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;border:1px solid #e4e1d6;border-radius:12px;margin-bottom:9px}
.block-row b{font-size:12px}.block-row .muted{margin:4px 0 0}
.drawer-toolbar{display:flex;gap:8px;margin:-8px 0 18px}.account-form label{display:block;font-size:11px;font-weight:700;margin:13px 0}.account-form input{width:100%;margin-top:7px;border:1px solid #d8d5ca;border-radius:10px;padding:13px;outline:none}.account-form .muted{margin:8px 0 15px}

@media(max-width:700px){
  .staff-top{margin:0 15px}.staff-board{grid-template-columns:58px 1fr;gap:10px;padding:0 14px}.staff-rail{top:93px}.staff-intro{margin-top:25px}.staff-intro h1{font-size:22px}.secondary{font-size:9px;padding:8px}.stats{gap:6px}.stats>div{padding:11px;min-height:92px}.stats span{font-size:9px}.stats b{font-size:23px}.order-customer{display:block;line-height:1.9}
}
@media(max-width:370px){.products{grid-template-columns:1fr}.product.featured{display:flex}.product-media,.featured .product-media{height:160px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body{background:#fff!important}.staff-shell>*:not(.staff-side-drawer){display:none!important}.staff-side-drawer{position:static!important;transform:none!important;width:100%!important;height:auto!important;box-shadow:none!important;padding:0!important}.staff-side-drawer .icon-button,.drawer-toolbar,.order-actions{display:none!important}.order-card{break-inside:avoid}.staff-side-drawer h2{font-size:24px}.staff-side-drawer:before{content:"فهمي شاورما — سجل الطلبات";display:block;font-weight:800;font-size:28px;margin-bottom:20px}}
