/* Smart menu – mobile-first, accessible (WCAG AA contrast, focus rings, large-text & high-contrast modes). */
:root {
    --sm-brand: #0f766e; --sm-brand-dark: #115e59; --sm-brand-soft: #e6f4f2; --sm-brand-ink: #ffffff;
    --sm-bg: #f6f7f9; --sm-card: #ffffff; --sm-ink: #111827; --sm-muted: #5b6474; --sm-line: #e6e8ec;
    --sm-deal: #b91c1c; --sm-ok: #15803d; --sm-radius: 16px; --sm-font: 16px;
    --sm-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 14px rgba(17, 24, 39, .06);
    --sm-shadow-lg: 0 18px 50px rgba(17, 24, 39, .18);
}
html.sm-large { --sm-font: 19px; }
html.sm-contrast { --sm-brand: #000; --sm-brand-dark: #000; --sm-brand-soft: #fff; --sm-bg: #fff; --sm-card: #fff; --sm-ink: #000; --sm-muted: #111; --sm-line: #000; --sm-deal: #9b0000; }
html.sm-contrast .sm-card, html.sm-contrast .sm-chip, html.sm-contrast input, html.sm-contrast select, html.sm-contrast .sm-add { border: 2px solid #000 !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: var(--sm-font)/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", "Noto Sans", sans-serif;
    background: var(--sm-bg); color: var(--sm-ink); -webkit-font-smoothing: antialiased; }
body.sm-has-cart { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body.sm-noscroll { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--sm-brand); }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.sm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-skip { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 14px; z-index: 100; }
.sm-skip:focus { left: 8px; top: 8px; }
.sm-muted { color: var(--sm-muted); }

/* ---------- Hero ---------- */
.sm-hero { position: relative; color: #fff; padding: 0 16px 18px;
    background: linear-gradient(180deg, rgba(10, 14, 22, .35) 0%, rgba(10, 14, 22, .55) 45%, rgba(10, 14, 22, .88) 100%),
                var(--cover, linear-gradient(135deg, #0f766e, #134e4a)) center/cover; }
.sm-hero__top { display: flex; justify-content: flex-end; padding-top: calc(12px + env(safe-area-inset-top)); max-width: 1180px; margin: 0 auto; }
.sm-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sm-lang { border-radius: 10px; padding: 8px; border: 0; font: inherit; font-size: .8em; max-width: 140px; }
.sm-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: .8em; font-weight: 700; cursor: pointer;
    backdrop-filter: blur(6px); }
.sm-icon-btn:hover { background: rgba(255, 255, 255, .24); }
.sm-icon-btn[aria-pressed="true"] { background: #fff; color: #000; }
.sm-info { display: flex; align-items: flex-end; gap: 14px; max-width: 1180px; margin: 64px auto 0; }
.sm-logo { width: 76px; height: 76px; flex: none; border-radius: 18px; object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.sm-logo--blank { display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: var(--sm-brand); }
.sm-info__text { min-width: 0; flex: 1; }
.sm-info__text h1 { margin: 0; font-size: 1.75em; line-height: 1.15; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.sm-info__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; font-size: .88em; opacity: .95; }
.sm-meta-part + .sm-meta-part::before { content: "·"; margin-right: 6px; opacity: .7; }
.sm-meta-loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sm-open { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 20px; font-size: .92em; font-weight: 700; }
.sm-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sm-open.is-open { background: rgba(16, 185, 129, .25); color: #a7f3d0; }
.sm-open.is-closed { background: rgba(239, 68, 68, .28); color: #fecaca; }
.sm-open + .sm-meta-part::before { content: none; }
.sm-info__chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.sm-pill { font-size: .75em; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); }
.sm-pill--warn { background: rgba(245, 158, 11, .3); border-color: rgba(245, 158, 11, .5); }
.sm-table-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 1180px; margin: 16px auto 0;
    padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.sm-table-bar__name { font-size: .92em; }
.sm-table-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-chip-btn { border: 0; border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--sm-ink); font: inherit; font-size: .85em; font-weight: 700; cursor: pointer; }
.sm-chip-btn:disabled { opacity: .6; }
.sm-banners { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sm-group-banner, .sm-deal-banner { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: .9em; }
.sm-group-banner { background: #e0f2fe; color: #075985; }
.sm-deal-banner { background: #fff1f2; color: var(--sm-deal); font-weight: 600; border: 1px solid #fecdd3; }

/* ---------- Layout ---------- */
.sm-layout { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sm-main { min-width: 0; }
.sm-side { display: none; }
@media (min-width: 1080px) {
    .sm-can-order .sm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
    .sm-can-order .sm-side { display: block; position: sticky; top: 16px; margin-top: 18px; }
    .sm-can-order .sm-cart-btn { display: none; }
    body.sm-has-cart { padding-bottom: 0; }
}

/* ---------- Controls ---------- */
.sm-controls { position: sticky; top: 0; z-index: 10; background: var(--sm-bg); margin: 0 -16px; padding: 12px 16px 0; }
.sm-controls::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(var(--sm-bg), transparent); pointer-events: none; }
.sm-controls__row { display: flex; gap: 8px; align-items: stretch; }
.sm-search { position: relative; flex: 1; }
.sm-search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--sm-muted); }
.sm-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--sm-line); font: inherit; font-size: .95em;
    background: var(--sm-card); color: var(--sm-ink); box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
[dir="rtl"] .sm-search input { padding: 0 42px 0 14px; }
.sm-search input:focus { border-color: var(--sm-brand); outline: none; box-shadow: 0 0 0 3px var(--sm-brand-soft); }
.sm-filters { position: relative; }
.sm-filters summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sm-line);
    background: var(--sm-card); font-size: .9em; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap; }
.sm-filters summary::-webkit-details-marker { display: none; }
.sm-filters[open] summary { border-color: var(--sm-brand); color: var(--sm-brand); }
.sm-filters__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sm-brand); color: #fff; font-size: .75em; line-height: 20px; text-align: center; }
.sm-filters__panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 32px)); z-index: 20; background: var(--sm-card);
    border: 1px solid var(--sm-line); border-radius: 14px; box-shadow: var(--sm-shadow-lg); padding: 14px 16px; font-size: .9em; }
.sm-filters fieldset { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sm-filters legend { font-weight: 700; margin-bottom: 6px; width: 100%; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: var(--sm-muted); }
.sm-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sm-filters .sm-check { padding: 6px 10px; border: 1px solid var(--sm-line); border-radius: 999px; }
.sm-filters .sm-check:has(input:checked) { border-color: var(--sm-brand); background: var(--sm-brand-soft); color: var(--sm-brand-dark); }
.sm-filters .sm-check input { accent-color: var(--sm-brand); }
.sm-chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 10px; scrollbar-width: none; }
.sm-chips::-webkit-scrollbar { display: none; }
.sm-chip { flex: 0 0 auto; border: 1px solid transparent; background: transparent; color: var(--sm-muted); border-radius: 999px; padding: 7px 14px;
    font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; }
.sm-chip:hover { color: var(--sm-ink); background: #eceef2; }
.sm-chip.is-on { background: var(--sm-ink); color: #fff; }

/* ---------- Menu ---------- */
.sm-menu { padding: 4px 0 8px; }
.sm-section { scroll-margin-top: 130px; }
.sm-section h2 { display: flex; align-items: center; gap: 8px; font-size: 1.2em; letter-spacing: -.01em; margin: 18px 0 12px; }
.sm-section__count { font-size: .62em; font-weight: 700; color: var(--sm-muted); background: #eceef2; border-radius: 999px; padding: 2px 8px; }
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .sm-list { grid-template-columns: 1fr 1fr; } }

.sm-card { position: relative; background: var(--sm-card); border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); border: 1px solid #eef0f3;
    transition: box-shadow .15s, transform .15s; }
.sm-card:hover { box-shadow: 0 2px 4px rgba(17, 24, 39, .05), 0 10px 26px rgba(17, 24, 39, .1); }
.sm-card.is-off { opacity: .62; }
.sm-card__main { display: flex; gap: 14px; width: 100%; height: 100%; min-height: 148px; padding: 14px; border: 0; background: none; text-align: start;
    font: inherit; color: inherit; cursor: pointer; border-radius: var(--sm-radius); }
.sm-card.is-off .sm-card__main { cursor: default; }
.sm-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; padding-bottom: 2px; }
.sm-card__name { font-weight: 700; font-size: 1em; line-height: 1.3; }
.sm-card__flags { display: flex; gap: 4px; flex-wrap: wrap; }
.sm-card__desc { color: var(--sm-muted); font-size: .84em; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-card__meta { display: flex; gap: 4px; flex-wrap: wrap; }
.sm-card__meta:empty { display: none; }
.sm-card__price { display: flex; gap: 8px; align-items: baseline; margin-top: auto; padding-top: 6px; }
.sm-card__price strong { font-size: 1.05em; color: var(--sm-ink); }
.sm-card__price del { color: var(--sm-muted); font-size: .82em; }
.sm-card__media { position: relative; flex: 0 0 116px; width: 116px; height: 116px; align-self: flex-start; }
.sm-card__img { display: block; width: 116px; height: 116px; border-radius: 14px; object-fit: cover; background: #f1f3f6; }
.sm-thumb--blank { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: var(--sm-brand);
    background: linear-gradient(135deg, var(--sm-brand-soft), #f5f7f9); }
/* Add button sits on the photo's lower edge, the familiar food-app pattern. */
.sm-card__add { position: absolute; bottom: 10px; inset-inline-end: 22px; z-index: 2; }
.sm-add { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sm-line);
    background: #fff; color: var(--sm-brand-dark); font: inherit; font-size: .85em; font-weight: 800; cursor: pointer;
    box-shadow: 0 3px 10px rgba(17, 24, 39, .14); white-space: nowrap; }
.sm-add > span[aria-hidden] { font-size: 1.25em; line-height: 1; }
.sm-add:hover { background: var(--sm-brand); color: #fff; border-color: var(--sm-brand); }
.sm-add:disabled { opacity: .6; }
.sm-add__n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--sm-brand); color: #fff; font-size: .78em; line-height: 18px; text-align: center; padding: 0 5px; }
.sm-add:hover .sm-add__n { background: #fff; color: var(--sm-brand); }
.sm-add--off { cursor: default; color: var(--sm-muted); box-shadow: none; background: #f1f3f6; }
.sm-add--off:hover { background: #f1f3f6; color: var(--sm-muted); border-color: var(--sm-line); }
.sm-stepper { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: var(--sm-brand); color: #fff; box-shadow: 0 3px 10px rgba(15, 118, 110, .35); }
.sm-stepper button { width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; border-radius: 50%; }
.sm-stepper button:hover { background: rgba(255, 255, 255, .15); }
.sm-stepper output { min-width: 18px; text-align: center; font-weight: 800; font-size: .9em; }
.sm-fav { position: absolute; top: 20px; inset-inline-end: 20px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .92); color: #9aa3b2; font-size: 15px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.sm-fav.is-on { color: #e11d48; }
.sm-tag { font-size: .72em; padding: 2px 7px; border-radius: 6px; background: #f1f3f6; color: #374151; font-weight: 600; }
.sm-tag--spice { background: #fff1f2; }
.sm-badge { font-size: .7em; background: #fef3c7; color: #92400e; border-radius: 6px; padding: 2px 7px; font-weight: 700; }
.sm-deal { font-size: .7em; color: #fff; background: var(--sm-deal); border-radius: 6px; padding: 2px 7px; font-weight: 700; }
.sm-soldout { font-size: .7em; color: #fff; background: #4b5563; border-radius: 6px; padding: 2px 7px; font-weight: 700; }
.sm-empty { text-align: center; color: var(--sm-muted); padding: 40px 16px; }
.sm-view-only .sm-card__main { min-height: 0; }

/* ---------- Footer ---------- */
.sm-footer { text-align: center; padding: 28px 0 32px; color: var(--sm-muted); font-size: .9em; border-top: 1px solid var(--sm-line); margin-top: 24px; }
.sm-footer p { margin: 14px 0 8px; line-height: 1.6; }
.sm-footer strong { color: var(--sm-ink); }
.sm-footer__links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Order panel (desktop) ---------- */
.sm-side__box { background: var(--sm-card); border-radius: 18px; border: 1px solid #eef0f3; box-shadow: var(--sm-shadow); padding: 18px; }
.sm-side h2 { margin: 0 0 10px; font-size: 1.1em; }
.sm-side__lines { max-height: 50vh; overflow-y: auto; }
.sm-side__line { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--sm-line); font-size: .9em; }
.sm-side__qty { font-weight: 800; color: var(--sm-brand); }
.sm-side__name small { display: block; color: var(--sm-muted); font-size: .85em; }
.sm-side__empty { color: var(--sm-muted); font-size: .9em; text-align: center; padding: 22px 8px; margin: 0; background: #f8f9fb; border-radius: 12px; }
.sm-side__total { display: flex; justify-content: space-between; padding: 12px 0 2px; font-size: .95em; }

/* ---------- Floating order bar (phones / tablets) ---------- */
.sm-cart-btn { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: 12px;
    border: 0; border-radius: 16px; padding: 12px 16px; background: var(--sm-brand); color: var(--sm-brand-ink); font: inherit; font-weight: 700;
    box-shadow: 0 10px 30px rgba(15, 118, 110, .4); cursor: pointer; animation: sm-up .25s ease-out; }
.sm-cart-btn[hidden] { display: none; }
.sm-cart-btn__count { min-width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .2); line-height: 30px; text-align: center; }
.sm-cart-btn__label { flex: 1; text-align: start; }
@media (min-width: 720px) { .sm-cart-btn { left: auto; right: 24px; width: 380px; } }
@keyframes sm-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Dialogs ---------- */
.sm-dialog { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 22, .55); display: flex; align-items: flex-end; justify-content: center; }
.sm-dialog[hidden] { display: none; }
.sm-dialog__panel { position: relative; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: var(--sm-card); color: var(--sm-ink);
    border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: sm-up .2s ease-out; }
.sm-dialog__panel--small { max-width: 440px; }
.sm-dialog__panel--item { padding: 0 0 calc(0px + env(safe-area-inset-bottom)); }
.sm-dialog__panel--checkout { padding-bottom: 0; }
@media (min-width: 720px) { .sm-dialog { align-items: center; padding: 24px; } .sm-dialog__panel { border-radius: 22px; max-height: 88vh; } }
.sm-dialog h2 { margin: 0 44px 4px 0; font-size: 1.3em; letter-spacing: -.01em; }
.sm-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(241, 243, 246, .95);
    color: var(--sm-ink); font-size: 15px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.sm-center { text-align: center; }

/* Item sheet */
.sm-media:empty { height: 56px; }
.sm-gallery { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.sm-gallery img { flex: 0 0 100%; height: 260px; object-fit: cover; scroll-snap-align: center; }
.sm-media .sm-video, .sm-media .sm-3d, .sm-media .sm-btn { margin: 10px 20px 0; width: calc(100% - 40px); }
.sm-item__body { padding: 16px 20px 0; }
.sm-item__price { margin: 2px 0 8px; font-size: 1.1em; }
.sm-item__price del { color: var(--sm-muted); font-size: .8em; }
.sm-video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }
.sm-3d { width: 100%; height: 300px; background: #f1f3f6; border-radius: 12px; }
.sm-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.sm-badges:empty, .sm-allergens:empty { display: none; }
.sm-allergens { font-size: .88em; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fffbeb; color: #78350f; }
.sm-extras { border: 1px solid var(--sm-line); border-radius: 14px; padding: 10px 14px; margin: 12px 0; display: grid; gap: 8px; }
.sm-extras legend { font-weight: 700; font-size: .85em; padding: 0 4px; }
.sm-extras label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sm-extras label .sm-muted { margin-inline-start: auto; }
.sm-extras input { accent-color: var(--sm-brand); width: 18px; height: 18px; }
.sm-label { display: block; font-weight: 600; margin-top: 12px; font-size: .92em; }
.sm-dialog input[type=text], .sm-dialog input[type=tel], .sm-dialog input[type=email], .sm-dialog input[type=datetime-local], .sm-dialog select, .sm-dialog textarea,
.sm-field input, .sm-field select, .sm-field textarea {
    width: 100%; padding: 11px 12px; border: 1px solid #d5d9e0; border-radius: 10px; font: inherit; font-size: .95em; margin-top: 5px; background: #fff; color: #111827; }
.sm-dialog input:focus, .sm-dialog select:focus, .sm-dialog textarea:focus, .sm-field input:focus { border-color: var(--sm-brand); outline: none; box-shadow: 0 0 0 3px var(--sm-brand-soft); }
.sm-upsell { margin-top: 14px; }
.sm-upsell:empty { display: none; }
.sm-upsell h3 { font-size: .95em; margin: 0 0 6px; }
.sm-upsell__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--sm-line); font-size: .92em; }
.sm-qty-row { display: flex; gap: 12px; align-items: center; position: sticky; bottom: 0; background: var(--sm-card); padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sm-line); margin-top: 16px; }
.sm-qty { display: inline-flex; align-items: center; border: 1px solid var(--sm-line); border-radius: 12px; background: #f8f9fb; }
.sm-qty[hidden] { display: none; }
.sm-qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--sm-ink); }
.sm-qty output { min-width: 28px; text-align: center; font-weight: 800; }
.sm-qty--small { background: none; }
.sm-qty--small button { width: 32px; height: 32px; font-size: 16px; }

/* Buttons */
.sm-btn { display: inline-block; border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none;
    background: #eceef2; color: var(--sm-ink); }
.sm-btn--primary { background: var(--sm-brand); color: var(--sm-brand-ink); flex: 1; box-shadow: 0 4px 14px rgba(15, 118, 110, .25); }
.sm-btn--primary:hover { background: var(--sm-brand-dark); }
.sm-btn--ghost { background: transparent; color: var(--sm-brand); }
.sm-btn--outline { background: var(--sm-card); color: var(--sm-ink); border: 1px solid var(--sm-line); font-size: .9em; padding: 10px 16px; }
.sm-btn--block { display: block; width: 100%; margin-top: 10px; }
.sm-btn--small { padding: 6px 12px; font-size: .85em; }
.sm-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- Checkout ---------- */
.sm-checkout__sub { margin: 0 0 6px; font-size: .9em; }
.sm-step { border-top: 1px solid var(--sm-line); padding: 16px 0 4px; margin-top: 12px; }
.sm-step[hidden] { display: none; }
.sm-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1em; }
.sm-step__title span { width: 24px; height: 24px; border-radius: 50%; background: var(--sm-ink); color: #fff; font-size: .75em; line-height: 24px; text-align: center; flex: none; }
.sm-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sm-line); }
.sm-line:last-child { border-bottom: 0; }
.sm-line small { display: block; color: var(--sm-muted); font-size: .85em; }
.sm-line > span:last-child { font-weight: 700; min-width: 64px; text-align: end; }
.sm-line .sm-qty--small { border-radius: 999px; }
.sm-line__rm { border: 0; background: #fee2e2; color: #b91c1c; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.sm-guest { font-size: .95em; margin: 12px 0 0; }
.sm-hint { background: #ecfdf5; color: #065f46; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: .9em; }
.sm-form fieldset { border: 0; padding: 0; margin: 12px 0 0; }
.sm-form legend, .sm-field > label { font-weight: 600; font-size: .92em; }
.sm-field { margin-top: 12px; }
.sm-field[hidden] { display: none; }
.sm-grid2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .sm-grid2 { grid-template-columns: 1fr 1fr; } }
.sm-check--block { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: .88em; color: var(--sm-muted); }
.sm-check--block input { margin-top: 3px; accent-color: var(--sm-brand); }
.sm-seg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.sm-seg label { position: relative; flex: 1 1 0; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--sm-line);
    border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 600; font-size: .92em; background: #fff; }
.sm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sm-seg label:has(input:checked) { border-color: var(--sm-brand); background: var(--sm-brand-soft); color: var(--sm-brand-dark); box-shadow: 0 0 0 1px var(--sm-brand) inset; }
.sm-seg label:has(input:focus-visible) { outline: 3px solid #f59e0b; outline-offset: 2px; }
.sm-seg--stack { flex-direction: column; }
.sm-seg--stack label { justify-content: flex-start; flex: none; }
.sm-seg--wrap label { flex: 1 1 auto; }
.sm-summary { margin-top: 18px; background: #f8f9fb; border-radius: 14px; padding: 12px 14px; }
.sm-summary div { display: flex; justify-content: space-between; padding: 3px 0; font-size: .95em; }
.sm-summary__total { font-weight: 800; font-size: 1.1em !important; border-top: 1px dashed #d5d9e0; margin-top: 6px; padding-top: 8px !important; }
.sm-checkout__foot { position: sticky; bottom: 0; background: var(--sm-card); margin: 12px -20px 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sm-line); }
.sm-checkout__foot .sm-btn { margin-top: 0; padding: 15px; font-size: 1.02em; }
.sm-error { background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.sm-card-input { border: 1px solid #d5d9e0; border-radius: 10px; padding: 14px 12px; margin: 10px 0; background: #fff; }
.sm-pay-amount { font-size: 1.6em; font-weight: 800; margin: 6px 0; }
.sm-done-icon { width: 68px; height: 68px; margin: 4px auto 12px; border-radius: 50%; background: #dcfce7; color: var(--sm-ok); font-size: 34px; line-height: 68px; font-weight: 800; }
.sm-next { list-style: none; padding: 0; margin: 14px 0 6px; text-align: start; display: grid; gap: 8px; font-size: .9em; color: var(--sm-muted); }
.sm-next li { display: flex; align-items: center; gap: 10px; }
.sm-next li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd2db; flex: none; }
.sm-next li.is-done { color: var(--sm-ink); font-weight: 600; }
.sm-next li.is-done::before { background: var(--sm-ok); border-color: var(--sm-ok); }
.sm-history { padding: 12px 0; border-bottom: 1px solid var(--sm-line); }
.sm-history__actions { display: flex; gap: 8px; margin-top: 6px; }
.sm-toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: #111827; color: #fff;
    padding: 12px 18px; border-radius: 12px; max-width: 90vw; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font-size: .92em; animation: sm-up .2s ease-out; }

/* ---------- Tracking, receipt & simple public pages ---------- */
.sm-simple { padding: 16px; }
.sm-simple__card { max-width: 560px; margin: 24px auto; background: var(--sm-card); border-radius: 18px; padding: 22px; box-shadow: 0 2px 10px rgba(15, 23, 42, .08); }
.sm-simple__card h1 { font-size: 1.4em; margin-top: 0; }
.sm-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.sm-steps li { display: flex; align-items: center; gap: 12px; color: var(--sm-muted); }
.sm-steps li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #cbd5e1; flex: 0 0 22px; }
.sm-steps li.is-done { color: var(--sm-ink); }
.sm-steps li.is-done::before { background: var(--sm-ok); border-color: var(--sm-ok); }
.sm-steps li.is-current { color: var(--sm-ink); font-weight: 700; }
.sm-steps li.is-current::before { border-color: var(--sm-brand); box-shadow: 0 0 0 4px rgba(15, 118, 110, .2); }
.sm-table { width: 100%; border-collapse: collapse; }
.sm-table td { padding: 6px 0; border-bottom: 1px solid var(--sm-line); }
.sm-table td:last-child { text-align: end; }
.sm-flash { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.sm-flash--ok { background: #dcfce7; color: #166534; }
.sm-flash--err { background: #fef2f2; color: #991b1b; }
@media print { .sm-noprint { display: none !important; } body { background: #fff; padding: 0; } .sm-simple__card { box-shadow: none; margin: 0; } }

/* ---------- Small phones ---------- */
@media (max-width: 520px) {
    .sm-info { margin-top: 44px; gap: 12px; }
    .sm-logo { width: 62px; height: 62px; border-radius: 15px; }
    .sm-info__text h1 { font-size: 1.45em; }
    .sm-icon-btn--label span { display: none; }
    .sm-meta-loc { flex-basis: 100%; }
    .sm-meta-loc::before { content: none !important; }
    .sm-card__media, .sm-card__img { flex-basis: 100px; width: 100px; height: 100px; }
    .sm-card__add { inset-inline-end: 18px; }
    .sm-filters summary span:not(.sm-filters__count) { display: none; }
}
