/* ==========================================================================
   Super-app base + shared components
   Depends on tokens.css. Service files only add page-specific layouts.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Component display rules must never beat the hidden attribute. */
.sa [hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.sa {
    margin: 0;
    font-family: var(--sa-font);
    font-size: var(--sa-fs-md);
    line-height: 1.5;
    color: var(--sa-ink);
    background: var(--sa-canvas);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--sa-mobilenav-h) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    body.sa { padding-bottom: 0; }
}

/* Resets use :where() (zero specificity) so any single component class can override them. */
:where(.sa) img { max-width: 100%; display: block; }
:where(.sa) a { color: inherit; text-decoration: none; }
:where(.sa) button { font: inherit; color: inherit; }
:where(.sa) :is(h1, h2, h3, h4, p) { margin: 0; }
:where(.sa) :is(h1, h2, h3) { letter-spacing: -.02em; line-height: 1.15; }
:where(.sa) ul { margin: 0; padding: 0; list-style: none; }

.sa :focus-visible {
    outline: 3px solid var(--sa-accent-bright);
    outline-offset: 2px;
    border-radius: 6px;
}

.sa-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sa-skip {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--sa-r-sm);
    background: var(--sa-ink);
    color: #fff;
    font-weight: 600;
}
.sa-skip:focus { top: 12px; }

.sa-container {
    width: 100%;
    max-width: var(--sa-container);
    margin: 0 auto;
    padding: 0 var(--sa-gutter);
}

.sa-main { min-height: 60vh; }

.sa-muted { color: var(--sa-muted); }
.sa-strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.sa-icon {
    width: 20px; height: 20px;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sa-icon--sm { width: 16px; height: 16px; }
.sa-icon--lg { width: 24px; height: 24px; }
.sa-icon--xl { width: 32px; height: 32px; }
.sa-icon--fill { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.sa-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.03em;
}
.sa-logo__mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 30px; height: 30px;
    padding: 4px;
    border-radius: 10px;
    background: var(--sa-ink);
}
.sa-logo__img img { display: block; width: auto; max-width: 180px; height: 40px; object-fit: contain; }
.sa-logo__img.is-broken { display: none; }
.sa-logo--img .sa-logo__name { display: none; }
.sa-logo--img:has(.is-broken) .sa-logo__name { display: inline; }
.sa-logo__mark span { border-radius: 3px; }
.sa-logo__mark span:nth-child(1) { background: #f97316; }
.sa-logo__mark span:nth-child(2) { background: #22c55e; }
.sa-logo__mark span:nth-child(3) { background: #c0476b; }
.sa-logo__mark span:nth-child(4) { background: var(--sa-taxi); }

/* --------------------------------------------------------------------------
   Header: utility strip (scrolls away), sticky main bar, service navigation
   -------------------------------------------------------------------------- */
/* Admin → Web Styling "top header colour" (--sa-strip), set inline by the layout. */
.sa-topbar { background: var(--sa-strip, #0c0e13); color: var(--sa-on-strip, #c3c8d1); font-size: var(--sa-fs-xs); }
.sa-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.sa-topbar__msg { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sa-topbar__msg .sa-icon { flex: none; color: #fde68a; }
.sa-topbar__msg strong { color: #fde68a; letter-spacing: .04em; }
.sa-topbar__links { display: none; align-items: center; gap: 2px; }
@media (min-width: 768px) { .sa-topbar__links { display: flex; } }
.sa-topbar__links a, .sa-topbar__links button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 0;
    border-radius: var(--sa-r-pill);
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
}
.sa-topbar__links a:hover, .sa-topbar__links button:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.sa-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--sa-line), 0 8px 24px -18px rgba(16, 18, 24, .25);
}
.sa-header__bar { display: flex; align-items: center; gap: 8px; height: 60px; }
@media (min-width: 768px) { .sa-header__bar { gap: 16px; height: 68px; } }
.sa-header__menu { margin-left: -8px; }
@media (min-width: 1024px) {
    /* Doubled class so it beats the later .sa-iconbtn display rule. */
    .sa-header__menu.sa-iconbtn { display: none; }
}

.sa-loc.sa-header__loc { display: none; }
@media (min-width: 1024px) { .sa-loc.sa-header__loc { display: inline-flex; flex: none; max-width: 230px; } }

.sa-header__search { display: none; flex: 1; min-width: 0; max-width: 680px; }
@media (min-width: 768px) { .sa-header__search { display: block; } }
.sa-header__search .sa-search__box { height: 46px; border-color: transparent; background: var(--sa-line-2); }
.sa-header__search .sa-search__box:focus-within { background: #fff; }
@media (max-width: 767px) {
    .sa-header.is-search-open .sa-header__search {
        position: absolute;
        left: 0; right: 0; top: 100%;
        display: block;
        max-width: none;
        padding: 8px var(--sa-gutter) 12px;
        background: #fff;
        box-shadow: 0 12px 20px -12px rgba(16, 18, 24, .3);
        animation: sa-pop var(--sa-fast) var(--sa-ease);
    }
}

.sa-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 768px) { .sa-header__searchtoggle.sa-iconbtn { display: none; } }

.sa-headbtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    transition: background var(--sa-fast);
}
.sa-headbtn:hover { background: var(--sa-line-2); }
.sa-headbtn__icon { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.sa-headbtn__text { display: none; flex-direction: column; align-items: flex-start; font-size: var(--sa-fs-sm); font-weight: 800; line-height: 1.15; }
.sa-headbtn__text small { font-size: 11px; font-weight: 600; color: var(--sa-muted); }
@media (min-width: 1200px) { .sa-headbtn__text { display: flex; } }
/* Basket is an icon-only square button; the count badge sits on the icon. */
.sa-headbtn--basket { justify-content: center; width: 44px; padding: 0; background: var(--sa-ink); color: #fff; }
.sa-headbtn--basket:hover { background: #000; }
.sa-headbtn .sa-badge { top: -8px; right: -10px; box-shadow: 0 0 0 2px var(--sa-ink); }

/* Signed-in account dropdown in the header */
.sa-acctmenu { position: relative; }
.sa-acctmenu__chev { display: none; color: var(--sa-muted); transition: transform var(--sa-fast); }
@media (min-width: 1200px) { .sa-acctmenu__chev { display: block; } }
.sa-acctmenu.is-open .sa-acctmenu__chev { transform: rotate(180deg); }
.sa-acctmenu.is-open > .sa-headbtn { background: var(--sa-line-2); }
.sa-acctmenu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 240px;
    padding: 6px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-md);
    background: var(--sa-surface);
    box-shadow: var(--sa-shadow-3);
}
.sa-acctmenu__who { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--sa-line-2); }
.sa-acctmenu__who p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-acctmenu__who .sa-muted { font-size: var(--sa-fs-xs); }
.sa-acctmenu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--sa-r-sm);
    background: none;
    color: var(--sa-ink-2);
    font: inherit;
    font-size: var(--sa-fs-sm);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.sa-acctmenu__item .sa-icon { width: 18px; height: 18px; color: #9aa0a9; }
.sa-acctmenu__item:hover { background: var(--sa-line-2); color: var(--sa-ink); }
.sa-acctmenu__item:focus-visible { outline: 3px solid var(--sa-accent-bright); outline-offset: -3px; }
.sa-acctmenu__item--danger, .sa-acctmenu__item--danger .sa-icon { color: var(--sa-danger); }
.sa-acctmenu__item--danger:hover { background: var(--sa-danger-soft); color: var(--sa-danger); }

.sa-servicenav { display: none; border-top: 1px solid var(--sa-line-2); }
@media (min-width: 768px) { .sa-servicenav { display: block; } }
.sa-servicenav__inner { display: flex; align-items: stretch; gap: 2px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.sa-servicenav__inner::-webkit-scrollbar { display: none; }
.sa-servicenav__link {
    --nav: var(--sa-ink);
    --nav-soft: var(--sa-line-2);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 0 12px;
    font-size: var(--sa-fs-sm);
    font-weight: 700;
    color: var(--sa-muted);
    transition: color var(--sa-fast);
}
.sa-servicenav__link--food { --nav: var(--sa-food); --nav-soft: var(--sa-food-soft); }
.sa-servicenav__link--grocery { --nav: var(--sa-grocery); --nav-soft: var(--sa-grocery-soft); }
.sa-servicenav__link--ecommerce { --nav: var(--sa-ecommerce); --nav-soft: var(--sa-ecommerce-soft); }
.sa-servicenav__link--taxi { --nav: #b48900; --nav-soft: var(--sa-taxi-soft); }
.sa-servicenav__link--logistics { --nav: var(--sa-logistics); --nav-soft: var(--sa-logistics-soft); }
.sa-servicenav__link::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--nav);
    transform: scaleX(0);
    transition: transform var(--sa-med) var(--sa-ease);
}
.sa-servicenav__link:hover { color: var(--sa-ink); }
.sa-servicenav__link:hover::after { transform: scaleX(.4); }
.sa-servicenav__link.is-active { color: var(--sa-ink); }
.sa-servicenav__link.is-active::after { transform: scaleX(1); }
.sa-servicenav__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--nav-soft); color: var(--nav); }
.sa-servicenav__link--taxi .sa-servicenav__icon { color: var(--sa-charcoal); }
.sa-servicenav__eta { display: none; padding: 2px 7px; border-radius: var(--sa-r-pill); background: var(--sa-line-2); font-size: 11px; font-weight: 700; color: var(--sa-muted); }
@media (min-width: 1024px) { .sa-servicenav__eta { display: inline; } }
.sa-servicenav__deals { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; padding: 0 12px; font-size: var(--sa-fs-sm); font-weight: 800; color: var(--sa-danger) !important; }
.sa-servicenav__deals:hover { text-decoration: underline; text-underline-offset: 3px; }

.sa-loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    padding: 8px 12px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-pill);
    background: var(--sa-surface);
    cursor: pointer;
    font-size: var(--sa-fs-sm);
    transition: border-color var(--sa-fast), box-shadow var(--sa-fast);
}
.sa-loc:hover { border-color: var(--sa-ink-2); }
.sa-loc__text { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.2; }
.sa-loc__label { font-size: 11px; font-weight: 700; color: var(--sa-muted); text-transform: uppercase; letter-spacing: .06em; }
.sa-loc__line { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.sa-btn {
    --btn-bg: var(--sa-accent);
    --btn-fg: var(--sa-on-accent);
    --btn-bd: transparent;
    --btn-hover: var(--sa-accent-hover);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--btn-bd);
    border-radius: var(--sa-r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg) !important;
    font-size: var(--sa-fs-sm);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--sa-fast), border-color var(--sa-fast), transform var(--sa-fast), box-shadow var(--sa-fast);
}
.sa-btn:hover { background: var(--btn-hover); }
.sa-btn:active { transform: translateY(1px) scale(.99); }
.sa-btn[disabled], .sa-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.sa-btn--secondary { --btn-bg: var(--sa-surface); --btn-fg: var(--sa-ink); --btn-bd: var(--sa-line); --btn-hover: var(--sa-line-2); }
.sa-btn--ghost { --btn-bg: transparent; --btn-fg: var(--sa-ink); --btn-hover: var(--sa-line-2); }
.sa-btn--soft { --btn-bg: var(--sa-accent-soft); --btn-fg: var(--sa-accent-ink); --btn-hover: var(--sa-accent-soft); }
.sa-btn--soft:hover { box-shadow: inset 0 0 0 1.5px var(--sa-accent); }
.sa-btn--dark { --btn-bg: var(--sa-brand); --btn-fg: var(--sa-on-brand); --btn-hover: var(--sa-brand-hover); }
.sa-btn--light { --btn-bg: #fff; --btn-fg: var(--sa-ink); --btn-hover: #f2f2f2; }
.sa-btn--danger { --btn-bg: var(--sa-surface); --btn-fg: var(--sa-danger); --btn-bd: #f3c4c6; --btn-hover: var(--sa-danger-soft); }

.sa-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.sa-btn--lg { min-height: 52px; padding: 0 26px; font-size: var(--sa-fs-md); }
.sa-btn--block { width: 100%; }
.sa-btn--icon { width: 44px; padding: 0; }

.sa-btn.is-loading { color: transparent !important; pointer-events: none; }
.sa-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    border: 2.5px solid var(--btn-fg);
    border-right-color: transparent;
    border-radius: 50%;
    animation: sa-spin .7s linear infinite;
}

.sa-iconbtn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background var(--sa-fast);
}
.sa-iconbtn:hover { background: var(--sa-line-2); }

.sa-badge {
    position: absolute;
    top: 4px; right: 2px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: var(--sa-r-pill);
    background: var(--sa-accent);
    color: var(--sa-on-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.sa-badge[hidden] { display: none; }
.sa-badge.is-bumped { animation: sa-bump .4s var(--sa-ease); }

.sa-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: var(--sa-fs-sm);
    color: var(--sa-accent-ink) !important;
}
.sa-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.sa-field { display: flex; flex-direction: column; gap: 6px; }
.sa-field__label { font-size: var(--sa-fs-sm); font-weight: 700; }
.sa-field__label .sa-req { color: var(--sa-danger); }
.sa-field__hint { font-size: var(--sa-fs-xs); color: var(--sa-muted); }
.sa-field__error { display: none; font-size: var(--sa-fs-xs); font-weight: 600; color: var(--sa-danger); }
.sa-field.has-error .sa-field__error { display: block; }

.sa-input, .sa-select, .sa-textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--sa-line);
    border-radius: var(--sa-r-md);
    background: var(--sa-surface);
    color: var(--sa-ink);
    font: inherit;
    font-size: var(--sa-fs-md);
    transition: border-color var(--sa-fast), box-shadow var(--sa-fast);
}
.sa-textarea { min-height: 88px; resize: vertical; }
.sa-select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646b76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}
.sa-input::placeholder, .sa-textarea::placeholder { color: #9aa0aa; }
.sa-input:hover, .sa-select:hover, .sa-textarea:hover { border-color: #c9ccd3; }
.sa-input:focus, .sa-select:focus, .sa-textarea:focus {
    outline: none;
    border-color: var(--sa-accent);
    box-shadow: 0 0 0 4px var(--sa-accent-soft);
}
.sa-field.has-error .sa-input, .sa-field.has-error .sa-select, .sa-field.has-error .sa-textarea,
.sa-input[aria-invalid="true"] {
    border-color: var(--sa-danger);
    box-shadow: 0 0 0 4px var(--sa-danger-soft);
}

.sa-inputgroup { display: flex; gap: 8px; }
.sa-inputgroup .sa-input { flex: 1; min-width: 0; }

.sa-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--sa-fs-sm);
    cursor: pointer;
}
.sa-check input {
    flex: none;
    width: 20px; height: 20px;
    margin: 1px 0 0;
    accent-color: var(--sa-accent);
    cursor: pointer;
}

.sa-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--sa-line);
    border-radius: var(--sa-r-md);
    background: var(--sa-surface);
    cursor: pointer;
    transition: border-color var(--sa-fast), background var(--sa-fast), box-shadow var(--sa-fast);
}
.sa-option:hover { border-color: #c9ccd3; }
.sa-option input { position: absolute; opacity: 0; pointer-events: none; }
.sa-option:has(input:checked), .sa-option.is-selected {
    border-color: var(--sa-accent);
    background: var(--sa-accent-soft);
    box-shadow: 0 0 0 1px var(--sa-accent);
}
.sa-option:has(input:focus-visible) { outline: 3px solid var(--sa-accent-bright); outline-offset: 2px; }
.sa-option__body { flex: 1; min-width: 0; }
.sa-option__title { font-weight: 700; }
.sa-option__meta { font-size: var(--sa-fs-xs); color: var(--sa-muted); }

/* --------------------------------------------------------------------------
   Search (universal + scoped)
   -------------------------------------------------------------------------- */
.sa-search { position: relative; width: 100%; }
.sa-search__box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 6px 0 16px;
    border: 1.5px solid var(--sa-line);
    border-radius: var(--sa-r-pill);
    background: var(--sa-surface);
    transition: border-color var(--sa-fast), box-shadow var(--sa-fast);
}
.sa-search__box:focus-within { border-color: var(--sa-accent); box-shadow: 0 0 0 4px var(--sa-accent-soft); }
.sa-search__box .sa-icon { color: var(--sa-muted); }
.sa-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none !important;
    background: transparent;
    font: inherit;
    font-size: var(--sa-fs-sm);
    color: var(--sa-ink);
}
.sa-search__input::-webkit-search-cancel-button { display: none; }
.sa-search__clear { display: none; }
.sa-search.has-value .sa-search__clear { display: inline-grid; width: 34px; height: 34px; }
.sa-search--lg .sa-search__box { height: 60px; padding-left: 20px; box-shadow: var(--sa-shadow-2); border-color: transparent; }
.sa-search--lg .sa-search__input { font-size: var(--sa-fs-md); }

.sa-search__panel {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    max-height: min(420px, 60vh);
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    background: var(--sa-surface);
    box-shadow: var(--sa-shadow-3);
    animation: sa-pop var(--sa-fast) var(--sa-ease);
}
.sa-search__panel[hidden] { display: none; }
.sa-search__group { padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-muted); }
.sa-search__result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--sa-r-md);
}
.sa-search__result:hover, .sa-search__result.is-active { background: var(--sa-line-2); }
.sa-search__thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px; height: 42px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sa-line-2);
    color: var(--sa-ink-2);
}
.sa-search__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sa-search__title { font-size: var(--sa-fs-sm); font-weight: 700; }
.sa-search__sub { font-size: var(--sa-fs-xs); color: var(--sa-muted); }
.sa-search__empty { padding: 18px 12px; font-size: var(--sa-fs-sm); color: var(--sa-muted); text-align: center; }

/* --------------------------------------------------------------------------
   Chips, tags, rating
   -------------------------------------------------------------------------- */
.sa-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}
.sa-chips::-webkit-scrollbar { display: none; }
.sa-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--sa-line);
    border-radius: var(--sa-r-pill);
    background: var(--sa-surface);
    font-size: var(--sa-fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--sa-fast);
}
.sa-chip:hover { border-color: #c9ccd3; }
.sa-chip.is-active, .sa-chip[aria-pressed="true"] {
    border-color: var(--sa-accent);
    background: var(--sa-accent);
    color: var(--sa-on-accent);
}

.sa-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--sa-r-pill);
    background: var(--sa-line-2);
    color: var(--sa-ink-2);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.sa-tag--accent { background: var(--sa-accent-soft); color: var(--sa-accent-ink); }
.sa-tag--success { background: var(--sa-success-soft); color: var(--sa-success); }
.sa-tag--danger { background: var(--sa-danger-soft); color: var(--sa-danger); }
.sa-tag--dark { background: rgba(15, 17, 22, .78); color: #fff; backdrop-filter: blur(6px); }

.sa-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--sa-fs-sm);
    font-weight: 700;
}
.sa-rating .sa-icon { width: 15px; height: 15px; color: #e8a400; fill: #e8a400; stroke: none; }
.sa-rating__count { font-weight: 500; color: var(--sa-muted); }

.sa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--sa-fs-sm); color: var(--sa-muted); }
.sa-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.sa-meta .sa-icon { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Sections & grids
   -------------------------------------------------------------------------- */
.sa-section { padding: var(--sa-s-7) 0; }
.sa-section--tight { padding: var(--sa-s-5) 0; }
@media (min-width: 768px) { .sa-section { padding: var(--sa-s-8) 0; } }

.sa-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sa-s-4);
    margin-bottom: var(--sa-s-5);
}
.sa-section-head__eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: var(--sa-fs-xs);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sa-accent-ink);
}
.sa-section-head__title { font-size: var(--sa-fs-2xl); font-weight: 800; }
.sa-section-head__sub { margin-top: 6px; color: var(--sa-muted); font-size: var(--sa-fs-sm); }

.sa-grid { display: grid; gap: var(--sa-s-4); }
.sa-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.sa-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .sa-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sa-s-4); } }
@media (min-width: 1024px) { .sa-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sa-grid--products.sa-grid--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.sa-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 340px);
    gap: var(--sa-s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 calc(var(--sa-gutter) * -1);
    padding-left: var(--sa-gutter);
    padding-right: var(--sa-gutter);
    scroll-padding: var(--sa-gutter);
    scrollbar-width: thin;
}
.sa-scroller > * { scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.sa-card {
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    background: var(--sa-surface);
    box-shadow: var(--sa-shadow-1);
}
.sa-card--pad { padding: var(--sa-s-5); }
@media (min-width: 768px) { .sa-card--pad { padding: var(--sa-s-6); } }

.sa-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sa-line-2), var(--sa-line));
}
.sa-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--sa-ease);
}
.sa-media.is-broken img { display: none; }

/* Restaurant card: borderless, rounded image with offer overlay, green rating badge */
/* position: relative keeps the visually hidden rating label inside carousels (it is absolutely positioned). */
.sa-rcard { position: relative; min-width: 0; }
.sa-rcard__link { display: flex; flex-direction: column; gap: 12px; transition: transform var(--sa-med) var(--sa-ease); }
.sa-rcard__link:hover { transform: scale(.96); }
.sa-rcard__img { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 16px; box-shadow: 0 6px 16px -10px rgba(16, 18, 24, .45); }
.sa-rcard__img::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(27, 30, 36, .92)); pointer-events: none; }
.sa-rcard__offer {
    position: absolute;
    left: 12px; right: 12px; bottom: 8px;
    z-index: 1;
    overflow: hidden;
    color: #fff;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sa-rcard__info { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.sa-rcard__name { overflow: hidden; font-size: var(--sa-fs-lg); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.sa-rcard__meta { display: flex; align-items: center; gap: 4px; font-size: var(--sa-fs-md); }
.sa-rcard__meta strong { font-weight: 700; }
.sa-rstar { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #21973b, #128540); color: #fff; }
.sa-rstar .sa-icon { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.sa-rcard__cuisine, .sa-rcard__area { overflow: hidden; font-size: var(--sa-fs-md); color: var(--sa-muted); white-space: nowrap; text-overflow: ellipsis; }

/* Product card */
.sa-pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow var(--sa-med) var(--sa-ease), transform var(--sa-med) var(--sa-ease); }
.sa-pcard:hover { box-shadow: var(--sa-shadow-2); transform: translateY(-2px); }
.sa-pcard .sa-media { aspect-ratio: 1 / 1; background: #f3f4f1; }
.sa-pcard:hover .sa-media img { transform: scale(1.04); }
.sa-pcard__tags { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sa-pcard__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 12px; }
.sa-pcard__unit { font-size: var(--sa-fs-xs); color: var(--sa-muted); font-weight: 600; }
.sa-pcard__name { font-size: var(--sa-fs-sm); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.sa-pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.sa-price { display: flex; flex-direction: column; line-height: 1.15; }
.sa-price__now { font-weight: 800; font-size: var(--sa-fs-md); }
.sa-price__was { font-size: var(--sa-fs-xs); color: var(--sa-muted); text-decoration: line-through; }
.sa-pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sa-pcard [data-sa-addctl] { position: relative; z-index: 2; }

/* Add-to-cart control (rendered by core.js) */
.sa-addctl { display: inline-flex; min-height: 38px; }
.sa-addbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--sa-accent);
    border-radius: var(--sa-r-pill);
    background: var(--sa-surface);
    color: var(--sa-accent-ink);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--sa-fast), color var(--sa-fast);
}
.sa-addbtn:hover { background: var(--sa-accent); color: var(--sa-on-accent); }
.sa-addbtn .sa-icon { width: 16px; height: 16px; }
.sa-stepper {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: var(--sa-r-pill);
    background: var(--sa-accent);
    color: var(--sa-on-accent);
    animation: sa-pop var(--sa-fast) var(--sa-ease);
}
.sa-stepper button {
    display: grid;
    place-items: center;
    width: 36px; height: 38px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.sa-stepper button:hover { background: rgba(0, 0, 0, .08); }
.sa-stepper button:first-child { border-radius: var(--sa-r-pill) 0 0 var(--sa-r-pill); }
.sa-stepper button:last-child { border-radius: 0 var(--sa-r-pill) var(--sa-r-pill) 0; }
.sa-stepper .sa-icon { width: 16px; height: 16px; }
.sa-stepper output { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.sa-addctl--lg .sa-addbtn, .sa-addctl--lg .sa-stepper { min-height: 52px; font-size: var(--sa-fs-md); }
.sa-addctl--lg .sa-addbtn { padding: 0 28px; background: var(--sa-accent); color: var(--sa-on-accent); }
.sa-addctl--lg .sa-stepper button { width: 52px; height: 52px; }
.sa-addctl--lg .sa-stepper output { min-width: 36px; font-size: var(--sa-fs-lg); }
.sa-stepper--muted { background: var(--sa-line-2); color: var(--sa-ink); }

/* Promo banner */
.sa-banner {
    position: relative;
    display: flex;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--sa-r-xl);
    color: #fff;
    isolation: isolate;
}
.sa-banner__img { position: absolute; inset: 0; z-index: -2; }
.sa-banner__img img { width: 100%; height: 100%; object-fit: cover; }
.sa-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.sa-banner--food::before { background: linear-gradient(100deg, rgba(150, 45, 5, .96) 30%, rgba(194, 65, 12, .55) 70%, rgba(194, 65, 12, .1)); }
.sa-banner--grocery::before { background: linear-gradient(100deg, rgba(10, 80, 38, .96) 30%, rgba(21, 128, 61, .55) 70%, rgba(21, 128, 61, .1)); }
.sa-banner--ecommerce::before { background: linear-gradient(100deg, rgba(30, 27, 95, .96) 32%, rgba(79, 70, 229, .6) 70%, rgba(79, 70, 229, .12)); }
.sa-banner--taxi::before { background: linear-gradient(100deg, rgba(21, 23, 28, .97) 32%, rgba(31, 35, 40, .6) 70%, rgba(31, 35, 40, .15)); }
.sa-banner__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 74%; padding: 22px; }
.sa-banner__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.sa-banner__title { font-size: var(--sa-fs-xl); font-weight: 800; line-height: 1.15; }
.sa-banner__text { font-size: var(--sa-fs-sm); opacity: .9; }
.sa-banner__code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 6px 12px;
    border: 1.5px dashed rgba(255, 255, 255, .7);
    border-radius: var(--sa-r-sm);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: var(--sa-fs-xs);
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
}
.sa-banner__code:hover { background: rgba(255, 255, 255, .2); }
.sa-banner--taxi .sa-banner__code { border-color: var(--sa-taxi); color: var(--sa-taxi); }
.sa-banner--ecommerce .sa-banner__code { border-color: #a5b4fc; color: #c7d2fe; }

/* Notice strip */
.sa-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--sa-r-md);
    background: var(--sa-info-soft);
    color: #1e3a8a;
    font-size: var(--sa-fs-sm);
}
.sa-notice .sa-icon { margin-top: 1px; }
.sa-notice--warning { background: var(--sa-warning-soft); color: #6b3d04; }
.sa-notice--accent { background: var(--sa-accent-soft); color: var(--sa-accent-ink); }
.sa-notice--success { background: var(--sa-success-soft); color: #0f5b2c; }
.sa-notice--danger { background: var(--sa-danger-soft); color: #8f1b20; }

/* --------------------------------------------------------------------------
   Empty, loading
   -------------------------------------------------------------------------- */
.sa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: var(--sa-s-8) var(--sa-s-5);
    text-align: center;
}
.sa-empty[hidden] { display: none; }
.sa-empty__icon {
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--sa-accent-soft);
    color: var(--sa-accent-ink);
}
.sa-empty__title { font-size: var(--sa-fs-lg); font-weight: 800; }
.sa-empty__text { max-width: 360px; color: var(--sa-muted); font-size: var(--sa-fs-sm); }
.sa-empty .sa-btn { margin-top: 8px; }

.sa-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--sa-r-md);
    background: #eceef1;
}
.sa-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    animation: sa-shimmer 1.2s infinite;
}
.sa-skel-card { display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; }
.sa-skel-card .sa-skeleton:first-child { aspect-ratio: 4 / 3; border-radius: var(--sa-r-lg) var(--sa-r-lg) var(--sa-r-md) var(--sa-r-md); }
.sa-skel-line { height: 12px; }
.sa-skel-line--short { width: 55%; }

[data-sa-loading] > .sa-loading-skeleton { display: none; }
.sa-js [data-sa-loading].is-loading > .sa-loading-skeleton { display: grid; }
.sa-js [data-sa-loading].is-loading > :not(.sa-loading-skeleton) { display: none !important; }

/* --------------------------------------------------------------------------
   Overlays: modal, drawer, backdrop, toast
   -------------------------------------------------------------------------- */
.sa-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    background: var(--sa-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--sa-med) var(--sa-ease), visibility var(--sa-med);
}
.sa-overlay.is-open { opacity: 1; visibility: visible; }

.sa-modal { align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .sa-modal { align-items: center; padding: 24px; } }
.sa-modal__dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow: hidden;
    border-radius: var(--sa-r-xl) var(--sa-r-xl) 0 0;
    background: var(--sa-surface);
    box-shadow: var(--sa-shadow-3);
    transform: translateY(24px);
    transition: transform var(--sa-med) var(--sa-ease);
}
@media (min-width: 640px) { .sa-modal__dialog { border-radius: var(--sa-r-xl); } }
.sa-modal--sm .sa-modal__dialog { max-width: 420px; }
.sa-modal--lg .sa-modal__dialog { max-width: 720px; }
.sa-overlay.is-open .sa-modal__dialog { transform: none; }
.sa-modal__head, .sa-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--sa-line);
}
.sa-modal__title, .sa-drawer__title { font-size: var(--sa-fs-lg); font-weight: 800; }
.sa-modal__body, .sa-drawer__body { flex: 1; overflow: auto; padding: 20px; }
.sa-modal__foot, .sa-drawer__foot { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--sa-line); background: var(--sa-surface); }
.sa-modal__foot .sa-btn, .sa-drawer__foot .sa-btn { flex: 1; }

.sa-drawer { justify-content: flex-end; }
.sa-drawer--left { justify-content: flex-start; }
.sa-drawer__panel {
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    height: 100%;
    background: var(--sa-surface);
    box-shadow: var(--sa-shadow-3);
    transform: translateX(100%);
    transition: transform var(--sa-med) var(--sa-ease);
}
.sa-drawer--left .sa-drawer__panel { width: min(320px, 88%); transform: translateX(-100%); }
.sa-overlay.is-open .sa-drawer__panel { transform: none; }

body.sa-locked { overflow: hidden; }

.sa-toasts {
    position: fixed;
    left: 50%;
    bottom: calc(var(--sa-mobilenav-h) + 16px);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(92vw, 420px);
    transform: translateX(-50%);
    pointer-events: none;
}
@media (min-width: 768px) { .sa-toasts { bottom: 24px; } }
.sa-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--sa-r-md);
    background: var(--sa-ink);
    color: #fff;
    font-size: var(--sa-fs-sm);
    font-weight: 600;
    box-shadow: var(--sa-shadow-3);
    pointer-events: auto;
    animation: sa-toast-in var(--sa-med) var(--sa-ease);
}
.sa-toast.is-leaving { animation: sa-toast-out var(--sa-med) var(--sa-ease) forwards; }
.sa-toast--success .sa-icon { color: #4ade80; }
.sa-toast--error .sa-icon { color: #f87171; }
.sa-toast--info .sa-icon { color: #93c5fd; }

/* --------------------------------------------------------------------------
   Cart drawer contents
   -------------------------------------------------------------------------- */
.sa-cartline {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--sa-line-2);
}
.sa-cartline:last-child { border-bottom: 0; }
.sa-cartline__img { width: 56px; height: 56px; overflow: hidden; border-radius: var(--sa-r-md); background: var(--sa-line-2); display: grid; place-items: center; color: var(--sa-muted); }
.sa-cartline__img img { width: 100%; height: 100%; object-fit: cover; }
.sa-cartline__name { font-size: var(--sa-fs-sm); font-weight: 700; line-height: 1.3; }
.sa-cartline__meta { font-size: var(--sa-fs-xs); color: var(--sa-muted); }
.sa-cartline__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sa-cartline .sa-stepper { min-height: 32px; }
.sa-cartline .sa-stepper button { width: 30px; height: 32px; }

.sa-totals { display: flex; flex-direction: column; gap: 8px; font-size: var(--sa-fs-sm); }
.sa-totals__row { display: flex; justify-content: space-between; gap: 12px; }
.sa-totals__row--discount { color: var(--sa-success); font-weight: 700; }
.sa-totals__row--total { padding-top: 10px; border-top: 1px dashed var(--sa-line); font-size: var(--sa-fs-lg); font-weight: 800; }

.sa-servicecart {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-md);
}
.sa-servicecart + .sa-servicecart { margin-top: 10px; }
.sa-servicecart__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; }

/* Floating mobile cart bar */
.sa-cartbar {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(var(--sa-mobilenav-h) + 10px);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--sa-r-lg);
    background: var(--sa-accent);
    color: var(--sa-on-accent) !important;
    font-weight: 700;
    box-shadow: var(--sa-shadow-3);
    cursor: pointer;
    border: 0;
    animation: sa-toast-in var(--sa-med) var(--sa-ease);
}
.sa-cartbar[hidden] { display: none; }
.sa-cartbar__count { font-size: var(--sa-fs-xs); opacity: .9; }
@media (min-width: 1024px) { .sa-cartbar { display: none !important; } }

/* --------------------------------------------------------------------------
   Mobile bottom navigation
   -------------------------------------------------------------------------- */
/* Sized to however many tabs the store has (Home, its services, Account).
   The active tab gets a soft pill behind its icon in that service's colour. */
.sa-mobilenav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    height: calc(var(--sa-mobilenav-h) + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--sa-line-2);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -6px 20px -12px rgba(16, 18, 24, .25);
    backdrop-filter: saturate(1.4) blur(12px);
}
.sa-mobilenav__item {
    --tab: var(--sa-ink);
    --tab-soft: var(--sa-line-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--sa-muted);
    -webkit-tap-highlight-color: transparent;
    transition: color var(--sa-fast);
}
.sa-mobilenav__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 30px;
    border-radius: var(--sa-r-pill);
    transition: background var(--sa-fast), transform var(--sa-fast);
}
.sa-mobilenav__icon .sa-icon { width: 21px; height: 21px; }
.sa-mobilenav__item:active .sa-mobilenav__icon { transform: scale(.92); }
.sa-mobilenav__item.is-active { font-weight: 800; color: var(--tab); }
.sa-mobilenav__item.is-active .sa-mobilenav__icon { background: var(--tab-soft); }
.sa-mobilenav__item.is-active .sa-icon { stroke-width: 2.4; }
.sa-mobilenav__item:focus-visible { outline: none; }
.sa-mobilenav__item:focus-visible .sa-mobilenav__icon { box-shadow: 0 0 0 2px var(--sa-accent-bright); }
@media (min-width: 768px) { .sa-mobilenav { display: none; } }

.sa-menu-list { display: flex; flex-direction: column; gap: 4px; }
.sa-menu-list a, .sa-menu-list button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: var(--sa-r-md);
    background: transparent;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.sa-menu-list a:hover, .sa-menu-list button:hover { background: var(--sa-line-2); }
.sa-menu-list .sa-servicecart__icon { width: 36px; height: 36px; border-radius: 10px; }

/* --------------------------------------------------------------------------
   Footer: link columns, bottom bar
   -------------------------------------------------------------------------- */
.sa-footer {
    margin-top: var(--sa-s-8);
    padding-bottom: var(--sa-s-6);
    border-top: 1px solid var(--sa-line);
    background: #fff;
    color: var(--sa-ink-2);
    font-size: var(--sa-fs-sm);
}
/* Phones get the bottom bar instead of a footer. */
@media (max-width: 767.98px) { .sa-footer { display: none; } }
.sa-footer__grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; padding: 48px 0 36px; }
@media (min-width: 900px) { .sa-footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.sa-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .sa-footer__brand { grid-column: auto; } }
.sa-footer__tagline { max-width: 300px; margin: 12px 0 16px; color: var(--sa-muted); }
.sa-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.sa-footer__contact li { display: flex; align-items: center; gap: 8px; }
.sa-footer__contact .sa-icon { color: var(--sa-muted); }
.sa-footer__contact a:hover { color: var(--sa-ink); text-decoration: underline; text-underline-offset: 3px; }
.sa-footer__title { margin-bottom: 14px; font-size: var(--sa-fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sa-ink); }
.sa-footer__links { display: flex; flex-direction: column; gap: 10px; }
.sa-footer__links a, .sa-footer__links button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sa-ink-2);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sa-footer__links a:hover, .sa-footer__links button:hover { color: var(--sa-ink); text-decoration: underline; text-underline-offset: 3px; }
.sa-footer__svc { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.sa-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sa-line);
    font-size: var(--sa-fs-xs);
    color: var(--sa-muted);
}
.sa-footer__pay { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-footer__pay li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--sa-line); border-radius: var(--sa-r-pill); font-weight: 600; color: var(--sa-ink-2); }
.sa-footer__locale { display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------------------
   Breadcrumbs, back link
   -------------------------------------------------------------------------- */
.sa-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 0 0; font-size: var(--sa-fs-xs); font-weight: 600; color: var(--sa-muted); }
.sa-crumbs a:hover { color: var(--sa-ink); }
.sa-crumbs .sa-icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Accordion (details/summary)
   -------------------------------------------------------------------------- */
.sa-accordion { display: flex; flex-direction: column; gap: 10px; }
.sa-accordion details {
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-md);
    background: var(--sa-surface);
}
.sa-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.sa-accordion summary::-webkit-details-marker { display: none; }
.sa-accordion summary .sa-icon { transition: transform var(--sa-fast); }
.sa-accordion details[open] summary .sa-icon { transform: rotate(180deg); }
.sa-accordion details p { padding: 0 18px 16px; color: var(--sa-muted); font-size: var(--sa-fs-sm); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.sa-js .sa-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--sa-ease), transform .6s var(--sa-ease); }
.sa-js .sa-reveal.is-visible { opacity: 1; transform: none; }

@keyframes sa-spin { to { transform: rotate(360deg); } }
@keyframes sa-shimmer { to { transform: translateX(100%); } }
@keyframes sa-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sa-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes sa-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sa-toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes sa-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .55); } 100% { box-shadow: 0 0 0 18px rgba(245, 197, 24, 0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .sa-js .sa-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Service colour helpers, overlay contents
   -------------------------------------------------------------------------- */
.sa-bg--home { background: var(--sa-line-2); color: var(--sa-ink); }
.sa-bg--food { background: var(--sa-food); color: #fff; }
.sa-bg--grocery { background: var(--sa-grocery); color: #fff; }
.sa-bg--ecommerce { background: var(--sa-ecommerce); color: #fff; }
.sa-bg--taxi { background: var(--sa-taxi); color: var(--sa-charcoal); }
.sa-bg--logistics { background: var(--sa-logistics); color: #fff; }

.sa-mobilenav__item--food { --tab: var(--sa-food); --tab-soft: var(--sa-food-soft); }
.sa-mobilenav__item--grocery { --tab: var(--sa-grocery); --tab-soft: var(--sa-grocery-soft); }
.sa-mobilenav__item--ecommerce { --tab: var(--sa-ecommerce); --tab-soft: var(--sa-ecommerce-soft); }
.sa-mobilenav__item--taxi { --tab: var(--sa-charcoal); --tab-soft: var(--sa-taxi-soft); }
.sa-mobilenav__item--logistics { --tab: var(--sa-logistics); --tab-soft: var(--sa-logistics-soft); }


.sa-search__title mark { background: var(--sa-accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

.sa-cartintro { margin-bottom: 14px; font-size: var(--sa-fs-sm); }
.sa-cartfrom { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 10px 12px; border-radius: var(--sa-r-md); background: var(--sa-accent-soft); font-size: var(--sa-fs-sm); }
.sa-cartnotes { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.sa-cartnotes:empty { margin: 8px 0; }
.sa-cartfoot { width: 100%; }
a.sa-servicecart:hover { border-color: #c9ccd3; background: var(--sa-canvas); }

.sa-account { display: flex; flex-direction: column; gap: 16px; }
.sa-account__profile { display: flex; align-items: center; gap: 14px; }
.sa-account__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sa-ink); color: #fff; font-size: var(--sa-fs-xl); font-weight: 800; }
.sa-account__heading { margin-top: 4px; font-size: var(--sa-fs-md); font-weight: 800; }
.sa-account .sa-btn--danger { align-self: flex-start; }

.sa-locpicker { display: flex; flex-direction: column; gap: 14px; }
.sa-locpicker__hint { margin-top: -6px; font-size: var(--sa-fs-xs); color: var(--sa-muted); text-align: center; }
.sa-locpicker__list { margin: 0; padding: 0; border: 0; }
.sa-locpicker__list [data-sa-location-list] { display: flex; flex-direction: column; gap: 8px; }
.sa-locpicker__list .sa-servicecart__icon { width: 38px; height: 38px; border-radius: 10px; }
.sa-locpicker__add summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--sa-fs-sm); cursor: pointer; color: var(--sa-ink-2); }
.sa-locpicker__form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }

.sa-page-head { padding: var(--sa-s-5) 0 0; }
.sa-page-head__title { font-size: var(--sa-fs-3xl); font-weight: 800; }
.sa-page-head__sub { margin-top: 6px; color: var(--sa-muted); }

/* Listing toolbar shared by restaurants and shop listings */
.sa-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--sa-s-5); }
.sa-toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sa-toolbar__row .sa-search__box { flex: 1; min-width: 220px; height: 46px; }
.sa-toolbar__sort { width: auto; min-height: 46px; padding-top: 0; padding-bottom: 0; font-size: var(--sa-fs-sm); font-weight: 600; }
.sa-toolbar__count { margin-left: auto; font-size: var(--sa-fs-sm); font-weight: 700; color: var(--sa-muted); }
.sa-chip .sa-icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Carousel arrows (food and grocery rows)
   -------------------------------------------------------------------------- */
.sa-fz-arrows { display: flex; gap: 8px; }
.sa-fz-arrow {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 0;
    border-radius: 50%;
    background: #e2e2e7;
    color: var(--sa-ink);
    cursor: pointer;
    transition: background var(--sa-fast), opacity var(--sa-fast);
}
.sa-fz-arrow:hover { background: #d4d5d9; }
.sa-fz-arrow:disabled { opacity: .4; cursor: default; }
.sa-fz-arrow .sa-icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Grocery product card (shared: grocery pages and the super-app home)
   -------------------------------------------------------------------------- */
/* Compact card: inset photo with badges on it, name + size, then price and ADD. */
.sa-gcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px 8px 10px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow var(--sa-med), border-color var(--sa-med), transform var(--sa-med) var(--sa-ease);
}
.sa-gcard:hover { border-color: #dcdcdc; box-shadow: 0 8px 18px -12px rgba(16, 18, 24, .35); transform: translateY(-2px); }
.sa-gcard__media { position: relative; }
.sa-gcard__img { display: block; aspect-ratio: 1; border-radius: 10px; background: #f5f7f6; }
.sa-gcard__img img { transition: transform .5s var(--sa-ease); }
.sa-gcard:hover .sa-gcard__img img { transform: scale(1.05); }
.sa-gcard__off {
    position: absolute;
    left: 6px; top: 6px;
    padding: 3px 6px;
    border-radius: 6px;
    background: #256fef;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
}
.sa-gcard__eta {
    position: absolute;
    left: 6px; bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #1f2328;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.sa-gcard__eta .sa-icon { width: 10px; height: 10px; stroke-width: 2.5; }
.sa-gcard__name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sa-gcard__name a:hover { text-decoration: underline; text-underline-offset: 2px; }
.sa-gcard__unit { margin-top: 2px; font-size: 12px; color: #757575; }
.sa-gcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.sa-gcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; min-width: 0; line-height: 1.2; }
.sa-gcard__price strong { font-size: 13px; font-weight: 800; color: #1f1f1f; }
.sa-gcard__price s { font-size: 11px; color: #9a9a9a; }

/* ADD button, quick-commerce style: green outline, then a solid green stepper */
.sa-addctl--grocery .sa-addbtn,
.sa-addctl--grocery .sa-stepper {
    flex: none;
    justify-content: center;
    width: 60px;
    min-height: 30px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.sa-addctl--grocery .sa-addbtn { padding: 0; border: 1px solid #318616; background: #f7fff9; color: #318616; }
.sa-addctl--grocery .sa-addbtn:hover { background: #318616; color: #fff; }
.sa-addctl--grocery .sa-addbtn .sa-icon { display: none; }
.sa-addctl--grocery .sa-stepper { justify-content: space-between; background: #318616; color: #fff; animation: none; }
.sa-addctl--grocery .sa-stepper button { width: 20px; height: 30px; }
.sa-addctl--grocery .sa-stepper .sa-icon { width: 11px; height: 11px; }
.sa-addctl--grocery .sa-stepper output { min-width: 16px; font-size: 12px; }
