:root{--green:#148a3a;--green2:#0d6f31;--lime:#eaf8ef;--orange:#ff6b00;--ink:#142018;--muted:#647069;--line:#e2e9e4;--bg:#f7faf8;--card:#fff;--danger:#b42318}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Noto Sans Arabic",system-ui,-apple-system,Arial,sans-serif;padding-bottom:92px}body.modal-open{overflow:hidden}button,input,select,textarea{font:inherit}.shop-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:10px max(14px,calc((100vw - 1180px)/2))}.brand-wrap{display:flex;align-items:center;gap:11px}.brand-wrap img{width:62px;height:62px;object-fit:contain;border-radius:15px}.brand-wrap h1{font-size:21px;margin:0;color:var(--green2);font-weight:900}.brand-wrap small{color:var(--muted);font-size:13px}.lang-btn{border:1px solid #cfe2d4;background:#fff;border-radius:12px;padding:10px 15px;font-weight:900;color:var(--green2);cursor:pointer}main{max-width:1180px;margin:auto;padding:18px 14px}.hero{background:linear-gradient(135deg,#e9f8ee,#fff7ed);border:1px solid #d8eddf;border-radius:24px;padding:26px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;box-shadow:0 10px 30px rgba(20,138,58,.05)}.hero h2{font-size:clamp(28px,5vw,46px);margin:8px 0 7px;line-height:1.12}.hero p{margin:0;color:var(--muted)}.hours-info{margin-top:7px!important;font-size:13px}.eyebrow{color:var(--green);font-weight:900}.hero-badge{font-size:82px;filter:drop-shadow(0 10px 18px rgba(20,138,58,.15))}.searchbar{display:grid;grid-template-columns:1fr 190px;gap:10px;margin:18px 0}.searchbar input,.searchbar select{border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px 15px;outline:none}.searchbar input:focus,.searchbar select:focus{border-color:#84c899;box-shadow:0 0 0 3px rgba(20,138,58,.08)}.notice{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:13px;padding:13px;margin-bottom:14px}.notice.neutral{background:#f7faf8;color:var(--muted);border-color:var(--line)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.product{background:#fff;border:1px solid var(--line);border-radius:19px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 6px 22px rgba(18,56,31,.04);transition:.18s}.product:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(18,56,31,.08)}.product-img{aspect-ratio:1.28/1;background:#eff7f1;display:grid;place-items:center;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.product-img span{font-size:50px}.product-body{padding:14px;display:grid;gap:10px;flex:1}.product h3{margin:0;font-size:17px}.category-mini{font-size:11px;color:var(--muted);margin-top:3px}.product-meta{display:flex;justify-content:space-between;align-items:end}.price{font-size:19px;font-weight:900;color:var(--green2)}.unit{font-size:11px;color:var(--muted)}.add-btn{border:0;background:var(--green);color:#fff;border-radius:11px;padding:10px 13px;font-weight:900;cursor:pointer}.add-btn:disabled{opacity:.45;cursor:not-allowed}.qty-control{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;border:1px solid var(--line);border-radius:11px;overflow:hidden}.qty-control button{border:0;background:#f5faf6;height:38px;font-size:20px;cursor:pointer}.qty-control b{text-align:center}.cart-fab{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:40;width:min(560px,calc(100% - 24px));border:0;background:#102b1a;color:#fff;border-radius:18px;padding:14px 18px;display:flex;align-items:center;gap:10px;box-shadow:0 14px 40px rgba(16,43,26,.28);cursor:pointer}.cart-fab b{background:var(--orange);min-width:27px;height:27px;border-radius:999px;display:grid;place-items:center}.cart-fab strong{margin-inline-start:auto}.cart-label{font-weight:800;font-size:13px}.cart-fab.empty{opacity:.92}.drawer,.map-modal{position:fixed;inset:0;background:rgba(8,25,14,.56);z-index:60;display:none}.drawer.open{display:flex;align-items:flex-end}.drawer-panel{background:#fff;width:min(650px,100%);max-height:92dvh;margin:auto;border-radius:22px 22px 0 0;padding:20px;overflow:auto;position:relative}.drawer-close{position:absolute;top:12px;inset-inline-end:12px;border:0;background:#f1f5f2;width:36px;height:36px;border-radius:50%;font-size:24px;cursor:pointer}.cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.summary{display:grid;gap:8px;background:#f7faf8;border-radius:14px;padding:14px;margin:14px 0}.summary>div{display:flex;justify-content:space-between}.summary .grand{font-size:19px;font-weight:900;border-top:1px dashed #ccd8cf;padding-top:9px}.checkout-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.checkout-form label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.checkout-form input,.checkout-form select,.checkout-form textarea{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff;outline:none}.checkout-form input:focus,.checkout-form select:focus,.checkout-form textarea:focus{border-color:#84c899;box-shadow:0 0 0 3px rgba(20,138,58,.07)}.full{grid-column:1/-1}.location-box{border:1px dashed #b8c9bd;background:#f7fbf8;border-radius:14px;padding:12px}.location-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.location-btn,.map-pick-btn,.place-btn,.secondary-btn{border:0;border-radius:12px;padding:12px;font-weight:900;cursor:pointer}.location-btn,.place-btn{background:var(--green);color:#fff}.map-pick-btn,.secondary-btn{background:#fff;color:var(--green2);border:1px solid #cfe2d4}.place-btn{width:100%;font-size:16px}.place-btn:disabled{opacity:.45;cursor:not-allowed}.location-text{margin-top:8px}.location-success{color:#08752f;font-weight:800;font-size:12px}.location-error{color:var(--danger);font-weight:800;font-size:12px}.success{text-align:center;padding:20px 8px}.success .tick{font-size:60px}.success h2{color:var(--green2)}.toast{position:fixed;top:88px;left:50%;transform:translate(-50%,-10px);opacity:0;background:#102b1a;color:#fff;padding:11px 15px;border-radius:11px;z-index:100;transition:.2s;max-width:calc(100% - 28px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
.map-modal.open{display:grid;place-items:center;padding:14px;z-index:80}.map-card{background:#fff;border-radius:20px;width:min(760px,100%);max-height:94dvh;overflow:auto;box-shadow:0 24px 80px rgba(0,0,0,.25)}.map-head{display:flex;justify-content:space-between;gap:15px;padding:18px 18px 12px}.map-head h2{margin:0 0 5px;font-size:21px}.map-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.map-x{border:0;background:#f1f5f2;width:36px;height:36px;border-radius:50%;font-size:24px;flex:0 0 auto;cursor:pointer}.delivery-map{height:min(52vh,430px);min-height:300px;border-block:1px solid var(--line);z-index:1}.map-status-row{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px}.map-status{font-size:13px;line-height:1.45}.map-status.valid{color:#08752f}.map-status.invalid{color:var(--danger)}.map-actions{display:grid;grid-template-columns:150px 1fr;gap:10px;padding:0 18px 18px}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:9px!important}
body[dir="ltr"] .shop-header,body[dir="ltr"] .product-meta,body[dir="ltr"] .summary>div{direction:ltr}@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){body{padding-bottom:86px}.shop-header{padding:8px 12px}.brand-wrap img{width:50px;height:50px}.brand-wrap h1{font-size:18px}.product-grid{grid-template-columns:repeat(2,1fr);gap:9px}.hero{padding:18px;border-radius:19px}.hero h2{font-size:30px}.hero-badge{font-size:48px}.searchbar{grid-template-columns:1fr;margin:13px 0}.product-body{padding:10px}.product h3{font-size:15px}.price{font-size:17px}.checkout-form{grid-template-columns:1fr}.full{grid-column:auto}.location-buttons{grid-template-columns:1fr}.drawer-panel{padding:18px 14px;border-radius:20px 20px 0 0}.cart-label{display:none}.map-modal.open{padding:0;align-items:end}.map-card{width:100%;border-radius:20px 20px 0 0;max-height:96dvh}.delivery-map{height:48vh}.map-status-row{align-items:stretch;flex-direction:column}.map-actions{grid-template-columns:1fr 1.5fr}.hero-badge{display:none}}@media(max-width:380px){.product-grid{grid-template-columns:1fr}.map-actions{grid-template-columns:1fr}}
/* V5.5 Customer App */
.header-actions{display:flex;gap:8px;align-items:center}.install-btn{border:0;background:#eaf8ef;color:#0d6f31;border-radius:12px;padding:10px 12px;font-weight:900;cursor:pointer}.app-view{display:none}.app-view.active{display:block}.customer-view{min-height:60vh}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:50;width:min(620px,100%);background:rgba(255,255,255,.98);border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0;display:grid;grid-template-columns:repeat(3,1fr);padding:7px max(7px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));box-shadow:0 -10px 34px rgba(18,56,31,.09)}.bottom-nav button{border:0;background:transparent;color:var(--muted);display:grid;place-items:center;gap:2px;padding:5px;border-radius:12px;cursor:pointer}.bottom-nav button span{font-size:21px;line-height:1}.bottom-nav button b{font-size:11px}.bottom-nav button.active{color:var(--green2);background:#edf8f0}.cart-fab{bottom:78px}.mini-map-wrap{position:relative;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#eef7f1}.checkout-mini-map{height:190px;z-index:1}.map-overlay{position:absolute;z-index:500;top:9px;inset-inline-end:9px;background:rgba(255,255,255,.94);border:1px solid #cfe2d4;border-radius:10px;padding:7px 9px;color:var(--green2);font-weight:900;font-size:11px;cursor:pointer}.mini-map-caption{display:flex;justify-content:space-between;gap:8px;padding:9px 11px;background:#fff;font-size:11px;color:var(--muted)}.customer-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px;box-shadow:0 5px 20px rgba(18,56,31,.04)}.customer-card h2,.customer-card h3{margin-top:0}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.account-grid label{display:grid;gap:5px;color:var(--muted);font-size:12px}.account-grid input{border:1px solid var(--line);border-radius:11px;padding:12px}.account-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.order-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:11px}.order-head{display:flex;justify-content:space-between;gap:10px}.status-pill{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;text-transform:uppercase;background:#edf4ef}.status-new{background:#fff4dc}.status-accepted,.status-preparing{background:#fff1d6}.status-ready{background:#e7f8ec}.status-out_for_delivery{background:#e8f1ff}.status-delivered{background:#e5f7eb;color:#08752f}.status-cancelled{background:#feeceb;color:#b42318}.order-items{font-size:12px;color:var(--muted);margin-top:8px}.guest-track{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.guest-track input{border:1px solid var(--line);border-radius:11px;padding:12px}.discount-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.old-price{text-decoration:line-through;color:#8a948d;font-size:12px}.discount-badge{background:#fff0e5;color:#c14e00;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:900}.saved-location{padding:10px;border-radius:12px;background:#f4faf6;color:#08752f;font-size:12px;font-weight:800;margin-top:8px}.install-card{background:linear-gradient(135deg,#e9f8ee,#fff7ed);border-color:#d8eddf}.install-card .place-btn{max-width:280px}.profile-note{font-size:11px;color:var(--muted);line-height:1.5}.qr-hint{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);padding:7px 10px;border-radius:10px;font-size:11px;color:var(--muted)}
@media(max-width:650px){body{padding-bottom:150px}.cart-fab{bottom:76px}.bottom-nav{border-radius:18px 18px 0 0}.checkout-mini-map{height:175px}.guest-track{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}.header-actions{gap:5px}.install-btn,.lang-btn{padding:8px 10px;font-size:12px}}

/* V5.6 customer reliability + invoice */
.mini-map-caption small{display:block;margin-top:4px;color:#64748b;white-space:normal;line-height:1.35}
.order-card-btn{width:100%;text-align:inherit;font:inherit;color:inherit;background:var(--card,#fff);border:1px solid #e5e7eb;cursor:pointer}
.order-card-btn:hover{box-shadow:0 8px 22px rgba(15,23,42,.08)}
.invoice-hint{font-size:12px;font-weight:800;color:#148a3a;margin-top:8px}
.invoice-modal-card{position:relative;background:#fff;width:min(760px,94vw);max-height:90vh;overflow:auto;border-radius:24px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.28)}
.invoice-close{position:absolute;top:12px;right:12px;z-index:2}.invoice-title{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e5e7eb;padding-bottom:14px}.invoice-title img{width:62px;height:62px;object-fit:contain}.invoice-title h2,.invoice-title p{margin:0}.invoice-meta{display:grid;gap:6px;padding:14px 0;color:#475569}.invoice-sheet table{width:100%;border-collapse:collapse}.invoice-sheet th,.invoice-sheet td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:start}.invoice-totals{margin:14px 0}.invoice-totals>div{display:flex;justify-content:space-between;padding:6px 0}.invoice-totals .grand{font-size:18px;border-top:1px solid #cbd5e1;padding-top:10px}
@media print{body>*{display:none!important}#customerInvoiceModal,#customerInvoiceModal *{display:block!important}#customerInvoiceModal{position:static!important;background:#fff!important}.invoice-modal-card{box-shadow:none!important;width:100%!important;max-height:none!important}.invoice-close,.secondary-btn{display:none!important}}


/* V5.7 reliability + app polish */
.connection-banner{position:fixed;top:0;left:0;right:0;z-index:99999;background:#7c2d12;color:#fff;text-align:center;padding:8px 12px;font-weight:800;font-size:13px}
.field-hint{display:block;margin-top:6px;color:#6b7280;font-size:11px;line-height:1.35}
.orders-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.orders-title-row small{color:#6b7280;font-weight:700}
.order-timeline{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin:13px 0 8px;direction:ltr}.order-timeline span{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;color:#9ca3af;font-size:9px;text-align:center}.order-timeline span i{width:10px;height:10px;border-radius:50%;background:#d1d5db;box-shadow:0 0 0 3px #f3f4f6}.order-timeline span.done{color:#111827;font-weight:800}.order-timeline span.done i{background:#111827;box-shadow:0 0 0 3px #e5e7eb}.order-timeline.cancelled-line{display:block;color:#b91c1c;font-size:12px;font-weight:800;background:#fef2f2;padding:8px 10px;border-radius:10px}
@media(max-width:600px){.order-timeline span b{font-size:8px}.orders-title-row{align-items:flex-start;flex-direction:column;gap:2px}}


/* V5.8 Mobile-first app shell polish */
html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;overscroll-behavior-y:contain}
body{min-height:100dvh;touch-action:manipulation}
main,.app-view,.product-grid,.product,.product-body{min-width:0}

@media(max-width:650px){
  html{background:var(--bg)}
  body{padding-bottom:112px;background:var(--bg)}
  .shop-header{
    min-height:54px;padding:5px 10px;gap:8px;
    box-shadow:0 2px 10px rgba(18,56,31,.05)
  }
  .brand-wrap{gap:7px;min-width:0;flex:1}
  .brand-wrap img{width:38px;height:38px;border-radius:10px;flex:0 0 auto}
  .brand-wrap>div{min-width:0}
  .brand-wrap h1{font-size:15px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .brand-wrap small{font-size:10px;line-height:1.1;display:block;margin-top:2px;white-space:nowrap}
  .header-actions{gap:4px;flex:0 0 auto}
  .install-btn,.lang-btn{padding:6px 8px;border-radius:9px;font-size:11px;min-height:34px}

  main{padding:8px 8px 0}
  .hero{
    min-height:72px;padding:10px 12px;border-radius:15px;margin:0;
    box-shadow:none;align-items:center
  }
  .hero .eyebrow{font-size:10px;line-height:1}
  .hero h2{font-size:18px;line-height:1.15;margin:4px 0 4px;max-width:100%}
  .hero p{font-size:10px;line-height:1.25}
  .hours-info{font-size:9.5px!important;margin-top:3px!important}
  .hero-badge{display:none}

  .searchbar{
    position:sticky;top:54px;z-index:24;background:rgba(247,250,248,.96);
    backdrop-filter:blur(8px);grid-template-columns:minmax(0,1fr) 112px;
    gap:6px;margin:7px -1px 8px;padding:4px 1px
  }
  .searchbar input,.searchbar select{min-width:0;height:40px;padding:8px 10px;border-radius:11px;font-size:16px}
  .notice{padding:9px 10px;margin:0 0 8px;font-size:12px;border-radius:11px}

  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-bottom:4px}
  .product{border-radius:14px;box-shadow:0 2px 10px rgba(18,56,31,.035)}
  .product:hover{transform:none;box-shadow:0 2px 10px rgba(18,56,31,.035)}
  .product-img{aspect-ratio:1.22/1;max-height:128px}
  .product-img span{font-size:34px}
  .product-body{padding:8px;gap:6px}
  .product h3{font-size:13.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .category-mini{font-size:9px;margin-top:1px}
  .product-meta{gap:4px;align-items:center}
  .price{font-size:15.5px;line-height:1.1}
  .unit{font-size:9px}
  .old-price{font-size:10px}
  .discount-badge{font-size:8.5px;padding:3px 5px}
  .add-btn{min-height:35px;padding:7px 9px;border-radius:9px;font-size:12px}
  .qty-control{grid-template-columns:31px 1fr 31px;border-radius:9px}
  .qty-control button{height:34px;font-size:17px}
  .qty-control b{font-size:12px}

  .cart-fab{
    bottom:60px;width:calc(100% - 16px);height:44px;min-height:44px;
    padding:6px 11px;border-radius:13px;gap:7px;box-shadow:0 8px 24px rgba(16,43,26,.2)
  }
  .cart-fab>span:first-child{font-size:16px}
  .cart-fab b{min-width:23px;width:23px;height:23px;font-size:11px}
  .cart-fab strong{font-size:13px}
  .cart-label{display:none}

  .bottom-nav{
    width:100%;height:56px;min-height:56px;border-radius:0;border-inline:0;
    padding:3px 8px calc(3px + env(safe-area-inset-bottom));
    box-shadow:0 -4px 16px rgba(18,56,31,.08)
  }
  .bottom-nav button{padding:2px 4px;border-radius:9px;gap:0}
  .bottom-nav button span{font-size:18px;line-height:1.05}
  .bottom-nav button b{font-size:9.5px;line-height:1.05}

  .drawer{z-index:70}
  .drawer.open{align-items:stretch}
  .drawer-panel{
    width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;
    padding:56px 12px 78px;overflow-y:auto;-webkit-overflow-scrolling:touch
  }
  .drawer-close{position:fixed;top:calc(10px + env(safe-area-inset-top));inset-inline-end:12px;z-index:4}
  .checkout-form input,.checkout-form select,.checkout-form textarea,.account-grid input,.guest-track input{font-size:16px}
  .summary{margin:8px 0;padding:10px}
  .cart-line{padding:8px 0}

  .customer-card{padding:12px;border-radius:14px;margin-bottom:9px}
  .order-card{padding:11px;border-radius:13px;margin-bottom:8px}
  .order-timeline{margin:9px 0 6px}

  .map-modal.open{padding:0;align-items:stretch}
  .map-card{height:100dvh;max-height:100dvh;border-radius:0;display:flex;flex-direction:column}
  .map-head{padding:12px 12px 8px;flex:0 0 auto}
  .map-head h2{font-size:17px}.map-head p{font-size:10px}
  .delivery-map{height:auto;min-height:0;flex:1;border-block:1px solid var(--line)}
  .map-status-row{padding:8px 10px;gap:6px;flex:0 0 auto}
  .map-actions{padding:0 10px calc(10px + env(safe-area-inset-bottom));gap:7px;flex:0 0 auto}
  .secondary-btn,.place-btn{padding:10px;font-size:13px}
  .invoice-modal-card{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:48px 12px 16px}
}

@media(max-width:360px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-img{max-height:112px}
  .product-body{padding:7px}
  .product h3{font-size:12.5px}
  .price{font-size:14px}
  .searchbar{grid-template-columns:minmax(0,1fr) 98px}
}

/* Standalone PWA receives true edge-to-edge app treatment */
@media(display-mode:standalone){
  .shop-header{padding-top:calc(5px + env(safe-area-inset-top))}
  @media(max-width:650px){.searchbar{top:calc(54px + env(safe-area-inset-top))}}
}

/* V6.0 colorful mobile catalog — full product images + compact app layout */
.promo-strip{display:none}
.catalog-layout{min-width:0}
.mobile-categories{display:none}
.cat-rail-btn{appearance:none;border:0;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}

@media(max-width:650px){
  :root{--pink:#ef476f;--mint:#15b77e;--sun:#ffb703;--soft:#f2fbf6}
  body{background:#fbfdfb;padding-bottom:106px}
  main{padding:6px 6px 0}
  .shop-header{background:rgba(255,255,255,.98);border-bottom:1px solid #eaf0eb}
  .hero{display:none}
  .searchbar{top:54px;margin:5px 0 5px;padding:4px 0;background:rgba(251,253,251,.97);grid-template-columns:minmax(0,1fr) 86px}
  .searchbar input{border:1px solid #dfe9e1;background:#fff;border-radius:14px;padding-inline-start:36px;box-shadow:0 2px 10px rgba(15,72,34,.04)}
  .searchbar select{font-size:13px;border-radius:14px;background:#fff}
  .promo-strip{height:28px;display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 6px;border-radius:10px;background:linear-gradient(90deg,#fff3bf,#e9fbef,#fff0f4);color:#135d2c;font-size:10.5px;letter-spacing:.1px;overflow:hidden}
  .promo-strip b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .catalog-layout{display:grid;grid-template-columns:76px minmax(0,1fr);gap:6px;align-items:start}
  body[dir="rtl"] .catalog-layout{grid-template-columns:minmax(0,1fr) 76px}
  body[dir="rtl"] .mobile-categories{grid-column:2;grid-row:1}
  body[dir="rtl"] .product-grid{grid-column:1;grid-row:1}
  .mobile-categories{display:flex;position:sticky;top:103px;max-height:calc(100dvh - 166px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;flex-direction:column;gap:4px;padding:1px 2px 8px;border-inline-end:1px solid #edf1ee}
  body[dir="rtl"] .mobile-categories{border-inline-end:0;border-inline-start:1px solid #edf1ee}
  .mobile-categories::-webkit-scrollbar{display:none}
  .cat-rail-btn{width:100%;min-height:79px;padding:6px 3px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9.5px;line-height:1.15;text-align:center;transition:.18s;position:relative}
  .cat-rail-btn .cat-icon{width:45px;height:45px;border-radius:13px;background:#fff;border:1px solid #e7ede8;display:grid;place-items:center;font-size:24px;box-shadow:0 2px 8px rgba(18,56,31,.045)}
  .cat-rail-btn.active{color:var(--pink);background:#fff5f7}
  .cat-rail-btn.active .cat-icon{border:1.5px solid var(--pink);box-shadow:0 0 0 2px rgba(239,71,111,.06)}
  .cat-rail-btn.active::after{content:"";position:absolute;inset-inline-end:-3px;top:12px;bottom:12px;width:3px;background:var(--pink);border-radius:4px}
  body[dir="rtl"] .cat-rail-btn.active::after{inset-inline-end:auto;inset-inline-start:-3px}

  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:start}
  .product{border-radius:15px;border:1px solid #e6ece7;background:#fff;box-shadow:0 3px 12px rgba(18,56,31,.055);position:relative;overflow:visible}
  .product-img{height:145px;aspect-ratio:auto;max-height:none;background:linear-gradient(180deg,#fff,#fbfdfb);border-radius:15px 15px 11px 11px;position:relative;overflow:hidden}
  .product-img img{width:100%;height:100%;object-fit:contain;object-position:center;padding:5px;display:block}
  .product-img span{font-size:40px}
  .product-body{padding:7px 7px 8px;gap:4px}
  .product h3{font-size:12px;line-height:1.22;min-height:29px;font-weight:850}
  .category-mini{display:none}
  .product-meta{display:grid;grid-template-columns:1fr;gap:4px;align-items:stretch}
  .discount-row{gap:4px;align-items:baseline}
  .price{font-size:14px;font-weight:950;color:#103f23}
  .old-price{font-size:9px;color:#9aa39d}
  .discount-badge{position:absolute;top:7px;inset-inline-start:7px;z-index:3;background:linear-gradient(180deg,#18b778,#0b9a61);color:#fff;border-radius:8px 8px 8px 2px;padding:4px 6px;font-size:9px;box-shadow:0 3px 8px rgba(11,154,97,.18)}
  .unit{font-size:9px;color:#78837c;margin-top:-1px}
  .add-btn{position:absolute;right:7px;top:108px;z-index:4;min-width:61px;min-height:31px;padding:4px 9px;border-radius:10px;background:#fff;color:var(--pink);border:1.5px solid var(--pink);font-size:11px;font-weight:950;box-shadow:0 3px 9px rgba(239,71,111,.08)}
  body[dir="rtl"] .add-btn{right:auto;left:7px}
  .add-btn:active{transform:scale(.97)}
  .qty-control{position:relative;z-index:4;background:#fff;border-color:#dce5de}
  .product-meta>div:last-child .qty-control{margin-top:1px}

  .cart-fab{bottom:58px;width:auto;min-width:185px;max-width:calc(100% - 100px);height:43px;left:50%;padding:5px 12px;border-radius:999px;background:linear-gradient(90deg,#ef476f,#e91e63);box-shadow:0 10px 28px rgba(233,30,99,.25)}
  .cart-fab b{background:#fff;color:#e91e63}
  .cart-fab strong{font-size:12px}
  .bottom-nav{background:rgba(255,255,255,.99);border-top:1px solid #edf0ee}
  .bottom-nav button.active{background:#eefaf3;color:#128447}
}

@media(max-width:380px){
  .catalog-layout{grid-template-columns:68px minmax(0,1fr);gap:5px}
  body[dir="rtl"] .catalog-layout{grid-template-columns:minmax(0,1fr) 68px}
  .cat-rail-btn{min-height:72px;font-size:9px}
  .cat-rail-btn .cat-icon{width:40px;height:40px;font-size:21px}
  .product-grid{gap:6px}
  .product-img{height:132px}
  .add-btn{top:96px;min-width:56px;font-size:10px}
  .product h3{font-size:11.5px}
  .price{font-size:13px}
}

/* V6.3 polished customer invoice */
.customer-pro-invoice{max-width:680px;margin:auto}.customer-pro-invoice .invoice-title{background:linear-gradient(135deg,#eefaf2,#fff7ed);border:1px solid #dcece1;border-radius:18px;padding:14px;margin-bottom:12px}.customer-pro-invoice .invoice-title img{width:68px;height:68px}.customer-pro-invoice .invoice-title h2{color:#0d6f31;font-size:23px}.customer-pro-invoice .invoice-title p{font-size:12px;color:#647069;margin:2px 0}.customer-pro-invoice .invoice-title span{font-weight:900;font-size:13px}.invoice-status-wrap{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;font-size:12px;color:#647069}.invoice-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.invoice-info-grid>div{background:#f7faf8;border:1px solid #e2e9e4;border-radius:12px;padding:10px;display:grid;gap:3px}.invoice-info-grid .wide{grid-column:1/-1}.invoice-info-grid small,.invoice-note small{color:#647069;font-size:10px;text-transform:uppercase;font-weight:800}.invoice-info-grid b{font-size:13px}.invoice-items-wrap{border:1px solid #e2e9e4;border-radius:14px;overflow:hidden}.customer-pro-invoice table th{background:#102b1a;color:#fff;font-size:11px}.customer-pro-invoice table td{font-size:12px}.customer-pro-invoice table td small{display:block;color:#647069;font-size:9px;margin-top:2px}.customer-pro-invoice .invoice-totals{background:#f7faf8;border-radius:14px;padding:12px}.customer-pro-invoice .invoice-totals .grand{background:#102b1a;color:#fff;border:0;border-radius:10px;padding:11px;margin-top:7px;font-size:17px}.invoice-note{border:1px dashed #cbd5e1;border-radius:12px;padding:10px;margin:10px 0}.invoice-note p{margin:3px 0 0}.invoice-thanks{text-align:center;color:#0d6f31;font-weight:900;padding:12px 0}.invoice-print-action{width:100%}
@media(max-width:560px){.invoice-info-grid{grid-template-columns:1fr 1fr}.customer-pro-invoice .invoice-title h2{font-size:20px}.customer-pro-invoice table th,.customer-pro-invoice table td{padding:8px 5px}.customer-pro-invoice table th:nth-child(3),.customer-pro-invoice table td:nth-child(3){display:none}.customer-pro-invoice .invoice-totals .grand{font-size:18px}}
@media print{#customerInvoiceModal .invoice-modal-card{padding:0!important}.customer-pro-invoice{max-width:none!important}.customer-pro-invoice .order-timeline,.invoice-print-action,.invoice-close{display:none!important}.customer-pro-invoice .invoice-title,.invoice-info-grid>div,.invoice-items-wrap,.customer-pro-invoice .invoice-totals{break-inside:avoid;page-break-inside:avoid}.customer-pro-invoice .invoice-totals .grand{background:#fff!important;color:#000!important;border:2px solid #000!important}.customer-pro-invoice table th{background:#fff!important;color:#000!important;border-bottom:2px solid #000!important}}

/* V6.4 Account redesign + Cash on Delivery checkout */
.payment-method-card{display:flex;align-items:center;gap:12px;border:1px solid #cfe8d6;background:linear-gradient(135deg,#f0fbf4,#fff);border-radius:15px;padding:12px 14px;color:#173a24}.payment-method-card .payment-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e7f7ec;font-size:20px;flex:0 0 auto}.payment-method-card div{display:grid;gap:2px;min-width:0;flex:1}.payment-method-card b{font-size:13px}.payment-method-card small{font-size:10px;color:#68756d}.payment-method-card .payment-check{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-weight:900}.place-cod-btn{font-size:13px;line-height:1.25;white-space:normal}
.account-page{display:grid;gap:12px;max-width:720px;margin:0 auto}.account-profile-card{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#133f26,#0e6c34);color:#fff;border-radius:22px;padding:16px;box-shadow:0 12px 28px rgba(15,65,36,.16)}.profile-avatar,.guest-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:950;background:#fff;color:#13562d;box-shadow:0 5px 14px rgba(0,0,0,.12);flex:0 0 auto}.profile-main{min-width:0;flex:1}.profile-main h2{font-size:18px;margin:0 0 3px}.profile-main p{margin:0;font-size:12px;opacity:.9}.profile-main small{display:block;margin-top:5px;font-size:10px;opacity:.82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-edit-btn{border:1px solid rgba(255,255,255,.32);background:rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:8px 10px;font-size:10px;font-weight:900;cursor:pointer;flex:0 0 auto}.account-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.account-shortcuts button{border:1px solid #e5ece7;background:#fff;border-radius:18px;padding:14px 12px;text-align:start;display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px;align-items:center;box-shadow:0 5px 18px rgba(18,56,31,.05);cursor:pointer}.account-shortcuts .shortcut-icon{grid-row:1/3;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#eff9f2;color:#115f30;font-size:19px}.account-shortcuts b{font-size:13px}.account-shortcuts small{font-size:9px;color:#7b877f}.account-menu-card{background:#fff;border:1px solid #e5ece7;border-radius:18px;overflow:hidden;box-shadow:0 5px 18px rgba(18,56,31,.04)}.account-menu-row{width:100%;border:0;border-bottom:1px solid #eef2ef;background:#fff;padding:12px 13px;display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;text-align:start;color:#1d2d23;cursor:pointer}.account-menu-row:last-child{border-bottom:0}.account-menu-row .menu-icon{width:34px;height:34px;border-radius:11px;background:#f2f7f3;display:grid;place-items:center;font-size:16px}.account-menu-row>span:nth-child(2){display:grid;gap:2px}.account-menu-row b{font-size:12px}.account-menu-row small{font-size:9px;color:#7a867e}.account-menu-row>strong{font-size:21px;color:#98a29b;font-weight:400}.account-menu-row.danger b{color:#b42318}.account-menu-row.danger .menu-icon{background:#fff0ef;color:#b42318}.account-edit-card{background:#fff;border:1px solid #e5ece7;border-radius:18px;padding:0 13px 13px;box-shadow:0 5px 18px rgba(18,56,31,.04)}.account-edit-card summary{cursor:pointer;list-style:none;padding:14px 2px;font-size:13px;font-weight:900;color:#173a24}.account-edit-card summary::-webkit-details-marker{display:none}.account-edit-card[open] summary{border-bottom:1px solid #eef2ef;margin-bottom:12px}.account-welcome{text-align:center}.account-welcome .guest-avatar{margin:0 auto 8px;background:#eaf8ef}.orders-live-card{border-radius:20px}.live-refresh{color:#111827!important;font-weight:800}.invoice-hint{color:#111827;font-weight:900}
@media(max-width:650px){.account-page{gap:9px}.account-profile-card{border-radius:18px;padding:13px}.profile-avatar{width:48px;height:48px}.profile-main h2{font-size:16px}.profile-edit-btn{padding:7px 9px}.account-shortcuts{gap:8px}.account-shortcuts button{padding:11px 10px;border-radius:15px}.account-menu-card,.account-edit-card{border-radius:15px}.account-menu-row{padding:10px 11px}.payment-method-card{padding:10px 11px}.place-cod-btn{font-size:12px}}

/* V6.6 final customer account redesign — no avatar */
.account-final{max-width:680px;padding:2px 0 18px}.account-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 16px 14px;background:#fff;border:1px solid #e7ece8;border-radius:18px;box-shadow:0 4px 16px rgba(17,24,39,.04)}.account-titlebar h2{margin:3px 0 3px;font-size:20px;line-height:1.15;color:#111827}.account-titlebar p{margin:0;color:#6b7280;font-size:12px}.account-eyebrow{font-size:9px;letter-spacing:1.2px;font-weight:900;color:#15803d}.profile-edit-link{border:0;background:transparent;color:#166534;font-size:11px;font-weight:900;padding:5px 0;white-space:nowrap}.account-shortcuts-final button{display:grid;grid-template-columns:38px 1fr auto;align-items:center;text-align:start;padding:13px 12px}.account-shortcuts-final .shortcut-icon{grid-row:auto}.account-shortcuts-final button>span:nth-child(2){display:grid;gap:2px}.account-shortcuts-final button>strong{font-size:20px;color:#9ca3af;font-weight:400}.account-section-label{padding:6px 5px 0;color:#8a938d;font-size:9px;font-weight:900;letter-spacing:1px}.account-menu-row .menu-icon{border-radius:9px;background:#f6f7f6;color:#111827;font-weight:900}.account-menu-row small{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-signout{width:100%;border:1px solid #f0d5d2;background:#fff;color:#b42318;border-radius:15px;padding:12px;font-size:12px;font-weight:900;cursor:pointer}.account-editor-final{margin-top:0}.guest-title{min-height:92px}.account-login-card{text-align:start;border-radius:18px}.account-final .guest-avatar,.account-final .profile-avatar{display:none!important}
@media(max-width:650px){.account-final{padding:0 1px 12px}.account-titlebar{padding:14px 13px 12px;border-radius:15px}.account-titlebar h2{font-size:18px}.account-shortcuts-final button{padding:11px 9px}.account-shortcuts-final .shortcut-icon{width:34px;height:34px}.account-menu-row small{max-width:190px}.account-signout{padding:11px}}


/* V6.7 Invoice paper preview + centered header */
#customerInvoiceModal{background:rgba(15,23,42,.55)}
#customerInvoiceModal .invoice-modal-card{background:#eef1f4;width:min(860px,96vw);padding:24px;overflow:auto}
#customerInvoiceModal .invoice-sheet{width:min(680px,100%);margin:0 auto;background:#fff;border-radius:3px;box-shadow:0 14px 42px rgba(15,23,42,.16);padding:28px}
.customer-pro-invoice .invoice-title{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:5px!important}
.customer-pro-invoice .invoice-title>div,.customer-pro-invoice .invoice-title h2,.customer-pro-invoice .invoice-title p,.customer-pro-invoice .invoice-title span{width:100%;text-align:center!important}
.customer-pro-invoice .invoice-title img{margin:0 auto 2px!important}
@media(max-width:650px){#customerInvoiceModal .invoice-modal-card{width:100%;padding:12px 8px;border-radius:18px 18px 0 0}#customerInvoiceModal .invoice-sheet{padding:18px 12px;box-shadow:0 8px 24px rgba(15,23,42,.14)}}
@media print{#customerInvoiceModal .invoice-modal-card{background:#fff!important;padding:0!important}#customerInvoiceModal .invoice-sheet{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important}}

/* V7.0 customer rider tracking */
.tracking-card{max-width:720px}.tracking-status{padding:12px 14px;border-radius:15px;background:#eff6ff;color:#1e3a8a;font-size:13px;margin-top:10px;display:flex;justify-content:space-between;gap:10px;align-items:center}.track-rider-btn{width:100%;margin-top:12px;border:0;border-radius:14px;padding:13px;background:#111827;color:#fff;font-weight:900}.track-live-dot{display:inline-block;width:8px;height:8px;background:#22c55e;border-radius:50%;margin-right:6px;box-shadow:0 0 0 4px #dcfce7}
