﻿/* ==================================================================
   BITE EXPRESS — Customer front-end styles
   Premium UK food-delivery ordering experience (Just Eat style pattern)
   Lightweight animations: transform/opacity only (no layout thrash)
   ================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand: #e4002b;
    --brand-dark: #b30020;
    --accent: #ffc72c;
    --ink: #1b1816;
    --ink-solid: #14110f;
    --soft: #fff3f4;
    --line: #ece7e2;
    --line-soft: #f3efec;
    --muted: #6f6a66;
    --card: #ffffff;
    --bg: #fbf9f7;
    --field: #ffffff;
    --field-hover: #faf7f5;
    --chip-bg: #fff;
    --green: #15803d;
    --radius: 18px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(23, 20, 18, .06);
    --shadow: 0 14px 34px rgba(23, 20, 18, .10);
    --shadow-lg: 0 26px 64px rgba(23, 20, 18, .22);
    --glass-bg: rgba(255, 255, 255, .92);
    --glass-brd: rgba(23, 20, 18, .06);
    --glass-strong: rgba(255, 255, 255, .96);
    --brand-soft: rgba(228, 0, 43, .08);
    --focus: rgba(228, 0, 43, .28);
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
    --ink: #f0edea;
    --soft: #241a1c;
    --line: #34302d;
    --line-soft: #2b2826;
    --muted: #a49e99;
    --card: #1f1d1b;
    --bg: #141210;
    --field: #262321;
    --field-hover: #2d2a27;
    --chip-bg: #2d2927;
    --green: #4ade80;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .32);
    --shadow: 0 14px 34px rgba(0, 0, 0, .46);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, .6);
    --glass-bg: rgba(31, 29, 27, .92);
    --glass-brd: rgba(255, 255, 255, .08);
    --glass-strong: rgba(31, 29, 27, .97);
    --brand-soft: rgba(228, 0, 43, .18);
    --focus: rgba(255, 199, 44, .35);
    color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}

/* Subtle ambient warmth */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 460px at 90% -8%, var(--brand-soft), transparent 62%),
        radial-gradient(760px 420px at -8% 12%, rgba(255, 199, 44, .14), transparent 60%);
}

.delivery-free-only { display: none; }
.delivery-fee-only { display: inline; }
body.svc-collection .delivery-free-only { display: inline; }
body.svc-collection .delivery-fee-only { display: none; }

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1340px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: .92rem;
    border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease,
        background .2s ease, color .2s ease, border-color .2s ease;
    will-change: transform; text-align: center; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(228, 0, 43, .3); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(228, 0, 43, .38); }
.btn-gold { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px rgba(255, 199, 44, .32); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(255, 255, 255, .6); }
.btn-outline:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }
.btn-outline-ink { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 38%, transparent); }
.btn-outline-ink:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .83rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Announcement bar ---------- */
.announce-bar {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand) 45%, var(--brand-dark));
    color: #fff; font-size: .84rem; font-weight: 600; overflow: hidden;
    padding: 8px 0; letter-spacing: .01em; position: relative; z-index: 70;
}
.announce-track { overflow: hidden; white-space: nowrap; width: 100%; }
.announce-inner { display: inline-flex; align-items: center; gap: 64px; padding-left: 100%; animation: announceScroll 26s linear infinite; will-change: transform; }
.announce-bar:hover .announce-inner { animation-play-state: paused; }
.a-msg { display: inline-flex; align-items: center; gap: 8px; }
.a-msg .ic { color: var(--accent); }
@keyframes announceScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--glass-strong);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, background .25s ease, transform .3s ease;
}
.site-header.header-hidden { transform: translateY(-105%); }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(23, 20, 18, .10); }
.navbar { display: flex; align-items: center; gap: 12px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand .brand-logo {
    width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; font-weight: 900; font-size: 1.1rem; letter-spacing: .03em;
    display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(228, 0, 43, .32);
}
.brand-img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.18rem; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.brand-name small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
    padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink);
    transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--soft); color: var(--brand); }

/* Header search (menu pages) */
.header-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--field); border: 1.5px solid var(--line); border-radius: 999px;
    padding: 2px 6px 2px 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    flex: 0 1 260px; max-width: 300px;
}
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.header-search .hs-icon { color: var(--muted); display: grid; place-items: center; }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .86rem; padding: 9px 0; background: transparent; color: var(--ink); }
.header-search .hs-clear { border: 0; background: none; color: var(--muted); display: none; padding: 8px; border-radius: 50%; transition: background .15s ease; }
.header-search.has-text .hs-clear { display: grid; place-items: center; }
.header-search .hs-clear:hover { background: var(--soft); color: var(--brand); }

.cart-pill {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem;
    padding: 10px 16px; border-radius: 999px;
    box-shadow: 0 8px 20px rgba(228, 0, 43, .3);
    transition: transform .15s ease, background .2s ease;
}
.cart-pill:hover { background: var(--brand-dark); transform: translateY(-2px); }
.cart-pill.bump { animation: cartBump .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cartBump { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
.count-badge {
    background: #fff; color: var(--brand); font-weight: 800; font-size: .76rem;
    min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px;
}

.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-holder { padding-top: 14px; }
.flash-holder .container { position: relative; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 4px; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.btn-close { float: right; border: 0; background: none; font-size: 1rem; opacity: .5; }
.btn-close:hover { opacity: 1; }

/* ---------- Icons ---------- */
.ic { vertical-align: -0.22em; display: inline-block; flex: 0 0 auto; }
.ic-wrap { display: inline-flex; align-items: center; justify-content: center; }
.cat-emoji { line-height: 1; }

/* ---------- Hero slider (cover band) ---------- */
.hero { position: relative; overflow: hidden; width: 100%; margin: 0; min-height: var(--hero-h, 400px); background: var(--ink-solid); }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; transition: opacity .8s ease, transform .8s ease;
    transform: scale(1.04); will-change: opacity, transform;
}
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-slide.has-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-image: var(--hero-bg-light);
}
@media (min-width: 1025px) {
    .hero-slide.has-img { background-attachment: fixed; }
}
html[data-theme="dark"] .hero-slide.has-img { background-image: var(--hero-bg-dark, var(--hero-bg-light)); }
.hero-slide.no-img { background: linear-gradient(120deg, var(--brand), var(--brand-dark) 55%, color-mix(in srgb, var(--brand-dark) 40%, #000)); }
.hero-slide.has-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at var(--hpos, 0%) 50%, rgba(10,10,10,.68) 0%, rgba(10,10,10,.4) 38%, rgba(10,10,10,.16) 72%, transparent 100%); }
.hero-slide.img-only.has-img::after { display: none; }
.hero-slide.img-only.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, .28) 100%); pointer-events: none; }
.hero-slide.img-only .hero-inner { display: none; }
.hero-slide.fit-full.has-img { background-size: 100% auto; }
.hero-slide.fit-stretch.has-img { background-size: 100% 100%; }
.hero-slide.pos-left.has-img { background-position-x: left; }
.hero-slide.pos-right.has-img { background-position-x: right; }
.hero-slide.vpos-top.has-img { background-position-y: top; }
.hero-slide.vpos-bottom.has-img { background-position-y: bottom; }
.hero-slide.ta-center .hero-inner { margin: 0 auto; text-align: center; }
.hero-slide.ta-right .hero-inner { margin-left: auto; margin-right: 0; text-align: right; }
.hero-slide.ta-right .hero-sub { margin-left: auto; }
.hero-slide.ta-right .hero-cta, .hero-slide.ta-center .hero-cta { justify-content: flex-end; }
.hero-slide.ta-center .hero-sub, .hero-slide.ta-center .hero-cta { margin-left: auto; margin-right: auto; }
.hero-slide.ta-center .hero-cta { justify-content: center; }
.hero-slide.clickable { cursor: pointer; }
.hero-slide .slide-link { position: absolute; inset: 0; z-index: 4; display: block; }
@media (max-width: 860px) {
    .hero-slide.fit-full.has-img, .hero-slide.fit-stretch.has-img { background-size: cover; }
}

.hero-inner { position: relative; z-index: 3; max-width: 620px; padding: 60px 0; margin: 0; left: var(--hpos, 0%); transform: translateX(calc(var(--hpos, 0%) * -1)); }
.hero-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand); color: #fff; font-weight: 700; font-size: .76rem;
    padding: 6px 14px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.hero-title .hl { color: var(--brand); }
.hero-sub { color: rgba(255, 255, 255, .92); font-size: clamp(.98rem, 2vw, 1.15rem); margin: 14px 0 24px; max-width: 460px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-gold { background: var(--brand); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 35%, transparent); }
.hero .btn-gold:hover { background: var(--brand-dark); filter: brightness(1.08); }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.hero.hero-text-light .hero-inner { color: var(--ink); }
.hero.hero-text-light .hero-title { color: var(--ink); text-shadow: 0 2px 14px rgba(255, 255, 255, .55); }
.hero.hero-text-light .hero-title .hl { color: var(--brand); }
.hero.hero-text-light .hero-sub { color: var(--ink); opacity: .86; text-shadow: 0 2px 10px rgba(255, 255, 255, .55); }
.hero.hero-text-light .hero-chip { background: var(--brand); color: #fff; }
.hero.hero-text-light .hero-cta .btn-gold { box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 28%, transparent); }
.hero.hero-text-light .hero-cta .btn-outline { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero.hero-text-light .hero-cta .btn-outline:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.hero.hero-text-light .hero-slide.has-img::after { background: radial-gradient(ellipse at var(--hpos, 0%) 50%, rgba(255, 255, 255, .68) 0%, rgba(255, 255, 255, .4) 42%, rgba(255, 255, 255, .12) 75%, transparent 100%); }

.hero-floater { position: absolute; z-index: 1; font-size: 2.4rem; opacity: .9; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.hero-floater.f1 { top: 16%; left: 6%; }
.hero-floater.f2 { top: 62%; left: 12%; font-size: 1.9rem; animation-delay: 1.1s; }
.hero-floater.f3 { top: 14%; right: 9%; animation-delay: 2s; }
.hero-floater.f4 { top: 64%; right: 14%; font-size: 2rem; animation-delay: .6s; }
.hero-floater.f5 { bottom: 6%; left: 42%; font-size: 1.8rem; animation-delay: 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(4deg); } }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.4rem;
    display: grid; place-items: center; backdrop-filter: blur(4px);
    transition: background .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: var(--accent); color: var(--ink); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); transition: width .2s ease, background .2s ease; }
.hero-dot.active { width: 24px; background: var(--accent); }

/* ---------- 4K & large-screen hero scaling ---------- */
@media (min-width: 1920px) {
    .hero { min-height: max(var(--hero-h, 480px), 420px); }
    .hero-floater { font-size: 2.8rem; }
    .hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); }
    .hero-inner { padding: 80px 0; }
}
@media (min-width: 2560px) {
    .hero { min-height: max(var(--hero-h, 560px), 520px); }
    .hero-title { font-size: clamp(2.6rem, 7vw, 4.8rem); }
}

/* ---------- Restaurant information hero ---------- */
.resto-hero { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.resto-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 240px at 12% -40%, var(--brand-soft), transparent 70%),
        radial-gradient(520px 220px at 96% -30%, rgba(255, 199, 44, .20), transparent 70%);
}
.resto-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px 0 24px; position: relative; }

.resto-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.resto-name { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.02em; }

.resto-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; color: var(--green); background: rgba(21, 128, 61, .10); border: 1px solid rgba(21, 128, 61, .22); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.resto-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(21, 128, 61, .16); }

.resto-tagline { color: var(--muted); font-size: .98rem; margin-top: 4px; max-width: 620px; }

.resto-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.resto-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.resto-meta .ic { color: var(--brand); }
.resto-meta .muted-text { color: var(--muted); font-weight: 500; }

.resto-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.resto-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--card);
    border: 1px solid var(--line); transition: border-color .18s ease, color .18s ease, transform .15s ease;
}
.resto-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.resto-chip .ic { color: var(--brand); }

/* Delivery / Collection toggle */
.resto-aside { display: flex; flex-direction: column; gap: 14px; min-width: 260px; }
.svc-toggle {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
    background: var(--line-soft); border: 1px solid var(--line); border-radius: 999px;
}
.svc-btn {
    border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .86rem;
    padding: 9px 16px; border-radius: 999px; transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.svc-btn .ic { width: 15px; height: 15px; }
.svc-btn.active { background: var(--card); color: var(--brand); box-shadow: var(--shadow-sm); }
.resto-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px;
}
.resto-stat { padding: 6px 4px; }
.resto-stat .stat-label { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.resto-stat .stat-value { display: block; font-size: .92rem; font-weight: 800; color: var(--ink); margin-top: 2px; }
.resto-stat .stat-value.free { color: var(--green); }
.resto-note { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); border-top: 1px dashed var(--line); padding: 8px 4px 0; text-align: center; }

/* ---------- Category chips (sticky) ---------- */
.chips {
    position: sticky; top: 68px; z-index: 40;
    background: var(--glass-strong);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid var(--line);
    transition: top .3s ease;
}
body.hdr-collapsed .chips { top: 0; }
.chips-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.chips-row {
    display: flex; gap: 10px; overflow-x: auto; padding: 13px 0; scrollbar-width: none;
    min-width: 0; margin: 0;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .86rem;
    background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease;
    white-space: nowrap;
}
.chip:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(228, 0, 43, .26); }
.chip .ic { width: 15px; height: 15px; }
.chip .chip-count { font-size: .7rem; opacity: .78; font-weight: 700; background: rgba(0, 0, 0, .08); border-radius: 999px; padding: 1px 7px; }
.chip.active .chip-count { background: rgba(255, 255, 255, .22); }

/* Chips arrows */
.chips-arrow {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
    background: var(--card); color: var(--ink); font-size: 1.3rem; font-weight: 700;
    box-shadow: 0 2px 12px rgba(0,0,0,.12); cursor: pointer;
    display: grid; place-items: center; line-height: 1;
    transition: background .15s, color .15s, box-shadow .15s, transform .1s;
}
.chips-arrow:hover { background: var(--brand); color: #fff; box-shadow: 0 4px 16px rgba(228,0,43,.3); }
.chips-arrow:active { transform: scale(.9); }
.chips-arrow[hidden] { display: none; }

/* ---------- Chips All panel (vertical dropdown, positioned under All chip) ---------- */
.chips-all-panel {
    position: absolute; top: 100%; z-index: 50; transform-origin: top left;
    width: auto; min-width: 280px; max-width: min(420px, calc(100vw - 44px));
    margin-top: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 14px 44px rgba(0,0,0,.16); padding: 8px;
    max-height: min(60vh, 420px); overflow-y: auto;
    transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1), visibility .22s;
}
.chips-all-panel[hidden] { display: block !important; opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none; visibility: hidden; }
.chips-all-panel:not([hidden]) { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.ap-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 14px; text-decoration: none;
    color: var(--ink); font-weight: 600; font-size: .9rem;
    transition: background .15s, color .15s, opacity .28s ease, transform .28s ease;
}
.chips-all-panel[hidden] .ap-item { opacity: 0; transform: translateY(6px); transition-delay: 0s !important; }
.ap-item:hover { background: var(--brand-soft); color: var(--brand); }
.ap-icon { width: 24px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ap-icon .ic { width: 18px; height: 18px; }
.ap-name { flex: 1; }
.ap-count { font-size: .78rem; font-weight: 700; color: var(--muted); }
.ap-item + .ap-item { border-top: 1px solid var(--line-soft); }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-soft { background: linear-gradient(180deg, var(--soft), transparent 90%); }
main.section, section.section, .contact-band { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-dark { background: var(--ink-solid); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-eyebrow { color: var(--brand); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; text-transform: uppercase; }
.section-sub { color: var(--muted); font-size: .93rem; margin-top: 5px; }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255, 255, 255, .72); }

/* ---------- Menu layout (main + sticky basket) ---------- */
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; margin-top: 26px; }
.menu-main { min-width: 0; }
.menu-side { position: sticky; top: 96px; min-width: 0; }

/* Search */
.search-wrap { margin-bottom: 22px; }
.search-bar {
    display: flex; align-items: center; gap: 10px;
    background: var(--field); border: 2px solid var(--line); border-radius: 16px; padding: 4px 10px 4px 18px;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-sm);
}
.search-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-bar .s-icon { color: var(--muted); display: grid; place-items: center; }
.search-bar input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 12px 0; background: transparent; color: var(--ink); }
.search-bar input::placeholder { color: var(--muted); opacity: .8; }
.search-bar .s-clear { background: none; border: 0; color: var(--muted); display: none; padding: 9px; border-radius: 50%; transition: background .15s ease, color .15s ease; }
.search-bar.has-text .s-clear { display: grid; place-items: center; }
.search-bar .s-clear:hover { background: var(--soft); color: var(--brand); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 24px; }

/* ---------- Product card (horizontal, premium) ---------- */
.card {
    position: relative; display: flex; flex-direction: row; align-items: stretch;
    background: var(--card); border-radius: var(--radius-sm);
    border: 1px solid var(--line); overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
    will-change: transform;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
.card-body { flex: 1; min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.card-title { font-size: 1.02rem; font-weight: 800; margin: 0; }
.card-desc { color: var(--muted); font-size: .82rem; line-height: 1.5; margin: 0; }
.card-desc.no-min { min-height: 0; }
.card-review { font-size: .75rem; color: #a16207; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.card-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.card-foot .card-price { margin-right: 6px; }
.card-price { font-size: 1.12rem; font-weight: 800; color: var(--brand); }
.card-price small { font-weight: 600; color: var(--muted); font-size: .78rem; }

.btn-add {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand); color: #fff; border: 0; border-radius: 999px;
    padding: 9px 16px; font-weight: 700; font-size: .84rem;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 16px rgba(228, 0, 43, .26);
    position: relative; overflow: hidden; flex: 0 0 auto;
}
.btn-add:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-add:active { transform: scale(.94); }
.btn-add::before {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg); transition: left .45s ease;
}
.btn-add:hover::before { left: 130%; }
.btn-add.btn-added { background: var(--green) !important; animation: popIn .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes popIn { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

.card-img { position: relative; width: 168px; aspect-ratio: 1; background: var(--line-soft); overflow: hidden; flex: 0 0 auto; }
.card-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.03); }

.badge-like, .badge-hot, .badge-custom {
    position: absolute; z-index: 2; font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.badge-like { top: 8px; left: 8px; background: rgba(20, 17, 15, .72); color: #fff; }
.badge-hot { top: 8px; right: 8px; background: var(--accent); color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.badge-custom { bottom: 8px; left: 8px; background: rgba(20, 17, 15, .78); color: var(--accent); }
.badge-loyalty { top: 8px; right: 8px; background: #7a3b11; color: #ffdbab; box-shadow: 0 4px 12px rgba(122, 59, 17, .35); }
.badge-liked { bottom: 8px; right: 8px; background: linear-gradient(90deg, #f1652f, #ffb347); color: #fff; box-shadow: 0 4px 12px rgba(241, 101, 47, .35); }

/* Loyalty chips + notes on product cards / modal */
.card-loyalty-chip {
    display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800;
    color: #7a3b11; background: #fff3e0; border: 1px solid #f6c9a8; border-radius: 999px; padding: 3px 10px;
}
.card-loyalty-note, .pm-loyalty-note {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; color: #7a3b11; background: #fff7ec; border: 1px solid #f6c9a8;
    border-radius: 8px; padding: 5px 9px; margin-bottom: 8px;
}
.pm-loyalty-note { font-size: .82rem; margin-bottom: 10px; }
html[data-theme="dark"] .badge-loyalty { background: #5a2c0d; color: #ffdbab; }
html[data-theme="dark"] .card-loyalty-note, html[data-theme="dark"] .pm-loyalty-note { color: #ffd7a8; background: #3a2412; border-color: #6b4317; }

/* Variant picker */
.variant-picker { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.variant-radios { display: flex; flex-direction: column; gap: 6px; }
.variant-radios .opt-line { padding: 7px 10px; margin-bottom: 0; }
.variant-radios .opt-name { font-size: .85rem; }
.variant-radios .opt-price { font-size: .83rem; }
.variant-select {
    width: 100%; padding: 8px 11px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .84rem; background: var(--field); color: var(--ink);
}
.variant-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.variant-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Deals carousel (vertical cards) */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card { flex: 0 0 260px; scroll-snap-align: start; flex-direction: column; }
.carousel-track .card .card-img { width: 100%; aspect-ratio: 4 / 3; order: -1; }
.carousel-arrow {
    position: absolute; top: 45%; transform: translateY(-50%); z-index: 5;
    width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: var(--card); color: var(--ink); font-size: 1.3rem; font-weight: 700;
    box-shadow: var(--shadow); display: grid; place-items: center;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.carousel-arrow.prev { left: 2px; }
.carousel-arrow.next { right: 2px; }
.carousel-arrow:hover { background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.05); }

/* ---------- Sticky basket panel (desktop) ---------- */
.basket-panel {
    position: sticky; top: 156px; max-height: calc(100vh - 184px); overflow: hidden;
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bp-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.bp-head h3 .ic { color: var(--brand); }
.bp-count-badge { background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px; }
.bp-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px; }
.bp-empty { text-align: center; padding: 26px 8px 22px; }
.bp-empty .bp-empty-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.bp-empty h4 { font-size: .98rem; margin-bottom: 4px; }
.bp-empty p { color: var(--muted); font-size: .82rem; }
.bp-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.bp-item:last-child { border-bottom: 0; }
.bp-img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; background: var(--line-soft); flex: 0 0 auto; }
.bp-info { flex: 1; min-width: 0; }
.bp-name { font-weight: 700; font-size: .86rem; line-height: 1.3; word-break: break-word; }
.bp-opt { font-size: .74rem; color: var(--muted); }
.bp-ctl { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.bp-ctl button {
    width: 25px; height: 25px; border: 0; border-radius: 8px; background: var(--soft);
    color: var(--brand); font-size: .95rem; font-weight: 800; line-height: 1; display: grid; place-items: center;
    transition: background .2s ease, color .2s ease;
}
.bp-ctl button:hover { background: var(--brand); color: #fff; }
.bp-qnum { min-width: 20px; text-align: center; font-weight: 800; font-size: .86rem; }
.bp-line { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.bp-price { font-weight: 800; font-size: .88rem; color: var(--brand); }
.bp-remove { width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1rem; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.bp-remove:hover { background: rgba(228, 0, 43, .12); color: var(--brand); }
.bp-foot { border-top: 1px solid var(--line); padding: 14px 18px; background: var(--card); }
.bp-sum { display: flex; justify-content: space-between; font-size: .88rem; padding: 2px 0; color: var(--ink); }
.bp-sum b { font-weight: 700; }
.bp-sum .delivery-free { color: var(--green); }
.bp-total { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 1.1rem; margin: 10px 0 14px; }
.bp-total span:last-child { color: var(--brand); }
.bp-foot .btn { width: 100%; }
.bp-foot .btn + .btn { margin-top: 9px; }
.bp-foot[hidden] { display: none; }
.bp-hint { font-size: .74rem; color: var(--muted); text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bp-item { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.bp-item:last-child { border-bottom: 0; }
.bp-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--line-soft); flex: 0 0 auto; }
.bp-info { flex: 1; min-width: 0; }
.bp-name { font-weight: 700; font-size: .87rem; line-height: 1.3; word-break: break-word; }
.bp-var, .bp-opt { font-size: .74rem; color: var(--muted); }
.bp-price { font-weight: 800; font-size: .85rem; color: var(--brand); margin-top: 2px; }
.bp-qty { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.bp-qty .qty-ctl { width: 24px; height: 24px; border: 0; border-radius: 7px; background: var(--line-soft); color: var(--brand); font-size: .95rem; font-weight: 800; line-height: 1; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.bp-qty .qty-ctl:hover { background: var(--brand); color: #fff; }
.bp-qnum { min-width: 18px; text-align: center; font-weight: 800; font-size: .88rem; }
.bp-remove { width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 1rem; flex: 0 0 auto; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.bp-remove:hover { background: rgba(228, 0, 43, .12); color: var(--brand); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-item {
    background: var(--card); border-radius: var(--radius-sm); padding: 24px 20px; text-align: center;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease;
}
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-icon { width: 58px; height: 58px; margin: 0 auto 13px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; font-size: 1.6rem; }
.why-title { font-weight: 800; font-size: .98rem; margin-bottom: 4px; }
.why-text { color: var(--muted); font-size: .83rem; }

/* ---------- Testimonials ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review-card {
    background: var(--card); border-radius: var(--radius-sm); padding: 22px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
    transition: transform .2s ease, box-shadow .25s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-quote { color: var(--brand); font-size: 2.1rem; font-weight: 900; line-height: .6; margin-bottom: 12px; opacity: .85; }
.review-text { color: var(--ink); font-size: .9rem; margin-bottom: 15px; }
.review-stars { color: var(--accent); letter-spacing: 2px; font-size: .92rem; margin-bottom: 9px; text-shadow: 0 1px 2px rgba(0,0,0,.08); }
.review-name { font-weight: 700; font-size: .9rem; }
.review-role { color: var(--muted); font-size: .76rem; }

/* ---------- Contact band ---------- */
.contact-band {
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    color: #fff; padding: 52px 0; position: relative; overflow: hidden;
}
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 2; }
.contact-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; opacity: .85; }
.contact-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; text-transform: uppercase; margin: 8px 0 10px; }
.contact-sub { opacity: .92; font-size: .96rem; margin-bottom: 20px; max-width: 520px; }
.contact-phone { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: .02em; color: #fff !important; }
.contact-meta { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; font-size: .92rem; opacity: .95; }
.contact-meta a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.contact-card {
    background: var(--glass-strong); backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    color: var(--ink); border-radius: var(--radius); padding: 24px;
    border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.contact-card h4 { font-weight: 800; margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.contact-card .cc-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.contact-card .cc-row:last-child { border-bottom: 0; }
.contact-card .cc-row b { font-weight: 700; }
.hours-open { color: var(--green); font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: #14110f; color: #c9c9cf; padding: 58px 0 0; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; padding-bottom: 38px; }
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-brand .brand-logo { box-shadow: none; }
.f-brand .brand-name { color: #fff; }
.f-about { color: #a1a1aa; font-size: .9rem; max-width: 340px; }
.f-brand-block { min-width: 0; }
.f-badges { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.f-badge { display: inline-flex; align-items: center; gap: 8px; color: #a1a1aa; font-size: .82rem; }
.f-badge .ic { color: var(--accent); }
.site-footer h4 { color: #fff; font-weight: 800; font-size: .92rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: .05em; }
.f-col a { display: block; color: #a1a1aa; font-size: .89rem; padding: 5px 0; transition: color .18s ease; }
.f-col a:hover { color: var(--accent); }
.f-col .f-row { display: flex; align-items: center; gap: 10px; color: #a1a1aa; font-size: .89rem; padding: 6px 0; }
.f-col .f-row .ic { color: var(--accent); }
.f-bottom { border-top: 1px solid #2a2623; padding: 19px 0; text-align: center; font-size: .81rem; color: #71716e; }
.f-bottom a { color: var(--accent); }
.f-safety { border-top: 1px solid #2a2623; margin-bottom: 38px; padding-top: 17px; font-size: .77rem; line-height: 1.55; color: #7c7c80; max-width: 640px; }

/* ---------- Inner pages ---------- */
.page-wrap { padding: 34px 0 90px; min-height: 62vh; }
.page-title { font-size: 1.7rem; font-weight: 900; text-transform: uppercase; }
.page-sub { color: var(--muted); margin: 5px 0 24px; }
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.cat-head .s-emoji { width: 54px; height: 54px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; font-size: 1.6rem; }

.empty-state { text-align: center; padding: 64px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .e-icon { font-size: 3rem; margin-bottom: 13px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* Cart layout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
.cart-item {
    display: flex; align-items: center; gap: 15px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px; margin-bottom: 13px; transition: box-shadow .2s ease;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item img { width: 74px; height: 74px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 800; }
.ci-variant { color: var(--muted); font-size: .82rem; }
.ci-price { color: var(--brand); font-weight: 800; margin-top: 4px; }
.ci-opt { color: var(--muted); font-size: .8rem; }
.ci-opt small { color: var(--brand); font-weight: 600; }
.qty-ctl { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-ctl button { border: 0; background: none; width: 34px; height: 34px; font-size: 1.1rem; font-weight: 700; color: var(--brand); transition: background .15s ease; }
.qty-ctl button:hover { background: var(--soft); }
.qty-ctl .qty { min-width: 34px; text-align: center; font-weight: 700; font-size: .92rem; }
.btn-remove { color: var(--muted); font-size: .8rem; font-weight: 600; }
.btn-remove:hover { color: var(--brand); text-decoration: underline; }
.loc-open { display: inline-block; margin-top: 14px; }

.summary-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; position: sticky; top: 88px; box-shadow: var(--shadow-sm);
}
.summary-card h3 { font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; text-transform: uppercase; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.sum-line b { font-weight: 700; white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.12rem; font-weight: 900; padding: 13px 0 4px; color: var(--brand); }
.free-note { background: #ecfdf5; color: #065f46; font-size: .8rem; font-weight: 600; padding: 10px 12px; border-radius: var(--radius-sm); margin-top: 10px; }

/* Checkout */
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: .87rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .92rem; background: var(--field); color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.error-text { color: var(--brand); font-size: .78rem; margin-top: 4px; }
.cod-banner { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .88rem; padding: 12px 14px; border-radius: var(--radius-sm); }
.cod-banner b { font-weight: 800; }
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
    background: var(--card); transition: border-color .15s ease, background .15s ease;
}
.pay-option:hover { border-color: var(--brand); }
.pay-option input[type="radio"] { accent-color: var(--brand); width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
.pay-option.selected, .pay-option:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.pay-option b { font-size: .9rem; }
.pay-option small { color: var(--muted); }

/* Square card payment box */
.card-pay-box {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.card-pay-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--field);
}
.card-pay-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.card-pay-title .ic { color: var(--brand); }
.card-pay-brand { display: inline-flex; gap: 5px; }
.card-pay-brand span {
    font-size: .6rem; font-weight: 800; letter-spacing: .05em;
    padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line);
    color: var(--muted); background: var(--card);
}
.card-pay-body {
    padding: 14px;
    background: linear-gradient(135deg, var(--line-soft), transparent 70%);
    border-bottom: 1px solid var(--line);
}
/* Decorative credit card */
.card-visual {
    position: relative; overflow: hidden; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
    background: linear-gradient(120deg, var(--brand), var(--brand-dark) 65%, var(--ink-solid));
    color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}
.card-visual::after {
    content: ''; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px;
    border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.card-visual-chip {
    width: 38px; height: 27px; border-radius: 6px; margin-bottom: 14px;
    background: linear-gradient(135deg, #f6d47a, #e3b94a);
}
.card-visual-num { font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 700; letter-spacing: .08em; color: #fff; white-space: nowrap; }
.card-visual-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; opacity: .85; }
.card-visual-meta span { white-space: nowrap; }
/* Square's own iframe inputs — 10px rounded, styled via inputStyles */
.card-pay-body #square-card { display: block; }
.card-pay-body #square-card iframe { border-radius: 10px; }
.card-pay-body #square-card iframe { width: 100% !important; border-radius: 10px; }
.card-pay-foot {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line);
    padding: 9px 14px;
}
.card-pay-foot .ic { color: var(--green); }

/* Order success */
.success-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 30px; box-shadow: var(--shadow-sm); }
.success-icon {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--green); color: #fff; font-size: 2.1rem; font-weight: 900;
    display: grid; place-items: center; animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1);
}
.order-no { display: inline-block; background: var(--soft); color: var(--brand); font-weight: 800; font-size: 1.02rem; padding: 10px 22px; border-radius: 999px; margin: 14px 0 16px; letter-spacing: .03em; }
.receipt { text-align: left; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 13px; }
.r-row { display: flex; justify-content: space-between; gap: 12px; font-size: .87rem; padding: 6px 0; }

/* ---------- Cart ribbon (mobile sticky bar) ---------- */
.cart-ribbon {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -12px 32px rgba(23, 20, 18, .14);
    transform: translateY(120%); transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.cart-ribbon.show { transform: translateY(0); }
.ribbon-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ribbon-info { display: flex; align-items: center; gap: 12px; }
.ribbon-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.r-count { display: block; font-weight: 700; font-size: .8rem; color: var(--muted); }
.r-total { display: block; font-weight: 900; font-size: 1.15rem; color: var(--brand); }
.ribbon-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Corner stack (basket FAB + back to top) ---------- */
.corner-stack {
    position: fixed; left: 22px; bottom: 26px; z-index: 89;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.corner-stack .backtop,
.corner-stack .fab-cart {
    position: static; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.corner-stack .backtop.show,
.corner-stack .fab-cart.show { opacity: 1; visibility: visible; transform: translateY(0); }
.corner-stack .fab-cart {
    width: 46px; height: 46px; font-size: 1.15rem;
    background: var(--brand); color: #fff;
    border-radius: 50%; border: 0; display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
}
.corner-stack .fab-cart:hover { background: var(--brand-dark); transform: translateY(0) scale(1.06); }
.corner-stack .fab-cart.pulse { animation: cartBump .5s cubic-bezier(.34, 1.56, .64, 1); }
.corner-stack .fab-cart .count-badge {
    position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--ink);
    min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px;
    font-size: .76rem; font-weight: 800;
}

/* ---------- Cart drawer (right slide-in) ---------- */
.cart-drawer { position: fixed; inset: 0; z-index: 140; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-drawer-backdrop {
    position: absolute; inset: 0; background: rgba(12, 10, 9, .5);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .25s ease;
}
.cart-drawer.open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 92vw);
    background: var(--card); border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
    transform: translateX(102%); transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cd-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.cd-head h3 .ic { color: var(--brand); }
.cd-close {
    width: 34px; height: 34px; border-radius: 50%; border: 0; flex: 0 0 auto;
    background: var(--line-soft); color: var(--ink); font-size: 1.2rem; line-height: 1;
    display: grid; place-items: center;
    transition: background .2s ease, color .2s ease, transform .18s ease;
}
.cd-close:hover { background: var(--brand); color: #fff; transform: rotate(90deg); }
.cd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 16px; }
.cd-empty { text-align: center; padding: 52px 10px; }
.cd-empty-ic { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.cd-empty h4 { margin-bottom: 6px; }
.cd-empty p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.cd-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cd-img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--line-soft); flex: 0 0 auto; }
.cd-info { flex: 1; min-width: 0; }
.cd-name { font-weight: 700; font-size: .9rem; line-height: 1.3; word-break: break-word; }
.cd-var, .cd-opt { font-size: .76rem; color: var(--muted); }
.cd-price { font-weight: 800; font-size: .9rem; color: var(--brand); margin-top: 3px; }
.cd-qty { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.cd-qty .qty-ctl { width: 27px; height: 27px; border: 0; border-radius: 8px; background: var(--line-soft); color: var(--brand); font-size: 1rem; font-weight: 800; line-height: 1; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.cd-qty .qty-ctl:hover { background: var(--brand); color: #fff; }
.cd-qnum { min-width: 20px; text-align: center; font-weight: 800; font-size: .9rem; }
.cd-remove { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.1rem; flex: 0 0 auto; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.cd-remove:hover { background: rgba(228, 0, 43, .12); color: var(--brand); }
.cd-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--card); }
.cd-sum { display: flex; justify-content: space-between; font-size: .9rem; padding: 2px 0; }
.cd-sum b { font-weight: 700; }
.cd-total { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 1.12rem; margin: 10px 0 15px; }
.cd-total span:last-child { color: var(--brand); }
.cd-foot .btn { width: 100%; }
.cd-foot .btn + .btn { margin-top: 9px; }
.cd-foot[hidden] { display: none; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(16px);
    z-index: 100; background: var(--ink-solid); color: #fff; font-size: .88rem; font-weight: 600;
    padding: 11px 20px; border-radius: 999px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none;
    transition: opacity .3s ease, transform .3s ease; max-width: 92vw;
    border: 1px solid rgba(255, 255, 255, .12);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.t-check { width: 20px; height: 20px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: .7rem; }

/* ---------- Fly item ---------- */
.fly-item {
    position: fixed; z-index: 99; width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
    pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    transition: transform .7s cubic-bezier(.3, .6, .3, 1), opacity .6s ease;
}

/* ---------- Skeleton ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--line); }
.skeleton::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- No results ---------- */
.no-results { display: none; text-align: center; padding: 52px 20px; }
.no-results.show { display: block; animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1); }
.no-results .e-icon { font-size: 2.8rem; margin-bottom: 11px; }
.no-results h3 { margin-bottom: 6px; }
.no-results p { color: var(--muted); }

/* ---------- Dark-mode tweaks ---------- */
/* Dark mode helpers for alerts/cards (kept together) */
html[data-theme="dark"] .card-review { background: #3a2f12; color: #fde68a; border-color: #6b5317; }
html[data-theme="dark"] .free-note, html[data-theme="dark"] .cod-banner { background: #13331f; color: #86efac; border-color: #1f6b3f; }
html[data-theme="dark"] .alert-success { background: #13331f; color: #86efac; border-color: #1f6b3f; }
html[data-theme="dark"] .alert-danger { background: #3a1a1a; color: #fca5a5; border-color: #6b1f1f; }
html[data-theme="dark"] .alert-info { background: #12263a; color: #93c5fd; border-color: #1f4e79; }
html[data-theme="dark"] .alert-warning { background: #3a2f12; color: #fde68a; border-color: #6b5317; }
html[data-theme="dark"] .qty-ctl button { color: var(--accent); }
html[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); }
html[data-theme="dark"] .chip-count { background: rgba(255, 255, 255, .12); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
    font-size: 1.1rem; display: grid; place-items: center;
    transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--brand); }

/* Corner-stack theme FAB (dark / light switch beside basket + back to top) */
.corner-stack .theme-toggle {
    position: static; margin: 0;
    width: 46px; height: 46px; font-size: 1.15rem;
    opacity: 1; visibility: visible; transform: none;
    background: var(--soft); color: var(--brand);
    box-shadow: var(--shadow-sm); transition: transform .18s ease, background .2s ease, color .2s ease;
}
.corner-stack .theme-toggle:hover { transform: translateY(0) scale(1.06); background: var(--brand); color: #fff; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 95; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---------- Back to top ---------- */
.backtop {
    position: fixed; bottom: 26px; left: 22px; z-index: 89;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--card); color: var(--brand); font-size: 1.2rem; font-weight: 800;
    box-shadow: var(--shadow-sm); display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { background: var(--brand); color: #fff; }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 200; background: var(--bg);
    display: grid; place-items: center; transition: opacity .45s ease, visibility .45s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pre-inner .brand-logo { width: 64px; height: 64px; font-size: 1.5rem; animation: preBounce 1.1s ease-in-out infinite; }
.pre-inner img { height: 64px; max-width: 220px; object-fit: contain; animation: preBounce 1.1s ease-in-out infinite; }
.pre-name { font-weight: 800; letter-spacing: .04em; }
.pre-bar { width: 140px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--brand); animation: preSlide 1s ease-in-out infinite; }
@keyframes preBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes preSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ---------- Product detail modal ---------- */
/* ---------- Product details drawer (right slide-in, compact) ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 150; display: block; padding: 0;
    visibility: hidden;
}
.modal-backdrop.open { visibility: visible; }
.modal-backdrop::before {
    content: ""; position: absolute; inset: 0; background: rgba(12, 10, 9, .5);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .25s ease;
}
.modal-backdrop.open::before { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
.modal-dialog {
    position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 96vw);
    background: var(--card); border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg); overflow-y: auto; overflow-x: hidden;
    transform: translateX(102%); transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.modal-backdrop.open .modal-dialog { transform: translateX(0); }
.modal-close {
    position: sticky; top: 14px; margin: 14px 14px 2px auto; z-index: 5; width: 34px; height: 34px;
    border-radius: 50%; border: 0; line-height: 1; flex: 0 0 auto;
    background: rgba(20, 17, 15, .72); color: #fff; font-size: 1.2rem;
    display: grid; place-items: center; transition: background .2s ease, transform .18s ease;
}
.modal-close:hover { background: var(--brand); transform: rotate(90deg); }
.modal-body { display: flex; flex-direction: column; }
.pm-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 60px 20px; color: var(--muted); }
.pm-loading .pre-bar { width: 180px; }

.pm-img { position: relative; height: 130px; background: var(--line-soft); overflow: hidden; border-radius: 0; }
.pm-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pm-body { padding: 14px 18px 18px; }
.pm-title { font-size: 1.15rem; font-weight: 900; margin-bottom: 4px; }
.pm-review { margin-bottom: 6px; }
.pm-desc { color: var(--muted); font-size: .86rem; margin-bottom: 8px; }
.pm-group { margin: 10px 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.pm-group-title { font-weight: 800; font-size: .88rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
.pm-group-title small { color: var(--muted); font-weight: 500; text-transform: none; }
.pm-sub {
    display: block; margin: 3px 0 0; font-size: .76rem; line-height: 1.35;
    color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0;
}
.pm-sub strong { color: var(--ink); font-weight: 700; }
.opt-line {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.opt-line:hover { border-color: var(--brand); background: var(--field-hover); }
.opt-line input { accent-color: var(--brand); width: 17px; height: 17px; flex: 0 0 auto; cursor: pointer; }
.opt-line.pm-dim { opacity: .45; pointer-events: none; border-style: dashed; filter: grayscale(1); }
.opt-name { flex: 1; font-weight: 600; font-size: .9rem; }
.opt-price { font-weight: 800; font-size: .88rem; color: var(--brand); }
.opt-price.opt-free { color: var(--green); font-size: .76rem; }

/* Add-on (checkbox + dropdown) */
.addon-ck {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin-bottom: 8px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
    cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease;
}
.addon-ck:hover { border-color: var(--brand); }
.addon-ck input { accent-color: var(--brand); width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; }
.addon-select {
    width: 100%; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
    padding: 11px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: var(--card); cursor: pointer; transition: border-color .18s ease, opacity .18s ease;
}
.addon-select:disabled { opacity: .55; cursor: not-allowed; }
.addon-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Add-on radio list (replaces select dropdown) */
.addon-radios { margin-top: 6px; }
.addon-radios .opt-line { padding: 9px 14px; margin-bottom: 6px; }

/* Make a Meal + nested drink/dip */
.meal-note { font-size: .8rem; color: var(--muted); margin: 2px 0 8px; display: flex; align-items: center; gap: 6px; }
.meal-extras { margin-top: 4px; border-left: 2px solid var(--brand-soft); padding-left: 12px; }
.meal-sub { margin: 10px 0 2px; }
.meal-sub-title { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; color: var(--ink); }
.meal-extras .opt-line { padding: 8px 12px; margin-bottom: 6px; }

/* Card payment confirmation overlay */
.pay-warning {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px;
    padding: 12px 14px; border-radius: var(--radius-sm); text-align: left;
    background: #FFF8E1; border: 1.5px solid #F0C33C; color: #7A5A00;
    font-size: .87rem; line-height: 1.5;
}
.pay-warning b { font-weight: 800; }
.card-confirm {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s ease;
}
.card-confirm.open { display: flex; opacity: 1; }
.card-confirm-box {
    background: var(--card); border-radius: var(--radius); padding: 28px 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25); text-align: center; max-width: 400px; width: 90%;
}
.card-confirm-msg { margin: 0 0 20px; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.card-confirm-msg b { color: var(--brand); }
.card-confirm-btns { display: flex; gap: 10px; justify-content: center; }
.card-confirm-btns .btn { flex: 1; }
#square-card { min-height: 96px; }

.pm-footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.pm-qty .qty-btn { border: 0; background: none; width: 38px; height: 40px; font-size: 1.15rem; font-weight: 800; color: var(--brand); transition: background .15s ease; }
.pm-qty .qty-btn:hover { background: var(--soft); }
.pm-qty .qty-num { min-width: 34px; text-align: center; font-weight: 800; }
.pm-add { flex: 1; }
.pm-share {
    display: block; text-align: center; margin-top: 12px; font-size: .84rem; font-weight: 600;
    color: var(--green); padding: 9px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .18s ease, background .18s ease;
}
.pm-share:hover { border-color: var(--green); background: rgba(21, 128, 61, .06); }

/* ---------- Order tracking ---------- */
.track-form {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.track-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.track-none { text-align: center; padding: 44px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.track-none .e-icon { font-size: 2.5rem; margin-bottom: 10px; }
.track-none h3 { margin-bottom: 6px; }
.track-none p { color: var(--muted); }
.track-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tk-no { font-size: 1.45rem; font-weight: 900; color: var(--brand); letter-spacing: .02em; }
.tk-status { background: var(--green); color: #fff; font-weight: 800; font-size: .82rem; padding: 8px 18px; border-radius: 999px; }
.tk-placed { color: var(--muted); font-size: .84rem; margin-top: 6px; }
.tk-cancel { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; margin: 18px 0; }
html[data-theme="dark"] .tk-cancel { background: #3a1a1a; color: #fca5a5; border-color: #6b1f1f; }
.tk-timeline { display: flex; gap: 4px; margin: 22px 0 20px; }
.tk-step { flex: 1; text-align: center; position: relative; }
.tk-step::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.tk-step:first-child::before { display: none; }
.tk-step.done::before { background: var(--green); }
.tk-dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.tk-step.done .tk-dot { background: var(--green); color: #fff; }
.tk-step.current .tk-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(228, 0, 43, .18); animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1); }
.tk-step-name { font-size: .67rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tk-step.done .tk-step-name, .tk-step.current .tk-step-name { color: var(--ink); }
.tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .83rem; color: var(--muted); flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .menu-layout { grid-template-columns: 1fr; }
    .basket-panel { display: none; }
    .resto-inner { grid-template-columns: 1fr; }
    .resto-aside { max-width: 420px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; order: 3; }
    .theme-toggle { order: 4; }
    .cart-pill { order: 5; }
    .header-search { display: none; }
    .nav-links {
        position: fixed; top: 68px; left: 0; right: 0; z-index: 55;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 8px 0 14px; box-shadow: 0 18px 34px rgba(23, 20, 18, .16);
        transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links a { padding: 13px 20px; border-radius: var(--radius-sm); font-size: 1rem; }
    .navbar { position: relative; height: 64px; }
    .brand-name small { display: none; }
    .chips { top: 64px; }
    .hero { min-height: min(var(--hero-h, 400px), 360px); }
    .hero-slide.has-img { background-image: var(--hero-bg-mobile, var(--hero-bg-light)); }
    html[data-theme="dark"] .hero-slide.has-img { background-image: var(--hero-bg-mobile, var(--hero-bg-dark, var(--hero-bg-light))); }
    .contact-grid { grid-template-columns: 1fr; }
    .f-grid { grid-template-columns: 1fr 1fr; }
    .track-inputs { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .navbar { gap: 9px; }
    .cp-txt { display: none; }
    .cart-pill { padding: 10px 13px; }
    .brand-name { font-size: 1.02rem; }
    .hero { min-height: min(var(--hero-h, 400px), 340px); }
    .hero-arrow { display: none; }
    .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .why-item { padding: 16px 12px; }
    .f-grid { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 40px 0; }
    .grid, .products-grid { grid-template-columns: 1fr; gap: 12px; }
    .card-body { padding: 13px; }
    .card-img { width: 124px; }
    .card-desc { font-size: .78rem; }
    .btn-add { padding: 8px 13px; font-size: .8rem; }
    .cart-item { flex-wrap: wrap; }
    .pm-body { padding: 18px 16px 20px; }
    .pm-footer { flex-direction: column; align-items: stretch; }
    .pm-add { width: 100%; }
    .corner-stack { left: 16px; bottom: 92px; }
    .tk-step-name { font-size: .58rem; }
    .tk-dot { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .hero-slide { transition: none; }
    .modal-dialog { transform: none; }
    .preloader { display: none; }
}

/* ===================== FAVOURITES / DIETARY / RATINGS ===================== */
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 3px 10px; }
.card-rating small { font-weight: 600; color: rgba(0,0,0,.55); }
html[data-theme="dark"] .card-rating small { color: rgba(255,255,255,.6); }
.diet-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.diet-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.diet-pill.veg { background: #e8f7ee; color: #1d7a3f; border: 1px solid #bfe8cd; }
.diet-pill.vegan { background: #e0f7f0; color: #0f7c62; border: 1px solid #bcebdc; }
.diet-pill.spicy { background: #fdf0e3; color: #c05621; border: 1px solid #f5d6b9; }
html[data-theme="dark"] .diet-pill.veg { background: #173321; color: #7ee2a3; border-color: #2c5c3d; }
html[data-theme="dark"] .diet-pill.vegan { background: #112e27; color: #67e0c0; border-color: #245749; }
html[data-theme="dark"] .diet-pill.spicy { background: #36200f; color: #f8a866; border-color: #5c3a1a; }

.fav-btn { position: absolute; top: 12px; left: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .15s ease, background .15s ease, color .15s ease; }
.fav-btn .ic { fill: none; transition: fill .15s ease; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.active { background: var(--brand); color: #fff; }
.fav-btn.active .ic { fill: currentColor; }
html[data-theme="dark"] .fav-btn { background: rgba(30,30,30,.9); }

.pm-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-title-row .fav-btn { position: static; flex: 0 0 40px; width: 40px; height: 40px; }
.pm-rating { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; font-size: .9rem; }
.pm-rating .stars, .stars-sm { color: #f5a623; letter-spacing: 2px; }
.stars-sm { color: #f5a623; font-size: .85rem; letter-spacing: 1px; }

/* ===================== MENU FILTERS & SORT ===================== */
.menu-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin: 18px 0 16px; padding: 12px 14px;
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.filter-pills { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 999px; }
.filter-pill { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: .82rem; font-weight: 700; padding: 8px 15px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: all .18s ease; }
.filter-pill .ic { pointer-events: none; }
.filter-pill:hover { color: var(--brand); }
.filter-pill.active { background: var(--card); color: var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap select { font-family: inherit; font-size: .85rem; font-weight: 600; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.sort-wrap select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ===================== CHECKOUT: PROMO + SCHEDULING ===================== */
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; }
.promo-row .btn { flex: 0 0 auto; }
.promo-line b { color: var(--green); }
.muted-sm { font-weight: 500; color: var(--muted); font-size: .8rem; }
.promo-msg { margin-top: 6px; font-size: .82rem; font-weight: 600; min-height: 1em; }
.promo-msg.good { color: var(--green); }
.promo-msg.err { color: #dc2626; }
.delivery-timing { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.delivery-timing button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: .84rem; font-weight: 700; padding: 13px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: all .15s ease; }
.delivery-timing button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
#slot-wrap select { width: 100%; font-family: inherit; font-size: .9rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }

/* ===================== PRODUCT MODAL REVIEWS ===================== */
.pm-reviews { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.pm-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pm-reviews-head h4 { margin: 0; font-size: 1rem; }
.pm-review-form { background: var(--soft); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.pm-review-form textarea { width: 100%; font-family: inherit; font-size: .88rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); margin: 10px 0; }
.star-picker { display: flex; gap: 2px; }
.star-picker button { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--line); transition: color .1s; padding: 0 2px; }
.star-picker button.on { color: #f5a623; }
.star-picker:hover button { color: #f5a623; }
.star-picker:hover button:hover ~ button { color: var(--line); }
.reviews-list { display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.pm-review-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pm-review-item b { font-size: .88rem; }
.pm-review-date { float: right; color: var(--muted); font-size: .75rem; font-weight: 600; }
.pm-review-item p { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.review-login-note { margin: 10px 0; }

/* ===================== AUTH (SIGN IN / REGISTER) ===================== */
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-brand img, .auth-brand .brand-logo { max-width: 130px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 14px; padding: 4px; margin-bottom: 20px; gap: 4px; }
.auth-tabs a { text-align: center; padding: 10px; font-weight: 800; font-size: .9rem; border-radius: 11px; color: var(--muted); text-decoration: none; transition: all .15s ease; }
.auth-tabs a.active { background: var(--brand); color: #fff; }
.auth-form .field { margin-bottom: 14px; }
.auth-note { margin-top: 16px; font-size: .83rem; color: var(--muted); text-align: center; }
.auth-note a { color: var(--brand); font-weight: 700; }

/* ===================== ACCOUNT (DASHBOARD) ===================== */
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.acct-head-actions { display: flex; gap: 8px; }
.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 26px; }
.acct-stat { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); }
.as-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.acct-stat b { display: block; font-size: 1.15rem; font-weight: 900; }
.acct-stat span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.acct-section-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 8px 0 16px; }
.acct-empty { text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 34px 20px; color: var(--muted); margin-bottom: 26px; }
.acct-empty p { max-width: 460px; margin: 8px auto 14px; }
.acct-orders { display: grid; gap: 12px; }
.acct-order { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.ao-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ao-no { font-weight: 900; color: var(--brand); font-size: 1.05rem; text-decoration: none; }
.ao-date { display: block; font-size: .78rem; color: var(--muted); }
.ao-right { display: flex; align-items: center; gap: 10px; }
.ao-total { font-size: 1rem; font-weight: 900; }
.ao-items { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; }
.ao-items span { font-size: .83rem; color: var(--muted); font-weight: 600; }
.ao-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.ao-foot .btn { margin-left: auto; }
@media (max-width: 560px) { .ao-foot .btn { margin-left: 0; } }