/* «🛍 التسوق» – the customers' shop app (GS Main, Dr Amr 28/11/2026) */
:root{--red:#c8102e;--red2:#e63946;--redSoft:#fdecee;--gold:#c8963e;--blue:#1a5fb4;--ink:#1d1d24;--mut:#7a7a86;--line:#ececf1;--bg:#f6f6f9;--card:#fff;--ok:#16a34a;--no:#dc2626;--r:18px;--sh:0 4px 18px rgba(20,20,40,.07)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Cairo,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;font-size:15px;line-height:1.45}
body{padding-bottom:calc(96px + env(safe-area-inset-bottom));overscroll-behavior-y:contain}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
input,textarea,select{font:inherit}
img{display:block}
.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px}
.boot img{width:96px;height:96px;border-radius:24px;box-shadow:var(--sh)}
.spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--red);animation:sp 1s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

/* header */
.top{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--line);padding:calc(10px + env(safe-area-inset-top)) 14px 10px}
.top .row{display:flex;align-items:center;gap:10px}
.brand{display:flex;align-items:center;gap:8px;min-width:0}
.brand img{width:44px;height:44px;border-radius:12px;object-fit:contain;background:#fff}
.place{flex:1;display:flex;align-items:center;gap:8px;background:#f2f2f6;border-radius:14px;padding:7px 12px;min-width:0;text-align:right}
.place .ic{font-size:18px}
.place small{display:block;color:var(--mut);font-size:11px;line-height:1.2}
.place b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.place .ch{margin-inline-start:auto;color:var(--mut)}
.icobtn{width:44px;height:44px;border-radius:14px;background:#f2f2f6;display:flex;align-items:center;justify-content:center;font-size:20px;position:relative;flex:none}
.searchbar{margin-top:10px;display:flex;align-items:center;gap:8px;background:#f2f2f6;border-radius:14px;padding:0 12px;height:44px;color:var(--mut)}
.searchbar input{flex:1;border:0;background:transparent;outline:none;font-size:16px;color:var(--ink);height:100%}

main{max-width:1000px;margin:0 auto}
.sec{padding:16px 0 4px}
.sec h2{margin:0 14px 10px;font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px}
.sec h2::before{content:"";width:4px;height:20px;border-radius:4px;background:var(--red)}
.sec h2 .more{margin-inline-start:auto;font-size:13px;color:var(--red);font-weight:700}
.hs{display:flex;gap:12px;overflow-x:auto;padding:4px 14px 12px;scroll-snap-type:x mandatory;scrollbar-width:none}
.hs::-webkit-scrollbar{display:none}
.hs>*{scroll-snap-align:start;flex:none}

/* banners */
.ban{position:relative;margin:14px 14px 0}
.slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:var(--r);box-shadow:var(--sh)}
.slides::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:center;aspect-ratio:2.1/1;position:relative;overflow:hidden;color:#fff;display:flex;align-items:center;padding:18px 20px;text-align:right}
.slide img.cv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.slide .tx{position:relative;z-index:2;max-width:56%}
.slide .tx b{display:block;font-size:22px;font-weight:800;line-height:1.25;text-shadow:0 2px 8px rgba(0,0,0,.18)}
.slide .tx span{display:inline-block;margin-top:8px;background:rgba(255,255,255,.95);color:var(--ink);font-weight:800;font-size:12px;border-radius:999px;padding:4px 12px}
.slide .tx small{display:block;margin-top:6px;opacity:.9;font-size:12px}
.slide .pics{position:absolute;left:12px;bottom:12px;top:12px;max-width:40%;display:flex;align-items:flex-end;gap:0;z-index:1}
.slide .pics img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:18px;box-shadow:0 6px 16px rgba(0,0,0,.18);margin-inline-start:-22px}
.slide .pics img:first-child{margin-inline-start:0;width:92px;height:92px}
.slide::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12);top:-120px;right:-90px}
.dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.dots i{width:7px;height:7px;border-radius:99px;background:#d6d6de;transition:.25s}
.dots i.on{width:20px;background:var(--red)}

/* kinds */
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 8px;padding:4px 14px 8px}
.cat{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12.5px;font-weight:700}
.cat .ci{width:100%;max-width:84px;aspect-ratio:1;border-radius:50%;background:var(--redSoft);display:flex;align-items:center;justify-content:center;font-size:34px;overflow:hidden;box-shadow:inset 0 0 0 3px #fff,0 3px 10px rgba(200,16,46,.10)}
.cat .ci img{width:78%;height:78%;object-fit:contain;mix-blend-mode:multiply}
.cats.big{grid-template-columns:repeat(3,1fr)}

/* product card */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;padding:4px 14px 14px}
.pc{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);overflow:hidden;display:flex;flex-direction:column;position:relative;width:100%}
.hs .pc{width:168px}
.pc .im{aspect-ratio:1;background:#fff;display:flex;align-items:center;justify-content:center;padding:10px;position:relative}
.pc .im img{width:100%;height:100%;object-fit:contain}
.ph{width:100%;height:100%;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(135deg,#fdf1f2,#f4f6fb);color:#9a9aa8;font-weight:800}
.ph i{font-style:normal;font-size:40px}
.ph b{font-size:12px;max-width:90%;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#b0b0bc}
.badge{position:absolute;top:10px;left:10px;z-index:2;background:var(--red);color:#fff;font-size:12px;font-weight:800;border-radius:999px;padding:3px 10px;box-shadow:0 3px 10px rgba(200,16,46,.3)}
.badge.gold{background:linear-gradient(135deg,#d9a441,#b07a1e)}
.badge.blue{background:var(--blue)}
.pc .bd{padding:6px 12px 12px;display:flex;flex-direction:column;gap:3px;flex:1}
.pc .ty{font-size:12px;color:var(--mut)}
.pc .nm{font-weight:700;font-size:14px;line-height:1.35;height:38px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;direction:ltr;text-align:right}
.pr{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:2px}
.pr b{font-size:18px;font-weight:800}
.pr b small{font-size:12px;font-weight:700}
.pr s{color:#a3a3ae;font-size:13px}
.av{font-size:12px;font-weight:700;display:flex;align-items:center;gap:5px}
.av::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.av.ok{color:var(--ok)}.av.no{color:var(--no)}
.add{margin-top:auto;padding-top:8px}
.btn{width:100%;height:42px;border-radius:13px;background:var(--red);color:#fff;font-weight:800;font-size:14.5px;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 4px 12px rgba(200,16,46,.22)}
.btn:active{transform:scale(.98)}
.btn.off{background:#e9e9ee;color:#9a9aa6;box-shadow:none}
.btn.wa{background:#25d366;box-shadow:0 6px 16px rgba(37,211,102,.3);height:54px;font-size:17px;border-radius:16px}
.btn.ghost{background:#fff;color:var(--red);box-shadow:inset 0 0 0 1.5px var(--red)}
.step{display:flex;align-items:center;justify-content:space-between;height:42px;border-radius:13px;background:var(--redSoft);padding:0 4px}
.step button{width:36px;height:36px;border-radius:11px;background:#fff;color:var(--red);font-size:20px;font-weight:800;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.step span{font-weight:800;font-size:16px;color:var(--red)}
.pc.out{opacity:.62}
.hint{font-size:12px;color:#b45309;background:#fff7e6;border-radius:9px;padding:4px 8px;font-weight:700}

/* offer cards (offers tab) */
.ofh{margin:12px 14px 0;border-radius:var(--r);color:#fff;padding:16px 18px;position:relative;overflow:hidden;box-shadow:var(--sh)}
.ofh b{font-size:19px;font-weight:800;display:block}
.ofh small{opacity:.92}
.ofh::after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.13);top:-80px;left:-60px}
.bundle{margin:10px 14px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:14px}
.bundle .its{display:flex;gap:10px;overflow-x:auto;padding:6px 0 10px}
.bundle .its div{flex:none;width:92px;text-align:center;font-size:11.5px;font-weight:700}
.bundle .its img,.bundle .its .ph{width:92px;height:92px;object-fit:contain;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}

/* list / filters */
.bar2{display:flex;gap:8px;align-items:center;padding:12px 14px 0;flex-wrap:wrap}
.chip{border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);padding:7px 14px;font-size:13px;font-weight:700;white-space:nowrap}
.chip.on{background:var(--ink);color:#fff;box-shadow:none}
.chips{display:flex;gap:8px;overflow-x:auto;padding:12px 14px 2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.title{padding:14px 14px 0;display:flex;align-items:center;gap:10px}
.title h1{margin:0;font-size:21px;font-weight:800}
.title .back{width:38px;height:38px;border-radius:12px;background:#fff;box-shadow:var(--sh);font-size:18px}
.empty{text-align:center;color:var(--mut);padding:50px 20px}
.empty i{font-size:46px;font-style:normal;display:block;margin-bottom:8px}
.more-btn{display:block;margin:4px auto 18px;padding:10px 26px;border-radius:999px;background:#fff;box-shadow:var(--sh);font-weight:800;color:var(--red)}

/* bottom nav */
.nav{position:fixed;z-index:40;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));max-width:560px;margin:0 auto;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.6) blur(16px);-webkit-backdrop-filter:saturate(1.6) blur(16px);border-radius:24px;box-shadow:0 10px 30px rgba(20,20,40,.14),inset 0 0 0 1px rgba(255,255,255,.8);display:flex;padding:6px}
.nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 0;border-radius:18px;font-size:11.5px;font-weight:700;color:#55555f;position:relative}
.nav button svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav button.on{color:var(--red);background:var(--redSoft)}
.nav .cnt{position:absolute;top:2px;left:50%;margin-left:4px;min-width:18px;height:18px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 5px;box-shadow:0 0 0 2px #fff}

/* sheets */
.shade{position:fixed;inset:0;z-index:60;background:rgba(15,15,25,.45);display:flex;align-items:flex-end;justify-content:center;animation:fd .18s}
.sheet{background:#fff;width:100%;max-width:640px;max-height:92vh;overflow:auto;border-radius:26px 26px 0 0;padding:8px 16px calc(18px + env(safe-area-inset-bottom));animation:up .24s cubic-bezier(.2,.8,.2,1)}
.sheet .grab{width:42px;height:5px;border-radius:9px;background:#dcdce3;margin:4px auto 10px}
.sheet h3{margin:4px 0 12px;font-size:19px;font-weight:800}
@keyframes up{from{transform:translateY(40px);opacity:.4}}
@keyframes fd{from{opacity:0}}
.pd .im{background:#fff;border-radius:20px;aspect-ratio:1.25;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px var(--line);position:relative;margin-bottom:12px}
.pd .im img{max-width:88%;max-height:88%;object-fit:contain}
.pd .nm{font-size:20px;font-weight:800;direction:ltr;text-align:right;line-height:1.3}
.pd .pr b{font-size:24px}
.pd .ofl{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.pd .ofl div{border-radius:12px;padding:8px 12px;font-weight:700;font-size:13.5px;background:#fff4f5;color:var(--red)}
.where{margin:12px 0;border-radius:14px;background:#f7f7fa;padding:6px 12px}
.where div{display:flex;justify-content:space-between;padding:7px 0;font-size:14px;border-bottom:1px solid var(--line)}
.where div:last-child{border:0}
.pls button{width:100%;display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#f7f7fa;margin-bottom:8px;text-align:right}
.pls button.on{background:var(--redSoft);box-shadow:inset 0 0 0 2px var(--red)}
.pls button b{flex:1;font-size:15.5px}
.pls button small{color:var(--mut)}

/* cart */
.ln{display:flex;gap:12px;align-items:center;background:#fff;border-radius:18px;box-shadow:var(--sh);padding:10px;margin:10px 14px}
.ln .th{width:68px;height:68px;border-radius:14px;flex:none;background:#fff;box-shadow:inset 0 0 0 1px var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden}
.ln .th img{width:88%;height:88%;object-fit:contain}
.ln .th .ph i{font-size:26px}
.ln .in{flex:1;min-width:0}
.ln .in b{display:block;font-size:14px;direction:ltr;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ln .in>small{color:var(--mut);display:block}
.ln .in small small{display:inline;font-size:11px}
.ln .in .tot{font-weight:800;color:var(--ink)}
.ln .step{width:112px;height:38px;flex:none}
.ln .step button{width:32px;height:32px}
.box{background:#fff;border-radius:20px;box-shadow:var(--sh);margin:12px 14px;padding:14px}
.box .r{display:flex;justify-content:space-between;padding:4px 0}
.box .r.big{font-size:19px;font-weight:800;border-top:1px dashed var(--line);margin-top:6px;padding-top:10px}
.box .r.save{color:var(--ok);font-weight:800}
.seg{display:flex;background:#f2f2f6;border-radius:14px;padding:4px;gap:4px;margin:6px 0 10px}
.seg button{flex:1;height:40px;border-radius:11px;font-weight:800;color:#666}
.seg button.on{background:#fff;color:var(--red);box-shadow:0 2px 8px rgba(0,0,0,.07)}
.f{display:flex;flex-direction:column;gap:5px;margin:8px 0}
.f label{font-size:13px;color:var(--mut);font-weight:700}
.f input,.f textarea{border:0;background:#f2f2f6;border-radius:13px;padding:12px 14px;font-size:16px;outline:none}
.f input:focus,.f textarea:focus{box-shadow:inset 0 0 0 2px var(--red);background:#fff}
.loc{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;color:var(--ok);margin:6px 0}
.warn{background:#fff4f4;color:#b91c1c;border-radius:12px;padding:8px 12px;font-size:13px;font-weight:700;margin:8px 0}
.note{font-size:12px;color:var(--mut);text-align:center;margin-top:8px}
.ord{background:#fff;border-radius:18px;box-shadow:var(--sh);margin:10px 14px;padding:14px}
.ord .h{display:flex;justify-content:space-between;font-weight:800}
.ord .h small{color:var(--mut);font-weight:600}
.ord ul{margin:8px 0;padding:0 18px 0 0;color:#444;font-size:13.5px}
.inst{margin:14px 14px 0;border-radius:18px;background:linear-gradient(120deg,#1d1d24,#3a3a48);color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px;font-size:13.5px}
.inst b{display:block;font-size:14.5px}
.inst .go{margin-inline-start:auto;background:#fff;color:var(--ink);border-radius:12px;padding:8px 14px;font-weight:800;white-space:nowrap}
.inst .x{color:#aaa;font-size:18px;padding:0 4px}
.toast{position:fixed;z-index:90;left:50%;bottom:calc(100px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:999px;padding:10px 18px;font-weight:700;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);animation:up .2s;white-space:nowrap}
.foot{text-align:center;color:var(--mut);font-size:12px;padding:12px 14px 4px}
@media (min-width:700px){.cats{grid-template-columns:repeat(6,1fr)}.slide{aspect-ratio:3/1}.hs .pc{width:190px}}
