:root{--bg:#090f1b;--surface:#121c2e;--surface2:#1b2940;--line:#283851;--blue:#148cff;--text:#f6f8ff;--muted:#9aaac3}*{box-sizing:border-box}body{margin:0;background:#060b14;color:var(--text);font-family:Tahoma,'Segoe UI',sans-serif}.shell{min-height:100dvh;max-width:850px;margin:auto;background:var(--bg);padding-bottom:95px}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;position:sticky;top:0;z-index:20;background:#090f1bf5;border-bottom:1px solid #19253a}.brand{font-size:24px;letter-spacing:-1px}.brand span,.blue{color:var(--blue)}button{cursor:pointer}.header-btn,.icon-btn{background:transparent;color:white;border:0;display:flex;align-items:center;gap:6px}.icon-btn{position:relative;font-size:23px}#notifDot{display:none;position:absolute;top:1px;right:0;width:8px;height:8px;background:#ff4f69;border-radius:50%}main{padding:17px 16px}h2{font-size:21px;font-weight:800}h3{font-size:17px;font-weight:700}.muted{color:var(--muted)}.search,.field{width:100%;background:#19263a;border:1px solid #273a54;color:white;border-radius:14px;padding:13px 15px;outline:none}.field:focus,.search:focus{border-color:var(--blue)}select.field option{background:#18253a}.section-head{display:flex;align-items:center;justify-content:space-between;margin:25px 0 13px}.section-head a{color:var(--blue);text-decoration:none}.hero{height:175px;border-radius:21px;background:linear-gradient(120deg,#0051b7,#0b172b);position:relative;overflow:hidden;display:flex;align-items:center;padding:23px;margin-top:16px}.hero img{width:48%;height:100%;object-fit:cover;position:absolute;left:0;top:0;mask-image:linear-gradient(to left,transparent,black)}.hero .copy{position:relative;z-index:1;max-width:65%}.hero h2{font-size:23px}.hero small{color:#d4eaff}.hero .btn{margin-top:12px}.slider-dots{display:flex;gap:5px;justify-content:center;margin:10px}.slider-dots span{height:6px;width:6px;border-radius:50%;background:#40536c}.slider-dots .on{width:20px;background:var(--blue)}.cats{display:flex;gap:10px;overflow:auto;scrollbar-width:none;padding-bottom:5px}.cat{flex:0 0 92px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:14px 6px;color:white}.cat.active{border-color:var(--blue);background:#112c4d}.cat .emoji{font-size:29px;display:block;margin-bottom:8px}.store-grid,.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cardx{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}.cardx img{width:100%;height:125px;object-fit:cover}.card-bodyx{padding:12px}.card-bodyx strong{display:block}.pill{display:inline-block;border-radius:20px;background:#153d60;color:#7cc6ff;padding:4px 9px;font-size:11px}.btn-blue{background:linear-gradient(110deg,#0875eb,#16a1ff);border:0;color:white;border-radius:13px;padding:11px 17px;font-weight:700}.btn-outline-blue{background:transparent;border:1px solid #2873ad;color:#90d2ff;border-radius:13px;padding:10px 14px}.btn-red{background:#482032;color:#ffabbc;border:1px solid #8c3454;border-radius:12px;padding:10px 14px}.rowx{display:flex;align-items:center;justify-content:space-between;gap:9px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:12px}.panel label{display:block;margin-bottom:6px;font-size:13px;color:#aabbd4}.panel .field{margin-bottom:12px}.price{font-weight:800;color:#58b1ff}#nav{position:fixed;bottom:0;right:50%;transform:translateX(50%);max-width:850px;width:100%;height:75px;background:#111c2df5;border-top:1px solid #2a3950;display:flex;align-items:center;justify-content:space-around;z-index:30;padding-bottom:env(safe-area-inset-bottom)}#nav button{background:transparent;color:#899ab2;border:0;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;min-width:65px}#nav button i{font-size:22px}#nav button.active{color:#34a5ff}.back{background:transparent;color:white;border:0;font-size:20px;margin-bottom:12px}.store-cover{width:100%;height:190px;object-fit:cover;border-radius:18px}.product-row{display:flex;gap:12px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-bottom:10px}.product-row img{width:92px;height:92px;object-fit:cover;border-radius:12px}.product-row .info{flex:1}.cart-float{position:sticky;bottom:82px;background:var(--blue);border:0;color:white;width:100%;border-radius:15px;padding:14px;margin-top:16px;font-weight:800;box-shadow:0 10px 30px #0054b755}.swal2-popup{background:#152238!important;color:white!important}.swal2-input,.swal2-select,.swal2-textarea{background:#0b1422!important;color:white!important;border-color:#32445c!important}.loading{text-align:center;padding:60px;color:var(--muted)}.empty{text-align:center;padding:35px 10px;color:var(--muted)}.status{color:#ffd77b}.mini{font-size:12px}.list-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.wide{width:100%}@media(min-width:650px){.store-grid{grid-template-columns:repeat(3,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.hero{height:225px}.hero h2{font-size:30px}.cardx img{height:170px}} 

/* Homepage: promotional carousel and image category grid */
.welcome-line{display:flex;justify-content:space-between;align-items:center;margin:3px 0 16px}.welcome-line h2{margin:0 0 5px}.welcome-line p{margin:0}.welcome-icon{background:#123254;color:#35adff;border-radius:15px;padding:12px;font-size:23px}.search-wrap{position:relative}.search-wrap .bi-search{position:absolute;right:17px;top:13px;color:#75a5d4;font-size:19px}.search-wrap .search{padding-right:46px}.banner-track{position:relative;margin-top:18px}.banner-track .hero{margin-top:0}.hero-photo{background-size:cover!important;background-position:center!important}.hero-photo .copy{max-width:80%}.hero-photo h2,.default-hero h2{font-size:clamp(23px,5vw,37px);line-height:1.4;margin:8px 0 16px}.hero-cta{display:inline-flex;align-items:center;gap:12px;padding:8px 16px;background:#0785fa;border-radius:30px;font-size:13px;font-weight:700}.banner-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;background:#061323a8;color:white;border-radius:50%;width:30px;height:30px}.banner-arrow.prev{right:8px}.banner-arrow.next{left:8px}.slider-dots{gap:8px;margin:15px auto}.slider-dots button{border:0;width:8px;height:8px;border-radius:100%;background:#536176;padding:0}.slider-dots button.on{width:23px;border-radius:9px;background:#168fff}.default-hero{background:linear-gradient(120deg,#073d7b,#071322);justify-content:space-between}.hero-basket{font-size:90px;color:#53aeff;opacity:.75}.section-head{margin:26px 0 14px}.section-head h3{font-size:21px;margin:0}.more-link{background:none;border:0;color:#38a7ff;font-size:15px;display:flex;gap:7px;align-items:center}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-tile{display:flex;flex-direction:column;align-items:center;gap:12px;background:#131f31;color:#fff;border:1px solid #2a3b51;border-radius:20px;padding:12px 10px 17px;min-width:0;font-size:16px;font-weight:700}.category-tile img{width:100%;height:clamp(95px,25vw,180px);object-fit:cover;border-radius:13px}.category-tile.selected{border-color:#168fff;box-shadow:0 0 0 1px #168fff}.category-tile.extra-category{display:none}.category-grid.expanded .extra-category{display:flex}.stores-head{scroll-margin-top:90px}.store-card{cursor:pointer}@media(min-width:650px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-tile img{height:145px}.hero{height:250px}}


/* Light green theme — overrides former dark/blue appearance */
:root{--bg:#f7f9f7;--surface:#ffffff;--surface2:#edf6ef;--line:#e2e9e3;--blue:#168b42;--text:#17251c;--muted:#69766c;--bs-primary:#168b42;--bs-primary-rgb:22,139,66}
html{color-scheme:light}body{background:#f1f4f1;color:var(--text)}.shell{background:var(--bg)}
.topbar{background:#fffffffa;border-bottom:1px solid var(--line);box-shadow:0 2px 10px #17251c09}
.header-btn,.icon-btn,.back{color:#203529}.brand span,.blue,.section-head a,.more-link,.price{color:var(--blue)}
.search,.field{background:#fff;border:1px solid #dce6de;color:#17251c}
.search::placeholder,.field::placeholder{color:#87968a}.field:focus,.search:focus{border-color:var(--blue);box-shadow:0 0 0 3px #168b421a}
select.field option{background:#fff;color:#17251c}
.welcome-icon{background:#e6f5e9;color:var(--blue)}.search-wrap .bi-search{color:#6c9075}
.hero{background:linear-gradient(120deg,#147a39,#3ca85c)}.default-hero{background:linear-gradient(120deg,#0c7434,#42ae60)}.hero small,.hero h2,.hero .copy{color:white}
.hero-cta,.btn-blue,.cart-float{background:#168b42;color:#fff;border:0;box-shadow:none}
.btn-blue:hover,.cart-float:hover{background:#117235;color:#fff}.btn-outline-blue{background:#fff;border:1px solid #168b42;color:#168b42}.btn-outline-blue:hover{background:#eaf7ed}
.btn-red{background:#fff0f0;color:#b42332;border:1px solid #f1c5c9}
.slider-dots span,.slider-dots button{background:#d1dad2}.slider-dots .on,.slider-dots button.on{background:#168b42}
.cat,.category-tile,.cardx,.panel,.product-row{background:#fff;border:1px solid var(--line);color:#1a291f;box-shadow:0 3px 14px #193e2209}
.cat.active,.category-tile.selected{background:#effaf1;border-color:#168b42;box-shadow:0 0 0 1px #168b42}
.pill{background:#e5f5e9;color:#137a36}.panel label{color:#516456}
#nav{background:#fffffffa;border-top:1px solid var(--line);box-shadow:0 -3px 14px #173b1d0a}
#nav button{color:#738477}#nav button.active{color:#168b42}
.banner-arrow{background:#ffffffdd;color:#176c34}.hero-basket{color:#c4f3d0}
.swal2-popup{background:#fff!important;color:#1c2a20!important}
.swal2-input,.swal2-select,.swal2-textarea{background:#fff!important;color:#1c2a20!important;border-color:#d6e4d8!important}
.swal2-confirm{background:#168b42!important}.status{color:#a46605}
.text-white{color:#17251c!important}.bg-dark{background:#fff!important}.text-primary{color:#168b42!important}
.btn-primary{--bs-btn-bg:#168b42;--bs-btn-border-color:#168b42;--bs-btn-hover-bg:#117235;--bs-btn-hover-border-color:#117235;--bs-btn-active-bg:#0d632e;--bs-btn-active-border-color:#0d632e}
@media(min-width:650px){body{background:#eef2ee}}

/* Header province/district list pickers */
.location-header{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;max-width:42%}
.location-part{padding:0;font-size:12px;min-height:21px;max-width:100%;white-space:nowrap}
.location-part span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.location-part:first-child{font-weight:700;font-size:13px}
.location-part .bi-chevron-down{font-size:10px;color:#168b42}
.location-search{display:flex;align-items:center;gap:10px;background:#f4f8f4;border:1px solid #dbe7de;border-radius:13px;padding:11px 13px;margin:14px 0}
.location-search input{border:0;outline:0;background:transparent;width:100%;color:#17251c;min-width:0}
.location-options{max-height:min(52vh,440px);overflow-y:auto;display:flex;flex-direction:column;gap:7px;text-align:right}
.location-option{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:right;padding:14px 15px;background:#fff;color:#17251c;border:1px solid #e0e9e2;border-radius:13px;font-weight:600}
.location-option.chosen{background:#edf9f0;border-color:#168b42;color:#168b42}
.location-option .bi{color:#168b42}
@media(max-width:380px){.brand{font-size:19px}.topbar{padding:10px 12px}.location-header{max-width:47%}}

/* Stores tab: screenshot-inspired vertical category rail, white/green theme */
.stores-page-head{display:flex;align-items:center;justify-content:space-between;margin:6px 0 18px}.stores-page-head h2{font-size:25px;margin:0}.stores-tools{display:flex;gap:10px}.stores-tools button{height:43px;width:43px;border-radius:50%;background:#fff;border:1px solid #edf0ec;color:#243029;font-size:20px;box-shadow:0 2px 9px #162d1910}
.stores-category-layout{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:start}.category-sidebar{display:flex;flex-direction:column;gap:15px;max-height:calc(100dvh - 215px);overflow-y:auto;scrollbar-width:none;padding:4px 3px 16px}.side-category{background:transparent;border:0;padding:4px 2px 7px;color:#7c877f;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px;min-width:0}.side-category img{width:76px;height:76px;border-radius:18px;object-fit:cover;border:3px solid transparent}.side-category span{line-height:1.4;overflow-wrap:anywhere}.side-category.active{color:#1d4b33;font-weight:800}.side-category.active img{border-color:#177a49;outline:2px solid #d4e8da;outline-offset:2px}.category-main{background:#fff;border-radius:22px;padding:14px 12px;min-height:65vh;min-width:0}.category-main-heading h3{margin:0;font-size:19px}.category-main-heading p{color:#809087;font-size:12px;margin:5px 0 12px}.category-search{display:flex;align-items:center;gap:8px;background:#f6f8f6;border-radius:12px;padding:10px 12px;margin-bottom:14px;color:#168b42}.category-search input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-size:12px;color:#233629}.category-store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-store-card{border:0;background:#fff;text-align:center;color:#25362a;min-width:0;padding:0 0 12px;display:flex;flex-direction:column;align-items:center;gap:7px}.category-store-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:16px}.category-store-card strong{font-size:13px;line-height:1.4}.category-store-card small{color:#168b42;font-size:11px}.category-store-grid .empty{grid-column:1/-1}
@media(max-width:390px){main{padding:14px 10px}.stores-category-layout{grid-template-columns:82px minmax(0,1fr);gap:8px}.side-category img{width:64px;height:64px}.category-main{padding:12px 8px}.category-store-grid{gap:8px}.category-store-card strong{font-size:12px}}
@media(min-width:650px){.stores-category-layout{grid-template-columns:140px minmax(0,1fr);gap:18px}.side-category img{width:98px;height:98px}.category-store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Fullscreen cart view, keeping each store's independent basket */
body.cart-screen-active{overflow-x:hidden;background:#fff}
body.cart-screen-active .topbar,body.cart-screen-active #nav{display:none!important}
body.cart-screen-active .shell{max-width:none;min-height:100dvh;background:#fff}
body.cart-screen-active #view{min-height:100dvh;max-width:760px;margin:0 auto;padding:0 15px 35px!important}
.cart-page-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:15px;background:#fff;border-bottom:1px solid #e9efe9;padding:18px 0;margin-bottom:18px}
.cart-page-header h2{font-size:21px;font-weight:800;margin:0;color:#183a25}.cart-page-header small{color:#839087;font-size:12px}
.cart-back{width:43px;height:43px;flex:none;border-radius:13px;border:1px solid #e4ece5;background:#f7faf7;color:#168b42;font-size:21px}
.cart-store-panel{background:#fff;border:1px solid #e5eee7;border-radius:20px;padding:16px;margin-bottom:18px;box-shadow:0 4px 18px #16351d0a}
.cart-store-title{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:14px;border-bottom:1px solid #edf2ed}.cart-store-title>div{display:flex;align-items:center;gap:9px;color:#193b26}.cart-store-title .bi-shop{color:#168b42;font-size:20px}.cart-store-title button{background:#edf8ef;border:0;color:#168b42;border-radius:10px;padding:9px;font-size:12px;font-weight:700}
.cart-product{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 0;border-bottom:1px solid #edf2ed}.cart-product-details{display:flex;flex-direction:column;gap:5px;min-width:0}.cart-product-details strong{font-size:15px;color:#21352a}.cart-product-details span{color:#8b978e;font-size:12px}.cart-product-details b{color:#168b42;font-size:14px}.cart-quantity{display:flex;align-items:center;gap:12px}.cart-quantity button{width:34px;height:34px;border-radius:10px;border:1px solid #d4e8d8;background:#f0f9f2;color:#168b42;font-size:20px}.cart-totals{padding:16px 0}.cart-totals>div{display:flex;justify-content:space-between;margin:8px 0;color:#65766b;font-size:14px}.cart-totals .cart-grand-total{border-top:1px solid #e9efe9;margin-top:13px;padding-top:14px;color:#173c26;font-size:18px}.cart-checkout{border-radius:13px;min-height:48px}.cart-empty{text-align:center;padding:20vh 12px}.cart-empty>.bi{font-size:60px;color:#168b42}.cart-empty h3{margin-top:14px}.cart-empty p{color:#87958a}

/* معاينة الصور وشريط تقدم الرفع */
.image-upload-field{margin:12px 0;text-align:right}
.image-upload-field label{display:block;font-weight:700;margin:8px 0}
.image-upload-field .swal2-file{max-width:100%;width:100%;box-sizing:border-box;margin:4px 0}
.image-preview{height:180px;border:2px dashed #b9d8c4;background:#f6fbf7;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#6c8375;margin:10px 0}
.image-preview img{width:100%;height:100%;object-fit:contain}
.upload-track{height:12px;border-radius:99px;background:#e6eee8;overflow:hidden;margin:14px 0 8px}
.upload-fill{height:100%;width:0;background:#168548;transition:width .15s ease}

/* Cairo Arabic font across all app elements and dialogs */
html,body,button,input,select,textarea,.swal2-popup,.swal2-popup *{font-family:"Cairo",Tahoma,"Segoe UI",sans-serif!important;}

/* Gibly full-screen account and search */
body:has(.auth-panel) .topbar,body:has(.auth-panel) #nav,body:has(#fullSearchInput) .topbar,body:has(#fullSearchInput) #nav{display:none!important}
body:has(.auth-panel) .shell,body:has(#fullSearchInput) .shell{max-width:none;min-height:100dvh;padding-bottom:0;background:#fff}
body:has(.auth-panel) #view,body:has(#fullSearchInput) #view{max-width:760px;margin:auto;min-height:100dvh;padding:20px 16px 35px}
.fullscreen-heading{display:flex;align-items:center;gap:16px;margin:0 0 22px}
.fullscreen-heading h2{margin:0}.fullscreen-heading button{background:#f0f7f2;border:0;border-radius:12px;padding:9px 13px;color:#168b42;font-size:20px}
.auth-panel{max-width:460px;margin:35px auto;padding:24px}
.search-history{display:flex;align-items:center;gap:12px;width:100%;background:#fff;border:0;border-bottom:1px solid #edf0ed;padding:14px 6px;text-align:right;color:#27372c}
.search-history i{color:#168b42}.suggestions{display:flex;gap:9px;flex-wrap:wrap}.suggestions button{background:#eff8f0;border:1px solid #d5ead9;color:#16783c;border-radius:25px;padding:9px 16px}
.search-result{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0ed;cursor:pointer}.search-result img{width:65px;height:65px;object-fit:cover;border-radius:12px}.search-result>div{flex:1}.search-result p{margin:4px 0 0}
/* Real uploaded admin slide photos, without overlay, captions or buttons */
.banner-track .hero-photo{width:100%;height:auto;aspect-ratio:2.1/1;border-radius:17px;padding:0;background-position:center!important;background-size:cover!important}
.banner-track .banner-arrow,.banner-track .hero-cta,.banner-track .copy{display:none!important}
.slider-dots span{display:block;width:7px;height:7px;background:#b9d8c4;border-radius:20px}.slider-dots span.on{width:22px;background:#168b42}

/* Slide text and shop button (optional) */
.banner-track .hero-photo{position:relative;overflow:hidden}
.banner-track .slide-overlay{position:absolute;inset:0;display:none;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;padding:clamp(15px,4vw,32px);background:linear-gradient(270deg,rgba(0,0,0,.65),rgba(0,0,0,0) 85%);color:#fff;text-align:right}
.banner-track .slide-overlay.visible{display:flex!important}
.banner-track .slide-title{font-family:Cairo,sans-serif;font-weight:800;font-size:clamp(18px,4vw,30px);line-height:1.5;margin:0;max-width:85%;color:#fff}
.banner-track .slide-shop-btn{display:inline-flex!important;align-items:center;justify-content:center;background:#168548;color:white;border:0;border-radius:12px;padding:9px 22px;font-family:Cairo,sans-serif;font-weight:700;font-size:14px;cursor:pointer}
.slide-label{display:block;text-align:right;margin:12px 7% 2px;font-weight:700}

/* البحث والإشعارات متجاوران في الهيدر */
.header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0;direction:rtl}.header-actions .icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:40px;padding:0}

/* Loading Skeleton: يحاكي شكل الصفحة بدلاً من نص جاري التحميل */
.skeleton-screen{display:block;width:100%;padding:8px 0 18px;min-height:230px;pointer-events:none}
.sk{background:linear-gradient(100deg,#e9efea 8%,#f8faf8 28%,#e9efea 48%);background-size:220% 100%;animation:skShimmer 1.35s linear infinite;border-radius:13px}
@keyframes skShimmer{to{background-position-x:-220%}}
.sk-heading{width:46%;height:26px;margin:13px 0 20px}
.sk-banner{height:clamp(145px,25vw,225px);border-radius:20px;margin:12px 0}
.sk-dots{display:flex;gap:8px;justify-content:center;margin:13px 0 24px}
.sk-dots i{width:9px;height:9px;border-radius:50%;background:#e9efea}
.sk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.sk-card{border:1px solid #e9eeea;background:#fff;border-radius:17px;padding:9px;min-width:0}
.sk-photo{height:125px;border-radius:12px;margin-bottom:12px}
.sk-line{height:14px;width:90%;margin:11px 0}
.sk-line.short{width:52%;height:12px}
.sk-stores{display:grid;grid-template-columns:85px minmax(0,1fr);gap:13px}
.sk-stores aside{display:flex;flex-direction:column;gap:12px}
.sk-side{height:96px}
.sk-search{height:46px;margin-bottom:17px}
.sk-product{display:grid;grid-template-columns:94px minmax(0,1fr);gap:15px;padding:13px;margin:10px 0;background:#fff;border:1px solid #edf0ed;border-radius:15px}
.sk-thumb{width:94px;height:88px}
.sk-result{padding:18px;margin:10px 0;background:#fff;border:1px solid #edf0ed;border-radius:15px}
.sk-profile{padding:30px 18px;border:1px solid #edf0ed;border-radius:20px;display:flex;align-items:center;flex-direction:column}
.sk-avatar{height:85px;width:85px;border-radius:50%}
.sk-button{height:43px;width:65%;margin:18px auto 0}
.upload-skeleton{min-height:0;padding:8px}.upload-skeleton .sk-banner{height:100px}
@media(min-width:650px){.sk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sk-stores{grid-template-columns:110px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.sk{animation:none}}

/* Account page: compact grouped list instead of large action buttons */
.account-page{padding-bottom:24px}.account-heading{font-weight:800;margin:5px 0 16px}
.account-profile-card{background:#fff;border:1px solid #e5ebe7;border-radius:20px;padding:18px;display:flex;align-items:center;gap:14px;margin-bottom:18px;box-shadow:0 2px 12px #0d2c1c06}
.account-avatar{height:66px;width:66px;flex-shrink:0;border-radius:16px;object-fit:cover}
.account-avatar-fallback{background:#edf5ef;color:#168548;display:flex;align-items:center;justify-content:center;font-size:30px}
.account-profile-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;text-align:right}
.account-profile-info strong{font-size:19px}.account-profile-info small{color:#77837b;font-size:12px;overflow-wrap:anywhere}
.account-profile-edit{border:0;background:#edf6ef;color:#168548;border-radius:12px;padding:11px;cursor:pointer}
.account-list-group{background:#fff;border:1px solid #e6ebe7;border-radius:18px;overflow:hidden;margin-bottom:15px}
.account-list-row{display:flex;align-items:center;gap:13px;width:100%;min-height:61px;padding:13px 17px;border:0;border-bottom:1px solid #edf0ee;background:#fff;text-align:right;color:#26372c;font-family:Cairo,Tahoma,sans-serif;cursor:pointer}
.account-list-row:last-child{border-bottom:0}.account-list-row:active{background:#f3f8f4}
.account-row-icon{font-size:21px;color:#687b70;width:28px;text-align:center}.account-row-label{flex:1;font-size:15px;font-weight:650;display:flex;flex-direction:column}.account-row-label small{font-size:11px;font-weight:400;color:#849087}
.account-chevron{font-size:15px;color:#a1aaa4}.account-danger .account-row-icon,.account-danger .account-row-label{color:#b63c4a}.account-app-version{text-align:center;color:#a5aea7;font-size:12px;margin:20px 0}

/* Full-screen profile edit, avatar upload and notifications */
.account-photo-trigger{position:relative;border:0;background:transparent;padding:0;cursor:pointer;flex-shrink:0}
.account-photo-trigger .account-avatar{display:block}
.account-photo-camera{position:absolute;bottom:0;left:0;background:#168548;color:#fff;border:2px solid white;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:13px}
.profile-form{display:flex;flex-direction:column;gap:11px;padding:12px 4px 30px}
.profile-form label{font-weight:700;text-align:right;color:#1e3429;margin-top:8px}
.profile-form .field{width:100%;min-height:52px;background:#fff;color:#183529;border:1px solid #d9e5dd;border-radius:12px;padding:12px 15px;font-family:Cairo,sans-serif}
.profile-form button{margin-top:18px}
.notification-list{display:flex;flex-direction:column;gap:12px;padding-bottom:30px}
.notification-item{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #e3ebe5;border-radius:16px;padding:16px}
.notification-item.unread{border-color:#b3d8c0;background:#f5fbf6}
.notification-item strong{display:block;font-weight:800}
.notification-item p{margin:4px 0;color:#607168;overflow-wrap:anywhere}
.notification-item small{color:#89958d}
.notification-icon{color:#168548;font-size:22px}

/* Homepage: fast horizontal, two-row category rail like shopping apps */
#categoryGrid.category-grid{display:grid;grid-template-rows:repeat(2,minmax(0,auto));grid-auto-columns:clamp(135px,39vw,190px);grid-auto-flow:column;grid-template-columns:none;gap:12px;overflow-x:auto;overflow-y:hidden;direction:rtl;scroll-snap-type:x proximity;scroll-padding-inline:4px;scrollbar-width:thin;scrollbar-color:#168548 #e8efe9;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;padding:4px 3px 12px;align-items:stretch}
#categoryGrid .category-tile{scroll-snap-align:start;display:flex!important;min-width:0;min-height:190px;justify-content:flex-start;padding:11px 9px 14px;gap:9px;border-radius:20px;background:#fff;color:#1c2c21;border:1px solid #e4eae5;box-shadow:0 2px 9px #183c2108;font-family:Cairo,sans-serif}
#categoryGrid .category-tile img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:14px;display:block}
#categoryGrid .category-tile span{font-size:clamp(12px,3.4vw,16px);font-weight:700;line-height:1.45;overflow-wrap:anywhere}
#categoryGrid .category-tile.selected{border-color:#168548;box-shadow:0 0 0 1px #168548;background:#f2faf4}
#categoryGrid::-webkit-scrollbar{height:5px}
#categoryGrid::-webkit-scrollbar-thumb{background:#168548;border-radius:20px}
#categoryGrid::-webkit-scrollbar-track{background:#e8efe9;border-radius:20px}
@media(min-width:650px){#categoryGrid.category-grid{grid-auto-columns:190px}#categoryGrid .category-tile{min-height:245px}}

/* Gibly: login/register visual redesign, existing authentication unchanged */
body:has(.gibly-auth-screen) .topbar,body:has(.gibly-auth-screen) #nav{display:none!important}
body:has(.gibly-auth-screen) .shell{max-width:none;background:#f8faf8;padding:0;min-height:100dvh}
body:has(.gibly-auth-screen) main,body:has(.gibly-auth-screen) #view{padding:0;max-width:none;margin:0;min-height:100dvh}
.gibly-auth-screen{min-height:100dvh;background:#f8faf8;direction:rtl;display:flex;flex-direction:column}
.gibly-auth-green{min-height:48dvh;padding:44px 24px 100px;text-align:center;color:white;position:relative;background:linear-gradient(150deg,#389f53,#82bf88);overflow:hidden}
.gibly-auth-green:before{content:"";position:absolute;inset:0;opacity:.13;background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);background-size:45px 45px;pointer-events:none}
.gibly-auth-back{position:absolute;right:20px;top:18px;color:white;border:1px solid #ffffff66;background:#ffffff20;border-radius:50%;width:38px;height:38px;z-index:1}
.gibly-auth-brand{position:relative;margin:12px auto 25px;display:flex;flex-direction:column;align-items:center;gap:7px}
.gibly-auth-logo{font-size:52px;color:#fff}.gibly-auth-wordmark{font-size:32px;font-weight:900;line-height:1.3}.gibly-auth-wordmark span{color:#e6ffeb}
.gibly-auth-green h1{position:relative;font-size:clamp(22px,5vw,30px);font-weight:800;margin:12px 0 4px}
.gibly-auth-green p{position:relative;font-size:15px;margin:0;color:#effff1}
.gibly-auth-card{position:relative;margin:-66px 16px 0;padding:30px 20px 32px;border-radius:26px;background:#fff;box-shadow:0 10px 35px #1b492016;display:flex;flex-direction:column;gap:16px;width:calc(100% - 32px);max-width:480px;align-self:center}
.gibly-auth-field{min-height:59px;border:1px solid #e2e7e3;border-radius:17px;background:#fff;display:flex;align-items:center;gap:13px;padding:0 15px;color:#78857b}
.gibly-auth-field:focus-within{border-color:#168b42;box-shadow:0 0 0 3px #168b4212}
.gibly-auth-field>i{font-size:22px;flex-shrink:0}
.gibly-auth-field input{min-width:0;flex:1;width:100%;border:0;outline:0;background:transparent;color:#213429;font-size:15px;text-align:right}
.gibly-auth-field input::placeholder{color:#9aa49c}
.gibly-auth-flag{font-size:21px;flex-shrink:0}
.gibly-password-toggle{border:0;background:none;color:#7e8981;font-size:21px;padding:5px}
.gibly-auth-submit{width:100%;min-height:57px;background:#168b42;color:#fff;border:0;border-radius:17px;font-size:17px;font-weight:800;margin-top:14px}
.gibly-auth-submit:active{background:#0f7033}
.gibly-auth-switch{text-align:center;color:#6f7a71;font-size:14px;margin-top:6px}
.gibly-auth-switch button{border:0;background:transparent;color:#168b42;font-weight:800;padding:4px}
.gibly-auth-footer{margin:auto auto 12px;padding:20px 0;color:#a3ada5;font-size:12px;text-align:center}
@media(min-width:700px){.gibly-auth-green{min-height:46dvh}.gibly-auth-card{margin-top:-85px;padding:36px 32px}}

/* Compact responsive login proportions and password recovery */
.gibly-auth-green{min-height:42dvh;padding:30px 22px 86px}
.gibly-auth-brand{margin:3px auto 13px;gap:2px}
.gibly-auth-logo{font-size:43px}
.gibly-auth-wordmark{font-size:29px}
.gibly-auth-green h1{font-size:clamp(22px,5vw,27px);margin:8px 0 3px}
.gibly-auth-green p{font-size:14px}
.gibly-auth-card{margin-top:-57px;padding:24px 20px 26px;gap:13px}
.gibly-auth-field{min-height:54px;border-radius:15px}
.gibly-auth-submit{min-height:53px;margin-top:8px}
.gibly-forgot-link{border:0;background:none;color:#168b42;align-self:flex-start;font-family:Cairo,sans-serif;font-weight:700;font-size:13px;padding:0 3px;cursor:pointer}
#resetFields:not([hidden]){display:flex;flex-direction:column;gap:13px}
@media(max-height:700px){.gibly-auth-green{min-height:39dvh;padding-bottom:70px}.gibly-auth-card{margin-top:-46px}}
@media(min-width:700px){.gibly-auth-green{min-height:39dvh}.gibly-auth-card{margin-top:-68px}}

/* Full-bleed authentication layout: override legacy page wrappers and Bootstrap spacing. */
html:has(.gibly-auth-screen),body:has(.gibly-auth-screen){width:100%;max-width:100%;margin:0!important;padding:0!important;overflow-x:clip}
body:has(.gibly-auth-screen) .shell,body:has(.gibly-auth-screen) main#view{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
body:has(.gibly-auth-screen) .gibly-auth-screen{position:relative;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow-x:clip}
body:has(.gibly-auth-screen) .gibly-auth-green{width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important}
body:has(.gibly-auth-screen) .gibly-auth-card{width:calc(100% - 32px)!important;max-width:480px!important;margin:-57px auto 0!important;flex-shrink:0}
body:has(.gibly-auth-screen) .gibly-auth-footer{width:100%}
@media(min-width:700px){body:has(.gibly-auth-screen) .gibly-auth-card{margin-top:-68px!important}}

/* Company account actions */
.account-theme-title{display:flex;align-items:center;gap:12px;padding:17px 20px 5px;font-weight:800;color:#243a2c}
.account-theme-radios{display:flex;gap:24px;padding:14px 22px 20px;align-items:center}
.account-theme-radios label{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:700}
.account-theme-radios input{accent-color:#168b42;width:19px;height:19px}
.company-about-card,.feedback-card{background:#fff;border:1px solid #e0e7e1;border-radius:18px;padding:20px;margin:15px 0}
.company-about-card h3{color:#168b42;font-weight:900}
.company-about-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2}
.feedback-card p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}
.feedback-list{padding-bottom:40px}.settings-label{display:block;text-align:right;padding:5px 8%;font-weight:700}
/* Dark appearance: visual only, persistent per device */
body.gibly-dark,body.gibly-dark .shell,body.gibly-dark main{background:#111b17!important;color:#e7f3e9!important}
body.gibly-dark .topbar,body.gibly-dark #nav,body.gibly-dark .account-profile-card,body.gibly-dark .account-list-group,body.gibly-dark .account-list-row,body.gibly-dark .panel,body.gibly-dark .company-about-card,body.gibly-dark .feedback-card{background:#1d2c24!important;color:#e7f3e9!important;border-color:#35483b!important}
body.gibly-dark .account-row-label,body.gibly-dark .account-heading,body.gibly-dark .account-profile-info strong,body.gibly-dark .account-theme-title,body.gibly-dark .brand,body.gibly-dark .section-head h3{color:#e7f3e9!important}
body.gibly-dark .muted,body.gibly-dark small{color:#b0c0b4!important}
body.gibly-dark input:not([type=radio]),body.gibly-dark textarea,body.gibly-dark select{background:#24362b;color:#f1fff3;border-color:#405b49}
body.gibly-dark .gibly-auth-screen{background:#111b17}

/* Gibly: frosted glass SweetAlert2 across mobile and tablet */
.swal2-container{background:rgba(16,33,23,.22)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:16px!important}
.swal2-popup{width:min(92vw,440px)!important;max-width:100%!important;background:rgba(255,255,255,.79)!important;backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%);border:1px solid rgba(255,255,255,.7)!important;border-radius:30px!important;box-shadow:0 22px 55px rgba(0,0,0,.17)!important;padding:25px 20px!important;font-family:Cairo,Tahoma,sans-serif!important;direction:rtl}
.swal2-title{font-family:inherit!important;color:#17251d!important;font-weight:800!important;font-size:clamp(23px,5vw,29px)!important;line-height:1.5!important}
.swal2-html-container{font-family:inherit!important;color:#26392c!important;font-size:clamp(14px,3.8vw,17px)!important;line-height:1.8!important;overflow-wrap:anywhere}
.swal2-icon{margin:14px auto 18px!important;transform:scale(1.06)}
.swal2-actions{width:100%;gap:10px;margin:22px 0 0!important}
.swal2-styled.swal2-confirm{background:#168b42!important;border:0!important;border-radius:30px!important;color:#fff!important;font-family:Cairo,Tahoma,sans-serif!important;font-weight:800!important;font-size:16px!important;min-height:49px;padding:10px 26px!important;box-shadow:0 8px 18px rgba(22,139,66,.23)!important}
.swal2-styled.swal2-cancel{border-radius:30px!important;font-family:Cairo,Tahoma,sans-serif!important;font-weight:700!important;min-height:49px;padding:10px 22px!important}
.swal2-input,.swal2-select,.swal2-textarea{max-width:100%!important;box-sizing:border-box!important;font-family:Cairo,Tahoma,sans-serif!important;border-radius:13px!important}
.swal2-textarea{min-height:110px!important}
body.gibly-dark .swal2-popup{background:rgba(30,45,35,.85)!important;border-color:rgba(255,255,255,.15)!important}
body.gibly-dark .swal2-title,body.gibly-dark .swal2-html-container{color:#f0f7f0!important}
@media(max-width:380px){.swal2-popup{padding:20px 13px!important}.swal2-styled.swal2-confirm{font-size:14px!important}}

/* Completion screen: searchable location lists, no photo upload */
.profile-list-choice{width:100%;min-height:54px;display:flex;align-items:center;justify-content:space-between;flex-direction:row;background:#fff;border:1px solid #d9e5dd;border-radius:12px;padding:12px 15px;color:#203b2b;font-family:Cairo,sans-serif;text-align:right}
.profile-list-choice i{color:#168548}
.profile-gender-options{display:flex;gap:12px}
.profile-gender-options label{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;border:1px solid #d9e5dd;border-radius:12px;min-height:54px;margin:0!important;cursor:pointer}
.profile-gender-options input{accent-color:#168548;width:19px;height:19px}

/* Four-step checkout, cash on delivery only */
body:has(.checkout-screen) .topbar,body:has(.checkout-screen) #nav{display:none!important}
.checkout-screen{direction:rtl;min-height:100dvh;padding:0 0 32px;font-family:Cairo,sans-serif}
.checkout-top{display:flex;align-items:center;justify-content:space-between;background:#08613c;color:#fff;padding:18px 15px;border-radius:0 0 18px 18px}
.checkout-top button{background:#ffffff22;color:#fff;border:1px solid #ffffff66;border-radius:50%;height:38px;width:38px}.checkout-brand{font-size:23px;font-weight:900}
.checkout-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:17px 7px 7px}.checkout-progress-item{text-align:center;color:#9aa39e;font-size:11px}.checkout-progress-item span{display:grid;place-items:center;width:28px;height:28px;margin:0 auto 5px;border-radius:50%;background:#e8edea;color:#8a9a90;font-weight:800}.checkout-progress-item.done span,.checkout-progress-item.active span{background:#087745;color:#fff}.checkout-progress-item small{font-size:10px;display:block}.checkout-step-title{padding:10px 12px}.checkout-step-title small{color:#168548}.checkout-step-title h2{font-size:23px;font-weight:800;margin:3px 0 10px}.checkout-card{background:#fff;border:1px solid #e0e8e2;border-radius:19px;padding:17px;margin:10px 0}.checkout-card h3{font-size:17px;font-weight:800;margin-bottom:14px}.checkout-product{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #eef1ee}.checkout-product:last-child{border-bottom:0}.checkout-product img{width:66px;height:66px;border-radius:11px;object-fit:cover}.checkout-product>div:nth-child(2){flex:1;min-width:0}.checkout-product b{display:block}.checkout-product small{color:#66776b}.checkout-quantity{display:flex;align-items:center;gap:10px}.checkout-quantity button{width:29px;height:29px;border:0;border-radius:8px;background:#e6f4ea;color:#087745;font-weight:800}.checkout-summary>div,.checkout-review-line{display:flex;justify-content:space-between;gap:14px;padding:7px 0}.checkout-review-line b{text-align:left;max-width:65%;overflow-wrap:anywhere}.checkout-grand{border-top:1px solid #d8e5dc;margin-top:8px;padding-top:13px!important;color:#087745}.checkout-card label{display:block;font-weight:700;margin:12px 0 6px}.checkout-field{display:block;width:100%;border:1px solid #dce5df;border-radius:12px;padding:12px;background:#fff;font-family:Cairo,sans-serif;outline-color:#168548}.checkout-next{margin:16px 0 10px!important;min-height:51px}.checkout-cash{color:#087745}.checkout-success{text-align:center;background:#fff;border-radius:18px;padding:32px 18px;margin:16px 0}.checkout-success>i{font-size:95px;color:#13924f}.checkout-success h2{font-size:22px;font-weight:900}.checkout-success p{color:#53685a}.checkout-secondary{display:block;width:100%;padding:13px;margin-top:12px;border:1px solid #087745;color:#087745;background:#fff;border-radius:12px;font-family:Cairo,sans-serif;font-weight:800}

/* GPS order tracking */
.gps-tracking{display:flex;flex-direction:column;gap:14px;padding-bottom:28px}
.gps-map{border:2px solid #168548;border-radius:18px;overflow:hidden;height:285px;background:#eef6ef}
.gps-map iframe{width:100%;height:100%;border:0}
.gps-map-placeholder{border:1px dashed #a4c8b0;border-radius:18px;min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#607d6b;text-align:center;padding:20px;background:#f2faf4}
.gps-map-placeholder i{font-size:35px;color:#168548}.gps-map-placeholder p{margin:0}
.gps-stages{background:white;border:1px solid #e0e9e1;border-radius:18px;padding:16px;display:grid;gap:12px}
.gps-stage{display:flex;align-items:center;gap:12px;color:#7c8b7e}
.gps-stage span{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#eef1ef}
.gps-stage.complete{color:#135e35}.gps-stage.complete span{background:#168548;color:white}
.gps-call{display:inline-block;text-decoration:none}

.orders-load-error{background:#fff;border:1px solid #e4ebe5;border-radius:20px;padding:40px 20px;margin:30px 8px;text-align:center;color:#233b2b;font-family:Cairo,sans-serif}.orders-load-error>i{font-size:44px;color:#168548}.orders-load-error p{color:#728078;margin:12px 0 22px}.orders-load-error button{padding:12px 26px;border-radius:14px}

.checkout-gps-btn{width:100%;padding:13px;border:1px solid #178847;background:#edf8f1;color:#137b3c;border-radius:14px;font-family:Cairo,sans-serif;font-weight:700;margin-top:12px}
.ai-support-screen{height:calc(100dvh - 145px);min-height:450px;display:flex;flex-direction:column;gap:10px;padding:12px 15px 18px}
.ai-chat-messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:10px 2px}
.ai-bubble{max-width:88%;padding:12px 15px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9}
.ai-assistant{align-self:flex-start;background:#fff;border:1px solid #e1e9e3}
.ai-user{align-self:flex-end;background:#e2f5e9;color:#163f29}
.ai-chat-form{display:flex;gap:8px;background:white;padding:7px;border:1px solid #dfe8e1;border-radius:30px}
.ai-chat-form input{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:8px;font-family:Cairo,sans-serif}
.ai-chat-form button{border:0;border-radius:50%;width:43px;background:#168b42;color:white}
.ai-human-link{border:0;background:none;color:#168b42;font-family:Cairo,sans-serif}

.store-slider{height:190px;position:relative;border-radius:18px;overflow:hidden;background:#edf3ef}.store-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s}.store-slide.active{opacity:1}.store-dots{position:absolute;bottom:9px;left:0;right:0;display:flex;justify-content:center;gap:7px}.store-dot{width:9px;height:9px;border:0;border-radius:50%;background:#ffffff9c;padding:0}.store-dot.active{background:#168c46;width:20px;border-radius:12px}.store-cat-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:5px 0 12px;white-space:nowrap}.store-cat{flex-shrink:0;border:0;border-radius:22px;padding:9px 17px;background:#edf2ee;color:#286347;font-family:Cairo,sans-serif}.store-cat.active{background:#168b46;color:white}.store-slide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.store-slide-grid img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}.store-manage-item{padding:12px 0;border-bottom:1px solid #eee}
