:root{
  --yellow:#FBBF1F; --yellow-2:#FFD65A; --yellow-soft:#FFF1BF;
  --red:#C62320; --red-dark:#9E1816; --cream:#FFF8E6; --paper:#FFFDF6;
  --ink:#3A1E17; --muted:#8A6F62; --line:#F0E2BD; --ok:#1E8E4E;
  --r:18px; --shadow:0 6px 22px rgba(158,24,22,.10);
  font-family:'Cairo',system-ui,'Segoe UI',Tahoma,sans-serif;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{background:var(--cream);color:var(--ink);line-height:1.6;font-size:16px;-webkit-text-size-adjust:100%;padding-bottom:78px}
img{display:block;max-width:100%}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
:focus-visible{outline:3px solid var(--red);outline-offset:2px;border-radius:8px}
.wrap{width:min(1240px,100% - 28px);margin-inline:auto}
.muted{color:var(--muted);font-size:.9rem}
[hidden]{display:none!important}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

.announce{background:var(--red);color:#fff;text-align:center;font-weight:700;font-size:.92rem;padding:7px 14px}

/* الهيدر */
.top{position:sticky;top:0;z-index:30;background:var(--yellow);box-shadow:0 2px 0 rgba(158,24,22,.12)}
.top-in{display:flex;align-items:center;gap:14px;padding:10px 0}
.brand{display:flex;align-items:center;gap:10px;color:var(--red);text-decoration:none}
.brand span{display:flex;flex-direction:column;line-height:1}
.brand b{font-weight:900;font-size:1.45rem;letter-spacing:-.3px}
.brand em{font-style:normal;font-weight:800;font-size:1.05rem}
.brand.light{color:var(--yellow)}
.search{flex:1;max-width:520px;margin-inline:auto;position:relative}
.search input{width:100%;height:46px;border-radius:14px;border:2px solid #fff;background:#fff;padding-inline:44px 14px;font-weight:600}
.search input:focus{outline:3px solid var(--red)}
.search svg{position:absolute;inset-inline-start:13px;top:12px;color:var(--red)}
.cart-btn{position:relative;width:46px;height:46px;border-radius:14px;background:var(--red);color:#fff;display:grid;place-items:center}
.cart-btn i,.bnav i{position:absolute;top:-6px;inset-inline-end:-6px;min-width:21px;height:21px;border-radius:99px;background:#fff;color:var(--red);font:800 .75rem/21px 'Cairo';text-align:center;border:2px solid var(--red);padding:0 3px}

/* البانر */
.hero{position:relative;width:100%;background:linear-gradient(135deg,var(--yellow) 0,var(--yellow-2) 100%);overflow:hidden;min-height:170px}
.hero img.hero-img{width:100%;height:auto;max-height:min(62vh,560px);min-height:180px;object-fit:cover}
.hero-text{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding-inline:max(20px,calc((100% - 1240px)/2 + 14px));color:#fff;background:linear-gradient(270deg,rgba(60,10,8,.62),rgba(60,10,8,0) 65%)}
.hero-text h1{font-size:clamp(1.6rem,4.6vw,3.4rem);font-weight:900;line-height:1.2;max-width:15ch}
.hero-text p{font-size:clamp(.95rem,2vw,1.25rem);font-weight:600;max-width:34ch;margin-top:6px}
.hero-brand{display:flex;align-items:center;justify-content:center;gap:clamp(14px,4vw,40px);min-height:clamp(200px,34vw,380px);padding:28px 18px;color:var(--red);text-align:start}
.hero-brand img{width:clamp(86px,16vw,170px);height:auto}
.hero-brand h1{font-size:clamp(2rem,6vw,4.4rem);font-weight:900;line-height:1.1}
.hero-brand p{font-weight:700;font-size:clamp(1rem,2.4vw,1.5rem)}

/* العناوين */
.sec{padding-top:26px}
.h2{font-size:clamp(1.4rem,3vw,1.9rem);font-weight:900;color:var(--red-dark);margin-bottom:14px}
.h3{font-size:1.25rem;font-weight:800;color:var(--red-dark)}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}

/* الأقسام */
.cats{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x proximity;scrollbar-width:thin}
.cat{flex:0 0 auto;width:clamp(108px,22vw,168px);scroll-snap-align:start;background:var(--paper);border:2.5px solid var(--line);border-radius:var(--r);padding:8px 8px 10px;text-align:center;transition:transform .15s,border-color .15s,background .15s;position:relative}
.cat:hover{transform:translateY(-2px)}
.cat .ph{aspect-ratio:1;border-radius:13px;overflow:hidden;background:var(--yellow-soft);display:grid;place-items:center;color:var(--red)}
.cat .ph img{width:100%;height:100%;object-fit:cover}
.cat .ph svg{width:46%;height:46%;stroke-width:1.8}
.cat .ph .lf{width:48%;height:auto;opacity:.9}
.cat b{display:block;margin-top:8px;font-weight:800;font-size:1rem}
.cat[aria-selected=true]{background:var(--red);border-color:var(--red);color:#fff;box-shadow:var(--shadow)}
.cat.off .ph{background:var(--red);color:var(--yellow-2)}
.cat[aria-selected=true] .ph{background:var(--yellow)}
.cat[aria-selected=true].off .ph{color:var(--red)}
.cat .pill{position:absolute;top:-8px;inset-inline-start:-4px;background:var(--yellow);color:var(--red-dark);font-weight:900;font-size:.72rem;padding:1px 9px;border-radius:99px;border:2px solid var(--red)}

/* المنتجات */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:620px){.grid{grid-template-columns:repeat(3,1fr);gap:16px}}
@media(min-width:960px){.grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1180px){.grid{grid-template-columns:repeat(5,1fr)}}
.card{background:var(--paper);border:2px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;position:relative}
.card .ph{aspect-ratio:4/3;background:var(--yellow-soft);display:grid;place-items:center;overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .ph .lf{width:34%;height:auto;opacity:.28}
.card .bd{padding:10px 11px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.card h3{font-size:1.02rem;font-weight:800;line-height:1.3}
.card .desc{font-size:.8rem;color:var(--muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.badge{position:absolute;top:9px;inset-inline-start:9px;background:var(--red);color:#fff;font-weight:900;font-size:.82rem;padding:2px 10px;border-radius:99px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
.price b{font-size:1.2rem;font-weight:900;color:var(--red)}
.price s{color:var(--muted);font-size:.86rem;font-weight:600}
.price small{color:var(--muted);font-weight:700;font-size:.82rem}
.buy{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.step{display:flex;align-items:center;justify-content:space-between;background:#fff;border:2px solid var(--line);border-radius:12px;height:40px}
.step button{width:40px;height:100%;font-size:1.3rem;font-weight:900;color:var(--red)}
.step button:active{background:var(--yellow-soft)}
.step span{font-weight:800;min-width:60px;text-align:center}
.add{height:42px;border-radius:12px;background:var(--yellow);color:var(--red-dark);font-weight:900;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:inset 0 -3px 0 rgba(158,24,22,.18);transition:transform .1s}
.add:hover{background:var(--yellow-2)}
.add:active{transform:scale(.97)}
.add svg{width:18px;height:18px;stroke-width:3}
.empty{grid-column:1/-1;text-align:center;padding:40px 14px;color:var(--muted);font-weight:700}
.empty button{margin-top:12px;background:var(--red);color:#fff;border-radius:12px;padding:9px 20px;font-weight:800}
.skel{height:300px;border-radius:var(--r);background:linear-gradient(100deg,#f6e9c3 30%,#fff3cf 50%,#f6e9c3 70%);background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}

/* العروض */
.offers{margin-top:34px;background:var(--red);padding:30px 0 34px;color:#fff;position:relative}
.offers::before{content:"";position:absolute;inset:0 0 auto;height:10px;background:repeating-linear-gradient(135deg,var(--yellow) 0 14px,var(--red) 14px 28px)}
.off-head{margin:8px 0 18px}
.off-head h2{font-size:clamp(1.7rem,4vw,2.6rem);font-weight:900;color:var(--yellow)}
.off-head p{font-weight:600;opacity:.95}
.offers .card{border-color:var(--yellow)}
.offers .badge{background:var(--yellow);color:var(--red-dark)}

/* الفوتر */
.foot{background:var(--red-dark);color:#FFE9B0;margin-top:0;padding:26px 0 18px}
.foot-in{display:grid;gap:8px;justify-items:start}
.foot-info{display:flex;flex-wrap:wrap;gap:6px 22px;font-weight:600;font-size:.95rem}
.foot-info a{color:inherit}

/* شريط سفلي للموبايل */
.bnav{position:fixed;inset:auto 0 0;z-index:35;background:var(--red);display:flex;justify-content:space-around;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;box-shadow:0 -4px 18px rgba(0,0,0,.18)}
.bnav button{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;color:#fff;font-weight:700;font-size:.76rem;padding:5px 14px;border-radius:14px}
.bnav button:active,.bnav button.on{background:var(--yellow);color:var(--red-dark)}
.bnav i{top:0;inset-inline-end:4px}
@media(min-width:900px){.bnav{display:none}body{padding-bottom:0}}

/* السلة والنوافذ */
.scrim{position:fixed;inset:0;z-index:50;background:rgba(40,10,8,.5)}
.drawer{position:fixed;z-index:60;inset-block:0;right:0;width:min(440px,100%);background:var(--cream);display:flex;flex-direction:column;transform:translateX(102%);transition:transform .25s ease;box-shadow:-6px 0 30px rgba(0,0,0,.25)}
.drawer.open{transform:none}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:var(--yellow);color:var(--red-dark)}
.drawer-head h2{font-size:1.3rem;font-weight:900}
.x{width:38px;height:38px;border-radius:12px;background:var(--red);color:#fff;font-size:1.5rem;line-height:1}
.drawer-body{flex:1;overflow:auto;padding:12px 14px}
.drawer-foot{padding:12px 14px calc(14px + env(safe-area-inset-bottom));background:var(--paper);border-top:2px solid var(--line)}
.line{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;background:var(--paper);border:2px solid var(--line);border-radius:14px;padding:8px;margin-bottom:10px}
.line .ph{width:64px;height:64px;border-radius:10px;background:var(--yellow-soft);overflow:hidden;display:grid;place-items:center}
.line .ph img{width:100%;height:100%;object-fit:cover}
.line .ph .lf{width:55%;opacity:.3}
.line h4{font-weight:800;font-size:.95rem;line-height:1.3}
.line .sub{color:var(--muted);font-size:.82rem;font-weight:600}
.line .step{height:34px;margin-top:6px;width:128px}
.line .step button{width:34px}
.line .step span{min-width:50px;font-size:.88rem}
.line .rm{color:var(--red);width:34px;height:34px;border-radius:10px;display:grid;place-items:center}
.line .rm:hover{background:var(--yellow-soft)}
.line .tot{font-weight:900;color:var(--red);text-align:end}
.sum{display:grid;gap:4px;margin-bottom:10px;font-weight:700}
.sum div{display:flex;justify-content:space-between}
.sum .grand{font-size:1.25rem;font-weight:900;color:var(--red)}
.note{background:var(--yellow-soft);border-radius:10px;padding:7px 10px;font-size:.86rem;font-weight:700;margin-bottom:10px;color:var(--red-dark)}
.btn{display:flex;width:100%;height:50px;align-items:center;justify-content:center;gap:8px;background:var(--red);color:#fff;border-radius:14px;font-weight:900;font-size:1.05rem;box-shadow:inset 0 -4px 0 rgba(0,0,0,.18)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.wa{background:#1FA855}
.btn.ghost{background:#fff;color:var(--red);border:2px solid var(--red);box-shadow:none;margin-top:8px}
.modal{position:fixed;inset:0;z-index:70;background:rgba(40,10,8,.55);display:grid;place-items:end center;padding:0}
.modal-box{background:var(--cream);width:min(520px,100%);max-height:94vh;overflow:auto;border-radius:22px 22px 0 0}
@media(min-width:640px){.modal{place-items:center;padding:18px}.modal-box{border-radius:22px}}
.modal-box form,.modal-box .pad{padding:16px;display:grid;gap:12px}
.fld label{display:block;font-weight:800;font-size:.9rem;margin-bottom:4px}
.fld input,.fld textarea{width:100%;border:2px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;font-weight:600}
.fld input:focus,.fld textarea:focus{outline:3px solid var(--yellow);border-color:var(--red)}
.fld textarea{min-height:84px;resize:vertical}
.err{color:var(--red);font-weight:800;font-size:.9rem;min-height:1.3em}
.ok-ic{width:72px;height:72px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;margin:6px auto}
.ok-ic svg{width:40px;height:40px;stroke-width:3}
.center{text-align:center}
.toast{position:fixed;z-index:90;inset-inline:16px;bottom:96px;margin-inline:auto;width:fit-content;max-width:92vw;background:var(--ink);color:#fff;padding:10px 18px;border-radius:99px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.3)}
@media(min-width:900px){.toast{bottom:28px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Freshy visual refinement */
.hero-brand{display:flex;align-items:center;gap:clamp(18px,5vw,60px);flex-wrap:wrap}
.hero-brand img{object-fit:contain}
.hero-brand h1{line-height:1.2;font-weight:900}
.card .ph img{object-fit:contain}
.cat{transition:transform .18s ease,box-shadow .18s ease}
.cat:hover,.card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(23,107,69,.12)}
button,.btn,.add{transition:filter .15s ease,transform .15s ease}
button:hover,.btn:hover,.add:hover{filter:brightness(.96)}
:focus-visible{outline-color:#176b45}


/* Freshy brand system — warm yellow, deep red and cream */
.top{background:var(--yellow);box-shadow:0 3px 18px rgba(158,24,22,.10)}
.brand{color:var(--red-dark)}
.brand em{color:#8b4a28}
.cart-btn{background:var(--red);border-radius:14px}
.search input{border:2px solid #fff;background:#fff8e6;border-radius:14px}
.search svg{color:var(--red)}
.hero{background:linear-gradient(135deg,#ffe27b 0%,#fff4c9 55%,#f8d34e 100%);border-radius:0 0 30px 30px}
.hero-brand{color:var(--red-dark);min-height:clamp(230px,34vw,390px);justify-content:center;text-align:right}
.hero-brand img{filter:drop-shadow(0 10px 15px #9e181622)}
.hero-brand p{color:#8b4a28}
.hero-brand:after{content:"طازة لباب بيتك";background:var(--red);color:#fff;border-radius:30px;padding:9px 18px;font-weight:900;box-shadow:0 8px 20px #9e181622}
.h2,.h3{color:var(--red-dark)}
.cat{border-color:#ead9a9;background:#fffdf6}
.cat[aria-selected=true]{background:var(--red);border-color:var(--red);color:#fff}
.cat .ph{background:#fff1bf;color:var(--red)}
.card{border-color:#f0e2bd;box-shadow:0 8px 22px #9e181610}
.card .ph{background:#fff7df}
.card h3{color:#65251b}
.price b{color:var(--red)}
.add{background:var(--yellow);color:var(--red-dark);box-shadow:inset 0 -3px 0 #9e181622}
.offers{background:var(--red);border-radius:26px}
.off-head h2{color:var(--yellow)}
.foot{background:var(--red-dark);color:#ffe9b0;border-radius:26px 26px 0 0}
.bnav{background:var(--red);border-top:0}
.bnav button{color:#fff}
.bnav button:active,.bnav button.on{background:var(--yellow);color:var(--red-dark)}
.drawer-head{background:var(--yellow);color:var(--red-dark)}
.btn{background:var(--red)}
.btn.ghost{color:var(--red);border-color:var(--red)}
@media(max-width:640px){.hero-brand{justify-content:center;text-align:center;gap:12px}.hero-brand:after{display:none}}
