/* «مائدة» layout v6 (owner 2026-10-21, card 84c7f624 / msg ccc07ee2): light, frosted glass.
   Scoped to html.md-v6 so the classic / flipbook designs and the other pages are untouched. */
html.md-v6{--v6-red:#dc3f48;--v6-ink:#111;--v6-mut:#888;--v6-bg:#f4f6fa;color-scheme:light}
html.md-v6 body{margin:0;background:var(--v6-bg)!important;color:#222!important;font-family:'IBM Plex Sans Arabic','Noto Sans','Noto Sans Arabic',system-ui,sans-serif}
html.md-v6 body>header.appbar,html.md-v6 .md-trackbar,html.md-v6 #cats{display:none!important}
html.md-v6 #maida{background:var(--v6-bg);min-height:100vh}
.md-v6 .v6{display:flex;direction:ltr;min-height:100vh}
.md-v6 .v6-main{flex:1;min-width:0;padding:18px 10px 190px;direction:ltr}
.md-v6 .v6-hd{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin-bottom:14px}
.md-v6 .sec-title{border-left:4px solid var(--v6-red);padding:4px 10px;font-weight:700;font-size:18px;color:#222!important;white-space:nowrap;flex-shrink:0;margin:0}
.md-v6 .sec-title small{font-size:12px;color:var(--v6-mut);font-weight:400;margin-inline-start:4px}
.md-v6 .v6-chip{margin-left:auto;display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:4px 8px;font-size:9.5px;font-weight:600;color:#2b2b2b;white-space:nowrap;overflow:hidden;min-width:0;
  background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(14px) saturate(180%);backdrop-filter:blur(14px) saturate(180%);border:1px solid rgba(255,255,255,.75);box-shadow:0 2px 10px rgba(0,0,0,.08)}
.md-v6 .v6-chip span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.md-v6 .v6-chip svg{color:#54656f;flex-shrink:0}.md-v6 .v6-chip i{color:#aaa;font-style:normal}
.md-v6 .md-banner{margin:0 0 10px;border-radius:12px}
.md-v6 .grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.md-v6 .grid .md-sub{grid-column:1/-1;margin:6px 2px 0;font-size:13px;color:#444}
.md-v6 .card{background:#fff!important;border:0!important;border-radius:18px;box-shadow:0 3px 12px rgba(0,0,0,.07);padding:10px;position:relative;display:flex;flex-direction:column;color:#222;opacity:1!important;transform:none!important;animation:none!important}
.md-v6 .card .im{background:#f2f4f7;border-radius:14px;height:96px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:4px}
.md-v6 .card .im img{max-height:88px;max-width:92%;object-fit:contain}
.md-v6 .card h3{font-weight:600;font-size:11px;text-align:center;margin:10px 0 8px;min-height:30px;color:#222;line-height:1.35}
.md-v6 .v6-pr{display:flex;align-items:center;justify-content:space-between;margin-top:auto;direction:ltr}
.md-v6 .card .price{background:var(--v6-red);color:#fff!important;font-weight:800;font-size:13px;border-radius:999px;padding:4px 8px;margin:0;white-space:nowrap}
.md-v6 .card.md-off .price{background:#bbb}
.md-v6 .card .plus{position:static;width:26px;height:26px;border-radius:50%;border:2px solid var(--v6-red);color:var(--v6-red);background:transparent;display:flex;align-items:center;justify-content:center;padding:0}
.md-v6 .v6-cats{width:86px;flex-shrink:0;padding:8px 5px 190px;position:sticky;top:0;align-self:flex-start;max-height:100vh;overflow-y:auto;scrollbar-width:none;
  background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%);border-left:1px solid rgba(255,255,255,.7);box-shadow:-3px 0 12px rgba(0,0,0,.05)}
.md-v6 .v6-ct{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;padding:5px;margin-bottom:8px;border-radius:14px;background:#f7f8fb;border:1px solid transparent;text-align:center;color:#222;font:inherit;cursor:pointer}
.md-v6 .v6-ct .t{width:44px;height:44px;border-radius:12px;background:#eef1f5;display:flex;align-items:center;justify-content:center;overflow:hidden}
.md-v6 .v6-ct .t img{width:100%;height:100%;object-fit:contain}
.md-v6 .v6-ct b{font-size:10px;font-weight:700;line-height:1.25}
.md-v6 .v6-ct.on{background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(14px) saturate(180%);backdrop-filter:blur(14px) saturate(180%);color:var(--v6-ink);border-color:rgba(220,63,72,.35);box-shadow:0 4px 14px rgba(0,0,0,.10),inset 0 1px 0 #fff}
.md-v6 .v6-ct.on b{color:var(--v6-red)}.md-v6 .v6-ct.on .t{background:#fff}
/* WhatsApp-style frosted floating action pill */
.md-v6 .v6-bar{position:fixed;left:10px;right:10px;bottom:calc(96px + env(safe-area-inset-bottom));height:64px;z-index:40;display:flex;direction:ltr;justify-content:space-around;align-items:center;padding:0 4px;border-radius:999px;
  background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%);border:1px solid rgba(255,255,255,.7);box-shadow:0 8px 28px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.8)}
.md-v6 .v6-a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--v6-ink);background:transparent;border:0;padding:6px 8px;border-radius:999px;min-width:50px;font:inherit;cursor:pointer}
.md-v6 .v6-a .ic{position:relative;display:flex}
.md-v6 .v6-a small{font-size:9.5px;font-weight:500;color:var(--v6-ink);white-space:nowrap}
.md-v6 .v6-a.on{background:rgba(0,0,0,.08)}.md-v6 .v6-a.on small{font-weight:700}
.md-v6 .v6-bd{position:absolute;top:-9px;right:-13px;min-width:20px;height:20px;line-height:16px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#1DAA61;color:#fff;border:2px solid #fff;font-size:10.5px;font-weight:700;font-style:normal;text-align:center}
.md-v6 .v6-bd[hidden]{display:none}
/* Total / Checkout */
.md-v6 .v6-pay{position:fixed;left:0;right:0;bottom:0;z-index:39;height:calc(84px + env(safe-area-inset-bottom));padding:0 10px env(safe-area-inset-bottom);display:flex;direction:ltr;align-items:center;justify-content:flex-end;gap:8px;background:#fff;box-shadow:0 -3px 14px rgba(0,0,0,.08)}
.md-v6 .v6-tot{text-align:center;display:flex;flex-direction:column}.md-v6 .v6-tot small{color:var(--v6-mut);font-size:13px}.md-v6 .v6-tot b{font-size:16px;color:var(--v6-red)}
.md-v6 #bCheckout{background:var(--v6-red);color:#fff;border:0;border-radius:999px;padding:11px 16px;font-weight:700;font-size:14px;font-family:inherit;cursor:pointer}
.md-v6 .toast{bottom:calc(172px + env(safe-area-inset-bottom))!important}
.md-v6 .v6-note{width:100%;box-sizing:border-box;min-height:96px;resize:vertical}
@media (min-width:760px){.md-v6 .grid{grid-template-columns:repeat(3,1fr);gap:16px}.md-v6 .card .im{height:150px}.md-v6 .card .im img{max-height:140px}.md-v6 .v6-cats{width:150px}.md-v6 .v6-bar{max-width:560px;margin:0 auto}}
.md-v6 .v6-pr{width:100%}.md-v6 .v6-pr .price,.md-v6 .v6-pr .plus{margin:0!important;inset:auto!important;position:static!important;transform:none!important}
/* Desktop (owner card 109fddd8 / msg 34140af8): phone rules above untouched. */
@media (min-width:1024px){
.md-v6 .v6-main{padding:24px 32px 150px}
.md-v6 .v6-hd,.md-v6 .grid,.md-v6 .md-banner{max-width:1080px;margin-left:auto;margin-right:auto}
.md-v6 .v6-hd{margin-bottom:22px}.md-v6 .sec-title{font-size:22px}
.md-v6 .v6-chip{font-size:12.5px;padding:8px 14px;gap:8px}
.md-v6 .grid{grid-template-columns:repeat(4,1fr);gap:20px}
.md-v6 .card{padding:12px}.md-v6 .card .im{height:170px}.md-v6 .card .im img{max-height:158px}
.md-v6 .card h3{font-size:14px;min-height:22px}
.md-v6 .card .price{font-size:15px;padding:6px 12px}.md-v6 .card .plus{width:30px;height:30px}
.md-v6 .v6-cats{width:250px;box-sizing:border-box;padding:16px 12px 40px;height:100vh}
.md-v6 .v6-ct{flex-direction:row;gap:12px;padding:8px;text-align:start;direction:ltr}
.md-v6 .v6-ct .t{width:52px;height:52px;flex-shrink:0}.md-v6 .v6-ct b{font-size:13px}
.md-v6 .v6-bar{left:calc((100vw - 250px - 956px)/2);right:auto;width:640px;max-width:none;margin:0;bottom:24px;height:64px}
.md-v6 .v6-pay{left:calc((100vw - 250px - 956px)/2 + 656px);right:auto;width:300px;bottom:24px;height:72px;padding:0 14px;border-radius:24px;justify-content:space-between;box-shadow:0 8px 28px rgba(0,0,0,.12)}
.md-v6 .v6-pay .v6-tot{flex:1}
.md-v6 .toast{bottom:110px!important}
}
/* Alkhoud trial (owner 2026-10-22, msg cc60271b): sections as a top horizontal bar, about four cards (2x2) per phone
   screen, the dish photo fills the card with a small margin. Scoped to html.md-top (branch 2 only). */
html.md-top .v6{flex-direction:column}
html.md-top .v6-cats{order:-1;width:auto;height:auto;max-height:none;position:sticky;top:0;z-index:30;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:8px 10px;border-left:0;border-bottom:1px solid rgba(255,255,255,.7);box-shadow:0 3px 12px rgba(0,0,0,.06)}
html.md-top .v6-cats::-webkit-scrollbar{display:none}
html.md-top .v6-ct{flex:0 0 auto;width:78px;margin:0;flex-direction:column;text-align:center;gap:3px}
html.md-top .v6-ct b{font-size:10.5px}
html.md-top .v6-main{padding-top:12px}
html.md-top .card{padding:6px}
html.md-top .card .im{height:auto;aspect-ratio:1/1;padding:0}
html.md-top .card .im img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
html.md-top .card h3{margin:8px 2px 6px}
html.md-top .v6-pr{padding:0 2px 2px;box-sizing:border-box}
@media (min-width:1024px){
html.md-top .v6-cats{width:auto;height:auto;padding:12px max(32px,calc((100vw - 1080px)/2));gap:12px}
html.md-top .v6-ct{width:104px;flex-direction:column;gap:6px;padding:8px;text-align:center}
html.md-top .v6-ct .t{width:56px;height:56px}
html.md-top .card{padding:8px}
html.md-top .card .im{height:auto}
html.md-top .v6-bar{left:calc((100vw - 956px)/2)}
html.md-top .v6-pay{left:calc((100vw - 956px)/2 + 656px)}
}
/* khawd-shadow (owner 2026-10-23, msg ca2e5e56): shadow under each dish (strengthened 2026-10-23 msg f2ef2257 to match owner reference) so it looks raised off the card. Scoped to html.md-top (branch 2). */
html.md-top #maida .card .im img,html.md-top .card .im img{filter:drop-shadow(0 14px 16px rgba(0,0,0,.36)) drop-shadow(0 4px 6px rgba(0,0,0,.20))}
