/* ==========================================================================
   Food — clean white directory + restaurant menu
   ========================================================================== */

body[data-page^="food"] { --sa-canvas: #ffffff; background: #fff; }

/* ------------------------------------------------------------ directory */
.sa-fz { max-width: 1160px; margin: 0 auto; padding: 8px var(--sa-gutter) var(--sa-s-8); }
.sa-fz-section { padding: 20px 0; }
.sa-fz-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sa-fz-title { font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.02em; }
.sa-fz-section > .sa-fz-title { margin-bottom: 16px; }
.sa-fz-pagetitle { margin-top: 10px; font-size: var(--sa-fs-3xl); font-weight: 800; }
.sa-fz-rule { margin: 12px 0; border: 0; border-top: 1px solid #f0f0f5; }


/* What's on your mind? */
.sa-fz-mind {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.sa-fz-mind::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .sa-fz-mind { grid-auto-columns: 112px; gap: 16px; } }
.sa-fz-dish {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border: 0;
    background: none;
    cursor: pointer;
    scroll-snap-align: start;
}
.sa-fz-dish__img { width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 0 0 3px transparent; transition: box-shadow var(--sa-fast), transform var(--sa-med) var(--sa-ease); }
@media (min-width: 768px) { .sa-fz-dish__img { width: 96px; height: 96px; } }
.sa-fz-dish:hover .sa-fz-dish__img { transform: scale(.95); }
.sa-fz-dish__name { font-size: var(--sa-fs-sm); font-weight: 600; color: #3d4152; }
@media (min-width: 768px) { .sa-fz-dish__name { font-size: var(--sa-fs-md); } }

/* Cuisine collection page: big title, one-line description, then filters and grid */
.sa-fz-collection { padding: 28px 0 4px; }
.sa-fz-collection__title { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.sa-fz-collection__blurb { margin-top: 6px; font-size: var(--sa-fs-lg); color: #3d4152; }
.sa-fz-collection + .sa-fz-section { padding-top: 8px; }
.sa-fz-title--grid { margin: 4px 0 20px; }

/* Restaurant carousel: columns are a fraction of the row so only whole cards show (--per cards per view). */
.sa-fz-row {
    --per: 2;
    --gap: 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    gap: var(--gap);
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.sa-fz-row::-webkit-scrollbar { display: none; }
.sa-fz-row > * { scroll-snap-align: start; }
@media (min-width: 768px) { .sa-fz-row { --per: 3; --gap: 24px; } }
@media (min-width: 1100px) { .sa-fz-row { --per: 4; --gap: 32px; } }
.sa-fz-row--small .sa-rcard__offer { font-size: 15px; }
@media (min-width: 1100px) { .sa-fz-row--small { --per: 3; --gap: 20px; } }
@media (max-width: 767px) { .sa-fz-row .sa-rcard__offer { font-size: 14px; } .sa-fz-row .sa-rcard__name { font-size: var(--sa-fs-md); } }

/* Filter pills (sticky under the header) */
.sa-fz-filters {
    position: sticky;
    top: var(--sa-header-h);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 calc(var(--sa-gutter) * -1) 20px;
    padding: 12px var(--sa-gutter);
    overflow-x: auto;
    background: #fff;
    scrollbar-width: none;
}
.sa-fz-filters::-webkit-scrollbar { display: none; }
.sa-fz-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #e2e2e7;
    border-radius: var(--sa-r-pill);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    color: var(--sa-ink);
    font-size: var(--sa-fs-sm);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--sa-fast), border-color var(--sa-fast);
}
.sa-fz-pill:hover { border-color: #c9cad1; }
.sa-fz-pill[aria-pressed="true"] { border-color: var(--sa-ink); background: #f0f0f5; }
.sa-fz-pill[aria-pressed="true"]::after { content: "✕"; margin-left: 2px; font-size: 11px; color: var(--sa-muted); }
.sa-fz-pill--select { position: relative; padding-right: 12px; }
.sa-fz-pill--select select { appearance: none; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; outline: none; padding-right: 4px; }
.sa-fz-pill:focus-within { border-color: var(--sa-accent); box-shadow: 0 0 0 3px var(--sa-accent-soft); }

/* Restaurant grid */
.sa-fz-grid { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sa-fz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sa-fz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; } }
@media (min-width: 1100px) { .sa-fz-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Phones: list-style cards (image left) like native food apps */
@media (max-width: 559px) {
    .sa-fz-grid .sa-rcard__link { flex-direction: row; align-items: center; gap: 14px; }
    .sa-fz-grid .sa-rcard__img { flex: none; width: 128px; aspect-ratio: 1 / 1.1; }
    .sa-fz-grid .sa-rcard__offer { left: 8px; right: 8px; font-size: 12px; line-height: 1.15; text-align: center; white-space: normal; }
    .sa-fz-grid .sa-rcard__info { padding: 0; min-width: 0; }
    .sa-fz-grid .sa-rcard__link:hover { transform: none; }
}

/* ------------------------------------------------------------ menu page */
.sa-rm { max-width: 820px; margin: 0 auto; padding: 0 var(--sa-gutter) 140px; }
.sa-rm__titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.sa-rm__name { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.sa-rm__actions { display: flex; gap: 8px; }
.sa-iconbtn--outline { border: 1.5px solid var(--sa-line); }
.sa-iconbtn--outline.is-on { border-color: var(--sa-accent); color: var(--sa-accent); }
.sa-iconbtn--outline.is-on .sa-icon { fill: currentColor; }

.sa-rm__tabs { display: flex; gap: 28px; margin-top: 14px; border-bottom: 1px solid #e9e9eb; }
.sa-rm__tab { position: relative; padding: 10px 2px; border: 0; background: none; font-size: var(--sa-fs-md); font-weight: 700; color: var(--sa-muted); cursor: pointer; }
.sa-rm__tab.is-active { color: var(--sa-ink); }
.sa-rm__tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sa-accent); }

.sa-rm__hero { margin-top: 16px; aspect-ratio: 16 / 7; border-radius: 18px; }

.sa-rm__info {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #ececf1;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #fafafc);
    box-shadow: 0 8px 16px -10px rgba(16, 18, 24, .18);
}
.sa-rm__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--sa-fs-md); }
.sa-rm__dot { color: #93959f; }
.sa-rm__cuisines { margin-top: 6px; font-size: var(--sa-fs-sm); font-weight: 700; }
.sa-rm__cuisines a { color: var(--sa-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.sa-rm__open { margin-top: 6px; font-size: var(--sa-fs-sm); color: var(--sa-muted); }
.sa-rm__opennow { font-weight: 700; color: #1ba672; }
.sa-rm__timeline { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 14px 0 0 20px; border-top: 1px solid #ececf1; font-size: var(--sa-fs-sm); }
.sa-rm__timeline::before { content: ""; position: absolute; left: 4px; top: 22px; bottom: 8px; width: 1px; background: #c4c4cc; }
.sa-rm__timeline li { position: relative; }
.sa-rm__timeline li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #c4c4cc; }
.sa-rm__timeline span { margin-left: 8px; color: var(--sa-muted); }

.sa-rm__section { margin-top: 28px; }
.sa-rm__heading { font-size: var(--sa-fs-xl); font-weight: 800; letter-spacing: -.02em; }

.sa-rm__menulabel { display: flex; align-items: center; gap: 14px; margin: 36px 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--sa-muted); }
.sa-rm__menulabel::before, .sa-rm__menulabel::after { content: ""; flex: 1; height: 1px; background: #e2e2e7; }

.sa-rm__search { position: relative; display: block; }
.sa-rm__search input { width: 100%; height: 48px; padding: 0 48px; border: 0; border-radius: 12px; background: #f0f0f5; font: inherit; font-size: var(--sa-fs-md); text-align: center; outline: none; }
.sa-rm__search input:focus { background: #fff; box-shadow: 0 0 0 2px var(--sa-accent); }
.sa-rm__search .sa-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--sa-muted); }
.sa-rm__pills { display: flex; gap: 10px; margin: 16px 0 6px; }

.sa-rm__cat { border-bottom: 1px solid #e9e9eb; scroll-margin-top: calc(var(--sa-header-h) + 8px); }
.sa-rm__cat:first-of-type { border-top: 1px solid #e9e9eb; }
.sa-rm__cat summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; cursor: pointer; list-style: none; }
.sa-rm__cat summary::-webkit-details-marker { display: none; }
.sa-rm__cat summary .sa-icon { transition: transform var(--sa-fast); }
.sa-rm__cat[open] summary .sa-icon { transform: rotate(180deg); }
.sa-rm__catname { font-size: var(--sa-fs-lg); font-weight: 800; }

.sa-rm__dish { display: flex; gap: 16px; padding: 20px 0 30px; border-bottom: 1px solid #e9e9eb; scroll-margin-top: calc(var(--sa-header-h) + 60px); transition: background var(--sa-med); }
.sa-rm__items .sa-rm__dish:last-child { border-bottom: 0; }
.sa-rm__dish.is-highlighted { background: var(--sa-accent-soft); box-shadow: 0 0 0 12px var(--sa-accent-soft); border-radius: 4px; }
.sa-rm__dishinfo { flex: 1; min-width: 0; }
.sa-rm__dishtags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.sa-rm__best, .sa-rm__spicy { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; }
.sa-rm__best { color: #ee6a2b; }
.sa-rm__best .sa-icon { fill: currentColor; stroke: none; width: 13px; height: 13px; }
.sa-rm__spicy { color: var(--sa-danger); }
.sa-rm__spicy .sa-icon { width: 13px; height: 13px; }
.sa-rm__dishname { font-size: var(--sa-fs-lg); font-weight: 700; color: #3d4152; }
.sa-rm__dishprice { margin-top: 2px; font-size: var(--sa-fs-md); font-weight: 600; }
.sa-rm__dishdesc { margin-top: 12px; font-size: 15px; color: #686b78; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sa-rm__dishside { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 128px; }
@media (min-width: 640px) { .sa-rm__dishside { width: 156px; } }
.sa-rm__dishside.has-img { justify-content: flex-start; }
.sa-rm__dishimg { width: 100%; aspect-ratio: 156 / 144; border-radius: 12px; }
.sa-rm__dishside.has-img .sa-addctl { margin-top: -22px; }

/* ADD control, menu style: white button with green label */
.sa-addctl--menu { position: relative; z-index: 1; }
.sa-addctl--menu .sa-addbtn,
.sa-addctl--menu .sa-stepper {
    justify-content: center;
    width: 118px;
    min-height: 40px;
    border: 1px solid #d4d5d9;
    border-radius: 8px;
    background: #fff;
    color: #1ba672;
    box-shadow: 0 3px 8px rgba(40, 44, 63, .08);
    font-size: var(--sa-fs-lg);
    font-weight: 800;
    text-transform: uppercase;
}
.sa-addctl--menu .sa-addbtn:hover { background: #f6f6f6; color: #1ba672; }
.sa-addctl--menu .sa-addbtn .sa-icon { display: none; }
.sa-addctl--menu .sa-stepper { justify-content: space-between; animation: none; }
.sa-addctl--menu .sa-stepper button { width: 38px; height: 38px; }
.sa-addctl--menu .sa-stepper button:hover { background: #f6f6f6; }
.sa-addctl--menu .sa-stepper output { font-size: var(--sa-fs-md); }

.sa-vegmark, .sa-nonvegmark { position: relative; display: inline-block; flex: none; width: 16px; height: 16px; border: 1.5px solid #0f8a65; border-radius: 3px; }
.sa-vegmark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0f8a65; }
.sa-nonvegmark { border-color: #e43b4f; }
.sa-nonvegmark::after { content: ""; position: absolute; left: 50%; top: 50%; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #e43b4f; transform: translate(-50%, -55%); }

.sa-rm__related { margin-top: 36px; }

/* Floating MENU button + jump list */
.sa-rm__menufab { position: fixed; right: 16px; bottom: calc(var(--sa-mobilenav-h) + 84px); z-index: 42; }
@media (min-width: 768px) { .sa-rm__menufab { right: 32px; bottom: 100px; } }
.sa-rm__menubtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 64px; height: 64px;
    border: 0;
    border-radius: 50%;
    background: #1b1e24;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
    cursor: pointer;
    transition: transform var(--sa-fast);
}
.sa-rm__menubtn:hover, .sa-rm__menubtn.is-open { transform: scale(1.06); }
.sa-rm__menubtn .sa-icon { width: 20px; height: 20px; }
.sa-rm__menupop {
    position: absolute;
    right: 0; bottom: 76px;
    width: 280px;
    max-height: 60vh;
    overflow: auto;
    padding: 12px;
    border-radius: 18px;
    background: #1b1e24;
    color: #fff;
    box-shadow: var(--sa-shadow-3);
    animation: sa-pop var(--sa-fast) var(--sa-ease);
}
.sa-rm__menupop a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.sa-rm__menupop a:hover, .sa-rm__menupop a:focus-visible { background: rgba(255, 255, 255, .1); }

/* Bottom basket bar: shown at every width on the menu page */
.sa-cartbar.sa-cartbar--menu { background: #1ba672; color: #fff !important; border-radius: 14px; }
@media (min-width: 1024px) {
    .sa-cartbar.sa-cartbar--menu:not([hidden]) {
        display: flex !important;
        left: 16px; right: 16px;
        bottom: 24px;
        max-width: 788px;
        margin: 0 auto;
    }
}
