/* ORDA360 customer website - green & yellow theme */

:root {
    --green-900: #0f3a2b;
    --green-800: #134a36;
    --green-700: #12673f;
    --green-600: #138a4a;
    --green-500: #1fa65c;
    --green-100: #e6f5ec;
    --green-50: #f3faf6;
    --yellow-500: #ffc20e;
    --yellow-400: #ffcf3a;
    --yellow-100: #fff6d6;
    --red-500: #e5484d;
    --ink: #1c2b24;
    --muted: #66766e;
    --line: #e7eee9;
    --bg: #f4f1ea;
    --header: #14382c;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(15, 58, 43, .07);
    --font-head: 'Poppins', sans-serif;
    --font-display: 'Fraunces', 'Poppins', serif;
    --font-body: 'DM Sans', sans-serif;
    --header-h: 72px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background:
        radial-gradient(980px 420px at 110% -8%, rgba(255, 194, 14, .16), transparent 55%),
        radial-gradient(720px 380px at -12% 8%, rgba(19, 138, 74, .07), transparent 50%),
        var(--bg);
    -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
h1, .hero h1, .page-title h1, .auth-art h1, .branch-card-name, .track-hero strong {
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -.03em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-green { background: var(--green-600); color: var(--white); }
.btn-green:hover { background: var(--green-700); }
.btn-outline-danger { background: var(--white); border-color: #f5c7c8; color: var(--red-500); }
.btn-outline-danger:hover { background: #fff5f5; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 46%),
        #102e24;
    color: var(--white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 12px 28px rgba(8, 22, 16, .22);
}
.nav { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--yellow-500);
    color: var(--green-900);
    font-size: 20px;
    box-shadow: 0 0 0 3px rgba(255, 194, 14, .18);
}
.brand-mark-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; margin-bottom: 18px; box-shadow: none; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-text span { color: var(--yellow-500); }

.table-chip {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
}
.table-chip i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 194, 14, .16);
    color: var(--yellow-400);
    font-size: 14px;
}
.table-chip a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }

.nav-links {
    display: flex;
    flex: none;
    gap: 2px;
    margin-left: auto;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .08);
}
.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    white-space: nowrap;
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
    font-size: 14px;
    transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.nav-links a.active {
    background: var(--yellow-500);
    color: var(--green-900);
}
.nav-links a:focus-visible { outline: 2px solid var(--yellow-400); outline-offset: 2px; }

.nav-actions { display: flex; align-items: center; flex: none; gap: 10px; }
.nav-actions .btn-sm { height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; }
.nav-actions .btn-green { background: var(--yellow-500); color: var(--green-900); box-shadow: 0 6px 16px rgba(255, 194, 14, .22); }
.nav-actions .btn-green:hover { background: var(--yellow-400); }
.cart-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    font-size: 18px;
    transition: background .15s ease;
}
.cart-btn:hover { background: rgba(255, 255, 255, .16); }
.nav-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #102e24;
    border-radius: 9px;
    background: var(--yellow-500);
    color: var(--green-900);
    font-size: 11px;
    line-height: 14px;
    text-align: center;
}
.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-weight: 600;
    transition: background .15s ease;
}
.user-btn:hover { background: rgba(255, 255, 255, .16); }
.avatar-sm {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--yellow-500);
    color: var(--green-900);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
}

/* Hero */
.hero {
    --hero-photo: none;
    position: relative;
    color: var(--white);
    padding: 36px 0 52px;
    background-color: var(--header);
    background-image:
        linear-gradient(105deg, #14382c 0%, #14382c 40%, rgba(20, 56, 44, .78) 62%, rgba(20, 56, 44, .28) 100%),
        var(--hero-photo);
    background-position: center, right center;
    background-size: cover, cover;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero .container { position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}
.hero-kicker span { width: 36px; height: 3px; border-radius: 3px; background: var(--yellow-500); }
.hero h1 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.4px; }
.hero h1 span { display: block; color: var(--yellow-500); }
.hero-sub { margin: 0 0 22px; color: rgba(255, 255, 255, .78); font-size: 15px; }

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    padding: 0 18px;
    height: 56px;
    border-radius: 16px;
    background: var(--white);
    color: var(--muted);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }

.offer {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 150px;
    padding: 22px 26px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 50%, rgba(255, 255, 255, .45) 0, transparent 40%),
        var(--yellow-500);
    color: var(--green-900);
    overflow: hidden;
}
.offer-copy { position: relative; z-index: 1; }
.offer-copy small { font-weight: 700; color: var(--green-800); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.offer-copy strong { display: block; margin: 2px 0 4px; font-family: var(--font-head); font-weight: 900; font-size: 28px; line-height: 1.1; color: var(--green-700); }
.offer-copy strong em { font-style: normal; color: var(--white); text-shadow: 0 2px 0 rgba(15, 58, 43, .15); }
.offer-plate { position: absolute; right: 14px; bottom: -14px; font-size: 120px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .2)); }
.offer-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 130px;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 2px dashed var(--white);
    border-radius: 50%;
    background: var(--green-600);
    color: var(--white);
    line-height: 1;
    transform: rotate(-10deg);
}
.offer-badge b { font-family: var(--font-head); color: var(--yellow-500); font-size: 18px; }
.offer-badge span { font-size: 11px; font-weight: 700; }

/* Shop: categories | menu | cart */
.shop {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 48px;
}

.cat-nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px 12px 14px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.cat-nav h2 { margin: 0 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #8b918c; }
.cat-nav nav { display: grid; gap: 4px; }
.cat-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: background .15s ease, color .15s ease;
}
.cat-nav a:hover { background: #f6f3ec; }
.cat-nav a.active { background: var(--header); color: var(--white); }
.cat-nav a em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; color: #8b918c; }
.cat-nav a.active em { color: rgba(255, 255, 255, .75); }

.menu-main { min-width: 0; }
.block { margin-bottom: 28px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.block-head h2 { font-size: 22px; font-weight: 800; }
.block-head span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #e07a2f; font-weight: 700; }

.best-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.best-card {
    padding: 8px 8px 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(20, 40, 30, .06);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.best-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 58, 43, .12); }
.best-thumb { display: grid; place-items: center; height: 132px; margin-bottom: 10px; border-radius: 14px; background: #f3efe6; font-size: 52px; }
.best-card strong { display: flex; align-items: flex-start; gap: 6px; padding: 0 4px; font-size: 14px; line-height: 1.3; min-height: 36px; }
.best-card strong .diet { margin-top: 2px; }
.best-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 0 4px; }
.best-foot b { color: #1c8c4e; font-size: 14px; }
.add-round {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--yellow-500);
    color: var(--green-900);
    cursor: pointer;
    flex: none;
}

.category-section { margin-bottom: 28px; }
.category-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 20px; }
.category-title::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--yellow-500); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(15, 58, 43, .03);
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.item:hover { border-color: transparent; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 58, 43, .1); }
.item-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.item-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; min-height: 20px; }
.diet { position: relative; flex: none; width: 15px; height: 15px; border: 1.5px solid; border-radius: 3px; }
.diet::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.diet.veg { color: var(--green-600); }
.diet.nonveg { color: var(--red-500); }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--yellow-100); color: #a86d00; font-size: 11px; font-weight: 700; }
.item h3 { font-size: 16px; font-weight: 700; }
.item p { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 16px; }
.customisable { margin-top: 6px; font-size: 12px; color: var(--green-700); font-weight: 600; }

.thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 104px;
    height: 104px;
    border-radius: 16px;
    background: linear-gradient(160deg, #fff8e4, #ffe7a3);
    font-size: 46px;
}
.thumb-sm { width: 48px; height: 48px; border-radius: 12px; font-size: 26px; }
.add-btn {
    padding: 6px 16px;
    border: 1.5px solid var(--green-600);
    border-radius: 10px;
    background: var(--white);
    color: var(--green-600);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.add-btn:hover { background: var(--green-600); color: var(--white); }
.sold-out { font-size: 12px; font-weight: 700; color: var(--muted); }
.is-unavailable .thumb { filter: grayscale(1); opacity: .6; }
.is-unavailable h3,
.is-unavailable .price { color: var(--muted); }

/* Cart panel */
.cart-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-panel .cart-box {
    display: flex;
    flex-direction: column;
    min-height: 460px;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(20, 40, 30, .06);
}
.cart-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cart-box-head h2 { font-size: 18px; }
.cart-box-head h2 i { color: var(--green-700); }
.cart-meta { display: inline-flex; align-items: center; gap: 8px; }
.cart-meta em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--green-700); }
.cart-close { display: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f4f2; cursor: pointer; }
.cart-empty { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 28px 8px 8px; text-align: center; color: var(--muted); }
.cart-empty-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    margin: 8px auto 8px;
}
.cart-empty-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from 0deg, rgba(28, 140, 78, .16) 0 7deg, transparent 7deg 18deg);
    -webkit-mask: radial-gradient(circle, transparent 46%, #000 47% 62%, transparent 63%);
    mask: radial-gradient(circle, transparent 46%, #000 47% 62%, transparent 63%);
}
.cart-empty-icon i {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #e7f6ee;
    color: #1c8c4e;
    font-size: 32px;
}
.cart-empty strong { display: block; margin-top: 8px; color: var(--ink); font-family: var(--font-head); font-size: 18px; }
.cart-empty p { max-width: 220px; margin-top: 4px; font-size: 14px; }
.cart-nudge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4d4;
    color: #8a6a16;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.3;
}
.cart-nudge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-lines { margin-bottom: 4px; }
.cart-box .btn-block { margin-top: 16px; }

.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info strong { display: block; font-size: 14px; }
.cart-line-info small { display: block; font-size: 12px; color: var(--muted); }
.cart-line-info b { font-size: 14px; color: var(--green-700); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--green-600); border-radius: 12px; background: var(--green-50); }
.qty button { width: 40px; height: 44px; border: 0; background: none; color: var(--green-700); font-size: 18px; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; color: var(--green-700); }
.qty-sm button { width: 30px; height: 32px; font-size: 14px; }

.field-label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 14px; }
.field-label i { color: var(--green-600); }
.field-label small { font-weight: 500; color: var(--muted); }
.input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    font: inherit;
    color: var(--ink);
    outline: 0;
    resize: vertical;
    transition: border-color .15s ease;
}
.input:focus { border-color: var(--green-600); }
.input.is-invalid { border-color: var(--red-500); }
.error { display: block; margin-top: 4px; color: var(--red-500); font-size: 13px; }

.bill { margin-top: 14px; padding-top: 6px; }
.bill-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.bill-total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 17px; }

.cart-bar {
    position: fixed;
    z-index: 30;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border: 0;
    border-radius: 16px;
    background: var(--green-600);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(19, 138, 74, .4);
    cursor: pointer;
}
.cart-bar strong { color: var(--yellow-500); }

/* Customise dialog */
.sheet-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 30, 22, .55);
    animation: fade .2s ease;
}
.sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px 22px 0;
    border-radius: 22px;
    background: var(--white);
    animation: pop .2s ease;
}
.sheet-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f4f2; cursor: pointer; }
.sheet-head { display: flex; gap: 14px; align-items: center; padding-right: 36px; margin-bottom: 8px; }
.sheet-head .thumb { width: 72px; height: 72px; font-size: 38px; }
.sheet-head h3 { font-size: 19px; }
.sheet-head p { font-size: 13px; color: var(--muted); }
.sheet h4 { display: flex; justify-content: space-between; margin: 18px 0 8px; font-size: 15px; }
.sheet h4 small { font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--muted); }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.option input { accent-color: var(--green-600); width: 18px; height: 18px; margin: 0; }
.option span { flex: 1; font-weight: 500; }
.option em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 13px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 12px; margin: 18px -22px 0; padding: 16px 22px 20px; background: var(--white); border-top: 1px solid var(--line); }

/* Inner pages */
.page { padding-top: 28px; padding-bottom: 56px; }
.page-narrow { max-width: 640px; }
.page-narrow > * + * { margin-top: 16px; }
.page-title { margin-bottom: 22px; }
.page-title h1 { font-size: 28px; font-weight: 800; }
.page-title p { color: var(--muted); margin-top: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 600; color: var(--green-600); }

.card { display: block; padding: 20px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.card-title { font-size: 17px; margin-bottom: 4px; }
.stack { display: grid; gap: 16px; align-content: start; }

.empty-state { padding: 48px 20px; text-align: center; }
.empty-state span { display: block; font-size: 56px; margin-bottom: 8px; }
.empty-state h3 { font-size: 18px; margin-bottom: 4px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }

/* Orders */
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.order-card { transition: transform .15s ease, box-shadow .15s ease; }
.order-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 58, 43, .12); }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-card-head strong { display: block; font-family: var(--font-head); font-size: 16px; }
.order-card-head small { color: var(--muted); font-size: 13px; }
.order-card-items { margin: 12px 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.order-card-foot b { font-family: var(--font-head); }
.order-card-foot span { font-size: 13px; font-weight: 700; color: var(--green-600); }

.status { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-received { background: #e8f0ff; color: #2f5bd3; }
.status-preparing { background: #fff1e6; color: #d4600f; }
.status-ready { background: var(--yellow-100); color: #a86d00; }
.status-served { background: var(--green-100); color: var(--green-700); }

.order-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.track-hero { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 20px; background: var(--yellow-500); color: var(--green-900); }
.track-hero small { font-weight: 600; opacity: .8; }
.track-hero strong { display: block; font-family: var(--font-head); font-size: 26px; }
.track-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--white); font-size: 28px; color: var(--green-600); }
.status-bg-served { background: var(--green-600); color: var(--white); }

.tracker { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.tracker li::before { content: ''; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); }
.tracker li:first-child::before { display: none; }
.tracker li.done::before,
.tracker li.current::before { background: var(--green-600); }
.tracker .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef2f0; font-size: 17px; }
.tracker li.done .dot { background: var(--green-600); color: var(--white); }
.tracker li.current .dot { background: var(--yellow-500); color: var(--green-900); box-shadow: 0 0 0 5px rgba(255, 194, 14, .25); }
.tracker li.done,
.tracker li.current { color: var(--ink); }

.service-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-actions form { margin: 0; }
.service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 14px;
    background: var(--green-600);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}
.service-btn:hover { background: var(--green-700); }
.service-btn-yellow { background: var(--yellow-500); color: var(--green-900); }
.service-btn-yellow:hover { background: var(--yellow-400); }
.order-note { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--green-50); font-size: 13px; }

/* Profile */
.profile-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 194, 14, .32), transparent 46%),
        linear-gradient(145deg, #0e5c34 0%, #138a4a 58%, #1aaa5c 100%);
    box-shadow: 0 16px 32px rgba(14, 92, 52, .22);
}
.avatar {
    display: inline-grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--yellow-500);
    color: var(--green-900);
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 800;
    box-shadow: 0 0 0 5px rgba(255, 194, 14, .35);
}
.profile-card h1 { font-size: 22px; letter-spacing: -.02em; }
.profile-card small { opacity: .9; }
.menu-list { display: grid; gap: 4px; padding: 8px; }
.menu-list > * {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 600;
    transition: background .15s ease;
}
.menu-list a:hover { background: var(--green-50); }
.menu-list > * > i:first-child {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 17px;
}
.menu-list a:hover > i:first-child { background: var(--white); }
.menu-list .bi-chevron-right { margin-left: auto; color: #b7c4bd; font-size: 14px; }
.menu-list b { margin-left: auto; color: var(--green-800); letter-spacing: .04em; }

/* Auth */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(15, 58, 43, .12);
    overflow: hidden;
}
.auth-art {
    position: relative;
    padding: 44px 40px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 194, 14, .35) 0, transparent 40%),
        var(--green-600);
    color: var(--white);
    overflow: hidden;
}
.auth-art h1 { font-size: 32px; font-weight: 800; }
.auth-art h1 span { color: var(--yellow-500); }
.auth-art p { margin-top: 10px; opacity: .9; max-width: 340px; }
.auth-perks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.auth-perks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.auth-perks i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .15); color: var(--yellow-500); }
.auth-plate { position: absolute; right: -10px; bottom: -14px; font-size: 130px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); }
.auth-card { padding: 44px 40px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 42px; }
.auth-card .field-label:first-of-type { margin-top: 0; }
.toggle-pass { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); border: 0; background: none; padding: 6px; color: var(--muted); cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; font-size: 14px; color: var(--muted); }
.check input { accent-color: var(--green-600); width: 16px; height: 16px; }
.auth-card .btn-block { margin-top: 20px; }
.auth-card .check + .btn-block { margin-top: 0; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--green-600); font-weight: 700; }

/* Footer */
.site-footer { margin-top: 36px; background: #102e24; color: rgba(255, 255, 255, .78); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 36px; padding-top: 36px; padding-bottom: 28px; }
.footer-brand { display: grid; align-content: start; gap: 10px; }
.footer-name { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.footer-name b { font-family: var(--font-head); font-size: 18px; }
.footer-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--white); }
.footer-brand p { max-width: 320px; margin: 0; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-meta span { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: 12px; letter-spacing: .02em; }
.footer-col h2 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-400); }
.footer-links, .footer-contact { display: grid; gap: 8px; justify-items: start; text-align: left; }
.footer-links a { color: rgba(255, 255, 255, .82); }
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow-400); }
.footer-links a[aria-current="page"] { color: var(--yellow-400); }
.footer-line { display: flex; align-items: flex-start; gap: 8px; max-width: 280px; line-height: 1.45; }
.footer-line i { flex: none; margin-top: 2px; color: var(--yellow-500); }
.footer-line b { color: var(--white); font-weight: 700; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer-powered { color: rgba(255, 255, 255, .62); }
.legal-section h2 { margin-bottom: 8px; font-size: 17px; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 14.5px; }
.legal-section p + p, .legal-section ul { margin-top: 8px; }
.legal-section ul { display: grid; gap: 6px; margin-bottom: 0; padding-left: 18px; }
.info-cards { display: grid; gap: 12px; margin-top: 4px; }
.info-card { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--green-50); }
.info-card h3 { font-size: 16px; }
.info-card p { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.info-card i { margin-top: 2px; color: var(--green-600); }
.info-card a { color: var(--green-700); font-weight: 700; }
.legal-section .info-open { font-weight: 700; color: var(--green-700); }

/* Toast */
.toast {
    position: fixed;
    z-index: 80;
    top: calc(var(--header-h) + 14px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--green-900);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    animation: drop .3s ease;
    transition: opacity .3s ease, transform .3s ease;
}
.toast i { color: var(--yellow-500); font-size: 18px; }
.toast-error { background: var(--red-500); }
.toast-error i { color: var(--white); }
.toast.hide { opacity: 0; transform: translate(-50%, -20px); pointer-events: none; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -20px); } }

/* Responsive */
@media (max-width: 1180px) {
    .shop { grid-template-columns: minmax(0, 1fr) 300px; }
    .best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-nav { grid-column: 1 / -1; position: sticky; top: var(--header-h); z-index: 20; margin: 0 -24px; padding: 10px 24px; border-radius: 0; background: var(--bg); box-shadow: none; }
    .cat-nav h2 { display: none; }
    .cat-nav nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .cat-nav nav::-webkit-scrollbar { display: none; }
    .cat-nav a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; }
    .cat-nav a.active { background: var(--header); color: var(--white); border-color: var(--header); }
    .cat-nav a em { display: none; }
    .shop { padding-top: 12px; }
}

@media (max-width: 1100px) {
    .nav-links a span { display: none; }
    .nav-links a { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 900px) {
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav { gap: 10px; }
    .nav-links a span,
    .user-name { display: none; }
    .nav-links a { width: 34px; padding: 0; justify-content: center; }
    .user-btn { width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
    .hero-inner { grid-template-columns: 1fr; gap: 20px; }
    .offer { min-height: 120px; }
    .shop { grid-template-columns: minmax(0, 1fr); }
    .cat-nav { margin: 0 -16px; padding: 10px 16px; }

    .cart-bar { display: flex; }
    .cart-panel {
        position: fixed;
        z-index: 70;
        inset: 0;
        top: auto;
        display: none;
        align-items: flex-end;
        height: 100%;
        background: rgba(10, 30, 22, .55);
    }
    .cart-panel.is-open { display: flex; }
    .cart-panel .cart-box { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; animation: up .25s ease; }
    .cart-panel .cart-close { display: grid; place-items: center; }

    .sheet-backdrop { align-items: flex-end; padding: 0; }
    .sheet { max-width: none; border-radius: 22px 22px 0 0; animation: up .25s ease; }

    .order-layout { grid-template-columns: 1fr; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-art { padding: 28px 24px 32px; }
    .auth-perks { display: none; }
    .auth-plate { font-size: 90px; }
    .auth-card { padding: 28px 24px; }
}

@media (max-width: 560px) {
    .table-chip { display: none; }
    .item-grid,
    .order-grid { grid-template-columns: 1fr; }
    .thumb { width: 84px; height: 84px; font-size: 42px; }
    .thumb-sm { width: 44px; height: 44px; font-size: 24px; }
    .best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offer-copy strong { font-size: 22px; }
    .offer-badge { top: 10px; right: 96px; width: 56px; height: 56px; }
    .offer-plate { font-size: 92px; }
    .page-title h1 { font-size: 22px; }
}

/* Ordering switched off by plan / feature */
.ordering-closed {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--yellow-100);
    color: #8a5a00;
    font-weight: 600;
}
.ordering-closed i { font-size: 20px; }
.ordering-closed-banner { margin: 20px 0 0; }

/* Menu from the database: photos, egg mark, branch picker */
.thumb img, .best-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.thumb, .best-thumb { overflow: hidden; }
.diet.egg { color: #d97706; }
.price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.cat-img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; }
.cat-emoji, .cat-ico {
    display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
    background: #f3f0e8; color: #1c3b2e; font-size: 16px;
}
.cat-nav a.active .cat-emoji,
.cat-nav a.active .cat-ico { background: rgba(255, 255, 255, .16); color: var(--white); }
.tone-veg { background: linear-gradient(160deg, #f4fbf6, #cfeedd); }
.tone-non_veg { background: linear-gradient(160deg, #fff6f4, #ffd5cf); }
.tone-egg { background: linear-gradient(160deg, #fff8ec, #ffe1ad); }
.special-thumb.tone-veg,
.special-thumb.tone-non_veg,
.special-thumb.tone-egg { background: var(--white); }
.table-chip .branch-name { font-weight: 600; opacity: .9; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.branch-select {
    max-width: 150px;
    margin-left: 2px;
    padding: 0 16px 0 10px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .18);
    outline: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffcf3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E") no-repeat right 0 center;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.branch-select option { color: var(--ink, #10231b); }
.branch-select:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 560px) {
    .table-chip .branch-name { display: none; }
    .branch-select { max-width: 110px; }
}
.status.status-cancelled { background: #fdecec; color: #c62828; }
.service-btn:disabled { opacity: .6; cursor: default; }

/* ---- Restaurant branding ---- */
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--white); flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 5px rgba(255, 194, 14, .22); }
.brand-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-accent { color: var(--yellow-500); }

/* ---- Branch card (hero) ---- */
.branch-card {
    display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 8px 14px; align-items: start;
    padding: 16px 16px 14px; border-radius: 22px;
    background: var(--white); color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}
.branch-card-body { display: grid; gap: 8px; min-width: 0; }
.branch-photo { width: 128px; height: 104px; object-fit: cover; border-radius: 14px; }
.branch-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.open-pill, .mode-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.open-pill i { font-size: 7px; }
.open-pill.is-open { background: transparent; padding-left: 0; color: #1a8f4a; }
.open-pill.is-closed { background: #fde8e8; color: #b42318; }
.mode-pill { margin-left: auto; background: #eef8f1; color: #1a6b3c; }
.branch-card-name { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: #16382c; }
.branch-card-facts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.branch-card-facts i { width: 16px; color: var(--green-600); }
.branch-card-facts a { color: inherit; }
.special {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; padding: 8px 10px;
    border: 0; border-radius: 14px; background: #fff6d8;
    font: inherit; text-align: left; color: var(--ink); cursor: pointer;
}
.special:hover { border-style: solid; }
.special-thumb { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: var(--white); overflow: hidden; flex-shrink: 0; }
.special-thumb img { width: 100%; height: 100%; object-fit: cover; }
.special-copy { display: grid; flex: 1; min-width: 0; }
.special-copy small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #a86d00; }
.special-copy b { font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.special-copy em { font-style: normal; font-weight: 700; color: var(--green-700); font-size: 14px; }

/* ---- Diet filter & prep time ---- */
.diet-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line);
    border-radius: 999px; background: var(--white); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.chip em { font-style: normal; font-weight: 500; color: var(--muted); }
.chip.active { border-color: var(--header); background: var(--header); color: var(--white); }
.chip.active em { color: rgba(255, 255, 255, .8); }
.prep { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }

/* ---- Orders: card with its own actions, reorder ---- */
.order-card { display: flex; flex-direction: column; }
.order-card-link { display: block; color: inherit; }
.order-card-actions { display: inline-flex; align-items: center; gap: 14px; }
.order-card-actions a { color: var(--green-600); }
.link-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--green-600); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.card-title-row .card-title { margin-bottom: 0; }

/* ---- Profile ---- */
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 8px 4px; text-align: center; }
.profile-stats > div { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 12px 8px; }
.profile-stats > div + div { border-left: 1px solid var(--line); }
.profile-stats i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 16px;
}
.profile-stats b { font-family: var(--font-head); font-size: 20px; color: var(--ink); }
.profile-stats small { max-width: 100%; font-size: 12px; line-height: 1.3; color: var(--muted); }
.fav-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fav-chip { padding: 6px 12px; border-radius: 999px; background: var(--green-50); font-size: 13px; font-weight: 600; }
.fav-chip em { font-style: normal; color: var(--muted); font-weight: 500; }
.mt-12 { margin-top: 12px; }

@media (max-width: 560px) {
    .brand-name { max-width: 130px; font-size: 18px; }
    .branch-card { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .branch-photo { display: none; }
    .branch-card-name { font-size: 19px; }
}
/* Let hero columns shrink below their content (the dish name in the branch card doesn't wrap) */
.hero-inner > *, .branch-card, .menu-main { min-width: 0; }
/* Narrow phones: the logo alone, so the cart and login buttons fit */
@media (max-width: 430px) {
    .brand-logo + .brand-name { display: none; }
}

/* Phone layout: header keeps the branch switcher, and the cart bar never covers the footer */
@media (max-width: 720px) {
    :root { --header-h: 108px; }
    .site-header .nav {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand links actions" "loc loc loc";
        align-items: center;
        height: auto;
        min-height: var(--header-h);
        gap: 8px 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .brand { grid-area: brand; }
    .nav-links { grid-area: links; margin: 0; justify-content: flex-end; gap: 2px; }
    .nav-links a { height: 32px; padding: 0 10px; }
    .nav-actions { grid-area: actions; gap: 8px; }
    .nav-actions .btn-sm { height: 36px; padding: 0 12px; }
    .table-chip {
        grid-area: loc;
        display: inline-flex;
        justify-self: start;
        max-width: 100%;
        width: max-content;
        height: 36px;
        padding: 0 10px 0 4px;
        font-size: 13px;
    }
    .branch-select { max-width: 150px; }
    .brand-logo { width: 36px; height: 36px; border-radius: 10px; }

    .hero { padding: 22px 0 28px; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 14px; margin-bottom: 16px; }
    .hero-kicker { margin-bottom: 10px; }
    .search { height: 50px; max-width: none; }

    .diet-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -16px 16px;
        padding: 0 16px 2px;
    }
    .diet-filter::-webkit-scrollbar { display: none; }
    .chip { flex: none; }

    .best-grid { gap: 10px; }
    .best-thumb { height: 108px; }
    .best-card strong { font-size: 13px; min-height: 0; }
    .block-head { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
    .block-head span { font-size: 12px; }

    .item { align-items: flex-start; }
    .item h3 { font-size: 15px; }
    .category-title { font-size: 18px; }

    .site-footer { margin-top: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; padding-bottom: 22px; }
    .footer-bar { flex-direction: column; align-items: flex-start; }
    .footer-line { max-width: none; }
    .page { padding-bottom: 8px; }

    .cart-bar {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 40;
    }
    body.has-cart { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

    .page { padding-top: 20px; }
    .page-title h1 { font-size: 24px; }
    .auth-split { margin: 0; border-radius: 18px; }
    .auth-art { padding: 24px 20px 20px; }
    .auth-art h1 { font-size: 26px; }
    .auth-plate { display: none; }
    .auth-card { padding: 22px 18px 26px; }
    .tracker li { font-size: 11px; }
    .tracker .dot { width: 34px; height: 34px; font-size: 15px; }
    .track-hero { padding: 16px; }
    .track-hero strong { font-size: 20px; }
    .service-actions { grid-template-columns: 1fr; }
    .profile-stats b { font-size: 17px; }
    .profile-stats small { font-size: 11px; }
    .profile-stats i { width: 30px; height: 30px; margin-bottom: 4px; }
    .order-card-foot { gap: 8px; flex-wrap: wrap; }
    .sheet-foot { flex-wrap: wrap; }
    .cart-panel .cart-box { min-height: 0; }
}

/* Install app (PWA) */
.install-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 194, 14, .55);
    border-radius: 50%;
    background: rgba(255, 194, 14, .12);
    color: var(--yellow-500);
    font-size: 18px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
/* Small download arrow on the phone: "install on your phone" */
.install-badge {
    position: absolute;
    right: 3px;
    bottom: 3px;
    font-size: 12px;
    line-height: 1;
    border-radius: 50%;
    background: #102e24;
    color: var(--yellow-500);
}
.install-btn[hidden],
.install-help[hidden] { display: none; }
.install-btn:hover { background: var(--yellow-500); color: var(--green-900); }
.install-btn:hover .install-badge { color: var(--yellow-500); }
.install-help {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--yellow-100);
    color: var(--green-900);
    font-size: 14px;
}
.install-help > i { font-size: 18px; color: var(--green-600); }
.install-help span { flex: 1; }
.install-help-close {
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
@media (max-width: 720px) {
    .install-btn { width: 36px; height: 36px; }
}

/* OTP login */
.auth-card form[hidden] { display: none; }
.input-prefix .prefix { position: absolute; top: 50%; left: 40px; transform: translateY(-50%); font-weight: 700; color: var(--ink); }
.input-prefix .input { padding-left: 76px; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.otp-sent { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.otp-sent b { color: var(--ink); }
.otp-sent a { margin-left: 4px; color: var(--green-600); font-weight: 700; }
.otp-input { font-size: 24px; font-weight: 700; letter-spacing: .5em; text-align: center; }
.otp-resend { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.otp-resend [hidden] { display: none; }
.link-btn { padding: 0; border: 0; background: none; color: var(--green-600); font: inherit; font-weight: 700; cursor: pointer; }

/* ---- App redesign: shared ---- */
.btn-yellow { background: var(--yellow-500); color: var(--green-900); }
.btn-yellow:hover { background: var(--yellow-400); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.status-cancelled { background: #fdecec; color: #c62828; }

/* Added-to-cart toast */
.cart-toast {
    position: fixed; z-index: 85; left: 50%; bottom: 24px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
    padding: 12px 16px; border-radius: 14px; background: var(--green-900); color: var(--white);
    font-weight: 600; font-size: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    transition: opacity .25s ease, transform .25s ease;
}
.cart-toast i { color: var(--yellow-500); }
.cart-toast a { margin-left: 6px; color: var(--yellow-500); font-weight: 700; }
.cart-toast.hide { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }

/* Phone tab bar */
.tab-bar { display: none; }
@media (max-width: 720px) {
    .nav-links { display: none; }
    .site-header .nav { grid-template-areas: "brand . actions" "loc loc loc"; }
    .tab-bar {
        position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
        display: grid; grid-template-columns: repeat(5, 1fr);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: var(--white); border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(15, 58, 43, .08);
    }
    .tab-bar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
    .tab-bar a i { font-size: 20px; }
    .tab-bar a.active { color: var(--green-600); }
    .tab-bar a.active i { color: var(--green-600); }
    .tab-bar a.active::before { content: ''; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow-500); }
    .tab-badge {
        position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px;
        border-radius: 9px; background: var(--yellow-500); color: var(--green-900); font-size: 10px; line-height: 17px; text-align: center;
    }
    .tab-badge:empty, .tab-badge[data-zero] { display: none; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    body.has-cart { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
    .cart-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
    .cart-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
    .site-footer { margin-bottom: 0; padding-bottom: 16px; }
}

/* Dish details sheet */
.sheet-detail { padding: 0; max-width: 520px; }
.sheet-detail .sheet-close { z-index: 2; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.sheet-photo {
    display: grid; place-items: center; height: 240px; overflow: hidden;
    background: linear-gradient(160deg, #fff8e4, #ffe7a3); font-size: 96px;
}
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 18px 22px 4px; }
.sheet-body h3 { margin-top: 6px; font-size: 22px; font-weight: 800; }
.sheet-price { display: block; margin: 4px 0 8px; font-family: var(--font-head); font-size: 20px; color: var(--green-700); }
.sheet-body p { color: var(--muted); font-size: 14px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; cursor: pointer; }
.pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill-opt span {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1.5px solid var(--line);
    border-radius: 999px; background: var(--white); font-weight: 600; font-size: 13px;
}
.pill-opt em { font-style: normal; font-weight: 500; color: var(--muted); }
.pill-opt input:checked + span { border-color: var(--green-600); background: var(--green-600); color: var(--white); }
.pill-opt input:checked + span em { color: rgba(255, 255, 255, .85); }
.pill-opt input:focus-visible + span { outline: 2px solid var(--yellow-500); outline-offset: 2px; }
.sheet-detail .sheet-foot { margin: 18px 0 0; }
.item[data-view], .best-card[data-view] { cursor: pointer; }
@media (max-width: 900px) {
    .sheet-detail { max-height: 94vh; }
    .sheet-photo { height: 220px; }
}

/* Checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 16px; padding: 5px; border-radius: 14px; background: #f1f4f2; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 0; border-radius: 10px; background: none; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--white); color: var(--green-700); box-shadow: 0 2px 8px rgba(15, 58, 43, .1); }
.seg button.active i { color: var(--green-600); }
.dine-card { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: var(--green-50); border: 1px solid var(--green-100); }
.dine-card-booking { background: #fff8e6; border-color: #ffe7a3; }
.dine-card > div { display: grid; gap: 3px; }
.dine-card small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.dine-card strong { font-family: var(--font-head); font-size: 17px; }
.dine-card span:not(.dine-icon) { font-size: 14px; color: var(--muted); }
.dine-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--white); color: var(--green-600); font-size: 22px; }
.dine-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
    display: grid; justify-items: start; gap: 4px; padding: 16px; border: 1.5px solid var(--line);
    border-radius: 16px; background: var(--white); text-align: left; cursor: pointer;
}
.choice i { font-size: 24px; color: var(--green-600); }
.choice b { font-family: var(--font-head); }
.choice small { color: var(--muted); font-size: 13px; }
.choice.active { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(19, 138, 74, .12); }
.scan-box { display: grid; justify-items: center; gap: 12px; margin-top: 14px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 16px; text-align: center; }
.scan-box p { color: var(--muted); font-size: 14px; }
.scan-box video { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #000; }
#bookForm { margin-top: 14px; }
.book-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.book-grid .field-label { margin-top: 0; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.table-grid .field-hint { grid-column: 1 / -1; margin: 0; }
.table-opt { position: relative; cursor: pointer; }
.table-opt input { position: absolute; opacity: 0; }
.table-opt span { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); text-align: center; }
.table-opt i { color: var(--green-600); font-size: 18px; }
.table-opt b { font-family: var(--font-head); font-size: 14px; }
.table-opt small { font-size: 11px; color: var(--muted); }
.table-opt input:checked + span { border-color: var(--green-600); background: var(--green-600); color: var(--white); }
.table-opt input:checked + span i,
.table-opt input:checked + span small { color: rgba(255, 255, 255, .9); }
.table-opt input:focus-visible + span { outline: 2px solid var(--yellow-500); outline-offset: 2px; }
#bookForm .check { margin-bottom: 0; color: var(--ink); }
.checkout-sub { margin-top: 22px; }
.contact-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.contact-row i { color: var(--green-600); }
.contact-row span { flex: 1; min-width: 0; }
.checkout-hint { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.summary-empty { padding: 18px 0; color: var(--muted); text-align: center; }
.summary-empty a { color: var(--green-600); font-weight: 700; }
.checkout-summary .cart-line > b { font-size: 14px; color: var(--green-700); }
@media (max-width: 900px) {
    .checkout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}
@media (max-width: 560px) {
    .dine-choice { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: 1fr 1fr; }
    .book-grid label:first-child { grid-column: 1 / -1; }
}

/* Booking page */
.facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts i { width: 20px; color: var(--green-600); font-size: 17px; }

/* Order history rows */
.order-tabs { margin-bottom: 16px; }
.order-tabs .chip i { color: var(--green-600); }
.order-tabs .chip.active i { color: var(--yellow-500); }
.order-grid-bookings:has(.order-row:not([hidden])) { margin-bottom: 16px; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 14px; transition: box-shadow .15s ease, transform .15s ease; }
.order-row:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 58, 43, .1); }
.order-thumb { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: #f3efe6; font-size: 32px; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-thumb-icon { background: #fff4d4; color: #a86d00; font-size: 28px; }
.order-row-body { display: grid; justify-items: start; gap: 3px; flex: 1; min-width: 0; color: inherit; }
.order-row-body strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 15px; }
.order-row-body strong em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; }
.order-row-body small { font-size: 12.5px; color: var(--muted); }
.order-row-body .status { padding: 2px 9px; font-size: 11px; }
.order-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); }
.order-row-end b { font-family: var(--font-head); color: var(--ink); }
@media (max-width: 560px) {
    .order-row { gap: 12px; padding: 12px; }
    .order-thumb { width: 60px; height: 60px; }
    .order-row-end .link-btn span { display: none; }
}

/* Order tracking: vertical timeline */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 3px; border-radius: 3px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--green-600); }
.timeline .dot { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #eef2f0; font-size: 15px; }
.timeline li.done .dot { background: var(--green-600); color: var(--white); }
.timeline li.current .dot { background: var(--yellow-500); color: var(--green-900); box-shadow: 0 0 0 5px rgba(255, 194, 14, .25); }
.timeline-text { display: grid; padding-top: 6px; }
.timeline-text b { font-weight: 700; }
.timeline li.done .timeline-text b,
.timeline li.current .timeline-text b { color: var(--ink); }
.timeline-text small { font-size: 12.5px; }

/* Account */
.profile-card { display: flex; align-items: center; gap: 16px; padding: 22px; text-align: left; }
.profile-card .avatar { flex: none; margin: 0; width: 64px; height: 64px; font-size: 24px; }
.profile-id { display: grid; gap: 2px; flex: 1; min-width: 0; }
.profile-id h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.profile-phone i { font-size: 13px; opacity: .85; }
.profile-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: .8; }
.profile-edit {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: var(--white);
    transition: background .15s ease;
}
.profile-edit:hover { background: rgba(255, 255, 255, .28); }
.referral-row { background: var(--yellow-100); color: var(--green-900); }
.referral-row > i:first-child { background: var(--white); color: #a86d00; }
.referral-row b {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: .06em;
}
.profile-logout .btn { border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.menu-list a b { font-weight: 600; font-size: 13px; }
.nav-badge[data-zero] { display: none; }

/* Header chip with just the branch: no divider before the picker, name always visible */
.table-chip.is-branch-only .branch-select { margin-left: 0; padding-left: 0; border-left: 0; }
.table-chip.is-branch-only .branch-name { display: inline; }

/* Account dropdown in the header */
.user-menu { position: relative; }
.user-btn { border: 1px solid rgba(255, 255, 255, .14); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.user-caret { font-size: 12px; color: var(--yellow-400); transition: transform .15s ease; }
.user-menu.is-open .user-caret { transform: rotate(180deg); }
.user-dropdown {
    position: absolute; z-index: 60; top: calc(100% + 10px); right: 0;
    display: grid; min-width: 200px; padding: 6px;
    border-radius: 14px; background: var(--white); color: var(--ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .2); animation: pop .15s ease;
}
.user-dropdown[hidden] { display: none; }
.user-dropdown a,
.user-dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; font-size: 14px;
    text-align: left; color: var(--ink); cursor: pointer;
}
.user-dropdown i { width: 18px; color: var(--green-600); font-size: 16px; }
.user-dropdown a:hover, .user-dropdown button:hover, .user-dropdown a.active { background: var(--green-50); }
.user-dropdown form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.user-dropdown .user-logout, .user-dropdown .user-logout i { color: var(--red-500); }
.user-dropdown .user-logout:hover { background: #fff5f5; }
@media (max-width: 900px) {
    .user-caret { display: none; }
}

/* Online payment */
.pay-online-btn i { font-size: 18px; }
.pay-note { margin-top: -8px; text-align: center; font-size: 13px; color: var(--muted); }
.dine-card span .bi-shield-lock { color: var(--green-600); }

/* ==== Phone typography: one compact scale for every customer screen (keep last) ==== */
@media (max-width: 560px) {
    body { font-size: 14px; }
    .btn { font-size: 14px; padding: 10px 16px; }
    .btn-lg { font-size: 15px; padding: 12px 18px; }
    .btn-sm { font-size: 13px; }
    .link-btn { font-size: 13px; }
    .field-label { font-size: 13px; }
    .input { font-size: 15px; padding: 11px 13px; }
    .field-hint, .error { font-size: 12px; }
    .toast, .cart-toast { font-size: 13px; padding: 11px 14px; }

    /* Header */
    .table-chip { font-size: 12.5px; }
    .nav-actions .btn-sm { font-size: 13px; }

    /* Hero + branch card */
    .hero h1 { font-size: 26px; letter-spacing: -.3px; }
    .hero h1 span { display: inline; }
    .hero-kicker { font-size: 10.5px; letter-spacing: .14em; }
    .hero-sub { font-size: 12.5px; }
    .search { height: 46px; padding: 0 14px; border-radius: 14px; }
    .search input { font-size: 14.5px; }
    .branch-card-name { font-size: 17px; }
    .branch-card-facts { font-size: 12px; }
    .open-pill, .mode-pill { font-size: 11px; }
    .special-copy small { font-size: 10px; }
    .special-copy b { font-size: 14px; }
    .special-copy em { font-size: 12.5px; }

    /* Menu */
    .cat-nav a { font-size: 13px; }
    .chip { font-size: 12px; padding: 6px 12px; }
    .block-head h2 { font-size: 18px; }
    .block-head span { font-size: 11.5px; }
    .category-title { font-size: 16px; }
    .best-card strong { font-size: 12.5px; }
    .best-foot b { font-size: 13px; }
    .item h3 { font-size: 14.5px; }
    .item p { font-size: 12px; }
    .price { font-size: 14.5px; }
    .add-btn { font-size: 12px; padding: 5px 13px; }
    .tag { font-size: 10px; }
    .prep, .customisable { font-size: 11px; }
    .cart-bar { font-size: 13.5px; padding: 13px 16px; }

    /* Dish sheet */
    .sheet-photo { height: 200px; }
    .sheet-body h3 { font-size: 19px; }
    .sheet-price { font-size: 16px; }
    .sheet-body p { font-size: 13px; }
    .sheet h4 { font-size: 14px; }
    .pill-opt span { font-size: 12.5px; padding: 7px 12px; }

    /* Cart, checkout, bills */
    .cart-box-head h2 { font-size: 16px; }
    .cart-line-info strong { font-size: 13px; }
    .cart-line-info small { font-size: 11.5px; }
    .cart-line-info b, .checkout-summary .cart-line > b { font-size: 13px; }
    .bill-row { font-size: 13.5px; }
    .bill-total { font-size: 15.5px; }
    .seg button { font-size: 13.5px; padding: 10px; }
    .dine-card { padding: 14px; gap: 12px; }
    .dine-card strong { font-size: 15px; }
    .dine-card small { font-size: 10.5px; }
    .dine-card span:not(.dine-icon) { font-size: 12.5px; }
    .dine-icon { width: 40px; height: 40px; font-size: 19px; }
    .choice b { font-size: 14px; }
    .choice small { font-size: 12px; }
    .table-opt b { font-size: 13px; }
    .contact-row { font-size: 13.5px; }
    .checkout-hint, .pay-note { font-size: 12px; }

    /* Inner pages */
    .page-title { margin-bottom: 16px; }
    .page-title h1 { font-size: 21px; }
    .page-title p { font-size: 13px; }
    .back-link { font-size: 13.5px; }
    .card { padding: 16px; border-radius: 18px; }
    .card-title { font-size: 15px; }
    .empty-state h3 { font-size: 16px; }
    .empty-state p { font-size: 13px; }
    .empty-state span { font-size: 44px; }

    /* Order tracking */
    .track-hero { gap: 12px; padding: 14px; border-radius: 18px; }
    .track-hero small { font-size: 11.5px; }
    .track-hero strong { font-size: 17px; }
    .track-icon { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
    .timeline li { padding-bottom: 16px; }
    .timeline .dot { width: 32px; height: 32px; font-size: 14px; }
    .timeline li::before { left: 15px; top: 32px; }
    .timeline-text { padding-top: 5px; }
    .timeline-text b { font-size: 13.5px; }
    .timeline-text small { font-size: 11.5px; }
    .service-btn { font-size: 14px; padding: 13px; }
    .order-note { font-size: 12.5px; }

    /* Orders list */
    .order-row-body strong { font-size: 14px; }
    .order-row-body small { font-size: 11.5px; }
    .order-row-end b { font-size: 14px; }

    /* Booking page */
    .facts li { font-size: 13.5px; }

    /* Account */
    .profile-card { gap: 12px; }
    .profile-card .avatar { width: 56px; height: 56px; font-size: 21px; }
    .profile-card h1 { font-size: 18px; }
    .profile-id small { font-size: 12.5px; }
    .profile-stats b { font-size: 16px; }
    .profile-stats small { font-size: 11px; }
    .fav-chip { font-size: 12px; }
    .menu-list { padding: 2px 16px; }
    .menu-list > * { padding: 12px 0; font-size: 14px; }
    .menu-list a { flex-wrap: nowrap; }
    .menu-list a b { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; text-align: right; }
    .menu-list > * > :not(b):not(i) { white-space: nowrap; }

    /* Login / details */
    .auth-art h1 { font-size: 23px; }
    .auth-art p { font-size: 13px; }
    .brand-mark-lg { width: 46px; height: 46px; font-size: 22px; margin-bottom: 12px; }
    .otp-input { font-size: 21px; }

    /* Footer: shorter, two link columns side by side */
    .site-footer { font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-top: 24px; padding-bottom: 20px; }
    .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
    .footer-name b { font-size: 16px; }
    .footer-col h2 { font-size: 11px; margin-bottom: 8px; }
    .footer-meta span { font-size: 11px; }
    .footer-bar { font-size: 12px; }

    /* Tab bar */
    .tab-bar a { font-size: 10.5px; }
    .tab-bar a i { font-size: 19px; }
}
.service-btn.pay-online-btn i { font-size: inherit; }

/* ==== Look: type scale, motion, and shared polish (keep last) ==== */
.hero h1 { font-size: clamp(38px, 4.2vw, 56px); line-height: 1.02; }
.branch-card-name, .track-hero strong, .auth-art h1, .page-title h1, .profile-card h1 { font-family: var(--font-display); }
.chip { font-size: 14px; }
.tag, .prep, .price small, .special-copy small, .offer-badge span { font-size: 12px; }
.hero h1 span { font-weight: 680; }
.page-title h1 { font-size: 34px; line-height: 1.08; }
.page-title p { font-size: 15.5px; margin-top: 6px; }
.block-head h2 { font-size: 24px; letter-spacing: -.02em; }
.category-title { font-size: 22px; }
.item h3 { font-size: 17px; }
.item p { font-size: 14px; line-height: 1.45; }
.best-card strong { font-size: 15px; }
.card { transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.btn, .add-btn, .add-round, .chip, .choice, .service-btn, .cart-btn, .user-btn, .nav-links a {
    transition: transform .18s var(--ease), background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active, .add-btn:active, .add-round:active, .chip:active, .choice:active { transform: scale(.97); }
.add-round:hover, .add-btn:hover { box-shadow: 0 8px 16px rgba(15, 58, 43, .12); }
.thumb img, .best-thumb img, .sheet-photo img, .branch-photo, .order-thumb img {
    transition: transform .55s var(--ease);
}
.item:hover .thumb img,
.best-card:hover .best-thumb img,
.order-row:hover .order-thumb img { transform: scale(1.06); }
.input:focus, .search:focus-within {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(19, 138, 74, .12);
}
.search:focus-within { box-shadow: 0 8px 20px rgba(0, 0, 0, .12), 0 0 0 4px rgba(255, 194, 14, .45); }
.nav-badge, .tab-badge { transform-origin: center; }
.cart-btn.is-bump, .tab-bar a.is-bump { animation: bump .42s var(--ease); }
.cart-btn.is-bump .nav-badge { animation: badgePop .42s var(--ease); }

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .7s var(--ease) both; }
    .hero-copy > *:nth-child(2) { animation-delay: .08s; }
    .hero-copy > *:nth-child(3) { animation-delay: .14s; }
    .hero-copy > *:nth-child(4) { animation-delay: .2s; }
    .branch-card { animation: rise .75s var(--ease) .12s both; }
    .best-card { animation: rise .55s var(--ease) both; }
    .best-card:nth-child(2) { animation-delay: .06s; }
    .best-card:nth-child(3) { animation-delay: .12s; }
    .best-card:nth-child(4) { animation-delay: .18s; }
    .page-title, .auth-split, .profile-card, .track-hero { animation: rise .55s var(--ease) both; }
    .page > .card, .checkout > .card, .order-row { animation: rise .5s var(--ease) both; }
    .page > .card:nth-child(2) { animation-delay: .06s; }
    .page > .card:nth-child(3) { animation-delay: .1s; }
    .page > .card:nth-child(4) { animation-delay: .14s; }
    .cart-empty-icon::before { animation: spin 14s linear infinite; }
    .auth-plate { animation: floaty 4.5s ease-in-out infinite; }
    .tab-bar a.active i { animation: tabIn .35s var(--ease); }
    .tracker li.current .dot, .timeline li.current .dot { animation: pulse 1.8s ease-in-out infinite; }
}

@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes bump { 40% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes badgePop { 40% { transform: scale(1.35); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@keyframes tabIn { from { transform: translateY(4px); } to { transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 194, 14, .18); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Tablet: one step between the desktop and phone scales */
@media (max-width: 1100px) and (min-width: 721px) {
    body { font-size: 15.5px; }
    .hero { padding: 32px 0 40px; }
    .hero h1 { font-size: clamp(34px, 4.6vw, 46px); }
    .hero-sub { font-size: 15px; }
    .hero-kicker { font-size: 12px; }
    .page-title h1 { font-size: 30px; }
    .page-title p { font-size: 15px; }
    .block-head h2 { font-size: 22px; }
    .category-title { font-size: 20px; }
    .item h3 { font-size: 16.5px; }
    .item p { font-size: 14px; }
    .best-card strong { font-size: 14.5px; }
    .branch-card-name { font-size: 22px; }
    .auth-art h1 { font-size: 30px; }
    .card-title { font-size: 17px; }
    .footer-name b { font-size: 17px; }
    .nav-links a { font-size: 14px; }
}

/* Phone: readable floor. Body 15px, labels never under 12px, inputs stay 16px so iOS does not zoom. */
@media (max-width: 720px) {
    body { font-size: 15px; }
    .hero { padding: 14px 0 16px; }
    .hero-inner { gap: 12px; }
    .hero h1 { font-size: 26px; line-height: 1.08; margin-bottom: 6px; letter-spacing: -.02em; }
    .hero h1 span { display: block; }
    .hero-kicker { margin-bottom: 6px; font-size: 11px; letter-spacing: .12em; gap: 8px; }
    .hero-kicker span { width: 22px; }
    .hero-sub { font-size: 13px; line-height: 1.4; margin-bottom: 12px; }
    .search { height: 44px; padding: 0 14px; border-radius: 14px; }
    .branch-card { padding: 12px; border-radius: 18px; gap: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
    .branch-card-body { gap: 4px; }
    .branch-card-facts { gap: 2px; }
    .special { margin-top: 2px; padding: 6px 8px; gap: 8px; }
    .special-thumb { width: 40px; height: 40px; border-radius: 10px; }
    .search input, .input { font-size: 16px; }
    .table-chip { height: 30px; padding: 0 8px 0 3px; gap: 6px; font-size: 12px; }
    .table-chip i { width: 22px; height: 22px; font-size: 12px; }
    .branch-select { max-width: 118px; font-size: 12.5px; font-weight: 600; }
    .cat-nav a { font-size: 12.5px; padding: 5px 10px; gap: 6px; }
    .cat-nav .cat-emoji,
    .cat-nav .cat-ico,
    .cat-nav .cat-img { width: 22px; height: 22px; font-size: 12px; }
    .nav-actions .btn-sm,
    .cart-btn,
    .user-btn,
    .install-btn { width: 34px; height: 34px; }
    .nav-actions .btn-sm { width: auto; padding: 0 10px; font-size: 13px; }
    .page-title h1 { font-size: 28px; }
    .page-title p { font-size: 14.5px; }
    .block-head h2 { font-size: 21px; }
    .category-title { font-size: 19px; }
    .item h3 { font-size: 15px; }
    .item p { font-size: 13px; }
    .price, .best-foot b { font-size: 14px; }
    .best-card strong { font-size: 14.5px; }
    .tag, .prep, .customisable { font-size: 12px; }
    .chip { font-size: 13.5px; }
    :root { --header-h: 92px; }
    .site-header .nav { padding-top: 8px; padding-bottom: 8px; gap: 6px 8px; }
    .cart-bar { font-size: 15px; }
    .tab-bar a { font-size: 12px; }
    .tab-bar a i { font-size: 20px; }
    .branch-card-name { font-family: var(--font-head); font-size: 17px; letter-spacing: -.02em; }
    .branch-card-facts { font-size: 12.5px; }
    .open-pill, .mode-pill { font-size: 11px; padding: 2px 8px; }
    .open-pill, .mode-pill { font-size: 12px; }
    .special-copy small { font-size: 12px; }
    .special-copy b { font-size: 15px; }
    .dine-card small { font-size: 12px; }
    main:has(.auth-split) {
        display: flex;
        align-items: center;
        min-height: calc(100dvh - var(--header-h));
    }
    .page:has(.auth-split) { width: 100%; padding-top: 8px; padding-bottom: 16px; }
    .auth-split { border-radius: 20px; box-shadow: 0 14px 32px rgba(15, 58, 43, .12); }
    .auth-art { padding: 18px 16px 14px; }
    .auth-art h1 { font-size: 24px; }
    .auth-art p { font-size: 13.5px; margin-top: 6px; }
    .brand-mark-lg { width: 42px; height: 42px; margin-bottom: 10px; font-size: 20px; border-radius: 14px; }
    .auth-card { padding: 16px 16px 18px; }
    /* Keep the footer above the fixed tab bar on short screens such as login */
    body { padding-bottom: 0; }
    body.has-cart { padding-bottom: 0; }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    body.has-cart .site-footer { padding-bottom: calc(148px + env(safe-area-inset-bottom)); }
    .field-label { font-size: 13px; margin-top: 12px; }
    .field-hint, .otp-sent { font-size: 12.5px; }
    .btn-lg { font-size: 15px; padding: 11px 16px; }
    .auth-switch, .user-dropdown a, .user-dropdown button { font-size: 13.5px; }
    .profile-card h1 { font-size: 22px; }
    .track-hero strong { font-size: 24px; }
    .sheet-body h3 { font-size: 22px; }
    .sheet-body p { font-size: 14.5px; }
    .empty-state h3 { font-size: 18px; }
    .empty-state p { font-size: 14.5px; }
    .footer-name b { font-size: 17px; }
    .site-footer { font-size: 14px; }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 24px; }
    .page-title h1 { font-size: 26px; }
    .profile-card h1 { font-size: 20px; }
    .auth-art h1 { font-size: 22px; }
    .auth-art p { font-size: 13px; }
    .track-hero strong { font-size: 22px; }
    .sheet-body h3 { font-size: 20px; }
    .block-head h2 { font-size: 20px; }
    .category-title { font-size: 18px; }
    .item h3 { font-size: 14.5px; }
    .item p { font-size: 12.5px; }
    .price, .best-foot b { font-size: 13.5px; }
    .add-btn { font-size: 12px; }
    .best-card strong { font-size: 13.5px; }
    .branch-card-name { font-size: 16px; }
    .btn { font-size: 14px; }
    .btn-lg { font-size: 14.5px; }
    .field-label { font-size: 13px; }
    .timeline-text b, .order-row-body strong { font-size: 15px; }
    .tab-bar a { font-size: 12px; }
    .block-head span { font-size: 12.5px; }
    .footer-col h2, .footer-meta span, .footer-bar { font-size: 12px; }
}

/* Download receipt */
.btn-outline { background: var(--white); border-color: var(--green-600); color: var(--green-700); }
.btn-outline:hover { background: var(--green-50); }
