:root{
  --new:#ed7a18;
  --new-dark:#bd5608;
  --new-light:#fff5e9;
  --offer:#a61b2b;
  --offer-dark:#7c1220;
  --offer-light:#fff2f2;
  --navy:#073956;
  --navy-deep:#052b43;
  --gold:#f3ca62;
  --gold-soft:#f9e8b2;
  --cream:#fffaf0;
  --paper:#fffdf8;
  --ink:#17364a;
  --muted:#7c8589;
  --line:#eadbb8;
  --shadow:0 12px 32px rgba(7,57,86,.09);
}
*{box-sizing:border-box}
html{background:var(--cream)}
body{margin:0;background:var(--cream);color:var(--ink);font-family:"Cairo",Tahoma,Arial,sans-serif;min-height:100vh}
.hero{position:relative;overflow:hidden;text-align:center;padding:30px 18px 28px;background:radial-gradient(ellipse at 50% 0%,#145273 0%,var(--navy) 55%,var(--navy-deep) 100%);border-bottom:4px solid var(--gold);box-shadow:0 5px 22px #052b4320}
.hero:before,.hero:after{content:"";position:absolute;width:230px;height:230px;border:1px solid #f3ca6230;border-radius:50%;pointer-events:none}
.hero:before{top:-165px;right:-100px}.hero:after{bottom:-190px;left:-90px}
.menu-toolbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:center;gap:12px;padding:9px 16px;background:var(--navy);border-bottom:1px solid #f3ca6280;box-shadow:0 3px 12px #052b4320}
.brand-panel{flex:0 0 auto;width:clamp(78px,23vw,118px);padding:4px;border:1px solid #f3ca6280;border-radius:9px;background:#052f49}
.brand-logo{display:block;width:100%;height:auto;border-radius:5px}
.menu-search{width:100%;max-width:520px;min-width:0;min-height:44px;padding:8px 13px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--navy);font:inherit;font-size:16px}
.menu-search:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.hero-copy{position:relative;z-index:1}
.eyebrow{margin:10px 0 0;color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.5px}
h1{margin:2px 0;color:#fff8e8;font-size:27px;font-weight:800}
.social-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 8px;margin:10px 0}
.social-links a{display:grid;place-items:center;width:44px;height:44px;border:1px solid #f3ca6280;border-radius:50%;color:#fff8e8}
.social-links svg{width:22px;height:22px;fill:currentColor}
.social-links a:hover,.social-links a:focus-visible{background:var(--gold);color:var(--navy-deep)}
.ornament{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--gold);font-size:15px}
.ornament i{display:block;width:48px;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}.ornament i:last-child{transform:scaleX(-1)}
.container{width:min(100%,1050px);margin:auto;padding:23px 16px 48px;min-height:230px}
.status{text-align:center;color:var(--muted);font-size:13px;padding:5px 0 18px;min-height:27px}
.category-bar{position:sticky;top:var(--toolbar-height);z-index:5;display:flex;align-items:center;gap:6px;background:var(--cream);padding:6px 0 10px;margin-bottom:10px}
.category-bar:has(.categories:empty){display:none}
.categories{display:flex;flex:1;min-width:0;justify-content:safe center;gap:9px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#c0a468 transparent;padding:2px 0 5px}
.category-scroll{flex:none;width:34px;height:38px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--navy);font-size:23px;line-height:1;cursor:pointer}
.category-scroll:disabled{opacity:.45;cursor:default}
.category{flex:none;white-space:nowrap;border:1px solid var(--line);background:var(--paper);border-radius:22px;padding:8px 17px;color:var(--navy);font-size:13px;font-weight:700;cursor:pointer;transition:.2s}
.category:hover{border-color:var(--gold)}.category.active{background:var(--navy);border-color:var(--navy);color:var(--gold)}
.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.product{overflow:hidden;background:var(--paper);border:1px solid #eee3cd;border-radius:17px;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.product:hover{transform:translateY(-3px);box-shadow:0 15px 32px #07395618}
.product img{display:block;width:100%;aspect-ratio:1.18/1;object-fit:cover;background:#f5eedf}
.product-info{padding:12px 14px 15px;text-align:center}
.product h3{font-size:15px;line-height:1.7;margin:0 0 5px;font-weight:700;color:var(--navy)}
.price{display:inline-block;color:var(--navy);font-size:14px;font-weight:800;padding:3px 13px;border-radius:20px;background:#f9edcc;border:1px solid #f0d991}
.empty{text-align:center;padding:45px 15px;color:var(--muted)}
.empty-icon{font-size:45px;color:#d8b85f}.empty h2{font-size:19px;color:var(--navy);margin:7px}.empty p{font-size:13px}
footer{display:flex;flex-direction:column;align-items:center;gap:1px;text-align:center;padding:22px 15px 25px;background:#f7f0df;border-top:1px solid var(--line);color:var(--navy)}
.footer-heart{color:#d7a94e;font-size:17px}footer strong{font-size:15px}footer .footer-en{font-family:Georgia,serif;font-size:11px;letter-spacing:2px;color:#9a7833}footer small{margin-top:5px;color:#8b8170;font-size:11px}
.footer-contact{display:inline-block;padding:7px 13px;color:var(--navy);font-size:14px;font-weight:700;text-underline-offset:3px}
[hidden]{display:none!important}
@media(min-width:650px){.hero{padding-top:34px;padding-bottom:30px}.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.container{padding-top:28px}}
@media(min-width:950px){.products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:390px){.products{grid-template-columns:1fr}.product{display:grid;grid-template-columns:42% 1fr}.product img{height:100%;aspect-ratio:auto;min-height:120px}.product-info{align-self:center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

.category.category-offers{background:var(--offer);border-color:var(--offer);color:#fff}
.category.category-offers:hover,.category.category-offers.active{background:var(--offer-dark);border-color:var(--offer-dark)}
.category.category-offers.active{box-shadow:inset 0 0 0 1px #fff}
.product.product-offer{background:var(--offer-light);border-color:var(--offer)}
.offer-badge{display:inline-block;margin-bottom:5px;padding:2px 9px;border-radius:10px;background:var(--offer);color:#fff;font-size:12px;font-weight:800}
.product-offer .price{background:#fff;border-color:#e8acb3;color:var(--offer-dark)}

.offer-prices{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px 9px}
.old-price{color:#69545a;font-size:13px;text-decoration-thickness:2px}

.menu-cover{position:relative;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.cover-images{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:inherit}
.cover-images::-webkit-scrollbar{display:none}
.cover-images img{display:block;flex:0 0 100%;width:100%;min-width:0;aspect-ratio:16 / 5;object-fit:contain;scroll-snap-align:start}
.cover-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border:1px solid var(--gold);border-radius:50%;background:var(--navy-deep);color:#fff;font-size:20px;cursor:pointer}
.cover-prev{inset-inline-start:8px}
.cover-next{inset-inline-end:8px}
.cover-arrow:disabled{opacity:.4;cursor:default}

.status:empty{display:none}
.container:has(.menu-cover:not([hidden])){padding-top:8px}
@media(max-width:649px){
  .menu-cover{margin-inline:-12px;margin-bottom:6px;border-radius:10px}
  .cover-arrow{width:30px;height:30px;padding:0;font-size:16px}
}

/* قسم جديدنا: يظهر فقط عند وجود منتجات في مجلد جديدنا */
.category.category-new{background:var(--new);border-color:var(--new);color:#fff}
.category.category-new:hover,.category.category-new.active{background:var(--new-dark);border-color:var(--new-dark);color:#fff}
.category.category-new.active{box-shadow:inset 0 0 0 1px #fff}

/* فواصل الأقسام أثناء التمرير، مع تمييز واضح للعروض وجديدنا */
.products{display:block}
.product-section{margin:6px 0 34px;scroll-margin-top:calc(var(--toolbar-height, 75px) + 82px)}
.product-section:first-child{margin-top:0}
.section-heading{display:flex;align-items:center;gap:14px;margin:0 0 17px;padding:11px 16px;border-radius:12px;background:#eef3f5;border-right:5px solid var(--navy)}
.section-heading h2{margin:0;white-space:nowrap;color:var(--navy);font-size:clamp(17px,2.8vw,22px);font-weight:800}
.section-rule{height:1px;min-width:12px;flex:1;background:currentColor;opacity:.22}
.section-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.section-offers .section-heading{background:var(--offer);border-right-color:#78121f;box-shadow:0 5px 18px #a61b2b20}
.section-new .section-heading{background:linear-gradient(105deg,#e87717,#ff9e38);border-right-color:#b75108;box-shadow:0 5px 18px #d86b112b}
.section-offers .section-heading h2,.section-new .section-heading h2{color:#fff}
.section-offers .section-rule,.section-new .section-rule{color:#fff;opacity:.58}
.product.product-new{background:var(--new-light);border-color:#f4bb7f}
.new-badge{display:inline-block;margin-bottom:5px;padding:2px 10px;border-radius:10px;background:var(--new);color:#fff;font-size:12px;font-weight:800}
.product-new .price{background:#fff7e9;border-color:#edbd84;color:var(--new-dark)}
@media(min-width:650px){.section-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(min-width:950px){.section-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:390px){.section-products{grid-template-columns:1fr}}

/* سلة الطلب — إضافة مستقلة لا تغيّر تخطيط المنيو */
.add-to-cart{display:block;width:100%;margin-top:10px;padding:9px 7px;border:1px solid var(--navy);border-radius:9px;background:var(--navy);color:#fff;font:700 12px "Cairo",sans-serif;cursor:pointer}
.add-to-cart:hover,.add-to-cart:focus-visible{background:#145273}
.cart-fab{position:fixed;inset-inline-end:18px;bottom:18px;z-index:20;display:flex;align-items:center;gap:8px;border:0;border-radius:50px;background:#128c51;color:#fff;box-shadow:0 8px 28px #0003;padding:12px 16px;font:800 15px "Cairo",sans-serif;cursor:pointer}
.cart-fab:hover{background:#0d7543}
.cart-count{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:#fff;color:#12683c;padding:0 5px;font-size:13px}
.cart-backdrop{position:fixed;inset:0;background:#061d2ab0;z-index:30}
.cart-panel{position:fixed;top:0;bottom:0;inset-inline-end:0;z-index:31;width:min(440px,100vw);display:flex;flex-direction:column;background:var(--paper);box-shadow:0 0 35px #0003;overflow:hidden}
body.cart-open{overflow:hidden}
.cart-head{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:var(--navy);color:#fff}
.cart-head h2{margin:0;font-size:19px}
.cart-close{background:transparent;border:1px solid #fff8;color:#fff;border-radius:8px;font-size:28px;width:40px;height:40px;cursor:pointer}
.cart-items{flex:1;overflow-y:auto;padding:16px}
.cart-row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center}
.cart-row img{width:78px;height:78px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}
.cart-row-info{flex:1;min-width:0}
.cart-row-info strong{display:block;font-size:14px}
.cart-row-info small{display:block;font-size:12px;color:#596774;margin-top:3px}
.cart-quantity{display:flex;align-items:center;gap:10px;margin-top:8px}
.cart-quantity button{min-width:31px;height:31px;border:1px solid var(--line);background:#fff;border-radius:7px;font-size:18px;font-weight:bold;cursor:pointer}
.cart-quantity span{min-width:20px;text-align:center;font-weight:bold}
.cart-quantity .cart-remove{margin-inline-start:auto;font:700 12px "Cairo",sans-serif;padding:0 9px;color:#a61b2b}
.cart-bottom{border-top:1px solid var(--line);padding:16px 20px;background:#fffaf0}
.cart-total-line{display:flex;justify-content:space-between;font-size:17px;margin-bottom:15px;color:var(--navy)}
.cart-send{width:100%;border:0;border-radius:10px;background:#128c51;color:#fff;padding:13px;font:800 15px "Cairo",sans-serif;cursor:pointer}
.cart-send:disabled{opacity:.55;cursor:not-allowed}
.cart-hint{font-size:11px;color:#65737d;text-align:center;margin:9px 0 0}
.cart-empty{color:var(--muted);text-align:center;padding:35px 8px;font-size:14px}
@media(max-width:390px){.add-to-cart{font-size:11px}.cart-fab{bottom:12px;inset-inline-end:12px}}

.cart-download{width:100%;margin-top:9px;padding:11px;border:1px solid var(--navy);border-radius:10px;background:#fff;color:var(--navy);font:800 14px "Cairo",sans-serif;cursor:pointer}
.cart-download:disabled{opacity:.55;cursor:not-allowed}
.cart-pdf-status{font:600 12px "Cairo",sans-serif;line-height:1.9;color:#135038;margin-top:8px}
.cart-pdf-status a{color:#075d3a;text-decoration:underline;font-weight:800}
.cart-panel[hidden],.cart-backdrop[hidden]{display:none!important}

/* إظهار زر حفظ الصورة كشكل ثانوي */
.cart-download{background:#fff;color:#073956;}

.cart-link-result{display:block;margin:8px 0;text-align:center;color:#105a8a;font-size:13px;text-decoration:underline;font-weight:bold}.cart-link-result[hidden]{display:none}

/* إصدار السلة المحسن: شريط كمية على كل بطاقة وجدول منظم داخل السلة */
.product-quantity{margin-top:10px;min-height:39px}
.product-quantity .add-to-cart{margin-top:0}
.qty-control{display:inline-flex;direction:ltr;align-items:center;justify-content:center;border:1.5px solid #0d7650;border-radius:10px;background:#fff;overflow:hidden;min-height:39px;width:100%;max-width:190px}
.qty-control button{flex:0 0 39px;align-self:stretch;border:0;border-radius:0;background:#0d7650;color:white;cursor:pointer;font-size:23px;font-weight:800;line-height:1}
.qty-control button:hover{background:#08613f}
.qty-control button:disabled{opacity:.5;cursor:wait}
.qty-control span{flex:1;text-align:center;font:800 16px "Cairo",sans-serif;color:#153a43;min-width:23px}
.cart-panel{width:min(620px,100vw)}
.cart-items{padding:12px;scrollbar-gutter:stable}
.cart-table{width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.cart-table-head,.cart-table-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(85px,1.15fr) minmax(70px,1fr) minmax(80px,1fr);align-items:center;text-align:center}
.cart-table-head{background:#073956;color:#fff;font-size:12px;font-weight:800;padding:11px 5px}
.cart-table-row{border-bottom:1px solid #e8e2d9;min-height:90px;padding:9px 5px;gap:3px}
.cart-table-row:last-child{border-bottom:0}
.cart-table-row:nth-child(odd){background:#fffcf6}
.cart-product-cell{display:flex;align-items:center;gap:8px;text-align:start;min-width:0}
.cart-product-cell img{width:60px;height:60px;object-fit:cover;flex:none;border:1px solid #eee1d1;border-radius:8px}
.cart-product-details{min-width:0;overflow-wrap:anywhere}
.cart-product-details strong{font-size:12px;line-height:1.6;display:block}
.cart-remove{border:0;background:none;color:#b42331;font:700 11px "Cairo",sans-serif;cursor:pointer;padding:2px 0;text-decoration:underline}
.cart-cell-price,.cart-cell-sum{font-size:12px;font-weight:700;overflow-wrap:anywhere}
.cart-cell-sum{color:#0b744f}
.qty-compact{min-height:32px;width:100%;max-width:110px}
.qty-compact button{flex-basis:30px;font-size:20px}
.qty-compact span{font-size:13px}
.order-progress[hidden]{display:none!important}
.order-progress{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#062434b3;padding:20px}
.order-progress-card{display:flex;align-items:center;flex-direction:column;gap:14px;text-align:center;background:#fffdf9;border-radius:18px;box-shadow:0 15px 65px #0004;padding:29px 22px;min-width:min(350px,90vw);color:#073956}
.order-progress-card strong{font:800 18px "Cairo",sans-serif}
.order-progress-card>span:last-child{font-size:12px;color:#65727c}
.order-progress-ring,.order-spinner{display:inline-block;border-radius:50%;border:4px solid #e9dfc7;border-top-color:#16834b;animation:order-spin .8s linear infinite}
.order-progress-ring{width:46px;height:46px}
.order-spinner{width:16px;height:16px;border-width:2px;vertical-align:middle;margin-inline-end:8px}
@keyframes order-spin{to{transform:rotate(360deg)}}
@media(max-width:480px){
 .cart-items{padding:8px}
 .cart-table-head,.cart-table-row{grid-template-columns:minmax(0,1.8fr) minmax(76px,1fr) minmax(58px,.9fr) minmax(63px,.9fr)}
 .cart-table-head{font-size:10px}
 .cart-table-row{padding:8px 3px;gap:2px}
 .cart-product-cell{flex-direction:column;text-align:center;gap:4px}
 .cart-product-cell img{width:55px;height:55px}
 .cart-product-details strong{font-size:11px}
 .cart-cell-price,.cart-cell-sum{font-size:10px}
 .qty-compact{max-width:90px}
 .qty-compact button{flex-basis:25px}
}

/* واجهة الإضافة المصغّرة: علامة + وحدها، ثم + 1 − بشكل لا يوسّع البطاقة */
.product-quantity{margin-top:7px;min-height:30px;display:flex;justify-content:center;align-items:center}
.product-quantity .add-to-cart{margin:0!important;width:31px;height:31px;min-height:31px;padding:0;border-radius:9px;display:inline-grid;place-items:center;font:800 23px/1 Arial,sans-serif}
.product-quantity .qty-control{width:auto;max-width:none;min-height:30px;height:30px;border-radius:8px;border-width:1px}
.product-quantity .qty-control button{flex:0 0 30px;width:30px;min-width:30px;font-size:19px}
.product-quantity .qty-control span{flex:0 0 27px;min-width:27px;font:800 12px/1.2 "Cairo",sans-serif}
@media(max-width:390px){.product-quantity .qty-control button{flex-basis:28px;min-width:28px;width:28px}.product-quantity .qty-control span{min-width:25px;flex-basis:25px}}
/* skeleton & shimmer أثناء جلب دفعات المنيو؛ يُزال تدريجيًا مع عرض المنتجات */
.skeleton-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:8px 0 28px}
.skeleton-card{border:1px solid #eee3cd;border-radius:17px;background:#fff;overflow:hidden;box-shadow:var(--shadow);pointer-events:none}
.skeleton-image{width:100%;aspect-ratio:1.18/1;background:#ede8df}
.skeleton-content{padding:13px;display:flex;flex-direction:column;align-items:center;gap:9px}
.skeleton-line{height:15px;width:86%;border-radius:6px;background:#ede8df}
.skeleton-line-short{width:49%;height:13px}
.skeleton-action{height:28px;width:30px;border-radius:8px;margin-top:4px;background:#ede8df}
.shimmer{background-image:linear-gradient(105deg,#ebe7df 0%,#ebe7df 35%,#f9f6ef 50%,#ebe7df 65%,#ebe7df 100%);background-size:220% 100%;animation:latefa-shimmer 1.35s ease-in-out infinite}
@keyframes latefa-shimmer{0%{background-position:110% 0}100%{background-position:-110% 0}}
@media(min-width:650px){.skeleton-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(min-width:950px){.skeleton-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:390px){.skeleton-products{grid-template-columns:1fr}.skeleton-card{display:grid;grid-template-columns:42% 1fr}.skeleton-image{height:100%;min-height:135px;aspect-ratio:auto}.skeleton-content{justify-content:center}}
@media(prefers-reduced-motion:reduce){.shimmer{animation:none;background:#ede8df}}

/* إضافة السلة في الركن السفلي الأيسر، فوق البطاقة دون أي ارتفاع إضافي */
.product{position:relative}
.product-quantity{
  position:absolute!important;
  left:9px!important;
  right:auto!important;
  bottom:9px!important;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:max-content!important;
  max-width:calc(100% - 16px);
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
.product-quantity .add-to-cart{
  width:28px!important;
  height:28px!important;
  min-height:28px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#118551!important;
  color:#fff!important;
  box-shadow:0 2px 7px #073a2440;
  font:800 22px/1 Arial,sans-serif!important;
  display:grid;
  place-items:center;
}
.product-quantity .add-to-cart:hover,.product-quantity .add-to-cart:focus-visible{background:#086c41!important}
.product-quantity .qty-control{
  width:auto!important;
  min-height:26px!important;
  height:26px!important;
  max-width:100%!important;
  border:1px solid #128151!important;
  border-radius:14px!important;
  background:#fff;
  box-shadow:0 2px 7px #073a2426;
}
.product-quantity .qty-control button{
  flex:0 0 24px!important;
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  padding:0!important;
  background:#118551;
  font-size:16px!important;
  line-height:1!important;
}
.product-quantity .qty-control span{
  flex:0 0 20px!important;
  min-width:20px!important;
  padding:0!important;
  font:800 11px/1.1 Cairo,sans-serif!important;
}
@media(max-width:390px){
  .product-quantity{left:8px!important;bottom:8px!important}
  .product-quantity .qty-control button{flex-basis:24px!important;min-width:24px!important;width:24px!important}
  .product-quantity .qty-control span{flex-basis:20px!important;min-width:20px!important}
}
