/* ===== Sticky top bar (glassy) ===== */
.sticky{position:sticky;top:0;z-index:8;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 4px 16px #1d2a2126}
.groups{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:10px 3%;touch-action:manipulation}
.groups button{border:0;border-radius:999px;background:#f3eee4;color:#7d6224;padding:8px 4px;font-size:13px;font-weight:800;transition:background .2s,color .2s,transform .18s cubic-bezier(.4,0,.2,1),box-shadow .2s}
.groups button:hover{background:#ecdfbd;transform:translateY(-1px)}
.groups button.on{background:linear-gradient(135deg,#193027,#24483a);color:#f3cf6b;box-shadow:0 3px 10px #1930274d;transform:translateY(-1px)}
.catgrid{display:flex;justify-content:flex-start;gap:8px;overflow-x:auto;padding:8px 3% 6px;scrollbar-width:none}
.catgrid::-webkit-scrollbar{display:none}
.catgrid button{flex:0 0 auto;border:0;border-radius:14px;background:#faf5ea;padding:7px 12px;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:4px;transition:background .2s,transform .18s}
.catgrid button span{font-size:18px}
.catgrid button:hover{background:#f1e6cd;transform:scale(1.04)}
.catgrid button.active{background:linear-gradient(135deg,#193027,#24483a);color:#f3cf6b;border:1.5px solid #d8b95d;box-shadow:0 4px 12px #19302740;transform:translateY(-2px) scale(1.03)}
/* ===== Section titles with gold ornament ===== */
.section-title{position:relative;text-align:center;color:#193027;font:800 22px Cairo,sans-serif;padding:6px 0;margin:26px 0 14px;display:flex;align-items:center;justify-content:center;gap:14px}
.section-title::before,.section-title::after{content:"";height:2px;width:min(30%,90px);background:linear-gradient(90deg,transparent,#b18b38,transparent);flex:0 1 auto}
/* ===== Cart bottom bar ===== */
.cartbar{position:fixed;bottom:0;inset-inline:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 5%;background:#102b21;color:#fff;font:600 14px Cairo,sans-serif;box-shadow:0 -6px 18px #0004;transform:translateY(105%);transition:transform .25s cubic-bezier(.4,0,.2,1);cursor:pointer;z-index:10;touch-action:manipulation}
.cartbar.show{transform:none}
.cartbar-qty{min-width:24px;height:24px;padding:0 6px;background:#f3cf6b;color:#193027;border-radius:999px;font:800 12px Cairo,sans-serif;display:grid;place-items:center}
.cartbar-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cartbar-total{color:#f3cf6b;white-space:nowrap}
/* ===== Top button ===== */
.top-btn{position:fixed;bottom:78px;inset-inline-end:16px;width:42px;height:42px;border:2px solid #b18b38;background:#193027;color:#f3cf6b;border-radius:999px;font-size:17px;font-weight:800;box-shadow:0 5px 14px #0005;opacity:0;pointer-events:none;transform:translateY(14px);transition:opacity .25s,transform .25s cubic-bezier(.4,0,.2,1);z-index:10;touch-action:manipulation}
.top-btn.show{opacity:1;pointer-events:auto;transform:none}
.top-btn:hover{transform:translateY(-2px)}
/* ===== Follow section (social icons) ===== */
.follow{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:18px}
.follow-caption{color:#cfcfcf;font:600 13px Cairo,sans-serif;letter-spacing:.3px}
.najd-hotline{margin:-7px 0 1px;color:#fff6df;font:700 12px Cairo,sans-serif;line-height:1.35;text-align:center;text-shadow:0 1px 3px #1d1209a8}
.social{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.social a{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#ffffff1a;backdrop-filter:blur(6px);border:1px solid #ffffff2e;transition:transform .2s,background .2s}
.social a:hover{transform:translateY(-3px);background:#ffffff33}
.social svg{width:26px;height:26px;fill:none;stroke:#f3cf6b;stroke-width:1.8}
/* ===== Search ===== */
.search{padding:8px 3%;position:relative}
.search-input{width:100%;height:44px;border:1.5px solid #d9c99a;background:#fffdf6;border-radius:999px;padding:0 18px 0 46px;padding-inline-start:46px;padding-inline-end:18px;font:600 14px Cairo,sans-serif;color:#193027;outline:none;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}
.search-input:focus{border-color:#b18b38;box-shadow:0 0 0 3px #b18b3833}
.search-btn{position:absolute;top:50%;transform:translateY(-50%);inset-inline-start:14px;width:32px;height:32px;border:0;background:transparent;color:#8a7a4a;cursor:pointer}
@media(max-width:600px){.search-input{height:42px;font-size:14px}.social a{width:50px;height:50px;border-radius:13px}}
/* ===== Toast notification ===== */
#toast{position:fixed;top:74px;inset-inline:0;margin:auto;width:fit-content;max-width:85vw;padding:11px 22px;background:#193027f2;color:#f3cf6b;border-radius:999px;font:700 14px Cairo,sans-serif;display:flex;align-items:center;gap:8px;z-index:22;box-shadow:0 8px 24px #0006;transform:translateY(-22px);opacity:0;pointer-events:none;transition:transform .28s cubic-bezier(.4,0,.2,1),opacity .28s}
#toast.show{transform:none;opacity:1}
#toast span{font-size:15px;color:#fff}
/* ===== Cart button in header ===== */
.cart-btn{display:flex;align-items:center;gap:7px;padding:8px 15px;background:linear-gradient(135deg,#193027,#24483a);color:#f3cf6b;border:0;border-radius:999px;font:700 14px Cairo,sans-serif;position:relative;cursor:pointer;box-shadow:0 4px 12px #1930274d;transition:transform .18s cubic-bezier(.4,0,.2,1),box-shadow .18s}
.cart-btn:hover{transform:translateY(-2px);box-shadow:0 7px 16px #19302766}
.cart-btn:active{transform:scale(.96)}
.cart-badge{position:absolute;top:-8px;inset-inline-end:-9px;min-width:21px;height:21px;padding:0 5px;background:#e53935;color:#fff;border:2px solid #fff;border-radius:999px;font:800 11px Cairo,sans-serif;display:grid;place-items:center;animation:badgePop .25s cubic-bezier(.34,1.56,.64,1)}
@keyframes badgePop{from{transform:scale(0)}to{transform:scale(1)}}
@media(max-width:600px){.cart-btn{padding:7px 12px;font-size:13px}.cart-lbl{display:none}}
/* ===== Home button ===== */
.home-btn{width:38px;height:38px;display:grid;place-items:center;border:0;background:#f3eee4;color:#7d6224;border-radius:999px;cursor:pointer;transition:background .2s,color .2s,transform .18s cubic-bezier(.4,0,.2,1),box-shadow .2s;touch-action:manipulation}
.home-btn:hover{background:#ecdfbd;color:#193027;transform:translateY(-2px);box-shadow:0 4px 10px #19302733}
.home-btn:active{transform:scale(.94)}
.home-btn svg{width:19px;height:19px}
/* ===== Item description under dish name ===== */
.item-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;width:100%;margin:4px 14px 0;padding:0;text-align:start;color:#5c6b62;font:500 11.5px/1.5 Cairo,sans-serif}
.item-body{display:flex !important;flex-direction:column !important;align-items:stretch !important;justify-content:flex-start !important;gap:0 !important;padding:8px 14px 0 !important}
.item p{margin:6px 14px 0 !important;white-space:nowrap}
@media(max-width:600px){.item-desc{font-size:10.5px;margin:4px 10px 0}.item p{margin:4px 10px 0 !important}.item{height:252px !important}.item img{height:122px !important}}
/* ===== Feedback button on the language landing page ===== */
.fb-landing{width:100%;margin:14px 0 4px;padding:13px;border:1.5px solid #d8b95d;border-radius:999px;background:linear-gradient(135deg,#0f2820,#173429);color:#f3cf6b;font:800 15px Cairo,sans-serif;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 6px 18px #0005;transition:transform .2s cubic-bezier(.4,0,.2,1),box-shadow .2s,border-color .2s;letter-spacing:.2px}
.fb-landing svg{width:19px;height:19px;stroke:#f3cf6b;flex:0 0 auto}
.fb-landing .fb-sub{color:#b99c57;font-weight:600;font-size:12.5px}
.fb-landing:hover{transform:translateY(-2px);box-shadow:0 9px 22px #0006;border-color:#e7c970}
.fb-landing:active{transform:scale(.96)}
@media(max-width:600px){.fb-landing{padding:12px;font-size:14px}.fb-landing svg{width:17px;height:17px}.fb-landing .fb-sub{font-size:11.5px}}
/* ===== Luxurious page transition layer ===== */
.transition-layer{position:fixed;inset:0;z-index:25;background:radial-gradient(circle at 50% 38%, #24483a 0%, #193027 62%, #0f1f18 100%);display:grid;place-items:center;pointer-events:none;opacity:0;transition:opacity .34s cubic-bezier(.4,0,.2,1)}
.transition-layer.visible{opacity:1}
.transition-layer > div{color:#f3cf6b;animation:tRise .34s cubic-bezier(.4,0,.2,1) both}
@keyframes tRise{from{opacity:0;transform:translateY(26px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.transition-layer,.transition-layer > div{transition:none;animation:none}}
/* ===== Menu header layout ===== */
.menu-header{position:relative;justify-content:center;min-height:72px;padding:8px 3%}
.brand-lockup{position:absolute;inset-inline-end:3%;top:50%;transform:translateY(-50%);display:grid;place-items:center}
.menu-wordmark{width:48px;height:48px;object-fit:contain}
.header-actions{position:absolute;inset-inline-start:3%;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:10px;direction:ltr}
.header-actions .cart-btn{width:48px;height:48px;padding:0;display:grid;place-items:center;border-radius:50%}
.header-actions .cart-icon{width:22px;height:22px}
.period-back-btn{position:absolute;inset-inline-end:calc(3% + 64px);top:50%;transform:translateY(-50%);width:46px;height:46px;display:grid;place-items:center;padding:0;border:1px solid #d8b95d;border-radius:50%;background:#fff;color:#193027;box-shadow:0 3px 10px #19302724}
.period-back-btn svg{width:23px;height:23px}
.period-back-btn:hover{background:#f3eee4}
.hdr-search{position:relative}.hdr-search .search-popup{position:absolute;inset-inline-start:0;top:calc(100% + 10px);width:min(280px,78vw);z-index:25}
@media(max-width:600px){.menu-header{min-height:63px}.brand-lockup{inset-inline-end:12px}.header-actions{inset-inline-start:12px;gap:7px}.header-actions .cart-btn{width:42px;height:42px}.period-back-btn{inset-inline-end:64px;width:42px;height:42px}.period-back-btn svg{width:21px;height:21px}}
/* Physical placement keeps the controls stable in RTL and LTR. */
.brand-lockup{right:76px!important;left:auto!important;z-index:31;transform:translateY(-50%) scale(1.45)!important;transform-origin:center}
.period-back-btn{right:16px!important;left:auto!important;z-index:32!important;display:grid!important;visibility:visible!important;opacity:1!important;background:#193027!important;color:#f3cf6b!important;border-color:#d8b95d!important}
@media(max-width:600px){.brand-lockup{right:64px!important;transform:translateY(-50%) scale(1.3)!important}.period-back-btn{right:10px!important}}
.brand-lockup{transform:translateY(-50%)!important}
.menu-wordmark{width:76px!important;height:68px!important}
.menu-wordmark-text{display:block;color:#193027;font:700 25px/1.2 'Reem Kufi',Cairo,sans-serif;white-space:nowrap;text-shadow:0 2px 8px #19302718}
@media(max-width:600px){.brand-lockup{transform:translateY(-50%)!important}.menu-wordmark{width:60px!important;height:54px!important}}
@media(max-width:600px){.menu-wordmark-text{font-size:20px}}
.menu-header{z-index:40!important}
.menu-wordmark{width:96px!important;height:84px!important}
.search-popup{position:absolute!important;top:54px!important;left:0!important;right:auto!important;width:min(290px,calc(100vw - 24px))!important;padding:6px!important;background:#fff!important;border:1px solid #e5d3b5!important;border-radius:18px!important;box-shadow:0 10px 28px #19302738!important;z-index:60!important}
.search-popup .search-input{width:100%!important}
@media(max-width:600px){.menu-wordmark{width:76px!important;height:68px!important}.search-popup{top:48px!important;width:min(260px,calc(100vw - 24px))!important}}

/* ===== Language picker: shared by the meal-period screen and menu header ===== */
.language-picker{position:relative;z-index:80;font-family:Cairo,sans-serif}
.language-picker summary{list-style:none}
.language-picker summary::-webkit-details-marker{display:none}
.language-picker-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 13px;border:1px solid #d8b95d;border-radius:999px;background:linear-gradient(135deg,#fffdf7,#f5ecd8);color:#193027;font:800 13px/1 Cairo,sans-serif;cursor:pointer;box-shadow:0 4px 14px #19302722;transition:transform .18s,box-shadow .18s,background .18s}
.language-picker-button:hover{transform:translateY(-2px);box-shadow:0 7px 18px #19302733;background:#fffaf0}
.language-picker-icon{display:grid;place-items:center;width:20px;height:20px;color:#b18b38}
.language-picker-icon svg{width:20px;height:20px}
.language-picker-label{white-space:nowrap}
.language-picker-chevron{font-size:17px;line-height:.7;color:#b18b38;transform:translateY(-2px)}
.language-picker-menu{position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:166px;padding:6px;border:1px solid #e3d2a8;border-radius:16px;background:#fffdf8;box-shadow:0 12px 30px #19302735}
.language-picker-menu button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:0;border-radius:11px;background:transparent;color:#193027;font:700 13px Cairo,sans-serif;cursor:pointer;text-align:start}
.language-picker-menu button:hover,.language-picker-menu button.selected{background:#f3eee4;color:#8b6a25}
.language-picker-menu small{color:#9c8a61;font:600 11px Cairo,sans-serif}
.header-language-picker{display:block}
.header-language-picker .language-picker-button{width:46px;height:46px;padding:0;border-radius:50%;gap:0}
.header-language-picker .language-picker-label,.header-language-picker .language-picker-chevron{display:none}
.header-language-picker .language-picker-icon,.header-language-picker .language-picker-icon svg{width:22px;height:22px}
.header-language-picker .language-picker-menu{inset-inline-start:0;inset-inline-end:auto}
.meal-language-picker{margin:10px auto 13px}
.meal-language-picker .language-picker-button{min-width:184px}
@media(max-width:600px){.language-picker-button{min-height:42px;padding:7px 11px;font-size:12px}.header-language-picker .language-picker-button{width:42px;height:42px}.meal-language-picker{margin:7px auto 11px}.meal-language-picker .language-picker-button{min-width:172px}.language-picker-menu{min-width:152px}}

/* Header language control matches the search and cart controls. */
.header-language-picker .language-picker-button{background:linear-gradient(135deg,#193027,#24483a);color:#f3cf6b;border:1px solid #d8b95d;box-shadow:0 4px 12px #1930274d}
.header-language-picker .language-picker-icon{color:#f3cf6b}
.header-language-picker .language-picker-button:hover{background:linear-gradient(135deg,#24483a,#193027);box-shadow:0 7px 16px #19302766}
.header-language-picker .language-picker-button:active{transform:scale(.96)}
.header-language-picker .language-picker-button:focus-visible{outline:3px solid #f3cf6b88;outline-offset:3px}

/* Hide only the page scrollbar; wheel, touch and keyboard scrolling remain enabled. */
html{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar{width:0;height:0;display:none}
body{scrollbar-width:none;-ms-overflow-style:none}
body::-webkit-scrollbar{width:0;height:0;display:none}

/* ===== Mobile text safety: long category and dish names stay inside their cards ===== */
@media(max-width:600px){
  .catgrid{justify-content:flex-start;gap:8px;overflow-x:auto}
  .catgrid button{flex:0 0 auto;width:auto;min-width:88px!important;max-width:120px;min-height:0;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-align:center;line-height:1.25;padding:7px 8px}
  .menu{width:100%;max-width:100%;overflow-x:hidden}
  .menu-section{width:100%;max-width:100%;min-width:0}
  .section-title{display:grid!important;grid-template-columns:minmax(18px,1fr) minmax(0,auto) minmax(18px,1fr);width:100%;min-width:0;box-sizing:border-box;font-size:22px!important;line-height:1.35!important;gap:8px!important;max-width:100%;white-space:normal;padding-inline:4px}
  .section-title>span{grid-column:2;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center}
  .section-title::before,.section-title::after{width:auto!important;min-width:0;flex:none!important}
  .item h3{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;word-break:normal;white-space:normal!important;line-height:1.35!important;min-height:35px}
}

/* ===== Dish detail modal polish v41: consistent image frame and Najd controls only ===== */
.dish-modal{padding:16px;background:rgba(11,27,20,.76);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.dish-modal section{width:min(560px,100%);max-height:min(88dvh,780px);padding:18px 18px 20px;background:#fffdf5;border:1px solid #dfc46c;border-radius:26px;box-shadow:0 20px 52px #07130ddd;overflow:auto}
.dish-modal section>img{display:block!important;width:100%!important;height:clamp(250px,36dvh,390px)!important;max-height:none!important;object-fit:cover!important;object-position:center!important;margin:0 0 16px!important;border:1px solid #ead9a4!important;border-radius:18px!important;background:#f3ead7!important;box-shadow:0 7px 18px #1930271f}
.dish-modal .close{top:27px;inset-inline-end:27px;width:46px;height:46px;padding:0;display:grid;place-items:center;border:2px solid #f1cf70!important;border-radius:50%;background:linear-gradient(135deg,#254c3d,#102b21)!important;color:#f7d978!important;font:700 31px/1 Cairo,sans-serif!important;box-shadow:0 5px 14px #102b2170;z-index:2;transition:transform .16s cubic-bezier(.23,1,.32,1),background .16s,box-shadow .16s}
.dish-modal .close:hover{background:linear-gradient(135deg,#315f4c,#193027)!important;box-shadow:0 8px 18px #102b2180;transform:rotate(8deg)}
.dish-modal .close:active{transform:scale(.94)}
.dish-modal .dm-add{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin-top:4px;padding:10px 18px;border:1px solid #d8b95d;border-radius:15px;background:linear-gradient(135deg,#193027,#285340);color:#f7d978;font:800 18px/1.25 Cairo,sans-serif;box-shadow:0 6px 15px #1930273d;cursor:pointer;transition:transform .16s cubic-bezier(.23,1,.32,1),box-shadow .16s,background .16s}
.dish-modal .dm-add:hover{background:linear-gradient(135deg,#244b3b,#32614c);box-shadow:0 9px 20px #1930274f;transform:translateY(-1px)}
.dish-modal .dm-add:active{transform:scale(.98)}
@media(max-width:600px){.dish-modal{padding:12px}.dish-modal section{width:100%;max-height:88dvh;padding:14px 14px 16px;border-radius:23px}.dish-modal section>img{height:clamp(230px,35dvh,340px)!important;margin-bottom:14px!important;border-radius:16px!important}.dish-modal .close{top:23px;inset-inline-end:23px;width:44px;height:44px;font-size:29px!important}.dish-modal .dm-add{min-height:50px;border-radius:14px;font-size:17px}}

/* Landing screen: elevate the Najd mark without changing menu interactions. */
.welcome .welcome-logo{width:172px;height:172px;margin:0 auto 14px;object-fit:contain;filter:drop-shadow(0 7px 16px #0008)}
.period-welcome .welcome-logo{width:164px;height:164px;margin-bottom:16px}
@media(max-width:600px){.welcome .welcome-logo{width:180px;height:180px;margin-bottom:13px}.period-welcome .welcome-logo{width:170px;height:170px;margin-bottom:15px}}
@media(min-width:601px){.welcome .welcome-logo{width:190px;height:190px}.period-welcome .welcome-logo{width:180px;height:180px}}

/* Prominent landing logo — mobile-first */
@media (max-width: 600px){.period-welcome .welcome-logo{width:290px;height:290px;margin:16px auto 20px}}
@media (min-width: 601px){.period-welcome .welcome-logo{width:250px;height:250px;margin:12px auto 18px}}

/* Fixed meal-period landing: all essential controls remain in one phone viewport. */
@media (max-width: 600px){
  html:has(.period-landing),body:has(.period-landing){height:100%;overflow:hidden;overscroll-behavior:none}
  .period-landing{height:100dvh;min-height:100dvh;display:block;overflow:hidden}
  .period-welcome{height:100%;width:min(500px,calc(100vw - 32px));display:flex!important;flex-direction:column;justify-content:center;box-sizing:border-box;padding:max(10px,env(safe-area-inset-top)) 0 max(10px,env(safe-area-inset-bottom))}
  .period-welcome .welcome-logo{width:clamp(205px,61vw,245px);height:clamp(205px,61vw,245px);margin:0 auto 8px;flex:0 0 auto}
  .period-welcome .meal-language-picker{margin:0 auto 9px;justify-content:center;flex:0 0 auto}
  .period-welcome .period-prompt{margin:0 0 8px;line-height:1.25;font-size:clamp(21px,5.8vw,26px);flex:0 0 auto}
  .period-welcome .period-row{width:100%;flex:0 0 auto}
  .period-welcome .period-row button{margin:5px 0;padding:12px 16px;min-height:58px;font-size:clamp(19px,5.8vw,24px);line-height:1.1;box-shadow:0 7px 18px #071a1352}
  .period-welcome .follow{margin-top:13px;gap:7px;flex:0 0 auto}
  .period-welcome .follow-caption{font-size:14px;line-height:1.2}
  .period-welcome .najd-hotline{margin:0;font-size:clamp(11px,3.1vw,13px);line-height:1.35}
  .period-welcome .social{margin-top:4px;gap:12px;flex:0 0 auto}
  .period-welcome .social a{width:42px;height:42px;font-size:20px;border-radius:50%}
}

/* Najd cart — a warm, dark-green and gold treatment without changing cart behavior. */
.cart-modal {
  padding: 18px;
  background: rgba(9, 28, 21, .76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.cart-modal section {
  width: min(540px, 100%);
  max-height: min(76vh, 650px);
  padding: 25px 20px 20px;
  overflow: auto;
  color: #183329;
  background: linear-gradient(145deg, #fffdf5 0%, #f5edda 100%);
  border: 2px solid #d7b65a;
  border-radius: 27px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255,255,255,.96);
}
.cart-modal section::-webkit-scrollbar { width: 5px; }
.cart-modal section::-webkit-scrollbar-thumb { background: #c49b36; border-radius: 99px; }
.cart-modal .close {
  top: 13px;
  inset-inline-end: 13px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid #e6ca76;
  border-radius: 50%;
  background: #16362a;
  color: #f6d979;
  font: 400 31px/1 Arial, sans-serif;
  box-shadow: 0 5px 12px rgba(16, 48, 36, .22);
  transition: transform .16s ease, background .16s ease;
}
.cart-modal .close:active { transform: scale(.93); background: #0d281e; }
.cart-modal h2 {
  margin: 3px 48px 18px !important;
  color: #15352a;
  font-family: Amiri, serif;
  font-size: clamp(31px, 8vw, 39px);
  font-weight: 700;
  letter-spacing: .01em;
}
.cart-modal .line {
  gap: 11px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(185, 144, 47, .28);
}
.cart-modal .line img {
  flex: 0 0 auto;
  width: 66px;
  height: 58px;
  object-fit: cover;
  border: 1.5px solid #d7b65a;
  border-radius: 13px;
  background: #f4ead2;
}
.cart-modal .line b {
  min-width: 0;
  color: #143126;
  font-family: Amiri, serif;
  font-size: 18px;
  line-height: 1.18;
}
.cart-modal .line small {
  margin-top: 5px;
  color: #a77c1a;
  font-family: Cairo, sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.cart-modal .line span {
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d9be70;
  border-radius: 14px;
  background: #fbf4e2;
  color: #17362a;
  font: 800 14px Cairo, sans-serif;
}
.cart-modal .line button {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid #d7b65a;
  border-radius: 10px;
  background: #173b2d;
  color: #f7d976;
  font: 800 21px/1 Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(14, 45, 33, .16);
  transition: transform .15s ease, background .15s ease;
}
.cart-modal .line button:active { transform: scale(.92); background: #0d281e; }
.cart-modal p {
  margin: 22px 0 8px;
  padding: 25px 16px;
  color: #745b21;
  border: 1px dashed #d2b461;
  border-radius: 16px;
  background: rgba(255,255,255,.45);
  text-align: center;
  font: 700 19px Amiri, serif;
}
.cart-modal footer {
  align-items: center;
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid #d2ad4c;
  border-radius: 16px;
  background: linear-gradient(125deg, #102e23, #1d4b38);
  color: #fbefc1;
  box-shadow: 0 7px 18px rgba(14, 44, 33, .2);
  font: 700 21px Amiri, serif;
}
.cart-modal footer strong {
  color: #f4cf65;
  direction: ltr;
  font: 800 18px Cairo, sans-serif;
}
@media (max-width: 420px) {
  .cart-modal { padding: 14px; }
  .cart-modal section { max-height: 78vh; padding: 23px 15px 16px; border-radius: 24px; }
  .cart-modal .line img { width: 59px; height: 53px; }
  .cart-modal .line b { font-size: 17px; }
  .cart-modal footer { font-size: 20px; }
}

/* Optional landing video: isolated from every menu interaction and backed by a
   poster image when a mobile connection delays or prevents autoplay. */
.hero-video-wall { position:absolute; inset:0; overflow:hidden; background:#4a321d; pointer-events:none; }
.hero-video,.hero-video-fallback { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.hero-video { z-index:1; object-fit:cover; object-position:center; opacity:0; transition:opacity 220ms ease-out; }
.hero-video-fallback { z-index:2; background-position:center; background-size:cover; background-repeat:no-repeat; filter:saturate(.82) brightness(.8); transition:opacity 220ms ease-out; }
.hero-video-wall.video-ready .hero-video { opacity:1; }
.hero-video-wall.video-ready .hero-video-fallback { opacity:0; }
@media (prefers-reduced-motion: reduce) { .hero-video { display:none; } }

/* ===== Mobile background pattern fix =====
   The base theme paints this pattern on body; fixed backgrounds are frequently
   skipped while a phone browser scrolls. */
@media (max-width: 760px) {
  body {
    background-image: url("/assets/images/najd-pattern-bg.png?v=mobile-pattern-2") !important;
    background-repeat: repeat !important;
    background-attachment: scroll !important;
    background-position: center top !important;
    background-size: 200px !important;
  }
}

/* Keep the meal-period screen branded while the optional hero video buffers.
   Do not use a dish image here: it avoids a brief dish-photo flash on refresh. */
.hero-video-fallback.hero-video-brand-fallback {
  background:
    radial-gradient(circle at 50% -15%, rgba(212,175,55,.19), transparent 48%),
    linear-gradient(145deg, #1a0f0a 0%, #2c1810 50%, #132b22 100%);
  filter:none;
}


/* Premium menu highlights: overlays only, so the food image keeps its exact dimensions. */
.item { isolation: isolate; }
.item-highlights { position: absolute; top: 10px; inset-inline: 10px; z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 5px; pointer-events: none; direction: rtl; }
.item-temporarily-unavailable{border:2px solid #bd3c35 !important;background:#fff8f6 !important;box-shadow:0 6px 20px #8e251d24 !important}
.item img.najd-placeholder-image,.dish-modal img.najd-placeholder-image{box-sizing:border-box;object-fit:contain !important;padding:18px;background:radial-gradient(circle at 50% 38%,#fff8e8 0%,#efe0bd 62%,#d6bd83 100%) !important}
.dish-modal img.najd-placeholder-image{padding:32px;max-height:340px !important}
.item-temporarily-unavailable>img{filter:saturate(.55) brightness(.87)}
.item-temporarily-unavailable .item-price{color:#8d514a !important}
.item-unavailable-label,.dish-unavailable-label{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;padding:5px 11px;border:1px solid #c9463d;border-radius:999px;background:#b92f2a;color:#fff !important;font:800 11px/1.5 Cairo,sans-serif;box-shadow:0 3px 9px #8e251d30;text-align:center}
.item-unavailable-label{margin:6px 0 2px}
.dish-unavailable-label{font-size:14px;padding:10px 18px}
@media(max-width:600px){.item-unavailable-label{font-size:9px;padding:4px 7px}}
.item-highlight { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; font: 800 10px/1.2 Cairo, sans-serif; white-space: nowrap; box-shadow: 0 3px 10px rgba(25,20,12,.24); backdrop-filter: blur(5px); }
.item-highlight.featured { background: rgba(177,139,56,.96); color: #fffaf0; }
.item-highlight.popular { background: rgba(25,48,39,.94); color: #f4d887; }
.item-highlight.new { background: rgba(45,112,91,.94); color: #f3fff9; }
.item-highlight.spicy { background: rgba(173,70,42,.95); color: #fff5ef; }
.item.item-featured { box-shadow: 0 0 0 1.5px rgba(177,139,56,.85), 0 6px 18px rgba(58,40,27,.18); }
.item.item-featured:hover { box-shadow: 0 0 0 1.5px rgba(177,139,56,1), 0 12px 26px rgba(58,40,27,.24); }
@media(max-width:600px) { .item-highlights { top: 8px; inset-inline: 8px; gap: 4px; } .item-highlight { padding: 3px 6px; font-size: 9px; } }


/* Takeaway menu identity and checkout action */
.takeaway-banner{display:inline-flex;flex-direction:column;align-items:center;gap:2px;width:min(440px,92vw);margin:14px auto 18px;padding:11px 22px 12px;border:1px solid rgba(245,211,139,.78);border-radius:18px;background:linear-gradient(135deg,rgba(20,55,44,.94),rgba(30,76,57,.9));color:#fff8e8;box-shadow:0 9px 24px rgba(0,0,0,.2);text-align:center}
.takeaway-banner strong{font:800 clamp(18px,3vw,25px)/1.3 'Reem Kufi',Cairo,sans-serif;color:#f7d58d}
.takeaway-banner span{font:600 clamp(11px,1.8vw,14px)/1.5 Cairo,sans-serif;color:#fff8e8;opacity:.94}
.cart-modal footer{display:flex;flex-wrap:wrap;gap:10px}
.cart-modal footer .checkout-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:49px;min-width:185px;margin-inline-start:auto;padding:10px 18px;border:1.5px solid #f2d47a;border-radius:15px;background:linear-gradient(135deg,#d89a36,#bd7429);color:#fffdf4;font:800 16px/1.2 Cairo,sans-serif;box-shadow:0 6px 15px rgba(120,70,17,.28);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.cart-modal footer .checkout-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cart-modal footer .checkout-btn:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 8px 19px rgba(120,70,17,.34)}
.cart-modal footer .checkout-btn:active{transform:scale(.97)}
@media(max-width:420px){.takeaway-banner{width:92vw;padding:10px 14px}.cart-modal footer .checkout-btn{flex:1 1 100%;width:100%;margin-inline-start:0}}


/* Configurable meal period time labels */
.period-welcome .period-row button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.period-row .period-label{display:block}
.period-row .period-time{display:block;margin:0;color:#f3d77d;font:600 .54em/1.25 Cairo,sans-serif;opacity:.96}
.period-welcome .period-row-closed button,
.period-welcome .period-row-closed button:hover,
.period-welcome .period-row-closed button:focus-visible{background:linear-gradient(135deg,#555b58,#343a38)!important;border-color:#8e9690!important;color:#eceeeb!important;box-shadow:0 4px 12px #071a1340!important;filter:grayscale(1);opacity:.9;cursor:not-allowed;transform:none!important}
.period-row-closed .period-time{color:#e0e3df!important;opacity:1}
@media(max-width:600px){.period-welcome .period-row .period-time{font-size:clamp(10px,3.1vw,12px)}}
.subcategory-shell{height:0;opacity:0;overflow:hidden;border-top:1px solid transparent;transform:translateY(-7px);transition:opacity .18s ease,transform .22s ease,border-color .22s ease}
.subcategory-shell.is-visible{height:49px;opacity:1;transform:translateY(0);border-top-color:rgba(177,139,56,.22)}
.subcategory-tabs{display:flex;align-items:center;gap:8px;min-height:48px;padding:7px 3%;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.subcategory-tabs::-webkit-scrollbar{display:none}
.subcategory-tabs button{flex:none;border:1px solid #cfb57c;border-radius:999px;background:#fffaf0;color:#5e421d;padding:7px 15px;font:800 13px/1.4 Cairo,sans-serif;transition:background .18s,color .18s,box-shadow .18s,transform .18s}
.subcategory-tabs button:hover{background:#f3e7cb;transform:translateY(-1px)}
.subcategory-tabs button.active{background:#193027;color:#f4d783;border-color:#193027;box-shadow:0 3px 10px #19302738}
.subcategory-group{margin:0 0 28px}
.subcategory-group[hidden]{display:none!important}
.subcategory-heading{display:flex;align-items:center;gap:12px;margin:4px 0 16px;color:#193027;font:800 19px/1.5 'Reem Kufi',Cairo,sans-serif}
.subcategory-heading::after{content:'';height:1px;flex:1;background:linear-gradient(to left,#b18b38,#b18b3800)}
.subcategory-empty{margin:0 0 18px;padding:20px;border:1px dashed #c7ad78;border-radius:15px;background:#fffaf0;color:#6b573b;text-align:center}
.sticky:has(.subcategory-shell.is-visible)+.menu .menu-section{scroll-margin-top:228px}
.item .item-body h3{font-size:17px!important;line-height:1.4!important}
@media(max-width:600px){.subcategory-shell.is-visible{height:46px}.subcategory-tabs{gap:6px;min-height:45px;padding:6px 3%}.subcategory-tabs button{font-size:12px;padding:7px 12px}.subcategory-heading{font-size:17px;margin-bottom:12px}.item .item-body h3{font-size:15px!important;min-height:42px}}
@media(prefers-reduced-motion:reduce){.subcategory-shell,.subcategory-tabs button{transition:none}}
