/* WATEEN_GROCERY_VISUAL_IDENTITY_V3 | PRODUCTION
   Grocery owns layout only; palette, type, spacing, radii and shadows follow
   the canonical /brand-identity.css tokens. No shared storefront CSS patch.
*/
:root{
  --g-navy:var(--w-teal-2);
  --g-navy-soft:var(--w-teal);
  --g-red:var(--w-red);
  --g-coral:var(--w-coral);
  --g-teal:var(--w-teal);
  --g-teal-deep:var(--w-teal-2);
  --g-canvas:var(--w-soft);
  --g-surface:var(--w-soft);
  --g-sky:var(--w-sky);
  --g-ink:var(--w-ink);
  --g-muted:var(--m);
  --g-line:var(--line);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:156px}
body{margin:0;padding-bottom:96px;min-height:100vh;background:var(--g-canvas);color:var(--g-ink);font-family:system-ui,-apple-system,sans-serif;-webkit-text-size-adjust:100%}
button,a{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.46;cursor:not-allowed}
a{text-decoration:none;color:inherit}
:focus-visible{outline:3px solid var(--g-coral);outline-offset:3px}
::selection{background:rgba(255,59,74,.18);color:var(--g-teal-deep)}
.sticky-shelves{
  position:sticky;top:88px;z-index:49;background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--g-line);backdrop-filter:blur(14px);
  box-shadow:0 4px 13px rgba(8,63,77,.055)
}
.shelf-wrap{max-width:1320px;margin:auto;display:flex;align-items:center;gap:14px;padding:10px 22px}
.shelf-label{font-size:12px;color:var(--g-teal-deep);font-weight:950;white-space:nowrap}
#shelf-nav{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:2px 0}
#shelf-nav button{
  white-space:nowrap;min-height:40px;padding:9px 13px;font-weight:800;font-size:12px;
  border:1px solid var(--g-line);border-radius:12px;
  background:#f8fbfc;color:var(--g-teal-deep);
  transition:background 150ms,border-color 150ms
}
#shelf-nav button.active{
  color:#fff;border-color:var(--g-red);
  background:linear-gradient(135deg,var(--g-red),var(--g-coral));box-shadow:0 6px 17px rgba(255,59,74,.15)
}
#shelf-nav button:not(.active):hover{border-color:var(--g-sky);background:#eff7fa}
.main-wrap{max-width:1320px;margin:auto;padding:28px 22px 40px}
.load-message{
  background:#fff;border:1px dashed #cad9dd;color:var(--g-teal-deep);
  border-radius:22px;padding:28px;text-align:center;font-size:14px
}
.load-message:empty{display:none}
.load-message.error{border-color:#f3bac1;color:#ad3048;background:#fff9fa}
.aisle{margin-bottom:33px;scroll-margin-top:155px}
.aisle-title{display:flex;justify-content:space-between;align-items:center;gap:13px;margin-bottom:14px;min-width:0}
.aisle h2{font-size:clamp(20px,2.3vw,27px);color:var(--g-teal-deep);line-height:1.4;margin:0;font-weight:950}
.aisle h2::after{content:"";display:block;width:38px;height:4px;margin-top:7px;border-radius:100px;background:linear-gradient(90deg,var(--g-red),var(--g-coral))}
.aisle-options{display:flex;align-items:center;gap:12px;flex-shrink:0}
.aisle-options small{font-size:12px;color:var(--g-muted)}
.view-all,.all-back{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;
  font-size:12px;font-weight:900;color:var(--g-teal);
  border:1px solid #dce9ed;background:#fff;border-radius:12px;padding:9px 12px;
  white-space:nowrap;box-shadow:0 4px 13px rgba(8,63,77,.055)
}
.view-all:hover,.all-back:hover{color:var(--g-red);border-color:#ffd1d6}
.all-back{margin-bottom:14px;cursor:pointer}
.category-heading p{margin:9px 0 0;color:var(--g-muted);font-size:13px}
.carousel{
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 70px)/8);gap:10px;
  overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;
  scrollbar-width:none;padding:2px 2px 10px
}
.carousel::-webkit-scrollbar{display:none}
.carousel>.product{scroll-snap-align:start}
.list-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.carousel-navigation{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.carousel-navigation button{
  width:36px;height:34px;border:1px solid var(--g-line);border-radius:10px;background:#fff;
  color:var(--g-teal-deep);font-size:17px;box-shadow:0 4px 13px rgba(8,63,77,.055)
}
.carousel-navigation button:hover{color:var(--g-red);border-color:#ffc9d0}
.product{
  display:flex;flex-direction:column;min-width:0;overflow:hidden;cursor:pointer;
  border:1px solid #e3ebed;border-radius:22px;background:#fff;
  box-shadow:0 4px 13px rgba(8,63,77,.055);transition:transform 230ms,box-shadow 230ms,border-color 230ms
}
.product:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(8,63,77,.11);border-color:rgba(11,94,114,.18)}
.product .photo{
  display:grid;place-items:center;height:145px;width:100%;padding:8px;
  background:linear-gradient(145deg,#fff7f8,#f7fbfc);
  border-bottom:1px solid #f0f4f5
}
.product .photo img{width:100%;height:100%;object-fit:contain}
.placeholder{font-size:48px}
.info{display:flex;flex:1;flex-direction:column;gap:8px;padding:11px}
.product .product-name{
  display:block;color:var(--g-ink);font-size:12px;font-weight:800;line-height:1.55;
  min-height:40px;max-height:40px;overflow:hidden
}
.product .product-name:hover{color:var(--g-teal)}
.tag{color:var(--g-muted);font-size:11px;min-height:1em}
.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;color:var(--g-red);font-size:16px;font-weight:950}
.price del{font-size:12px;font-weight:400;color:#8f9da2}
.offer{font-size:11px;color:var(--g-red);font-weight:900}
.quick{
  width:100%;min-height:38px;border:1px solid #dce8eb;border-radius:12px;
  background:#f5f9fa;color:var(--g-teal-deep);font-size:12px;font-weight:850;
  transition:background 150ms,border-color 150ms
}
.quick:hover{background:#eff8fa;border-color:var(--g-sky)}
.controls{display:flex;align-items:center;gap:5px;margin-top:auto}
.controls button{border:0;border-radius:10px;min-height:38px}
.controls .plus{
  flex:1;min-width:0;padding:7px 5px;color:#fff;font-size:12px;font-weight:900;
  background:linear-gradient(135deg,var(--g-red),var(--g-coral))
}
.controls .plus:not(:disabled):hover{filter:brightness(1.04)}
.controls .minus{flex-shrink:0;width:30px;color:var(--g-teal-deep);background:#edf3f5;font-size:18px}
.controls .qty{min-width:12px;text-align:center;font-size:12px;font-weight:900;color:var(--g-ink)}
.out-stock{border-radius:10px;color:#a33f4c;background:#fff4f5;padding:10px;text-align:center;font-size:12px}
.cart-feedback{display:none}
.cart-tray{
  position:fixed;bottom:0;left:0;right:0;z-index:51;padding:8px 14px max(8px,env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97);border-top:1px solid var(--g-line);box-shadow:0 -6px 22px rgba(6,17,28,.09)
}
.tray-inner{
  max-width:1320px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:58px;border-radius:16px;padding:9px 15px;
  color:#fff;background:linear-gradient(125deg,var(--g-navy),var(--g-navy-soft))
}
.tray-inner span{font-size:13px}
.tray-inner small{margin-right:9px;color:#c0d4de;font-size:12px;font-weight:700}
.tray-inner a{
  display:inline-flex;align-items:center;justify-content:center;min-height:41px;
  color:#fff;background:linear-gradient(135deg,var(--g-red),var(--g-coral));
  padding:10px 15px;border-radius:11px;font-size:13px;font-weight:900;white-space:nowrap
}
.product-dialog{
  border:1px solid #dfeaec;border-radius:28px;width:min(675px,calc(100% - 24px));
  max-height:88vh;overflow:auto;padding:24px;background:#fff;color:var(--g-ink);
  box-shadow:0 28px 78px rgba(0,0,0,.34)
}
.product-dialog::backdrop{background:rgba(3,12,19,.70);backdrop-filter:blur(6px)}
.dialog-close{
  position:sticky;top:0;float:left;z-index:2;display:grid;place-items:center;
  background:#f3f8f9;color:var(--g-teal-deep);border:1px solid var(--g-line);
  height:40px;width:40px;border-radius:12px;font-size:25px
}
.detail-hero{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;align-items:start;clear:both}
.detail-hero img{width:100%;height:200px;object-fit:contain;border-radius:18px;background:linear-gradient(145deg,#fff7f8,#f7fbfc)}
.detail-hero h2{color:var(--g-teal-deep);font-size:23px;line-height:1.45}
.detail-hero p{line-height:1.75;font-size:14px;color:var(--g-muted)}
.quick-label{color:var(--g-red);font-weight:900;font-size:12px}
.detail-actions{display:flex;align-items:center;gap:8px;margin-top:16px}
.detail-actions button{
  min-height:42px;background:linear-gradient(135deg,var(--g-red),var(--g-coral));
  border:0;border-radius:12px;color:#fff;padding:10px 14px;font-weight:900
}
.full-product{
  display:inline-flex;margin-top:18px;min-height:43px;align-items:center;
  padding:10px 13px;border-radius:12px;border:1px solid #dce8eb;
  color:var(--g-teal-deep);font-weight:900;font-size:13px
}
.empty-aisle{
  padding:36px 20px;background:#fff;border:1px dashed #dce8eb;border-radius:22px;
  color:var(--g-muted);text-align:center
}
.empty-aisle h2{color:var(--g-teal-deep)}
/* Global /store-header.css owns the height of the canonical header. */
@media(max-width:900px){
 html{scroll-padding-top:195px}
 .sticky-shelves{top:130px}
}
@media(max-width:1050px){
  .carousel{grid-auto-columns:calc((100% - 30px)/4)}
  .list-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:740px){
  .carousel{grid-auto-columns:calc((100% - 20px)/3)}
  .list-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:510px){
 html{scroll-padding-top:185px}
 .sticky-shelves{top:120px}
  .shelf-wrap{padding:8px 12px;gap:8px}
  .shelf-label{display:none}
  #shelf-nav button{min-height:40px;padding:8px 11px}
  .main-wrap{padding:19px 12px 22px}
  .aisle h2{font-size:19px}
  .aisle-options{gap:6px}
  .aisle-options small{display:none}
  .view-all{min-height:37px;padding:7px 9px;font-size:11px}
  .carousel{grid-auto-columns:calc((100% - 10px)/2.15)}
  .list-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product{border-radius:18px}
  .product .photo{height:132px}
  .info{padding:9px;gap:7px}
  .quick{min-height:36px}
  .controls .plus{font-size:11px}
  .detail-hero{grid-template-columns:110px minmax(0,1fr);gap:12px}
  .detail-hero img{height:123px}
  .detail-hero h2{font-size:17px}
  .product-dialog{padding:15px;border-radius:22px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}



/* WATEEN_GROCERY_MAGIC_PAPER_V5 | integrated UI, existing Wateen visual tokens */
/* Mobile pocket controls are not separate business components; they open the same paper. */
.pocket-entry,.pocket-backdrop,.pocket-sheet-head{display:none}
.magic-workspace{max-width:1320px;margin:0 auto;padding:36px 22px 30px}
.magic-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:23px}
.magic-heading h2{font-size:clamp(29px,4vw,44px);line-height:1.15;letter-spacing:-.7px;font-weight:950;color:var(--g-teal-deep);margin:7px 0 8px}
.magic-heading p{font-size:13px;max-width:680px;line-height:1.85;color:var(--g-muted);margin:0}
.journey-kicker{color:var(--g-red);font-size:12px;font-weight:950}
.magic-stage{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(285px,.65fr);gap:22px;align-items:start}
.magic-paper-shell{min-width:0}
.magic-paper{
 position:relative;overflow:hidden;isolation:isolate;
 padding:25px 27px 22px 36px;min-height:470px;
 background:repeating-linear-gradient(to bottom,#fffdf8 0px,#fffdf8 38px,rgba(128,177,194,.19) 39px,#fffdf8 40px);
 border:1px solid #f0eadf;border-radius:7px 22px 22px 7px;
 box-shadow:0 6px 0 #e5dfd0,0 13px 0 #d5d2c9,0 23px 45px rgba(6,17,28,.12);
 transform:rotate(-.25deg);
}
.magic-paper::before{content:"";position:absolute;inset:0 auto 0 26px;width:2px;background:rgba(255,95,103,.17);pointer-events:none}
.magic-paper::after{content:"";position:absolute;top:0;right:47px;height:15px;width:92px;background:rgba(255,59,74,.14);transform:rotate(-7deg);border-radius:1px;pointer-events:none}
.magic-paper-head{display:flex;align-items:center;gap:12px;border-bottom:1px dashed #dfdcd2;padding-bottom:16px;margin-bottom:15px}
.magic-paper-icon{display:grid;place-items:center;height:47px;width:47px;background:var(--g-navy);color:#ff5d71;border-radius:13px;font-size:24px}
.magic-paper-head small{font-size:11px;font-weight:900;color:var(--g-teal)}
.magic-paper-head h3{font-size:25px;font-weight:950;color:var(--g-teal-deep);margin:3px 0}
.magic-paper-stamp{margin-inline-start:auto;border:2px solid rgba(255,59,74,.36);color:var(--g-red);border-radius:5px;padding:5px 8px;font:900 9px Arial;letter-spacing:1px;transform:rotate(11deg)}
.magic-progress{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.magic-progress-track{height:7px;background:#e9e5d9;border-radius:100px;overflow:hidden;flex:1}
.magic-progress-track span{display:block;height:100%;background:linear-gradient(90deg,var(--g-teal),var(--g-red));border-radius:inherit;transition:width .25s ease}
.magic-progress>span{font-size:11px;color:#75898b;white-space:nowrap;font-weight:800}
.magic-paper-lines{display:grid;gap:0}
.magic-empty{padding:45px 15px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;color:var(--g-muted)}
.magic-empty>span{font-size:46px}
.magic-empty strong{font-size:19px;color:var(--g-teal-deep)}
.magic-empty p{margin:0;line-height:1.8;font-size:13px;max-width:340px}
.magic-photo-wrap{display:flex;gap:13px;align-items:center;background:rgba(245,249,250,.9);border:1px dashed #c4d9df;border-radius:12px;padding:10px;margin-bottom:18px}
.magic-photo-wrap[hidden],.magic-chooser[hidden],.magic-receipt[hidden]{display:none!important}
.magic-photo-wrap img{width:85px;height:100px;object-fit:contain;border-radius:6px;background:#fff;box-shadow:0 3px 14px #20303d16}
.magic-photo-wrap strong{font-size:12px;color:var(--g-teal-deep)}
.magic-photo-wrap p{color:var(--g-muted);font-size:11px;line-height:1.7;margin:5px 0}
.magic-line{position:relative;border-bottom:1px dashed rgba(148,165,168,.35);transition:background .2s ease;border-radius:10px}
.magic-line-main{display:flex;align-items:center;gap:8px;min-height:66px;padding:9px 6px}
.magic-line:hover{background:rgba(255,255,255,.48)}
.magic-line-number{font:900 12px/1 Arial;color:#acb4ac;width:21px;flex-shrink:0}
.magic-line-text{display:grid;gap:3px;min-width:0;flex:1;text-align:right;border:0;background:none;padding:3px;color:var(--g-teal-deep)}
.magic-item-name{font-size:17px;font-weight:900;line-height:1.35}
.magic-item-amount{font-size:10px;color:#819092;font-weight:700}
.magic-line-status{display:inline-block;font-size:10px;white-space:nowrap;font-weight:900;padding:6px 7px;border-radius:100px}
.magic-line-status.is-pending{background:#edf2f7;color:#4a6e81}
.magic-line-status.is-found{background:#f0ecff;color:#7061a2}
.magic-line-status.is-picked{background:#e6f5f1;color:#1f746a}
.magic-line-status.is-cart{background:var(--g-teal);color:white}
.magic-line-switch{border:1px solid #d7e0df;background:#fff;border-radius:10px;height:33px;width:33px;font-size:18px;color:var(--g-red);flex-shrink:0}
.magic-line-chosen{background:rgba(235,248,241,.6)}
.magic-line-done .magic-item-name{text-decoration:line-through;text-decoration-thickness:1.4px;color:#627c77}
.magic-approved-product{display:flex;gap:10px;align-items:center;padding:0 35px 12px 10px}
.magic-approved-product img{height:46px;width:46px;object-fit:contain;background:#fff;border:1px solid var(--g-line);border-radius:9px}
.magic-approved-product>div{min-width:0;display:grid;gap:3px}
.magic-chosen-name{color:var(--g-teal-deep);font-size:12px;font-weight:850}
.magic-chosen-price{color:var(--g-red);font-size:12px;font-weight:950}
.magic-line-options{margin:0 27px 14px 0;border:1px solid #e1e9e9;background:#fff;border-radius:14px;padding:13px;box-shadow:0 9px 22px #20303d0c}
.magic-line-options>strong{color:var(--g-teal-deep);font-size:12px}
.magic-line-options>p{font-size:11px;color:var(--g-muted);line-height:1.75}
.magic-line-options>a,.magic-line-options>button{display:inline-flex;border:1px solid #d8e6e9;background:#f8fbfc;color:var(--g-teal);padding:9px 12px;border-radius:10px;font-weight:850;font-size:12px}
.magic-option-list{display:grid;gap:7px;margin-top:10px}
.magic-option{display:flex;align-items:center;gap:9px;width:100%;padding:7px 9px;border:1px solid var(--g-line);border-radius:12px;background:#fff;text-align:right;min-width:0}
.magic-option:hover,.magic-option.selected{border-color:var(--g-teal);background:#f2f9fa}
.magic-option img{width:45px;height:45px;object-fit:contain;border-radius:8px;background:#fff}
.magic-option>span:nth-child(2){flex:1;font-weight:800;font-size:12px;color:var(--g-teal-deep);min-width:0}
.magic-option small{display:block;color:var(--g-red);margin-top:4px}
.magic-option b{font-size:11px;color:var(--g-teal);white-space:nowrap}
.magic-options-hint{font-size:10px!important;margin-bottom:0}
.magic-paper-cta{display:grid;justify-items:center;gap:9px;margin:19px 0 6px}
.magic-paper-cta button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;max-width:100%;padding:13px 24px;background:linear-gradient(125deg,var(--g-red),var(--g-coral));color:#fff;border:0;border-radius:15px;box-shadow:0 9px 24px rgba(255,59,74,.20);font-weight:950;font-size:16px;transition:transform .2s,filter .2s}
.magic-paper-cta button:hover{transform:translateY(-2px);filter:brightness(1.04)}
.magic-paper-cta small{font-size:11px;color:var(--g-muted);text-align:center}
.magic-cta-arrow{font-weight:900;opacity:.9}
.magic-paper-footer{display:flex;justify-content:space-between;gap:10px;color:#8b9896;font-size:10px;font-weight:700;border-top:1px dashed #ddddd4;margin-top:18px;padding-top:13px}
.magic-just-picked{animation:magicPick .44s ease}
@keyframes magicPick{0%,100%{transform:none}35%{transform:translateX(-3px);background:#e5fff4}75%{transform:translateX(2px)}}
.magic-side{display:grid;gap:14px}
.magic-side-head{background:linear-gradient(145deg,var(--g-navy),var(--g-navy-soft));color:#fff;border-radius:22px;padding:22px;position:relative;overflow:hidden}
.magic-side-head:after{content:"✦";position:absolute;left:15px;top:7px;font-size:92px;opacity:.065}
.magic-side-sparkle{display:inline-grid;place-items:center;width:40px;height:40px;background:rgba(255,59,74,.18);border:1px solid rgba(255,59,74,.25);border-radius:14px;color:#ff5369;font-size:23px}
.magic-side-head small{display:block;font-size:12px;font-weight:950;color:#ff7587;margin-top:14px}
.magic-side-head h3{font-size:27px;color:#fff;margin:4px 0 9px}
.magic-side-head p{font-size:12px;line-height:1.9;color:#b2c5d2;margin:0}
.magic-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.magic-stats>div{display:grid;gap:5px;place-items:center;min-width:0;border:1px solid var(--g-line);background:#fff;border-radius:15px;padding:13px 5px}
.magic-stats b{font-size:27px;font-weight:950;color:var(--g-teal-deep)}
.magic-stats>div:nth-child(2) b{color:var(--g-red)}
.magic-stats span{font-size:10px;color:var(--g-muted);text-align:center;font-weight:800}
.magic-bag{display:grid;justify-items:center;gap:9px;text-align:center;background:#fff;border:1px solid #e3eaeb;border-radius:23px;padding:20px 17px;box-shadow:0 4px 13px rgba(8,63,77,.055)}
.magic-bag-illustration{font-size:66px;line-height:1.25;filter:drop-shadow(0 9px 10px #06111c19);transition:transform .3s}
.magic-bag h3,.magic-bag strong{color:var(--g-teal-deep);font-size:18px}
.magic-bag>p{line-height:1.7;color:var(--g-muted);font-size:12px;margin:0}
.magic-bag-total{font-size:23px;color:var(--g-red);font-weight:950}
.magic-bag button{width:100%;border:0;color:#fff;font-weight:950;font-size:13px;border-radius:13px;padding:13px;background:linear-gradient(130deg,var(--g-red),var(--g-coral))}
.magic-bag button:disabled{background:#e4ebee;color:#73858e}
.magic-bag small{font-size:11px;color:var(--g-muted);line-height:1.7}
.magic-bag-pop .magic-bag-illustration{animation:magicBag .5s cubic-bezier(.24,.8,.3,1)}
.magic-bag-success{border-color:#addad1}
@keyframes magicBag{0%,100%{transform:scale(1)}35%{transform:scale(1.18) rotate(-8deg)}75%{transform:scale(.96) rotate(6deg)}}
.magic-missing{border-radius:19px;background:#eef6f9;border:1px solid #d2e3eb;padding:17px}
.magic-missing>div{display:flex;align-items:center;gap:7px}
.magic-missing strong{font-size:14px;color:var(--g-teal-deep)}
.magic-missing p{font-size:12px;line-height:1.8;color:#6f838d;margin:8px 0 0}
.magic-receipt{border-radius:16px;border:1px solid #bbddd4;background:#f3fbf8;padding:13px;display:grid;gap:8px}
.magic-receipt b{color:#207862;font-size:13px}
.magic-receipt span{color:var(--g-teal-deep);font-size:12px;font-weight:900}
.magic-receipt small{color:var(--g-muted);line-height:1.8}
.magic-receipt button{border:1px solid #bbddd4;background:#fff;border-radius:10px;padding:10px;color:var(--g-teal);font-size:12px;font-weight:900}
.journey-dialog{box-sizing:border-box;direction:rtl;width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 30px);margin:auto;padding:0;overflow-y:auto;overscroll-behavior:contain;border:1px solid #dfe8ec;border-radius:24px;background:#fff;color:var(--g-ink);box-shadow:0 27px 90px rgba(3,15,25,.38)}
.journey-dialog::backdrop{background:rgba(3,12,22,.7);backdrop-filter:blur(6px)}
.magic-form{display:grid;gap:12px;background:#fff;border-radius:24px;padding:22px;border:0;box-shadow:none}
.journey-dialog-intro{background:linear-gradient(120deg,var(--g-navy),var(--g-navy-soft));border-radius:16px;padding:18px;color:#fff}
.journey-dialog-badge{display:inline-flex;padding:6px 11px;border-radius:40px;border:1px solid rgba(255,255,255,.19);background:rgba(255,255,255,.075);font-size:11px;font-weight:900;color:#ffd9dd}
.journey-dialog-intro p{margin:9px 0 0;font-size:12px;line-height:1.8;color:#bed0d9}
.journey-form-title{display:flex;align-items:center;justify-content:space-between}
.journey-form-title h3{color:var(--g-teal-deep);margin:0;font-size:21px}
.journey-close{border:1px solid var(--g-line);background:#f5f8f9;border-radius:10px;height:35px;width:35px;color:var(--g-teal-deep)}
.journey-input-options{display:flex;flex-wrap:wrap;gap:8px}
.journey-input-options button{font-size:12px;font-weight:900;border:1px solid #dce8eb;background:#f7fbfc;border-radius:12px;padding:10px 13px;color:var(--g-teal)}
.journey-input-options button[aria-pressed="true"]{background:var(--g-red);border-color:var(--g-red);color:#fff}
.journey-audio-preview{width:100%;height:49px}
.journey-audio-preview[hidden],.journey-audio-status[hidden]{display:none!important}
.journey-audio-status{font-size:12px;color:var(--g-teal);font-weight:850}
.journey-file-status{padding:10px 13px;border:1px dashed #e7b4bf;color:var(--g-red);background:#fff6f8;border-radius:12px;font-size:12px}
.journey-label{font-size:13px;font-weight:900;color:var(--g-teal-deep)}
.journey-label small{font-size:11px;font-weight:500;color:var(--g-muted)}
.magic-form textarea,.magic-form input{width:100%;outline:0;background:#fcfefe;color:var(--g-ink);border:1px solid #dfe9ec;border-radius:12px;padding:12px;font:inherit}
.magic-form textarea{line-height:1.9;resize:vertical;min-height:140px}
.magic-form textarea:focus,.magic-form input:focus{border-color:var(--g-teal);box-shadow:0 0 0 3px #0b5e721c}
.journey-help,.journey-approval-note{color:var(--g-muted);font-size:12px;line-height:1.8;margin:0}
.journey-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.journey-contact label{display:grid;gap:6px;font-size:12px;color:var(--g-teal);font-weight:800}
.journey-contact small{font-weight:400;color:var(--g-muted)}
.journey-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.journey-preview-action{border:1px solid #dae7ec;border-radius:12px;min-height:44px;background:#f5f9fb;color:var(--g-teal-deep);padding:10px 14px;font-size:13px;font-weight:900}
.journey-send{background:linear-gradient(125deg,var(--g-red),var(--g-coral));border:0;border-radius:12px;padding:13px 18px;min-height:46px;color:#fff;font-weight:950}
.journey-form-status{color:var(--g-teal);font-size:12px;line-height:1.6}
.journey-form-status[data-kind=error]{color:#b93246}
@media(max-width:990px){
 .magic-stage{grid-template-columns:minmax(0,1fr) minmax(240px,.57fr);gap:12px}
 .magic-paper{padding:22px 15px 20px 31px}
 .magic-item-name{font-size:15px}
}
@media(max-width:740px){
 /* WATEEN_GROCERY_POCKET_V8 | distinct mobile presentation, unchanged desktop. */
 .cart-tray{display:none}
 .cart-feedback{
  display:block;position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));
  z-index:95;max-width:calc(100% - 28px);padding:11px 17px;
  border-radius:99px;background:var(--g-navy);color:#fff;white-space:nowrap;
  box-shadow:0 10px 25px rgba(6,17,28,.18);font-size:12px;font-weight:900;
  opacity:0;pointer-events:none;transform:translate(-50%,14px);
  transition:opacity .2s,transform .2s
 }
 .cart-feedback.visible{opacity:1;transform:translate(-50%,0)}

 body.pocket-open{overflow:hidden}
 body.pocket-open .w-dabberha-fab{visibility:hidden;pointer-events:none}
 .magic-workspace{padding:12px 12px 5px}
 .magic-heading{display:none}
 .pocket-entry{
  display:grid;gap:11px;isolation:isolate;position:relative;overflow:hidden;
  border-radius:21px;padding:16px 15px 14px;color:#fff;
  background:radial-gradient(circle at 3% 0%,rgba(255,59,74,.20),transparent 50%),linear-gradient(125deg,var(--g-navy),var(--g-navy-soft));
  box-shadow:0 9px 24px rgba(6,17,28,.13)
 }
 .pocket-entry:after{content:"✦";position:absolute;left:13px;top:-17px;font-size:90px;color:#fff;opacity:.035;pointer-events:none}
 .pocket-entry-head{display:flex;gap:10px;align-items:flex-start}
 .pocket-star{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,59,74,.20);color:#ff7385;font-size:21px}
 .pocket-kicker{display:block;color:#ffa1ac;font-size:10px;font-weight:900;margin:0 0 3px}
 .pocket-entry h2{font-size:21px;color:#fff;line-height:1.3;margin:0 0 5px;font-weight:950}
 .pocket-entry p{font-size:11px;line-height:1.65;margin:0;color:#b9ccd5}
 .pocket-actions{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}
 .pocket-actions button{min-height:43px;padding:10px 8px;border-radius:12px;font-size:12px;font-weight:950;white-space:nowrap}
 .pocket-primary{background:linear-gradient(125deg,var(--g-red),var(--g-coral));color:#fff;border:1px solid var(--g-red)}
 .pocket-secondary{background:rgba(255,255,255,.085);color:#fff;border:1px solid rgba(255,255,255,.23)}
 .pocket-secondary span{font-size:14px;margin-inline-start:3px}
 .pocket-status{display:grid;gap:5px}
 .pocket-progress-track{height:5px;background:rgba(255,255,255,.17);overflow:hidden;border-radius:20px}
 .pocket-progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--g-coral),#fff);border-radius:inherit;transition:width .2s ease}
 .pocket-status-text{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#c1d3dc;font-size:10px;font-weight:750}
 .pocket-status-text span:last-child{color:#ffc9d0}
 .pocket-backdrop{display:block;position:fixed;inset:0;z-index:101;border:0;padding:0;background:rgba(3,13,23,.73);opacity:0;pointer-events:none;transition:opacity .2s ease;touch-action:none}
 body.pocket-open .pocket-backdrop{opacity:1;pointer-events:auto}
 .magic-stage{display:none}
 body.pocket-open .magic-stage{
  display:block;position:fixed;inset:auto 0 0;z-index:102;
  height:min(88dvh,790px);min-height:280px;overflow-y:auto;overscroll-behavior:contain;
  background:var(--g-canvas);border-radius:25px 25px 0 0;
  box-shadow:0 -14px 50px rgba(3,13,23,.20);
  padding:0 12px calc(18px + env(safe-area-inset-bottom,0px));
  animation:pocket-rise .26s ease-out both
 }
 @keyframes pocket-rise{from{transform:translateY(55px);opacity:.4}to{transform:translateY(0);opacity:1}}
 .pocket-sheet-head{
  display:flex;position:sticky;top:0;z-index:3;min-height:65px;
  margin:0 -12px 12px;padding:13px 16px 10px;
  align-items:center;gap:10px;background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--g-line);border-radius:24px 24px 0 0
 }
 .pocket-sheet-grip{position:absolute;left:calc(50% - 20px);top:6px;width:40px;height:4px;border-radius:5px;background:#d1d9da}
 .pocket-sheet-title{display:grid;gap:3px;flex:1}
 .pocket-sheet-title span{color:var(--g-red);font-size:10px;font-weight:950}
 .pocket-sheet-title strong{color:var(--g-teal-deep);font-size:16px}
 .pocket-sheet-head button{height:39px;width:39px;flex-shrink:0;border:1px solid var(--g-line);background:#f4f7f8;border-radius:11px;font-size:18px;color:var(--g-teal-deep)}
 .magic-paper-shell{min-width:0}
 .magic-paper{min-height:0;transform:none;border-radius:18px;padding:18px 13px;box-shadow:0 3px 17px rgba(6,17,28,.08)}
 .magic-paper::before{left:12px}
 .magic-paper-head h3{font-size:20px}
 .magic-empty{padding:25px 9px}
 .magic-empty strong{font-size:16px}
 .magic-side{display:grid;grid-template-columns:1fr;gap:0;margin-top:11px}
 .magic-side-head,.magic-stats,.magic-missing{display:none}
 .magic-bag{padding:13px 14px;border-radius:16px;gap:7px}
 .magic-bag-illustration,.magic-bag small{display:none}
 .magic-bag strong{font-size:15px}
 .magic-bag p{font-size:11px}
 .magic-bag-total{font-size:20px}
 .magic-bag button{min-height:44px}
 .magic-receipt{margin-top:10px}
 .main-wrap{padding:17px 12px 22px}
 .aisle{margin-bottom:18px}
 .aisle-title{margin-bottom:9px}
 .aisle h2{font-size:19px}
 .aisle-options small{display:none}
 .carousel{grid-auto-columns:calc((100% - 10px)/2.15);gap:10px}
 .carousel-navigation{display:none}
 .product .photo{height:132px}
 .sticky-shelves{box-shadow:0 2px 12px rgba(4,23,36,.08)}
}
@media(max-width:540px){
 .magic-workspace{padding:10px 10px 5px}
 .pocket-entry{padding:14px 13px;gap:10px}
 .pocket-entry h2{font-size:19px}
 .pocket-actions button{font-size:11px}
 .magic-paper{padding:16px 11px}
 .magic-line-main{gap:5px;padding:7px 2px;min-height:61px}
 .magic-line-number{font-size:11px;width:17px}
 .magic-item-name{font-size:15px}
 .magic-line-status{font-size:9px;padding:6px 5px}
 .magic-line-switch{width:29px;height:32px}
 .magic-line-options{margin-right:0}
 .magic-form{padding:14px}
 .journey-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 20px);border-radius:18px}
 .journey-contact{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.magic-bag-pop .magic-bag-illustration,.magic-just-picked,body.pocket-open .magic-stage{animation:none}}
