@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
:root{--red:#b22218;--red-strong:#921910;--red-soft:#fff0ec;--dark:#181818;--text:#262522;--muted:#8a8986;--bg:#f7f7f6;--line:#ebe9e7;--white:#fff;--green:#16845a;--amber:#a36d12;--radius:14px;--shadow:0 8px 30px rgba(24,24,24,.045);font-family:'Cairo',Tahoma,Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg);font-size:13px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}svg{display:block}img{max-width:100%}p,h1,h2,h3{margin:0}button{border:0}h1,h2,h3{line-height:1.5}.muted{color:var(--muted)}.strong{font-weight:800}.tiny{font-size:11px}.small{font-size:12px}.flex{display:flex}.align-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:6px}.gap-2{gap:10px}.gap-3{gap:14px}.mt-1{margin-top:8px}.mt-2{margin-top:14px}.mt-3{margin-top:20px}.mb-2{margin-bottom:14px}.w-full{width:100%}.text-red{color:var(--red)}.text-green{color:var(--green)}.text-center{text-align:center}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;white-space:nowrap;padding:9px 14px;border-radius:10px;font-weight:800;background:var(--dark);color:#fff;line-height:1.4;transition:.15s;min-height:38px}.btn:hover{filter:brightness(.94)}.btn-red{background:var(--red);color:#fff}.btn-light{background:#fff;color:var(--dark);border-color:var(--line)}.btn-ghost{background:transparent;color:var(--text)}.btn-danger{background:#fff2f0;color:#bb2d25}.btn-green{background:#e3f6ee;color:#147852}.btn-small{padding:5px 9px;min-height:30px;font-size:11px;border-radius:8px}.btn-square{width:36px;min-width:36px;height:36px;padding:0}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:50px;background:#f0efee;color:#696763;font-size:11px;font-weight:800}.badge.new,.badge.pending{background:#fff3dc;color:#925f08}.badge.preparing{background:#eaf1ff;color:#3468b8}.badge.completed,.badge.confirmed,.badge.paid{background:#e3f5ec;color:#147750}.badge.cancelled{background:#fde8e7;color:#a33029}.badge.unpaid{background:#f7eee0;color:#926512}.badge.active{background:#e3f5ec;color:var(--green)}
.field{display:flex;flex-direction:column;gap:5px}.field label{font-weight:800;color:#4b4945;font-size:12px}.field input,.field select,.field textarea,.field-control{border:1px solid #e5e3e0;border-radius:10px;background:#fff;padding:10px 11px;outline:0;color:var(--text);width:100%;min-height:40px}.field textarea{min-height:75px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.search-wrap input:focus{border-color:#ca736b;box-shadow:0 0 0 3px rgba(178,34,24,.09)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid .full{grid-column:1/-1}.hint{font-size:11px;line-height:1.8;color:var(--muted)}.empty-state{padding:36px 15px;text-align:center;color:var(--muted)}.empty-state .empty-icon{font-size:38px;margin-bottom:8px}.loading-page{display:grid;min-height:60vh;place-items:center;color:var(--muted)}.logo-original{object-fit:contain;background:#fff}.toast-root{position:fixed;bottom:22px;left:22px;z-index:2200;display:grid;gap:7px;max-width:calc(100vw - 32px)}.toast{background:#242424;color:#fff;border-radius:10px;padding:11px 15px;box-shadow:0 10px 30px #0003;max-width:430px}.toast.error{background:#a72c25}.toast.ok{background:#126d48}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-left:5px}.status-dot.closed{background:#d18c25}
/* Public menu */
.menu-body{background:#f8f6f3}.menu-shell{max-width:1160px;margin:auto;padding:0 18px 60px}.menu-topbar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:15px}.menu-brand{display:flex;align-items:center;gap:9px}.menu-brand img{width:47px;height:47px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:12px}.menu-brand b{font-size:17px;font-weight:900;line-height:1.2}.menu-top-actions{display:flex;align-items:center;gap:8px}.pill-outline{border:1px solid #e9e4df;border-radius:50px;color:#615d57;background:#fff;padding:6px 12px;font-size:11px;font-weight:800}.menu-hero{min-height:222px;background:linear-gradient(115deg,#1d1c1a,#3b211c 70%,#6c231a);border-radius:18px;color:white;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;padding:27px 44px}.menu-hero:after{content:'';position:absolute;width:390px;height:390px;border-radius:50%;border:50px solid #ffffff08;left:-100px;top:-145px}.hero-copy{z-index:1;max-width:500px}.hero-eyebrow{color:#f9a89e;letter-spacing:1px;font-size:12px;font-weight:900;margin-bottom:6px}.menu-hero h1{font-size:32px;letter-spacing:-1px;font-weight:900}.menu-hero p{margin-top:5px;color:#e8d8d3;font-size:13px}.hero-chip{display:inline-flex;margin-top:16px;border:1px solid #ffffff35;padding:6px 12px;border-radius:50px;color:#fff;font-size:11px}.hero-logo{position:relative;z-index:1;width:160px;height:160px;object-fit:contain;border-radius:22px;background:#fff;padding:8px;box-shadow:0 14px 24px #0002}.menu-notice{background:#fff7e7;border:1px solid #f2dfb7;color:#986c27;border-radius:10px;padding:9px 12px;margin-top:12px;font-size:12px}.menu-toolbar{padding-top:23px;display:flex;justify-content:space-between;gap:14px;align-items:center}.section-heading{font-weight:900;font-size:21px}.menu-toolbar p{font-size:12px;color:var(--muted)}.search-wrap{position:relative;display:flex;align-items:center;gap:8px;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:11px;min-width:245px}.search-wrap span{font-size:17px;color:#999}.search-wrap input{height:41px;border:0;background:none;outline:none;width:100%;font-size:12px}.cat-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:17px 0 20px}.cat-scroll::-webkit-scrollbar{display:none}.cat-chip{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:9px 15px;border-radius:10px;background:#fff;border:1px solid #eee9e5;font-weight:800;color:#605954}.cat-chip.is-active{background:var(--red);color:#fff;border-color:var(--red)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.product-card{background:#fff;border:1px solid #efece8;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 4px 16px #00000005}.product-visual{height:148px;background:linear-gradient(155deg,#faf2e8,#f0e5d8);display:grid;place-items:center;position:relative;overflow:hidden}.product-visual img{height:100%;width:100%;object-fit:cover}.product-visual .emoji{font-size:66px;filter:drop-shadow(0 7px 5px #0000000d);line-height:1}.featured-tag{position:absolute;right:10px;top:10px;padding:4px 9px;border-radius:7px;background:#fff;color:var(--red);font-size:10px;font-weight:900}.product-body{padding:13px;display:flex;flex:1;flex-direction:column;gap:7px}.product-cat{font-size:10px;color:var(--red);font-weight:800}.product-title{font-size:15px;font-weight:900;line-height:1.5}.product-description{font-size:11px;color:#8b8781;line-height:1.7;min-height:33px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;padding-top:7px}.product-price{font-weight:900;color:#222;font-size:14px}.product-price small{font-size:10px;color:var(--muted)}.quantity-inline{display:flex;align-items:center;gap:7px}.qty-btn{width:28px;height:28px;border-radius:7px;background:#f5e5e1;color:var(--red);font-weight:900;font-size:16px}.menu-footer{text-align:center;color:#a19a93;padding-top:35px;font-size:11px}.floating-cart{position:fixed;bottom:20px;left:20px;z-index:30;border-radius:100px;box-shadow:0 10px 40px #7b130d50;padding:13px 20px;background:var(--red);color:#fff;display:flex;align-items:center;gap:18px;font-weight:900}.cart-count{background:#fff;color:var(--red);border-radius:50px;padding:2px 8px}.menu-reserve-btn{border:1px solid #f0d8d3;color:var(--red);background:#fff5f2}
.menu-overlay,.modal-backdrop{position:fixed;inset:0;background:#0008;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px}.cart-sheet,.booking-modal,.admin-modal{background:#fff;border-radius:18px;box-shadow:0 18px 70px #0003;width:min(500px,100%);max-height:calc(100vh - 35px);overflow:auto;padding:20px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.modal-head h2{font-size:19px;font-weight:900}.icon-close{border-radius:8px;width:32px;height:32px;background:#f3f3f3;font-weight:900;font-size:20px}.cart-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #f0eeeb;padding:12px 0}.cart-row .mini-emoji{width:38px;height:38px;border-radius:9px;background:#f8f0e7;display:grid;place-items:center;font-size:20px}.cart-totals{border-top:1px dashed #e1dad3;margin-top:8px;padding-top:10px;display:grid;gap:8px}.cart-totals .total-row{font-size:18px;font-weight:900;color:var(--red)}.cart-items{max-height:32vh;overflow-y:auto}.line-divider{height:1px;background:var(--line);margin:14px 0}.mode-note{font-weight:800;color:#8b5b2a;background:#fff6e6;border-radius:9px;padding:9px 11px;margin-bottom:12px}
/* Admin */
.admin-body{background:#f5f5f4}.admin-layout{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:100vh}.sidebar{background:#171717;color:#fff;min-height:100vh;padding:18px 12px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar-brand{display:flex;gap:10px;align-items:center;padding:3px 8px 20px;border-bottom:1px solid #ffffff15;margin-bottom:14px}.sidebar-brand img{width:48px;height:48px;object-fit:contain;background:#fff;padding:2px;border-radius:9px}.sidebar-brand strong{display:block;font-size:15px;font-weight:900}.sidebar-brand small{display:block;color:#bcb6b2;font-size:10px}.side-caption{font-size:10px;color:#85817f;padding:4px 12px 8px}.nav-list{display:grid;gap:3px}.nav-item{display:flex;align-items:center;gap:11px;border-radius:10px;color:#c4c0bd;background:transparent;width:100%;text-align:right;padding:10px 12px;font-weight:700}.nav-item:hover{background:#242424;color:#fff}.nav-item.active{background:#b52a21;color:#fff}.nav-symbol{display:grid;place-items:center;width:22px;min-width:22px;font-size:17px;line-height:1}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff1a;padding-top:14px}.sidebar-bottom a{color:#f4cbc8;display:block;padding:9px 12px;font-weight:800}.sidebar-bottom p{font-size:10px;color:#9d9994;padding:4px 12px}.admin-main{min-width:0;padding:21px 26px 32px}.admin-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.admin-top .breadcrumb{color:var(--muted);font-size:11px;margin-bottom:4px}.admin-top h1{font-size:22px;font-weight:900}.admin-user{display:flex;align-items:center;gap:10px}.avatar{width:37px;height:37px;border-radius:11px;background:#272727;color:#fff;display:grid;place-items:center;font-weight:900;font-size:18px}.demo-banner{border:1px solid #f2d9af;background:#fff7e8;color:#886022;padding:10px 12px;border-radius:10px;margin-bottom:15px;font-size:11px;line-height:1.8}.panel{background:#fff;border:1px solid #eae9e7;border-radius:13px;padding:16px;box-shadow:var(--shadow);min-width:0}.panel-title{font-size:15px;font-weight:900}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.metric-card{background:#fff;border:1px solid #eae9e7;border-radius:12px;padding:15px;min-width:0}.metric-card .metric-label{color:#827e7a;font-size:11px;font-weight:700}.metric-card .metric-value{margin-top:10px;font-size:21px;font-weight:900;white-space:nowrap}.metric-card .metric-value.money{font-size:16px}.metric-card .metric-foot{font-size:10px;color:#aaa4a0;margin-top:4px}.metric-card .metric-symbol{font-size:15px;background:#f7f6f5;border-radius:7px;padding:5px}.overview-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:14px}.mini-bars{height:193px;display:flex;align-items:flex-end;justify-content:space-between;gap:9px;padding:19px 4px 2px}.bar-item{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:6px}.bar-stack{width:min(32px,80%);height:145px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.bar{width:48%;min-height:2px;border-radius:5px 5px 0 0;background:var(--red)}.bar.expense{background:#dedad6}.bar-label{font-size:10px;color:#9d9994}.chart-legend{display:flex;gap:15px;font-size:11px;color:#7c7874}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:3px;background:var(--red);margin-left:4px}.legend-dot.secondary{background:#dedad6}.activity-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #f2f1ef}.activity-item:last-child{border-bottom:0}.activity-dot{display:grid;place-items:center;width:35px;height:35px;background:#fff0ed;border-radius:10px;color:var(--red)}.table-wrap{overflow-x:auto;border:1px solid #efeeec;border-radius:10px}.data-table{width:100%;border-collapse:collapse;min-width:610px;text-align:right}.data-table th{background:#faf9f8;color:#8a8782;font-size:10px;font-weight:800;padding:11px 12px;white-space:nowrap}.data-table td{padding:11px 12px;border-top:1px solid #efeeec;vertical-align:middle;font-size:12px}.data-table tbody tr:hover{background:#fdfcfc}.data-table .actions{display:flex;gap:5px;align-items:center}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}.toolbar .search-wrap{min-width:235px}.toolbar select{min-height:37px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:5px 12px}.thumb{width:43px;height:43px;border-radius:9px;background:#f5eee5;display:grid;place-items:center;font-size:24px;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.category-tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.category-tile{display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px}.category-icon{width:49px;height:49px;border-radius:12px;background:#fff5f1;display:grid;place-items:center;font-size:26px}.category-tile h3{font-size:14px;font-weight:900}.tile-actions{margin-right:auto;display:flex;gap:4px}.field-row{display:flex;align-items:center;gap:10px}.checkbox-row{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:700}.checkbox-row input{accent-color:var(--red);width:16px;height:16px}.admin-modal{width:min(530px,100%)}.admin-modal .modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.settings-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr);gap:15px}.settings-logo{display:flex;align-items:center;justify-content:center;padding:22px;background:#fff;border:1px solid var(--line);border-radius:14px}.settings-logo img{width:245px;max-height:310px;object-fit:contain}.qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.qr-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;text-align:center}.qr-image{width:232px;height:232px;max-width:100%;margin:18px auto;background:#fff;display:flex;align-items:center;justify-content:center}.qr-image img,.qr-image canvas{max-width:100%;max-height:100%}.qr-url{direction:ltr;text-align:left;overflow-wrap:anywhere;font-size:10px;background:#f8f8f8;padding:9px;border-radius:8px;color:#666;margin:12px 0}.qr-action-row{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.qr-label{color:#8a817b;font-size:11px}.preview-phone{max-width:230px;margin:auto;border:6px solid #222;border-radius:25px;background:#fff;padding:16px 10px;text-align:center;min-height:350px}.inline-select{border:1px solid var(--line);padding:5px 8px;border-radius:7px;background:#fff}.mobile-toggle{display:none}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#fff,#f7eee9)}.auth-card{max-width:400px;width:100%;background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:var(--shadow)}.auth-card img{height:110px;display:block;margin:0 auto 17px}.auth-card h1{text-align:center;font-size:21px}.auth-card p{text-align:center;margin:6px 0 24px;color:var(--muted)}
@media(max-width:1180px){.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.sidebar{position:fixed;right:-240px;top:0;width:226px;z-index:90;transition:right .2s;box-shadow:0 0 0 transparent}.sidebar.open{right:0;box-shadow:0 0 0 200vw #0007}.admin-main{padding:16px}.mobile-toggle{display:grid;place-items:center}.overview-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}}@media(max-width:700px){.menu-shell{padding:0 12px 75px}.menu-topbar{height:60px}.menu-brand b{font-size:14px}.menu-brand img{width:41px;height:41px}.pill-outline{display:none}.menu-hero{padding:22px 17px;min-height:176px}.menu-hero h1{font-size:25px}.menu-hero p{font-size:11px}.hero-logo{width:100px;height:100px;padding:5px;border-radius:12px}.hero-chip{font-size:10px;margin-top:10px}.menu-toolbar{padding-top:18px;align-items:flex-start;flex-direction:column;gap:10px}.menu-toolbar .search-wrap{width:100%}.section-heading{font-size:19px}.cat-scroll{padding:12px 0 15px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-visual{height:124px}.product-visual .emoji{font-size:55px}.product-body{padding:10px;gap:5px}.product-title{font-size:13px}.product-price{font-size:12px}.product-description{font-size:10px;min-height:33px}.featured-tag{font-size:9px;right:6px;top:6px}.floating-cart{left:12px;bottom:12px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric-card{padding:12px}.metric-card .metric-value{font-size:18px}.metric-card .metric-value.money{font-size:14px}.category-tile-grid,.qr-grid{grid-template-columns:1fr}.admin-top h1{font-size:19px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.panel{padding:12px}.admin-main{padding:12px}.toast-root{left:12px;bottom:12px}.auth-card{padding:20px}.qr-image{width:210px;height:210px}}@media(max-width:370px){.hero-logo{width:80px;height:80px}.menu-hero h1{font-size:21px}.product-visual{height:107px}.product-visual .emoji{font-size:45px}.product-price{font-size:11px}}
@media print{body{background:#fff!important}.sidebar,.admin-top,.demo-banner,.no-print,.qr-grid>.qr-card:not(.print-target),.qr-card .qr-action-row,.qr-card .qr-url,.qr-card .field,.qr-card .hint{display:none!important}.admin-layout,.admin-main{display:block!important;padding:0!important}.qr-grid{display:block!important}.qr-card{border:0!important;page-break-inside:avoid}.qr-image{width:300px;height:300px}#toastRoot{display:none}}

.table-number{background:#fff0ec;color:var(--red);white-space:nowrap;border:1px solid #eacdc7}

/* V2.1 — Alazaem identity instead of generic emoji icons */
.product-visual { background:#fff; }
.product-visual .dish-image { width:100%; height:100%; display:block; object-fit:cover; }
.product-visual .dish-image-fallback { object-fit:contain; padding:14px 20px; background:#fff; }
.mini-product-image { width:42px; height:42px; flex:0 0 42px; border:1px solid #eee9e6; border-radius:9px; background:#fff; display:grid; place-items:center; overflow:hidden; }
.mini-product-image img { width:100%; height:100%; object-fit:cover; }
.mini-product-image img.dish-image-fallback { object-fit:contain; padding:4px; }
.thumb {background:#fff;border:1px solid #eee9e6;}
.thumb img.dish-image-fallback {object-fit:contain; padding:5px; background:#fff;}
.category-tile {gap:12px;}
.empty-logo {display:block;height:62px;width:62px;object-fit:contain;margin:0 auto 12px;}

/* V2.2 — compact screens / less vertical scrolling */
.admin-layout{grid-template-columns:192px minmax(0,1fr)}
.sidebar{padding:12px 9px}.sidebar-brand{padding:5px 7px 12px}.sidebar-brand img{width:38px;height:38px}
.nav-list{gap:2px}.nav-item{padding:7px 10px;gap:8px;border-radius:7px;font-size:12px}.nav-symbol{width:17px;min-width:17px;font-size:14px}
.sidebar-bottom{padding-top:8px}.sidebar-bottom a{padding:6px 8px;font-size:11px}
.admin-main{padding:12px 16px 18px}.admin-top{margin-bottom:10px}.admin-top h1{font-size:17px}.avatar{width:29px;height:29px;font-size:14px}
.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:9px}.metric-card{padding:10px 11px;border-radius:9px}.metric-card .metric-value{margin-top:4px;font-size:18px}.metric-card .metric-value.money{font-size:15px}.metric-card .metric-foot{margin-top:2px;font-size:9px}.metric-card .metric-symbol{padding:2px 4px;font-size:12px}
.overview-grid{gap:9px}.panel{padding:11px;border-radius:9px}.panel-head{margin-bottom:8px}.panel-title{font-size:13px}.mini-bars{height:137px;padding:5px 2px 2px}.bar-stack{height:112px}.activity-item{padding:6px 0}.activity-dot{width:24px;height:24px}
.toolbar{margin-bottom:8px;gap:7px}.toolbar select{min-height:31px}.toolbar .search-wrap{min-width:180px}.category-tile-grid{gap:7px}.category-tile{padding:10px;border-radius:9px;gap:6px}.category-tile h3{font-size:12px}.category-tile .muted{font-size:10px}.tile-actions{gap:3px}
.data-table{min-width:560px}.data-table th,.data-table td{padding:7px 9px;font-size:11px}.data-table th{font-size:10px}.thumb{width:35px;height:35px}.actions{flex-wrap:nowrap}.actions .btn{white-space:nowrap}.table-wrap{border-radius:8px}
.btn.btn-small,.btn-small{padding:5px 9px;font-size:11px}.inline-select{padding:4px 6px;font-size:11px}.admin-modal{max-height:92dvh;overflow:auto;padding:15px}.admin-modal .modal-footer{margin-top:6px}.form-grid{gap:9px}.field label{margin-bottom:4px}.field input,.field select,.field textarea{min-height:34px;padding:7px 9px}.field textarea{min-height:53px;resize:vertical}
.settings-grid{gap:9px;grid-template-columns:minmax(0,1.8fr) minmax(180px,.6fr)}.settings-logo{padding:8px}.settings-logo img{width:155px;max-height:175px}.qr-grid{gap:9px}.qr-card{padding:10px}.qr-image{margin:8px auto}.qr-url{margin:5px 0;padding:6px;font-size:9px}
.image-upload-hint{display:block;color:#888;font-size:10px;margin-top:2px}
.menu-shell{max-width:1170px}.menu-topbar{height:57px}.menu-brand img{height:38px;width:38px}.menu-hero{min-height:132px;padding:13px 21px;margin-top:4px}.menu-hero h1{font-size:25px}.menu-hero p{font-size:12px}.hero-logo{width:100px;height:100px}.menu-toolbar{padding-top:12px}.menu-toolbar p{display:none}.section-heading{font-size:17px}.cat-scroll{padding:9px 0}.product-grid{gap:10px}.product-body{padding:9px;gap:5px}.product-description{min-height:0;margin:0;font-size:11px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.menu-footer{padding:16px 0;color:#89827d;font-size:11px}
@media(max-width:1180px){.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.admin-main{padding:10px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){.admin-main{padding:8px}.admin-top{margin-bottom:8px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.metric-card{padding:9px}.metric-card .metric-value{font-size:17px}.metric-card .metric-value.money{font-size:13px}.overview-grid{gap:7px}.panel{padding:9px}.category-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.category-tile{padding:8px;flex-wrap:wrap}.tile-actions{width:100%;margin-right:0;justify-content:flex-end}.menu-shell{padding:0 10px 65px}.menu-topbar{height:51px}.menu-brand img{width:34px;height:34px}.menu-hero{min-height:106px;padding:10px 12px;margin-top:0}.menu-hero h1{font-size:19px}.menu-hero p{font-size:10px}.hero-logo{width:72px;height:72px}.menu-toolbar{padding-top:9px;gap:6px}.menu-toolbar .search-wrap{min-height:32px}.cat-scroll{padding:8px 0 10px}.product-grid{gap:7px}.product-visual{height:112px}.product-body{padding:8px;gap:4px}.product-title{font-size:12px}.product-price{font-size:11px}.product-description{font-size:10px;line-height:1.3}.menu-footer{font-size:10px}}
@media(max-width:370px){.product-visual{height:100px}.hero-logo{width:62px;height:62px}}

/* V2.3 — delivery-only flow, compact zone manager */
.field-warning{display:block;color:#a52b1c;font-size:11px;margin-top:4px}
.delivery-form{gap:8px;margin-top:8px}
.delivery-form .cart-totals{margin:4px 0 0;padding:9px 12px;border-radius:9px;background:#faf8f6}
.delivery-form .field textarea{min-height:54px}
.zones-table{min-width:460px}
.zones-table td,.zones-table th{padding:7px 8px}
.metric-card .metric-foot:empty{display:none}
@media(max-width:700px){.zones-table{min-width:410px}.delivery-form{gap:6px}.delivery-form .field textarea{min-height:49px}}

/* V2.4 – full uncropped photography, image banners and condensed QR */
.product-visual{background:#fff;overflow:hidden}
.product-visual img,.product-visual .dish-image,.product-visual .dish-image-fallback{object-fit:contain!important;object-position:center;width:100%;height:100%;padding:4px!important;background:#fff}
.mini-product-image img,.thumb img,.thumb img.dish-image-fallback{object-fit:contain!important;object-position:center;padding:2px!important}
.menu-banner{position:relative;margin:5px 0 2px;background:#fff;border:1px solid #eeeae6;border-radius:13px;overflow:hidden}
.banner-track{position:relative;aspect-ratio:3.6 / 1;max-height:260px;min-height:85px;background:#fff}
.banner-slide{position:absolute;inset:0;display:grid;place-items:center;margin:0;opacity:0;visibility:hidden;transition:opacity .45s ease;background:#fff}
.banner-slide.active{opacity:1;visibility:visible;z-index:1}
.banner-slide img{height:100%;width:100%;object-fit:contain;object-position:center;display:block}
.banner-controls{position:absolute;inset:auto 9px 9px;z-index:2;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.banner-controls>button{pointer-events:auto;width:29px;height:29px;background:#ffffffdd;border:1px solid #e8e4df;border-radius:50%;font-size:23px;line-height:1;color:#202020}
.banner-dots{display:flex;gap:5px;align-items:center;padding:5px 8px;background:#fffe;border-radius:40px;pointer-events:auto}
.banner-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#c9bebb}
.banner-dot.active{width:17px;border-radius:10px;background:var(--red)}
.banner-empty{min-height:92px;border:1px solid #ede7e3;background:#fff;display:flex;justify-content:center;align-items:center;border-radius:12px;margin:5px 0}
.banner-empty img{width:82px;height:82px;object-fit:contain}
.banner-empty span{color:var(--red);font-weight:800}
.menu-footer{display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1.7;padding:16px 0 12px}
.menu-footer span{display:block;white-space:normal;text-align:center}
.menu-footer strong{color:#ad291c}
.banner-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.banner-admin-item{padding:8px!important;display:flex;gap:10px;align-items:center;min-width:0}
.banner-admin-picture{width:60%;height:115px;display:grid;place-items:center;background:#fff;min-width:0;border:1px solid #eee;border-radius:8px}
.banner-admin-picture img{width:100%;height:100%;object-fit:contain}
.banner-admin-detail{flex:1;display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.banner-admin-detail .actions{flex-wrap:wrap}
.banner-current{height:135px;background:#fafafa;display:grid;place-items:center;border:1px solid #eee;border-radius:10px}
.banner-current img{height:100%;width:100%;object-fit:contain}
.qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.qr-card{padding:9px 10px!important}
.qr-card h2{margin-top:3px!important;font-size:12px}
.qr-card .qr-label{font-size:10px}
.qr-image{width:150px;height:150px;margin:6px auto!important}
.qr-image img,.qr-image canvas{width:100%!important;height:100%!important;object-fit:contain}
.qr-action-row{gap:4px}
.qr-action-row .btn{padding:4px 6px;font-size:10px;min-height:26px}
.qr-url{max-height:30px;overflow:auto;line-height:1.2;padding:3px!important;margin:3px 0!important}
.qr-card .field{max-width:170px!important}
.qr-card .field input{min-height:29px;padding:3px 6px}
.loading-page.alazaem-loading{min-height:100dvh;display:grid;place-items:center;background:linear-gradient(135deg,#fff,#fbf5f2 65%,#fff);color:#222;padding:20px}
.loading-brand{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;font-size:14px}
.loading-logo-wrap{width:90px;height:90px;display:grid;place-items:center;border-radius:24px;background:#fff;border:1px solid #f1e6e2;box-shadow:0 10px 35px #b329181a;animation:loadingBreath 2.2s ease-in-out infinite}
.loading-logo-wrap img{height:72px;width:72px;object-fit:contain}
.loading-progress{width:145px;height:4px;border-radius:10px;background:#f3e9e5;overflow:hidden;position:relative}
.loading-progress span{display:block;width:48%;height:100%;border-radius:10px;background:var(--red);animation:loadingBar 1.25s ease-in-out infinite alternate}
.loading-brand small{font-size:11px;color:#89817d}
@keyframes loadingBreath{50%{transform:scale(1.045);box-shadow:0 15px 45px #b3291820}}
@keyframes loadingBar{from{transform:translateX(-85%)}to{transform:translateX(185%)}}
@media(prefers-reduced-motion:reduce){.loading-logo-wrap,.loading-progress span{animation:none}.banner-slide{transition:none}}
@media(max-width:700px){.menu-banner{border-radius:8px;margin-top:3px}.banner-track{aspect-ratio:2.6 / 1;min-height:82px;max-height:172px}.banner-controls{inset:auto 6px 6px}.banner-controls>button{width:25px;height:25px;font-size:19px}.qr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.qr-card{padding:6px!important}.qr-image{width:116px;height:116px}.qr-card .qr-url{font-size:8px}.qr-action-row .btn{font-size:9px;white-space:normal}.banner-admin-grid{grid-template-columns:1fr}.banner-admin-picture{height:95px}.banner-empty{min-height:75px}.banner-empty img{height:65px;width:65px}}
@media(max-width:370px){.qr-image{width:94px;height:94px}.qr-action-row{flex-wrap:wrap}}
@media print{.qr-image{height:260px!important;width:260px!important}.qr-card{max-width:400px;margin:0 auto}.banner-controls{display:none}}


/* V2.5.1 – stronger full-image display fix */
.product-visual{padding:8px;align-items:center;justify-items:center;background:#fff!important}
.product-visual img,.product-visual .dish-image,.product-visual .dish-image-fallback{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:0!important;
  display:block;
  background:#fff;
}
.mini-product-image,.thumb,.banner-admin-picture,.banner-current,.banner-slide,.banner-empty{background:#fff}
.mini-product-image img,.thumb img,.banner-admin-picture img,.banner-current img,.settings-logo img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block;
  padding:2px!important;
  background:#fff;
}
.banner-track{display:grid;align-items:center;background:#fff}
.banner-slide img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#fff;
}
@media(max-width:700px){
  .product-visual{padding:6px}
  .product-visual img,.product-visual .dish-image,.product-visual .dish-image-fallback{padding:0!important}
}


/* V2.5.2 — prevent the header logo from stretching over the menu/banner. */
.menu-topbar {
  position:relative;
  z-index:4;
  isolation:isolate;
  min-height:52px;
  height:56px;
  padding:5px 0;
  overflow:hidden;
  background:#f8f6f3;
}
.menu-brand {
  min-width:0;
  max-width:100%;
  flex:0 1 auto;
  display:flex;
  align-items:center;
  gap:9px;
  height:100%;
}
.menu-brand img,
.menu-topbar .menu-brand img {
  flex:0 0 40px!important;
  display:block!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  max-width:40px!important;
  max-height:40px!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:2px!important;
  border-radius:10px;
  background:#fff;
}
.menu-brand b {
  display:block;
  font-size:15px;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.menu-banner{position:relative;z-index:1;isolation:isolate;}
.banner-track {overflow:hidden;background:#eee5df;}
.banner-slide {position:absolute;inset:0;overflow:hidden;background:#eee5df;}
.banner-slide .banner-blur {
  position:absolute!important;
  z-index:0;
  inset:-20px;
  width:calc(100% + 40px)!important;
  height:calc(100% + 40px)!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  filter:blur(18px) brightness(.9);
  opacity:.62;
  pointer-events:none;
  padding:0!important;
}
.banner-slide .banner-primary {
  position:relative!important;
  z-index:1;
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  background:transparent!important;
}
.banner-controls {z-index:3;}
.product-visual {position:relative;overflow:hidden!important;background:#fff!important;padding:6px!important;}
.product-visual > img.dish-image {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  background:#fff!important;
}
/* Keep the entire fallback restaurant mark visible, rather than zooming into the chef. */
.product-visual > img.dish-image-fallback {padding:3px!important;}
@media(max-width:700px){
  .menu-topbar{height:50px;min-height:50px;padding:4px 0;}
  .menu-brand img,.menu-topbar .menu-brand img{
    width:34px!important;height:34px!important;
    min-width:34px!important;min-height:34px!important;
    max-width:34px!important;max-height:34px!important;
    flex-basis:34px!important;
  }
  .menu-brand b{font-size:13px;}
  .product-visual{padding:5px!important;}
  .product-visual > img.dish-image-fallback{padding:2px!important;}
  .banner-slide .banner-blur{filter:blur(15px) brightness(.9);}
}


/* V2.5.3 – product photos must always appear fully without clipping */
.product-card{overflow:hidden}
.product-visual{
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1 / 1;
  padding:8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
}
.product-visual > img.dish-image,
.product-visual > img.dish-image-fallback,
.product-visual img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block!important;
  margin:auto!important;
  padding:0!important;
  background:#fff!important;
}
.product-visual > img.dish-image-fallback{
  max-width:94%!important;
  max-height:94%!important;
}
.thumb img,
.mini-product-image img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:auto!important;
}
@media (max-width:700px){
  .product-visual{
    aspect-ratio:1 / 1;
    padding:6px!important;
  }
}


/* V2.5.4 — Compact, consistent add-to-cart controls (same 28×28 size). */
.product-card .product-bottom{gap:4px;min-width:0;align-items:center;}
.product-card .quantity-inline{
  display:inline-flex;flex:0 0 auto;gap:3px;align-items:center;justify-content:flex-end;
  white-space:nowrap;line-height:1;
}
.product-card .quantity-inline .qty-btn{
  box-sizing:border-box!important;display:inline-flex;align-items:center;justify-content:center;
  width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;
  min-height:28px!important;max-height:28px!important;flex:0 0 28px!important;
  padding:0!important;margin:0;border:1px solid transparent;border-radius:8px;
  font-family:Arial,sans-serif;font-size:20px;font-weight:700;line-height:1;
  transition:background-color .16s ease,box-shadow .16s ease,transform .1s ease;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.product-card .qty-btn span{line-height:1;display:block;transform:translateY(-.5px);}
.product-card .qty-btn-add{
  color:#fff!important;background:var(--red)!important;
  border-color:var(--red)!important;box-shadow:0 2px 5px rgba(178,34,24,.14);
}
.product-card .qty-btn-add:hover{background:var(--red-strong)!important;}
.product-card .qty-btn-remove{
  color:var(--red)!important;background:#fff5f3!important;
  border-color:#f0d2cc!important;box-shadow:none;
}
.product-card .qty-btn:active{transform:scale(.94);}
.product-card .qty-btn:focus-visible{outline:2px solid var(--red);outline-offset:2px;}
.product-card .quantity-inline .qty-count{
  display:inline-block;flex:0 0 17px;min-width:17px;max-width:24px;
  text-align:center;font-size:12px;font-weight:800;line-height:28px;
  font-variant-numeric:tabular-nums;color:#29221f;
}
.product-card .product-price{min-width:0;white-space:nowrap;}
@media(max-width:390px){
  .product-card .product-bottom:has(.quantity-inline.has-items){flex-wrap:wrap;}
  .product-card .product-bottom:has(.quantity-inline.has-items) .quantity-inline{margin-inline-start:auto;}
}
@media(prefers-reduced-motion:reduce){.product-card .quantity-inline .qty-btn{transition:none;}}

/* V2.5.5 - small WhatsApp confirmation with direct redirect and fallback action */
.whatsapp-success{text-align:center;display:flex;flex-direction:column;align-items:stretch;gap:11px;max-width:410px}
.whatsapp-success h2{font-size:19px;font-weight:900;margin:0}
.whatsapp-success p{margin:0;font-size:12px;line-height:1.8}
.whatsapp-success .wa-success-icon{display:grid;place-items:center;align-self:center;width:48px;height:48px;border-radius:50%;background:#e5f6ec;color:#138453;font-size:26px;font-weight:900}
.whatsapp-success .btn{width:100%;min-height:40px}


/* V2.5.6 — restaurant-branded QR codes, including printed QR cards */
.qr-toolbar{gap:8px}
.qr-base-field{display:flex;align-items:center;gap:7px;font-size:10px;color:#6f6863;font-weight:800}
.qr-base-field input{width:min(240px,46vw);max-width:100%;height:31px;padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#333;font-size:11px;direction:ltr;text-align:left}
.qr-brand{display:flex;justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:900;color:var(--dark);line-height:1.3}
.qr-brand img{display:block;width:28px;height:28px;object-fit:contain;flex:0 0 28px;border-radius:7px;border:1px solid #eee;background:#fff;padding:2px}
.qr-image{position:relative!important;display:block!important;isolation:isolate;overflow:hidden;background:#fff!important;width:155px;height:155px;border-radius:5px;}
.qr-code-core{position:absolute;inset:7%;overflow:hidden;background:#fff}
.qr-code-core>canvas,.qr-code-core>img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.qr-center-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;display:flex;align-items:center;justify-content:center;width:18%;height:18%;background:#fff;padding:2px;border:2px solid #fff;border-radius:6px;box-shadow:0 0 0 1px #fff;pointer-events:none}
.qr-center-logo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;padding:0!important;background:#fff}
@media(max-width:700px){.qr-base-field input{width:min(210px,48vw)}.qr-image{width:125px;height:125px}.qr-brand img{width:24px;height:24px;flex-basis:24px}.qr-brand{font-size:11px}}
@media(max-width:370px){.qr-image{width:112px;height:112px}.qr-brand{font-size:10px}}
@media print{
  .qr-card{break-inside:avoid!important;page-break-inside:avoid!important}
  .qr-brand{font-size:17px!important;gap:10px!important}
  .qr-brand img{width:40px!important;height:40px!important;flex-basis:40px!important}
  .qr-image{width:260px!important;height:260px!important;margin:12px auto!important;overflow:hidden!important}
  .qr-center-logo{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .qr-code-core img,.qr-code-core canvas,.qr-center-logo img{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* V2.5.7 — compact, readable four-digit order search */
.orders-toolbar{justify-content:space-between;gap:8px}
.orders-toolbar .order-search{min-width:min(320px,75vw);max-width:360px}
.order-id{font-variant-numeric:tabular-nums;letter-spacing:.8px;color:var(--red);font-size:14px}
@media(max-width:700px){.orders-toolbar .order-search{min-width:0;flex:1}.orders-toolbar{flex-wrap:nowrap}}


/* V2.5.10 - prevent mobile input focus zoom without disabling manual pinch zoom */
@media screen and (max-width: 900px) {
  /* Mobile Safari zooms the page when a focused field's font is smaller than 16px. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  textarea,
  select,
  [contenteditable="true"] {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
  }
}
