/* Opt-in only. Legacy overrides activate after successful progressive enhancement. */
.sf-home[hidden], .sf-home [hidden] { display: none !important; }
.sf-home-enhanced {
    --home-brand: var(--theme-color, #30B6C5);
    --home-ink: #20383d; --home-muted: #6b7c81; --home-surface: #fff;
    --home-paper: #fff; --home-store-divider: #f0f1f2; --home-line: #e4eef0; --home-accent: #157b89;
    --home-category-surface: #fafafa; --home-category-atlas: url('../img/storefront-category-atlas.png'); --home-category-brightness: 1.02;
    --home-soft: #eaf8fa; --home-action: #fff; --home-gutter: 12px;
    --home-header-motion: 360ms cubic-bezier(.4, 0, .2, 1); background: var(--home-paper) !important;
}
.sf-home { color: var(--home-ink); background: var(--home-paper); text-align: start; padding-top: var(--home-header-expanded-height, calc(132px + env(safe-area-inset-top, 0px))); max-width: 1180px; margin-inline: auto; }
.sf-home, .sf-home button, .sf-home h1, .sf-home h2, .sf-home p,
.sf-home-results-heading, .sf-home-results-heading h2, .sf-home-results-heading button { font-family: 'Noto Sans Arabic', Tahoma, sans-serif !important; }
.sf-home *, .sf-home *::before, .sf-home *::after { box-sizing: border-box; }
.sf-home button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sf-home button:focus-visible, .sf-home a:focus-visible,
.sf-home-enhanced .productTab:focus-visible, .sf-home-results-heading button:focus-visible { outline: 3px solid var(--home-brand) !important; outline-offset: 4px; }
.sf-home-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.sf-home-intro { padding: 12px 20px 0; }
.sf-home-eyebrow { margin: 0 0 3px; font-size: 11px; line-height: 1.7; color: var(--home-muted); font-weight: 400; }
.sf-home-search { box-sizing: border-box; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 6px 13px; border: 0; border-radius: 12px; background: var(--home-surface); color: var(--home-muted); text-align: start; font: 13px/1.6 'Noto Sans Arabic', Tahoma, sans-serif !important; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: none; }
.sf-home-search > svg { flex: none; width: 20px; height: 20px; color: var(--home-accent); }
.sf-home-search:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 2px; }
.sf-home-categories, .sf-home-offers { padding: 22px var(--home-gutter) 0; }
.sf-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sf-home-heading h2 { margin: 0; font-size: 19px; line-height: 1.6; font-weight: 700; color: var(--home-ink); letter-spacing: -.4px; }
.sf-home-categories { padding-top: 16px; }
.sf-home-category-count { display: inline-grid; place-items: center; background: var(--home-soft); border-radius: 6px; min-width: 20px; height: 20px; font: 10px Arial, sans-serif; }
.sf-home-category { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; color: var(--home-ink); border: 0; background: transparent; text-align: center; }
.sf-home-category-picture { display: block; overflow: hidden; width: 100%; aspect-ratio: 1.08; border-radius: 18px; background: var(--home-category-surface); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .16s, transform .16s; }
.sf-home-art { display: block; background-image: var(--home-category-atlas); background-size: 300% 300%; background-repeat: no-repeat; background-color: var(--home-category-surface); }
.sf-home-art--food { background-position: 0% 0%; }
.sf-home-art--best-dishes { background-image: url('../img/storefront-best-dishes.png'); background-size: 96% auto; background-position: center; }
.sf-home-art--butcher { background-image: url('../img/storefront-butcher.png'); background-size: 96% auto; background-position: center; }
.sf-home-art--market { background-position: 50% 0%; }
.sf-home-art--coffee { background-position: 100% 0%; }
.sf-home-art--flowers { background-position: 0% 50%; }
.sf-home-art--pharmacy { background-position: 50% 50%; }
.sf-home-art--sweets { background-position: 100% 50%; }
.sf-home-art--family { background-position: 0% 100%; }
.sf-home-art--juice { background-position: 50% 100%; }
.sf-home-art--gifts { background-position: 100% 100%; }
.sf-home-category-picture .sf-home-art { width: 100%; height: 100%; mix-blend-mode: normal; filter: brightness(var(--home-category-brightness)); }
.sf-home-category-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sf-home-category-label { display: block; width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 700; line-height: 22px; }
.sf-home-category[aria-pressed='true'] .sf-home-category-picture { outline-color: var(--home-accent); }
.sf-home-category[aria-pressed='true'] .sf-home-category-label { color: var(--home-accent); }
.sf-home-feature { padding: 16px var(--home-gutter) 0; }
.sf-home-hero { position: relative; isolation: isolate; display: flex; align-items: center; width: 100%; aspect-ratio: 3.2; min-height: 112px; overflow: hidden; border: 0; border-radius: 18px; padding: 12px 15px; background: var(--home-brand); color: #fff; text-align: start; }
.sf-home-hero-copy { display: flex; flex-direction: column; align-items: flex-start; width: 60%; position: relative; z-index: 2; gap: 5px; }
.sf-home-brand { display: none; }
.sf-home-hero-copy > strong { font-size: clamp(18px, 5vw, 23px); line-height: 1.35; font-weight: 700; letter-spacing: -.4px; color: #153e46; }
.sf-home-hero-copy > strong > :last-child { color: #153e46; }
.sf-home-hero-caption { display: none; }
.sf-home-hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px; border-radius: 8px; background: var(--home-action); color: #174d56; font-size: 10px; line-height: 1.8; font-weight: 700; }
.sf-home-hero-art { position: absolute; z-index: 0; width: 44%; height: 120%; inset-inline-end: -1%; bottom: -10%; pointer-events: none; }
.sf-home-hero-art > img { position: relative; width: 100%; height: 100%; object-fit: contain; z-index: 1; transform: rotate(-7deg); }
.sf-home-orbit { position: absolute; width: 120%; height: 120%; inset: 10% -10%; border: 1px solid #ffffff50; border-radius: 50%; transform: rotate(-25deg); }
.sf-home-orbit::before, .sf-home-orbit::after { content: ''; position: absolute; inset: 12%; border-radius: inherit; border: 1px solid #ffffff50; }
.sf-home-orbit::after { inset: 25%; }
.sf-home-hero--banner { padding: 0; min-height: 0; aspect-ratio: 3.2; background: var(--home-soft); }
.sf-home-hero-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.sf-home-offers { padding-top: 16px; padding-bottom: 10px; }
.sf-home-enhanced .sf-home .banner-card { display: block !important; width: auto !important; margin: 0 calc(-1 * var(--home-gutter)) !important; padding: 0 !important; background: transparent !important; overflow: visible !important; opacity: 1 !important; transform: none !important; }
.sf-home-enhanced .sf-home .banner-card .swiper-container { width: 100%; overflow: visible; }
.sf-home-enhanced .sf-home .banner-card .swiper-wrapper { display: flex !important; gap: 12px !important; padding: 3px var(--home-gutter) 8px !important; overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; scroll-padding-inline: var(--home-gutter); width: 100%; transform: none !important; box-sizing: border-box; scrollbar-width: none; }
.sf-home-enhanced .sf-home .banner-card .swiper-slide { width: 128px !important; height: 158px !important; flex: 0 0 128px !important; border-radius: 18px !important; scroll-snap-align: start; box-shadow: none !important; border: 1px solid var(--home-line); }
.sf-home-enhanced .sf-home .banner-card .banner-img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: inherit; }
.sf-home-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: #fff7d6; color: #63500f; font-size: 12px; }
.sf-home-preview a { color: inherit; text-decoration: underline; white-space: nowrap; }
.sf-home-dialog { width: min(540px, calc(100% - 20px)); max-height: 85dvh; margin: auto; padding: 20px; border: 1px solid var(--home-line); border-radius: 26px; color: var(--home-ink); background: var(--home-paper); overscroll-behavior: contain; }
.sf-home-dialog::backdrop { background: rgb(10 38 38 / 50%); backdrop-filter: blur(5px); }
.sf-home-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.sf-home-dialog-head h2 { font-size: 23px; margin: 0; font-weight: 700; }
.sf-home-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--home-line); border-radius: 50%; background: var(--home-surface); color: var(--home-ink); font-size: 28px !important; }
.sf-home-dialog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px 14px; }
.sf-home-dialog-grid .sf-home-category-picture { aspect-ratio: 1.15; }
.sf-home-all-picture { display: grid; place-items: center; width: 100%; height: 100%; font-size: 38px; color: var(--home-accent); background: var(--home-soft); }
.sf-home-enhanced #store-main { display: none !important; }
/* Collapse only the identity row; the same search button stays fixed at the top. */
.sf-home-enhanced #header { background: var(--home-brand) !important; box-shadow: none !important; border: 0 !important; border-radius: 0 0 14px 14px !important; transition: background-color var(--home-header-motion) !important; }
.sf-home-header-identity { height: var(--home-identity-height, 68px); opacity: 1; overflow: hidden; transition: height var(--home-header-motion), opacity var(--home-header-motion); }
.sf-home-header-search { padding: 8px var(--home-gutter) 12px; }
.sf-home-header-search .sf-home-search { transition: background-color var(--home-header-motion); }
.sf-home-enhanced .sf-home-intro { padding: 0; }
.sf-home-enhanced.sf-home-header-compact #header { background: var(--home-paper) !important; }
.sf-home-header-compact .sf-home-header-identity { height: 0; opacity: 0; }
.sf-home-header-compact .sf-home-search { background: #f3f6f7; }
body.search-banner-hidden .sf-home-enhanced #header { visibility: hidden; opacity: 0; pointer-events: none; }
body.search-banner-hidden .sf-home { padding-top: var(--home-search-height, 64px); }
.sf-home-enhanced .search-overlay .header-search-form { padding-inline: var(--home-gutter); padding-inline-start: 6px; padding-bottom: 12px; background: var(--home-paper); border: 0; border-radius: 0 0 14px 14px; box-shadow: none; }
.sf-home-enhanced .search-overlay .form-input, .sf-home-enhanced .search-overlay .form-input:focus-within { border: 0 !important; border-radius: 12px; box-shadow: none !important; }
.sf-home-enhanced #header .main-navigationbar { display: grid !important; grid-template-columns: 94px minmax(0,1fr) 44px 44px; align-items: center; gap: 6px; max-width: 1180px; margin: 0 auto; height: auto; min-height: 68px; padding: 12px 16px 8px !important; background: transparent !important; }
.sf-home-enhanced #header .header-logo { display: block !important; position: static !important; grid-column: 1; grid-row: 1; justify-self: start; transform: none !important; opacity: 1 !important; visibility: visible !important; animation: none !important; }
.sf-home-enhanced #header .header-logo-circle { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: none; border: 0; }
.sf-home-enhanced #header .header-logo-circle img { width: 100% !important; height: 100% !important; border-radius: 12px; object-fit: cover; }
.sf-home-enhanced #header .navigation-left { grid-column: 3; grid-row: 1; margin: 0 !important; gap: 0; }
.sf-home-enhanced #header .navigation-right, .sf-home-enhanced #header #chat-icon-btn { display: none !important; }
.sf-home-enhanced #header .nav-icon, .sf-home-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 0; border: 0 !important; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: #fff !important; cursor: pointer; transform: none !important; }
.sf-home-enhanced #header .nav-icon svg { width: 21px; height: 21px; stroke: currentColor !important; stroke-width: 1.8; }
.sf-home-more > svg { width: 24px; height: 24px; transform: none; }
.sf-home-enhanced #header .sf-home-orders { height: 44px; gap: 3px; }
.sf-home-enhanced #header .sf-home-orders .rewards-notifications-icon-wrap,
.sf-home-enhanced #header .sf-home-orders .rewards-notifications-icon-wrap svg { width: 26px; height: 26px; flex-shrink: 0; transform: none; }
.sf-home-enhanced #header .nav-icon:active, .sf-home-more:active { opacity: .7; }
.sf-home-more { grid-column: 4; grid-row: 1; }
.sf-home-header-action-label { font: 500 9px/1.4 'Noto Sans Arabic', Tahoma, sans-serif; letter-spacing: 0; color: inherit; }
.sf-home-more:focus-visible, .sf-home-enhanced #header .nav-icon:focus-visible, .sf-home-enhanced #header [role='button']:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sf-home-enhanced #header #header-delivery-address { grid-column: 2; grid-row: 1; justify-self: center; display: flex !important; align-items: center; gap: 6px; min-width: 0; min-height: 34px; width: max-content; max-width: 100% !important; box-sizing: border-box; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; position: static !important; inset: auto !important; transform: none !important; padding: 4px 10px !important; background: rgb(255 255 255 / 20%) !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; color: #fff !important; text-align: start; cursor: pointer; }
.sf-home-enhanced #header .header-delivery-address-text-nav { display: block !important; flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: start; font-size: 12px !important; font-weight: 500; color: #fff !important; line-height: 1.6; }
.sf-home-enhanced #header .header-delivery-location-icon-nav { display: flex !important; width: 22px; height: 22px; flex: 0 0 22px; }
.sf-home-enhanced #header .header-delivery-dropdown-icon-nav { display: flex !important; align-items: center; justify-content: center; width: 12px; height: 12px; flex: 0 0 12px; color: #fff !important; }
.sf-home-enhanced #header .header-delivery-dropdown-icon-nav svg { width: 12px; height: 12px; }
.sf-home-enhanced #header #header-delivery-address.is-shared-trip-active { background: #111113 !important; }
.sf-home-enhanced #header #header-delivery-address.is-shared-trip-active .header-delivery-location-icon-nav,
.sf-home-enhanced #header #header-delivery-address.is-shared-trip-active .header-delivery-address-text-nav,
.sf-home-enhanced #header #header-delivery-address.is-shared-trip-active .header-delivery-dropdown-icon-nav { display: none !important; }
/* Account hub: a full-height mobile sheet and a compact desktop panel. */
.sf-account-hub { position: fixed; inset: 0; width: min(440px, calc(100vw - 32px)); height: min(700px, calc(100dvh - 40px)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--home-line); border-radius: 24px; background: var(--home-paper); color: var(--home-ink); text-align: start; box-shadow: 0 24px 80px #071e3026; }
.sf-account-hub[open] { display: flex; flex-direction: column; animation: sf-home-tools-in .24s cubic-bezier(.2,.8,.2,1) both; }
.sf-account-hub[open].is-closing { animation: sf-home-tools-out .16s ease-in both; pointer-events: none; }
.sf-account-hub::backdrop { background: #071e304d; backdrop-filter: blur(3px); }
.sf-account-hub [hidden] { display: none !important; }
.sf-hub-topbar { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 8px; flex: none; min-height: 68px; padding: max(12px, env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid var(--home-line); }
.sf-hub-topbar h2 { margin: 0; color: var(--home-ink); text-align: center; font: 700 18px/1.6 'Noto Sans Arabic', Tahoma, sans-serif; outline: none; }
.sf-account-hub .sf-home-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--home-ink); cursor: pointer; }
.sf-account-hub .sf-home-close svg { width: 22px; height: 22px; }
.sf-hub-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px max(24px, env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: var(--home-line) transparent; }
.sf-hub-body::-webkit-scrollbar { width: 4px; }
.sf-hub-body::-webkit-scrollbar-track { background: transparent; }
.sf-hub-body::-webkit-scrollbar-thumb { background: var(--home-line); border-radius: 4px; }
.sf-hub-body > section { animation: sf-hub-content-in .2s ease-out; }
.sf-hub-welcome { margin: 0 0 14px; color: var(--home-ink); font-size: 20px; font-weight: 700; }
.sf-hub-profile { display: grid; grid-template-columns: 52px minmax(0,1fr) 28px; width: 100%; align-items: center; gap: 12px; padding: 20px 14px; background: var(--home-soft); color: var(--home-ink); border: 1px solid transparent; border-radius: 20px; text-align: start; cursor: pointer; }
.sf-hub-profile strong { font-size: 17px; font-weight: 700; line-height: 1.7; color: var(--home-ink); }
.sf-hub-profile small { font-size: 11px; color: var(--home-muted); line-height: 1.9; }
.sf-hub-avatar { display: grid; place-items: center; width: 52px; height: 56px; background: var(--home-paper); color: var(--home-accent); border-radius: 17px; }
.sf-hub-avatar svg { width: 30px; height: 30px; }
.sf-hub-profile-next { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--home-paper); color: var(--home-accent); }
.sf-hub-profile-next svg { width: 17px; height: 17px; }
.sf-account-hub[dir='ltr'] .sf-hub-back svg, .sf-account-hub[dir='ltr'] .sf-hub-profile-next svg { transform: scaleX(-1); }
.sf-account-hub[dir='ltr'] .sf-home-tool-arrow { transform: rotate(225deg); }
.sf-hub-section-label { margin: 25px 2px 9px; font-size: 11px; font-weight: 600; color: var(--home-muted); }
[data-hub-panel]:not([data-hub-panel='home']) > .sf-hub-section-label { margin-top: 0; }
.sf-home-tools-list { display: grid; }
.sf-home-tools-list button { display: grid; grid-template-columns: 40px minmax(0,1fr) 34px; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--home-line); border-radius: 0; color: var(--home-ink); background: transparent; text-align: start; cursor: pointer; transition: background-color .15s; }
.sf-home-tools-list button:last-child { border-bottom: 0; }
.sf-home-tools-list button:hover { background: var(--home-category-surface); }
.sf-account-hub button:focus-visible, .sf-account-hub a:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; border-radius: 12px; }
.sf-home-tool-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--home-category-surface); color: var(--home-accent); }
.sf-home-tool-icon svg { width: 23px; height: 23px; stroke-linecap: round; stroke-linejoin: round; }
.sf-home-tool-copy { min-width: 0; display: grid; gap: 3px; }
.sf-home-tool-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; line-height: 1.7; }
.sf-home-tool-copy small { font-size: 11px; line-height: 1.8; color: var(--home-muted); }
.sf-home-tool-arrow { justify-self: center; width: 7px; height: 7px; border-left: 1.5px solid var(--home-muted); border-bottom: 1.5px solid var(--home-muted); transform: rotate(45deg); opacity: .7; }
.sf-home-theme-switch { position: relative; width: 34px; height: 20px; border-radius: 20px; background: var(--home-line); direction: ltr; }
.sf-home-theme-switch::after { content: ''; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
[aria-pressed='true'] > .sf-home-theme-switch { background: var(--home-brand); }
[aria-pressed='true'] > .sf-home-theme-switch::after { transform: translateX(14px); }
.sf-hub-brand { display: grid; gap: 2px; justify-items: center; padding: 36px 0 4px; color: var(--home-muted); opacity: .6; font: 700 20px/1.4 Arial, sans-serif; }
.sf-hub-brand span { font: 500 10px/1.6 'Noto Sans Arabic', Tahoma, sans-serif; }
.sf-hub-detail { display: grid; justify-items: center; padding-top: 20px; text-align: center; }
.sf-hub-detail-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 24px; color: var(--home-accent); background: var(--home-soft); }
.sf-hub-detail-icon svg { width: 36px; height: 36px; }
.sf-hub-detail h3 { font-size: 20px; color: var(--home-ink); margin: 0 0 12px; }
.sf-hub-detail p { font-size: 13px; line-height: 2; color: var(--home-muted); margin: 0 0 22px; }
.sf-hub-state { padding: 7px 14px; margin-bottom: 24px; border-radius: 12px; color: var(--home-accent); background: var(--home-soft); font-size: 12px; }
.sf-hub-primary { width: 100%; min-height: 48px; padding: 10px 16px; background: var(--home-brand); color: #062f35; border: 0; border-radius: 14px; font: 700 14px/1.6 'Noto Sans Arabic', Tahoma, sans-serif; cursor: pointer; }
.sf-hub-primary:disabled { cursor: default; opacity: .5; }
.sf-hub-detail [role='status'] { margin: 16px 0 0; font-size: 12px; }
.sf-hub-languages { display: grid; gap: 12px; }
.sf-account-hub .sf-hub-languages a { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 16px; border: 1px solid var(--home-line); border-radius: 14px; color: var(--home-ink) !important; background: var(--home-paper); text-decoration: none; font-size: 15px; }
.sf-account-hub .sf-hub-languages a[aria-current='true'] { border-color: var(--home-brand); background: var(--home-soft); font-weight: 600; }
.sf-hub-radio { display: block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--home-muted); }
[aria-current='true'] > .sf-hub-radio { border: 5px solid var(--home-brand); }
.sf-hub-legal { font-size: 13px; line-height: 2; color: var(--home-ink); }
.sf-hub-legal h2 { font-size: 16px; line-height: 1.7; color: var(--home-ink); margin: 24px 0 10px; }
.sf-hub-legal h2:first-child { margin-top: 0; }
.sf-hub-legal p, .sf-hub-legal ul { margin: 0 0 14px; }
.sf-hub-legal ul { padding-inline-start: 20px; list-style: disc; }
.sf-hub-legal a { overflow-wrap: anywhere; color: var(--home-accent) !important; }
@keyframes sf-home-tools-in { from { opacity: .5; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes sf-home-tools-out { to { opacity: 0; transform: translateX(-20px); } }
@keyframes sf-hub-content-in { from { opacity: .5; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 600px) { .sf-account-hub { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .sf-account-hub[open], .sf-account-hub[open].is-closing, .sf-hub-body > section { animation: none !important; } }
.sf-home-enhanced .main-left-col main.wrapper { padding-inline: var(--home-gutter) !important; background: var(--home-paper) !important; max-width: 1180px; margin-inline: auto; }
.sf-home-results-heading { display: none; padding: 20px 0 16px; color: var(--home-ink); }
.sf-home-results-heading h2 { font-size: 23px; line-height: 1.6; font-weight: 700; margin: 0; color: var(--home-ink); }
.sf-home-results-summary { min-height: 22px; margin: 3px 0 0; font-size: 12px; line-height: 1.8; color: var(--home-muted); }
.sf-home-search-empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--home-line); border-radius: 22px; margin: 16px 0; color: var(--home-ink); background: var(--home-surface); }
.sf-home-search-empty[hidden] { display: none !important; }
.sf-home-search-empty h3 { font-size: 19px; margin-bottom: 10px; }
.sf-home-search-empty p { color: var(--home-muted); font-size: 13px; }
.sf-home-search-empty button { border: 0; padding: 10px 20px; min-height: 44px; margin-top: 16px; border-radius: 12px; background: var(--home-soft); color: var(--home-accent); cursor: pointer; }
body.search-banner-hidden .sf-home-intro,
body.search-banner-hidden .sf-home-categories,
body.search-banner-hidden .sf-home-feature,
body.search-banner-hidden .sf-home-offers,
body.search-banner-hidden .sf-home-enhanced .category-sticky-wrap,
body.search-banner-hidden .sf-home-enhanced .sticky-ph-categories { display: none !important; }
body.search-banner-hidden .sf-home-results-heading { display: block; }
/* One two-row category carousel under search; retain the original filter nodes. */
body.is-storefront-home .main-wrapper.sf-home-enhanced .category-sticky-wrap,
body.is-storefront-home .main-wrapper.sf-home-enhanced .sticky-ph-categories { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
.sf-home-category-rail { min-width: 0; }
body.is-storefront-home .main-wrapper.sf-home-enhanced .sf-home-categories ul.category-tab { --home-category-columns: 4; display: grid !important; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 30px) / 4); min-width: 0; width: 100%; gap: 10px !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; scroll-snap-type: x mandatory; scroll-padding-inline: 0; overscroll-behavior-x: contain; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab::after { content: ''; grid-column: var(--home-last-column); grid-row: 1 / span 2; pointer-events: none; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab li { box-sizing: border-box; min-width: 0; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; align-items: center !important; gap: 6px !important; padding: 3px !important; margin: 0 !important; border: 0 !important; border-radius: 10px; font-size: 11px !important; font-weight: 600 !important; color: var(--home-ink) !important; background: transparent !important; white-space: normal !important; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab li.active { background: transparent !important; color: var(--home-accent) !important; }
.sf-home-enhanced ul.category-tab li > :not(.sf-home-tab-label):not(.sf-home-tab-picture) { display: none !important; }
.sf-home-enhanced ul.category-tab .sf-home-tab-picture, .sf-home-enhanced ul.category-tab .sf-home-tab-picture span { display: block !important; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-tab-picture { box-sizing: border-box; width: min(100%, 88px) !important; height: auto !important; padding: 0 !important; margin: 0 !important; aspect-ratio: 1.08; flex: none; border-radius: 18px !important; overflow: hidden; background-color: var(--home-category-surface) !important; outline: 2px solid transparent; outline-offset: 0; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-tab-picture > .sf-home-art,
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-tab-picture .sf-home-all-collage > .sf-home-art { width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; background-color: transparent !important; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab li.active .sf-home-tab-picture { outline-color: var(--home-brand); }
.sf-home-enhanced ul.category-tab .sf-home-tab-picture [hidden] { display: none !important; }
.sf-home-tab-label { display: block !important; width: 100%; min-width: 0; height: 20px; overflow: hidden; white-space: nowrap !important; text-align: center; line-height: 20px; font-family: 'Noto Sans Arabic', Tahoma, sans-serif !important; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-tab-picture .sf-home-all-collage { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(2, minmax(0,1fr)); gap: 2px; width: 100% !important; height: 100% !important; padding: 4px !important; margin: 0 !important; border-radius: 0 !important; background-color: transparent !important; box-sizing: border-box; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-tab-picture .sf-home-all-picture { display: grid !important; place-items: center; width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; font-size: 30px !important; color: var(--home-accent) !important; background-color: var(--home-soft) !important; }
.sf-home-category-pages { display: flex; justify-content: center; align-items: center; gap: 0; height: 24px; }
.sf-home-category-pages[hidden] { display: none !important; }
.sf-home-category-pages button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.sf-home-category-pages button::before { content: ''; width: 5px; height: 5px; border-radius: 6px; background: var(--home-muted); opacity: .35; transition: width .15s; }
.sf-home-category-pages button[aria-current='true']::before { width: 17px; background: var(--home-brand); opacity: 1; }
.sf-home-category-pages button:focus-visible, .sf-home-enhanced .sf-home-category-rail .productTab:focus-visible { outline: 2px solid var(--home-accent) !important; outline-offset: -2px !important; }
.sf-home-enhanced .product_item { padding-inline: 0 !important; margin-bottom: 0 !important; }
.sf-home-enhanced #product_view .product_item::after { content: ''; display: block; height: 4px; background: var(--home-store-divider); border-radius: 12% / 50%; pointer-events: none; }
.sf-home-enhanced #product_view .zoro-card { background: var(--home-paper) !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; padding: 12px 0 !important; transform: none !important; }
.sf-home-enhanced .zoro-img-wrapper, .sf-home-enhanced .zoro-img-wrapper img { border: 0 !important; box-shadow: none !important; outline: 0 !important; border-radius: 18px !important; }
.sf-home-enhanced #product_view .zoro-img-wrapper { box-sizing: border-box; border: 1px solid var(--home-line) !important; }
.sf-home-enhanced .zoro-card:focus-visible { outline: 2px solid var(--home-accent) !important; outline-offset: 5px; }
.sf-home-enhanced .zoro-title { color: var(--home-ink) !important; }
html.dark-mode .sf-home-enhanced, body.dark-mode .sf-home-enhanced { --home-ink: #f2f7f8; --home-muted: #afbdc1; --home-paper: #26262e; --home-surface: #303039; --home-store-divider: #35353e; --home-line: #45454f; --home-accent: #72d1dc; --home-soft: #25454d; --home-category-surface: #303039; --home-category-atlas: url('../img/storefront-category-atlas-dark.png'); --home-category-brightness: 1; }
html.dark-mode .sf-home-category-count, body.dark-mode .sf-home-category-count { background: #25454d; }
html.dark-mode .sf-home-search, body.dark-mode .sf-home-search { border: 0 !important; box-shadow: none !important; background: #2a2a32 !important; }
html.dark-mode .sf-home-hero-cta, html.dark-mode .sf-home-hero-cta *, body.dark-mode .sf-home-hero-cta, body.dark-mode .sf-home-hero-cta * { color: #174d56 !important; }
html.dark-mode .sf-home-hero, body.dark-mode .sf-home-hero { border: 1px solid #54bdc9; }
@media (hover: hover) {
    .sf-home-category:hover .sf-home-category-picture { transform: translateY(-3px); }
    .sf-home-hero:hover .sf-home-hero-cta { background: #f1fcfd; }
}
@media (max-width: 359px) {
    .sf-home-enhanced #header #header-delivery-address { gap: 3px; padding-inline: 6px !important; }
    .sf-home-enhanced #header .header-delivery-address-text-nav { font-size: 11px !important; }
    .sf-home-enhanced #header .header-delivery-location-icon-nav { width: 18px; height: 18px; flex-basis: 18px; }
    .sf-home-enhanced #header .header-delivery-dropdown-icon-nav { width: 10px; flex-basis: 10px; }
    .sf-home-search { font-size: 11px !important; gap: 8px; }
    .sf-home-hero { padding: 10px 12px; }
}
@media (min-width: 700px) {
    body.is-storefront-home .main-wrapper.sf-home-enhanced { max-width: 1180px; --home-gutter: 28px; }
    body.is-storefront-home .sf-home-enhanced .main-left-col.tabs-wrapper { max-width: 100% !important; }
    body.is-storefront-home .sf-home-enhanced #header.site-header { left: max(0px, calc(50vw - 590px)) !important; width: min(1180px, 100vw) !important; }
    body.is-storefront-home .sf-home-enhanced #product_view .product_item { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
    .sf-home-intro { padding: 30px 36px 0; }
    .sf-home-search { max-width: 680px; }
    .sf-home-categories .sf-home-heading h2 { font-size: 18px; }
    .sf-home-category-label { font-size: 13px; }
    .sf-home-hero { min-height: 160px; max-height: 210px; aspect-ratio: 5; padding: 16px 28px; border-radius: 22px; }
    .sf-home-hero-copy { width: 60%; }
    .sf-home-hero-copy > strong { font-size: 28px; }
    .sf-home-hero-cta { font-size: 12px; }
    .sf-home-hero-art { width: 32%; inset-inline-end: 7%; }
    .sf-home-hero--banner { min-height: 0; padding: 0; }
    .sf-home-enhanced .sf-home .banner-card .swiper-slide { width: 160px !important; height: 198px !important; flex-basis: 160px !important; }
    .sf-home-enhanced .product_item { padding-inline: 6px !important; }
    body.is-storefront-home .main-wrapper.sf-home-enhanced .sf-home-categories ul.category-tab { --home-category-columns: 7; grid-auto-columns: calc((100% - 60px) / 7); }
}
@media (min-width: 1000px) {
    body.is-storefront-home .sf-home-enhanced #product_view .product_item { flex: 0 0 33.3333% !important; max-width: 33.3333% !important; width: 33.3333% !important; }
}
@media (prefers-reduced-motion: reduce) {
    .sf-home-tools[open], .sf-home-tools::backdrop { animation: none !important; }
    .sf-home *, .sf-home-enhanced ul.category-tab, .sf-home-enhanced #header, .sf-home-header-identity, .sf-home-header-search .sf-home-search { scroll-behavior: auto !important; transition: none !important; }
}

html.dark-mode .sf-home-enhanced #header, body.dark-mode .sf-home-enhanced #header { background: var(--home-surface) !important; }
html.dark-mode .sf-home-enhanced #header .nav-icon, html.dark-mode .sf-home-more,
body.dark-mode .sf-home-enhanced #header .nav-icon, body.dark-mode .sf-home-more { color: var(--home-brand) !important; }
html.dark-mode .sf-home-enhanced #header #header-delivery-address:not(.is-shared-trip-active),
body.dark-mode .sf-home-enhanced #header #header-delivery-address:not(.is-shared-trip-active) { background: rgb(255 255 255 / 8%) !important; }
html.dark-mode .sf-home-hero-copy *, body.dark-mode .sf-home-hero-copy * { color: #153e46 !important; }

/* Category destination: a separate view using the original filters and store cards. */
.sf-home-category-page[hidden] { display: none !important; }
.sf-home-category-page { min-height: 100dvh; padding-top: var(--home-category-header-height, 190px); background: var(--home-paper); color: var(--home-ink); animation: sf-home-category-enter .24s ease-out; }
.sf-home-category-open .sf-home { display: none !important; }
.sf-home-category-open #header { visibility: hidden; opacity: 0; pointer-events: none; }
.sf-home-category-header { position: fixed; z-index: 110; top: 0; left: max(0px, calc(50vw - 590px)); width: min(1180px, 100vw); padding-top: env(safe-area-inset-top, 0px); background: var(--home-paper); color: var(--home-ink); box-shadow: 0 1px 0 var(--home-line); }
.sf-home-category-topbar { display: flex; align-items: center; gap: 5px; min-height: 52px; padding: 2px 8px; }
.sf-home-category-topbar h1 { flex: 1; margin: 0; font: 600 19px/1.6 'Noto Sans Arabic', Tahoma, sans-serif; color: var(--home-ink); outline: none; }
.sf-home-category-topbar button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; background: transparent; color: var(--home-ink); border-radius: 12px; cursor: pointer; }
.sf-home-category-topbar button:focus-visible { outline: 2px solid var(--home-accent); }
.sf-home-category-topbar svg { width: 23px; height: 23px; }
.sf-home-category-header .sf-home-categories { padding: 0 0 10px; }
body.is-storefront-home .main-wrapper.sf-home-enhanced .sf-home-category-header ul.category-tab { grid-template-rows: auto; grid-auto-flow: column; grid-auto-columns: 68px; gap: 10px !important; scroll-snap-type: x proximity; }
body.is-storefront-home .main-wrapper.sf-home-enhanced .sf-home-category-header ul.category-tab::after { content: none; }
.sf-home-category-page .sf-home-category-pages { display: none; }
.sf-home-category-page [data-home-category-content] { padding-top: 14px; }
body.search-banner-hidden .sf-home-category-header { visibility: hidden; opacity: 0; pointer-events: none; }
body.search-banner-hidden .sf-home-category-page { padding-top: var(--home-search-height, 64px); animation: none; }
@keyframes sf-home-category-enter { from { transform: translateX(-100%); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sf-home-category-page { animation: none; } }

/* Phone account: compact, accessible dialog sharing the storefront theme. */
.sf-phone-account { width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--home-line); border-radius: 20px; background: var(--home-surface); color: var(--home-ink); text-align: start; overflow-y: auto; }
.sf-phone-account::backdrop { background: rgb(12 30 35 / 35%); }
.sf-phone-account .sf-home-dialog-head { margin-bottom: 12px; }
.sf-phone-account .sf-home-dialog-head h2 { font-size: 18px; }
.sf-phone-account .sf-home-close { border: 0; background: transparent; color: var(--home-muted); width: 44px; height: 44px; font-size: 28px; }
.sf-phone-welcome { width: 58px; height: 58px; margin: 8px auto 14px; border-radius: 18px; background: var(--home-soft); color: var(--home-accent); display: grid; place-items: center; }
.sf-phone-welcome svg { width: 30px; height: 30px; }
.sf-phone-account h3 { margin: 0 0 8px; font-size: 20px; text-align: center; color: var(--home-ink); }
.sf-phone-account p { margin: 8px 0 16px; font-size: 12px; line-height: 1.9; color: var(--home-muted); text-align: center; }
.sf-phone-account label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.sf-phone-number { display: flex; align-items: center; direction: ltr; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-paper); padding-inline: 14px; }
.sf-phone-number span { font: 15px Arial, sans-serif; padding-right: 12px; border-right: 1px solid var(--home-line); }
.sf-phone-number input { min-width: 0; width: 100%; height: 48px; padding: 10px 12px; border: 0; background: transparent; color: var(--home-ink); font: 17px Arial, sans-serif; outline: none; box-shadow: none; }
.sf-phone-number:focus-within { outline: 2px solid var(--home-brand); outline-offset: 2px; }
.sf-phone-account .sf-phone-hint { text-align: start; font-size: 11px; }
.sf-phone-primary { width: 100%; min-height: 46px; margin-top: 14px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--home-brand); color: #123e46; font: 700 14px/1.7 'Noto Sans Arabic', Tahoma, sans-serif; }
.sf-phone-account button:disabled { opacity: .45; cursor: default; }
.sf-phone-account button:focus-visible, .sf-phone-code:focus-visible { outline: 2px solid var(--home-brand); outline-offset: 3px; }
.sf-phone-link { padding: 8px 4px; border: 0; background: transparent; color: var(--home-accent); font: 600 11px/1.6 'Noto Sans Arabic', Tahoma, sans-serif; }
.sf-phone-recipient { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.sf-phone-recipient bdi, .sf-phone-verified bdi { font: 16px Arial, sans-serif; }
.sf-phone-code { display: block; width: 100%; height: 52px; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-paper); color: var(--home-ink); text-align: center; letter-spacing: 7px; font: 24px Arial, sans-serif; box-shadow: none; }
.sf-phone-account small { display: block; margin-top: 8px; text-align: center; color: var(--home-muted); font-size: 10px; }
.sf-phone-resend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; margin-top: 14px; }
.sf-phone-resend > span { width: 100%; font-size: 11px; color: var(--home-muted); text-align: center; }
.sf-phone-verified { display: grid; gap: 10px; border-radius: 12px; background: var(--home-soft); padding: 18px; text-align: center; color: var(--home-accent); font-size: 12px; }
.sf-phone-logout { display: block; margin: 12px auto 0; }
.sf-phone-account .sf-phone-error { color: #b23a36; background: #fff0ef; padding: 10px; border-radius: 10px; margin-bottom: 0; }
.sf-phone-account .sf-phone-status:empty { display: none; }
.sf-phone-account .sf-phone-demo { color: var(--home-accent); background: var(--home-soft); border-radius: 8px; padding: 8px; font-size: 10px; }

/* Supermarket only: separately rendered groceries land inside the Haatly bag. */
.sf-home-market-moment { position: relative; isolation: isolate; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-scene,
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-delivery,
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-bundle {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
    border-radius: inherit; pointer-events: none; background-color: transparent !important;
}
.sf-home-market-scene { opacity: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, rgb(48 182 197 / 12%), transparent 70%); }
.sf-home-market-moment.is-ready .sf-home-market-still { opacity: 0; }
.sf-home-market-moment.is-ready .sf-home-market-scene { opacity: 1; }
.sf-home-market-bundle { transform-origin: 50% 90%; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-sprite {
    position: absolute; margin: 0; padding: 0; border: 0; border-radius: 0 !important;
    width: var(--market-width) !important; height: var(--market-height) !important; background-color: transparent !important;
    background-image: url('../img/storefront-market-motion.png'); background-size: 300% 200%; background-repeat: no-repeat;
    transform: rotate(var(--market-tilt, 0deg)); transform-origin: 50% 75%; pointer-events: none;
}
.sf-home-market-bag { left: 0; bottom: 0; --market-width: 100%; --market-height: 70%; background-position: 0 0; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-bag { background-image: url('../img/storefront-market-bag.png'); background-size: 100% 100%; background-position: center; }
.sf-home-market-bag-back { z-index: 0; }
/* Clip at the near lip of the bag artwork, leaving its rear wall behind the groceries. */
.sf-home-market-bag-front { z-index: 10; clip-path: polygon(10% 30%, 92% 30%, 94% 40%, 94% 100%, 10% 100%, 10% 40%); }
.sf-home-market-bread { z-index: 1; left: 61%; top: 19%; --market-width: 28%; --market-height: 60%; background-position: 50% 0; --market-tilt: -13deg; --market-delay: .25s; }
.sf-home-market-cereal { z-index: 2; left: 23%; top: 3%; --market-width: 42%; --market-height: 75%; --market-tilt: -6deg; --market-delay: .55s; }
.sf-home-market-pringles { z-index: 3; left: 47%; top: 6%; --market-width: 49%; --market-height: 76%; --market-tilt: 8deg; --market-delay: .85s; }
.sf-home-market-milk { z-index: 4; left: 13%; top: 12%; --market-width: 40%; --market-height: 68%; --market-tilt: -7deg; --market-delay: 1.15s; }
.sf-home-market-noodles { z-index: 5; left: 25%; top: 24%; --market-width: 49%; --market-height: 39%; --market-tilt: -8deg; --market-delay: 1.45s; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-cereal { background-image: url('../img/storefront-market-cereal.png'); background-size: 100% 100%; background-position: center; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-pringles { background-image: url('../img/storefront-market-pringles.png'); background-size: 100% 100%; background-position: center; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-milk { background-image: url('../img/storefront-market-saudia-milk.png'); background-size: 100% 100%; background-position: center; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-noodles { background-image: url('../img/storefront-market-noodles.png'); background-size: 100% 100%; background-position: center; }
.sf-home-market-broccoli { z-index: 6; left: 12%; top: 34%; --market-width: 30%; --market-height: 35%; background-position: 0 100%; --market-tilt: -5deg; --market-delay: 1.75s; }
.sf-home-market-oranges { z-index: 7; left: 34%; top: 38%; --market-width: 27%; --market-height: 29%; background-position: 100% 100%; --market-tilt: 4deg; --market-delay: 2.05s; }
.sf-home-market-tomatoes { z-index: 8; left: 61%; top: 36%; --market-width: 27%; --market-height: 31%; background-position: 50% 100%; --market-tilt: -5deg; --market-delay: 2.35s; }
/* The delivery stage carries the filled bag and scooter as one object. */
.sf-home-market-delivery { transform-origin: 50% 90%; }
.sf-home-market-bundle { z-index: 2; }
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-scooter {
    position: absolute; z-index: 1; left: 26%; top: -7%; width: 150% !important; height: 150% !important;
    margin: 0; padding: 0; border: 0; border-radius: 0 !important;
    background: transparent url('../img/storefront-market-scooter-right.png') center / 100% 100% no-repeat;
    opacity: 0; transform: translateX(-150%); pointer-events: none;
}
body.is-storefront-home .main-wrapper.sf-home-enhanced ul.category-tab .sf-home-market-speed {
    position: absolute; z-index: 3; left: 6%; top: 57%; width: 46% !important; height: 21% !important;
    margin: 0; padding: 0; border: 0; border-radius: 0 !important; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(48 182 197 / 55%), transparent) 0 0 / 100% 2px no-repeat,
        linear-gradient(90deg, transparent, rgb(48 182 197 / 45%), transparent) 10% 50% / 74% 2px no-repeat,
        linear-gradient(90deg, transparent, rgb(48 182 197 / 35%), transparent) 0 100% / 88% 2px no-repeat;
}

/* Match the iOS viewport canvas to the opt-in home, including the home-indicator area.
   No fixed cover: content and cart controls keep their existing safe-area spacing. */
html:not(.sf-pwa-launching):has(.sf-home-enhanced),
html:not(.sf-pwa-launching) body:has(.sf-home-enhanced) { background-color: #fff !important; }
html.dark-mode:not(.sf-pwa-launching):has(.sf-home-enhanced),
html.dark-mode:not(.sf-pwa-launching) body:has(.sf-home-enhanced) { background-color: #26262e !important; }

/* Keep the home-indicator inset inside scrolling content, never as a fixed empty footer. */
body:has(.sf-home-enhanced) #notifications-popup {
    box-sizing: border-box;
    padding-bottom: 0;
}
body:has(.sf-home-enhanced) #notifications-popup.active {
    min-height: 0;
}
body:has(.sf-home-enhanced) #notifications-popup .notifications-popup-content {
    min-height: 0;
    padding-bottom: 0;
}
body:has(.sf-home-enhanced) #notifications-popup .notifications-list {
    min-height: 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
