/* ============================================================
   Cunto Dalbo - Customer site stylesheet (mobile-first, responsive)
   Built on assets/css/brand.css (tokens + primitives). Use the
   variables from brand.css; never hard-code brand colours here.
   ============================================================ */
* { margin: 0; padding: 0; }

:root {
    /* Legacy names used by older markup, mapped to brand tokens */
    --primary-dark: var(--cd-tomato);
    --primary-soft: rgba(255, 106, 26, .12);
    --accent: var(--cd-status-delivered);
    --success: var(--cd-status-delivered);
    --muted: var(--text-muted);
    --card: var(--surface);
    --radius: var(--cd-radius-card);
    --shadow: var(--cd-shadow-soft);
    --header-h: 68px;
    --bottom-nav-h: 68px;
}

html, body { min-height: 100%; }
body { font-size: var(--fs-md); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--surface); color: var(--text); padding: 12px 18px; border-radius: 0 0 14px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------------- Closed banner + top bar ---------------- */
.closed-banner {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--cd-espresso); color: var(--cd-cream); text-align: center;
    padding: 10px 16px; font-size: var(--fs-sm); font-weight: 600;
}
.closed-banner .icon { color: var(--cd-gold); }

.topbar { background: var(--cd-cream-deep); color: var(--text-muted); font-size: var(--fs-xs); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 34px; flex-wrap: wrap; }
.topbar-item { color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar-item .icon { color: var(--cd-orange); }
a.topbar-item:hover { color: var(--text); }
.topbar-status { margin-left: auto; color: var(--text); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.is-open { background: var(--cd-status-delivered); box-shadow: 0 0 0 3px rgba(47, 168, 79, .2); }
.status-dot.is-closed { background: var(--cd-tomato); box-shadow: 0 0 0 3px rgba(230, 59, 31, .2); }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; flex: none; box-shadow: var(--cd-shadow-glow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.brand-sub { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.site-nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
    color: var(--text); padding: 9px 14px; border-radius: var(--cd-radius-pill); font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 7px; transition: background-color var(--cd-fast), color var(--cd-fast);
}
.site-nav a .icon { color: var(--cd-orange); }
.site-nav a:hover { background: rgba(255, 106, 26, .1); }
.site-nav a.active { background: var(--cd-espresso); color: var(--cd-cream); }
.site-nav a.active .icon { color: var(--cd-gold); }
.nav-badge, .bottom-nav-badge {
    background: var(--cd-gradient); color: var(--on-primary); border-radius: 999px; font-size: 11px; min-width: 20px;
    text-align: center; padding: 1px 6px; font-weight: 700; line-height: 18px;
}
.nav-badge[hidden], .bottom-nav-badge[hidden], .nav-cta[hidden] { display: none !important; }
.site-nav a.nav-cta { background: var(--cd-gradient); color: var(--on-primary); font-weight: 700; box-shadow: var(--cd-shadow-glow); margin-left: 6px; }
.site-nav a.nav-cta .icon { color: var(--on-primary); }
.is-bump { animation: cd-bump .45s var(--cd-ease); }
@keyframes cd-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------------- Mobile bottom navigation ---------------- */
.bottom-nav {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
    background: rgba(42, 11, 4, .94); border: 1px solid rgba(255, 154, 31, .35); border-radius: 26px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 16px 36px rgba(34, 8, 4, .35);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 52px; border-radius: 20px; color: var(--cd-sand); font-size: 11px; font-weight: 600;
    transition: background-color var(--cd-fast), color var(--cd-fast);
}
.bottom-nav a .icon { width: 24px; height: 24px; }
.bottom-nav a.is-active { background: var(--cd-gradient); color: var(--on-primary); }
.bottom-nav-ico { position: relative; display: inline-flex; }
.bottom-nav-badge { position: absolute; top: -6px; right: -12px; border: 2px solid var(--cd-espresso-deep); }
.bottom-nav a.is-active .bottom-nav-badge { background: var(--cd-espresso); color: var(--cd-cream); border-color: var(--cd-orange); }
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + 24px); }
@media (min-width: 900px) {
    .bottom-nav { display: none; }
    body.has-bottom-nav { padding-bottom: 0; }
}

/* ---------------- Buttons (legacy classes on brand primitives) ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    border: 2px solid transparent; border-radius: var(--cd-radius-pill); padding: 10px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; text-align: center; line-height: 1.15; white-space: nowrap;
    transition: transform var(--cd-fast) var(--cd-ease), box-shadow var(--cd-fast), filter var(--cd-fast), background-color var(--cd-fast);
}
.btn:active { transform: scale(.97); }
.btn-primary, .btn-success { background: var(--cd-gradient); color: var(--on-primary); box-shadow: var(--cd-shadow-glow); }
.btn-primary:hover, .btn-success:hover { filter: brightness(1.05); color: var(--on-primary); }
.btn-whatsapp { background: #1FA855; color: #fff; font-size: 15px; box-shadow: 0 8px 22px rgba(31, 168, 85, .3); }
.btn-whatsapp:hover { filter: brightness(1.06); color: #fff; }
.btn-dark { background: var(--cd-espresso); color: var(--cd-cream); }
.btn-dark:hover { background: var(--cd-espresso-deep); color: var(--cd-cream); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-light:hover { border-color: var(--cd-orange); color: var(--text); }
.btn-outline { background: transparent; border-color: var(--cd-orange); color: var(--link); }
.btn-outline:hover { background: rgba(255, 106, 26, .1); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; min-height: 54px; }
.btn-sm { padding: 7px 14px; font-size: 13px; min-height: 38px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[hidden] { display: none !important; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-sunken); border-radius: var(--cd-radius-pill); padding: 4px; }
.qty button {
    width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--surface); font-size: 18px; font-weight: 700;
    cursor: pointer; color: var(--text); box-shadow: var(--cd-shadow-soft); transition: background-color var(--cd-fast), transform var(--cd-fast);
}
.qty button:hover { background: var(--cd-gradient); color: var(--on-primary); }
.qty button:active { transform: scale(.9); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

/* ---------------- Sections / headings ---------------- */
.section-title { font-size: var(--fs-2xl); margin: 26px 0 6px; }
.section-sub { color: var(--text-muted); margin-bottom: 18px; font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin-bottom: 4px; }
.count-pill { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.menu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.menu-head .section-title { margin: 0; font-size: var(--fs-2xl); }
.menu-head .section-title, .market-head h2, .section-head-center .section-title { position: relative; padding-bottom: 12px; }
.menu-head .section-title::after, .market-head h2::after, .section-head-center .section-title::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; border-radius: 999px; background: var(--cd-gradient);
}
.section-head-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* ---------------- Category / cuisine chips ---------------- */
.cat-sticky {
    position: sticky; top: var(--header-h); z-index: 33; margin: 0 -16px; padding: 10px 16px;
    background: rgba(255, 244, 224, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.cat-bar, .market-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cat-sticky .cat-bar { padding: 0; }
.cat-bar::-webkit-scrollbar, .market-chips::-webkit-scrollbar { display: none; }
.cat-pill, .market-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 18px;
    background: var(--surface); border: 1.5px solid var(--border); color: var(--text); border-radius: 999px;
    font-weight: 600; font-size: 13px; white-space: nowrap; scroll-snap-align: start;
    transition: border-color var(--cd-fast), background-color var(--cd-fast), transform var(--cd-fast);
}
.cat-pill:hover, .market-chip:hover { border-color: var(--cd-orange); color: var(--text); transform: translateY(-1px); }
.cat-pill.active, .market-chip.active { background: var(--cd-gradient); border-color: transparent; color: var(--on-primary); box-shadow: var(--cd-shadow-glow); }
.cat-pill-ico { font-size: 15px; line-height: 1; }
.cat-pill-count { font-size: 11px; font-weight: 700; background: var(--surface-sunken); color: var(--text-muted); border-radius: 999px; padding: 1px 8px; }
.cat-pill.active .cat-pill-count { background: rgba(42, 11, 4, .14); color: var(--on-primary); }

/* ---------------- Food cards: rows on phones, cards from 640px ---------------- */
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 32px; }
.food-card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
    box-shadow: var(--cd-shadow-soft); overflow: hidden;
    display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 12px;
    transition: transform var(--cd-med) var(--cd-ease), box-shadow var(--cd-med) var(--cd-ease);
}
.food-card .img-wrap { position: relative; display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--surface-sunken); }
.food-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cd-ease); }
.food-card .body { display: flex; flex-direction: column; min-width: 0; }
.food-card .cat-tag { width: fit-content; font-size: 10.5px; color: var(--link); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.food-card h3 { font-size: 16px; margin-bottom: 2px; letter-spacing: -.01em; }
.food-card h3 a { color: var(--text); }
.food-card h3 a:hover { color: var(--link); }
.food-card .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.food-card .price { font-weight: 700; font-size: 17px; color: var(--text); }
.food-card .badge-featured {
    position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
    background: var(--cd-espresso); color: var(--cd-gold); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.food-card .badge-featured .icon { color: var(--cd-gold); }
.out-of-stock-tag { position: absolute; inset: 0; background: rgba(34, 8, 4, .6); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; text-align: center; }
.food-card .cd-add { flex: none; }
.food-card:hover { box-shadow: var(--cd-shadow-card); }
@media (min-width: 640px) {
    .menu-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
    .food-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-radius: var(--cd-radius-card); }
    .food-card .img-wrap { width: 100%; height: 190px; border-radius: 0; }
    .food-card .img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(34, 8, 4, .35)); pointer-events: none; }
    .food-card .body { padding: 16px 18px 18px; flex: 1; }
    .food-card .desc { min-height: 38px; }
    .food-card .badge-featured { top: 12px; left: 12px; font-size: 11px; padding: 4px 10px; }
    .food-card:hover { transform: translateY(-5px); box-shadow: var(--cd-shadow-lift); }
    .food-card:hover img { transform: scale(1.05); }
}

/* ---------------- Cards, cart, summary ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--cd-radius-card); box-shadow: var(--cd-shadow-card); padding: 22px; }
.card h2 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.cart-layout { display: grid; gap: 20px; padding: 24px 0 40px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } .cart-layout > .card:last-child { position: sticky; top: calc(var(--header-h) + 16px); } }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex: 0 0 auto; background: var(--surface-sunken); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h4 { font-size: 15px; }
.cart-item .info h4 a { color: var(--text); }
.cart-item .info .price { color: var(--text); font-weight: 700; }
.cart-item .line-total { font-weight: 700; white-space: nowrap; }
.cart-remove { background: none; border: none; color: var(--danger-ink); cursor: pointer; font-size: 20px; padding: 6px; border-radius: 50%; min-width: 36px; min-height: 36px; }
.cart-remove:hover { background: rgba(230, 59, 31, .1); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.summary-row span:last-child { color: var(--text); font-weight: 600; }
.summary-row.total { font-size: 19px; font-weight: 700; color: var(--text); border-top: 1px dashed var(--border-strong); margin-top: 6px; padding-top: 14px; }
.summary-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.empty-state, .market-empty {
    text-align: center; padding: 48px 20px; color: var(--text-muted);
    background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--cd-radius-card); margin: 20px 0;
}
.empty-state .big, .market-empty .big {
    width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px;
    background: var(--cd-gradient); border-radius: var(--cd-radius-tile); box-shadow: var(--cd-shadow-glow);
}
.empty-state h3, .market-empty h3 { color: var(--text); margin-bottom: 6px; font-size: 20px; }

/* ---------------- Checkout ---------------- */
.checkout-steps { display: flex; gap: 8px; margin: 20px 0; overflow-x: auto; }
.step-chip { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text-muted); }
.step-chip.active { background: var(--cd-gradient); color: var(--on-primary); border-color: transparent; }
.step-chip.done { background: rgba(47, 168, 79, .14); border-color: transparent; color: var(--success-ink); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }
input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], input[type=search], select, textarea {
    width: 100%; min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--cd-radius-input);
    font-size: 15px; background: var(--surface); font-family: inherit; color: var(--text); transition: border-color var(--cd-fast), box-shadow var(--cd-fast);
}
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--cd-orange) 50%), linear-gradient(135deg, var(--cd-orange) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-soft); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cd-orange); box-shadow: 0 0 0 4px rgba(255, 106, 26, .2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.loc-box { border: 2px dashed rgba(255, 106, 26, .45); background: rgba(255, 176, 46, .08); border-radius: 22px; padding: 18px; margin-top: 6px; }
.loc-box .loc-status { font-size: 13px; color: var(--text-muted); margin-top: 8px; word-break: break-word; }
.map-preview iframe { width: 100%; height: 240px; border: 0; border-radius: 22px; margin-top: 12px; display: block; box-shadow: var(--cd-shadow-soft); }
.coords-line { font-size: 12px; color: var(--text-muted); margin-top: 6px; word-break: break-word; }
.review-items { list-style: none; }
.review-items li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; gap: 10px; }
.review-items li:last-child { border-bottom: none; }
.review-items .sub { color: var(--text-muted); font-size: 13px; }

/* ---------------- Order success ---------------- */
.success-hero { text-align: center; padding: 40px 16px 12px; }
.success-hero .tick {
    width: 84px; height: 84px; margin: 0 auto; display: grid; place-items: center; font-size: 40px; border-radius: 28px;
    background: var(--cd-gradient); box-shadow: var(--cd-shadow-glow); animation: cd-pop .45s var(--cd-ease) both;
}
@keyframes cd-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.success-hero h1 { font-size: var(--fs-2xl); margin: 14px 0 6px; color: var(--text); }
.success-actions { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 18px auto 6px; }

/* ---------------- Flash / toast ---------------- */
.flash { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; margin-top: 16px; font-weight: 600; font-size: 14px; }
.flash-success { background: rgba(47, 168, 79, .14); color: var(--success-ink); border: 1px solid rgba(47, 168, 79, .3); }
.flash-error { background: rgba(230, 59, 31, .1); color: var(--danger-ink); border: 1px solid rgba(230, 59, 31, .3); }
.toast-wrap { position: fixed; bottom: calc(var(--bottom-nav-h) + 30px); left: 50%; transform: translateX(-50%); z-index: 100; width: min(92vw, 420px); }
@media (min-width: 900px) { .toast-wrap { bottom: 24px; } }
.toast {
    background: var(--cd-espresso); color: var(--cd-cream); padding: 14px 18px; border-radius: 18px; box-shadow: var(--cd-shadow-lift);
    font-size: 14px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; border: 1px solid rgba(255, 154, 31, .35);
    transition: opacity var(--cd-med), transform var(--cd-med) var(--cd-ease); transform: translateY(14px); margin-top: 8px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--cd-espresso); border-color: var(--cd-status-delivered); }
.toast.error { background: var(--cd-danger-solid); color: #fff; border-color: transparent; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(42, 11, 4, .25); border-top-color: var(--cd-espresso); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--cd-gradient-dark); color: var(--cd-sand); margin-top: 48px; position: relative; overflow: hidden;
}
.site-footer::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 176, 46, .12) 1px, transparent 1.4px); background-size: 22px 22px; pointer-events: none; }
.footer-grid { position: relative; display: grid; gap: 28px; padding-top: 40px; padding-bottom: 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { width: 140px; height: auto; margin-bottom: 10px; }
.footer-tagline { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.footer-restaurant { font-size: 13px; color: var(--cd-sand); }
.footer-restaurant strong { color: var(--cd-amber); }
.site-footer h2 { color: #fff; margin-bottom: 10px; font-size: 15px; }
.site-footer p { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.site-footer p .icon { color: var(--cd-amber); }
.site-footer a { color: var(--cd-cream); }
.site-footer a:hover { color: var(--cd-amber); }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.socials a { margin-right: 12px; font-weight: 600; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 154, 31, .25); padding: 16px 0; font-size: 12px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: var(--cd-sand); text-decoration: underline; }
.footer-app a { color: var(--cd-amber); font-weight: 600; font-size: 13px; }

/* ---------------- Product detail ---------------- */
.crumb { font-size: 13px; color: var(--text-muted); margin: 18px 0; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--link); }
.product-layout { display: grid; gap: 28px; align-items: start; padding-bottom: 32px; }
@media (min-width: 860px) { .product-layout { grid-template-columns: 500px 1fr; } }
.product-img img { width: 100%; border-radius: var(--cd-radius-card); box-shadow: var(--cd-shadow-card); height: auto; max-height: 480px; object-fit: cover; }
.product-info { padding-top: 6px; }
.product-info .cat-tag { font-size: 12px; color: var(--link); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.product-info h1 { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 12px; }
.product-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }
.product-price { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.product-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.product-actions .qty { padding: 6px; }
.product-actions .qty button { width: 42px; height: 42px; }
.product-actions .qty span { min-width: 36px; font-size: 18px; }

/* misc */
.text-muted { color: var(--text-muted); }
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   Hero (restaurant storefront + marketplace): espresso night
   gradient, dot pattern and soft orange/tomato glows
   ============================================================ */
.hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: left;
    background: var(--cd-gradient-dark); padding: 40px 0 56px;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255, 176, 46, .16) 1px, transparent 1.4px); background-size: 22px 22px;
}
.hero::after {
    content: ''; position: absolute; z-index: -1; pointer-events: none; width: 560px; height: 560px; right: -180px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 26, .35), transparent 65%);
}
.hero h1 { color: #fff; font-size: var(--fs-3xl); line-height: 1.05; letter-spacing: -.03em; margin: 14px 0 12px; }
.hero h1 span, .hero h1 em { font-style: normal; color: var(--cd-gold); }
.hero p { color: var(--cd-sand); font-size: 16px; max-width: 560px; }
.hero-kicker, .hero-badge {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--cd-cream); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 154, 31, .45); border-radius: 999px; padding: 6px 14px;
}
.hero-kicker .icon, .hero-badge .icon { color: var(--cd-gold); }
.hero-badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-open { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--cd-cream); }
.hero-open.is-closed { color: #FFC4B6; }
.hero.hero-home { padding: 44px 0 84px; }
.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 54px; } .hero.hero-home { padding: 64px 0 96px; } }
.hero-copy > p { line-height: 1.65; margin-bottom: 22px; }
.hero-aurora { display: none; }

/* search field with GPS action */
.search-box, .hero-home .search-box {
    display: flex; align-items: stretch; gap: 6px; max-width: 580px; padding: 6px;
    background: rgba(255, 255, 255, .96); border-radius: 999px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.search-input-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--cd-orange); pointer-events: none; display: inline-flex; }
.search-box input, .hero-home .search-box input {
    flex: 1; width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--cd-espresso);
    border-radius: 999px; padding: 12px 18px; font-size: 15px; box-shadow: none;
}
.search-input-wrap input { padding-left: 46px !important; }
.search-box input::placeholder { color: var(--cd-clay); }
.search-box input:focus { box-shadow: none; }
.search-box:focus-within { box-shadow: 0 0 0 4px rgba(255, 176, 46, .45), 0 18px 40px rgba(0, 0, 0, .35); }
.search-box button, .hero-home .search-box button {
    flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 999px; padding: 0 24px;
    background: var(--cd-gradient); color: var(--on-primary); font-weight: 700; font-size: 15px; box-shadow: var(--cd-shadow-glow);
}
.search-box button:hover { filter: brightness(1.05); }
@media (max-width: 560px) {
    .search-box, .hero-home .search-box { border-radius: 28px; flex-wrap: wrap; }
    .search-box button { flex: 1 1 100%; min-height: 46px; justify-content: center; }
}
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 13px; color: var(--cd-sand); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-hero-primary { background: var(--cd-gradient); color: var(--on-primary); box-shadow: var(--cd-shadow-glow); }
.btn-hero-primary:hover { color: var(--on-primary); filter: brightness(1.05); }
.btn-hero-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 154, 31, .55); color: #fff; }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 154, 31, .25); max-width: 520px; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 24px; font-weight: 700; color: #fff; }
.hero-stats span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cd-tan); }

/* collage */
.hero-visual { position: relative; z-index: 1; }
.hero-visual-glow { position: absolute; left: 5%; right: 5%; bottom: -8%; height: 70%; background: radial-gradient(ellipse at center, rgba(255, 106, 26, .45), transparent 70%); filter: blur(36px); z-index: -1; }
.hero-collage { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 260px; }
@media (min-width: 860px) { .hero-collage { height: 430px; } }
.hero-collage-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-collage-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.hero-img { position: relative; overflow: hidden; border-radius: var(--cd-radius-card); border: 2px solid rgba(255, 154, 31, .45); box-shadow: 0 26px 60px rgba(0, 0, 0, .45); }
.hero-img-1 { grid-row: span 2; }
.hero-collage-1 .hero-img-1, .hero-collage-2 .hero-img-1 { grid-row: auto; }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(34, 8, 4, .5)); pointer-events: none; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cd-ease); }
.hero-img:hover img { transform: scale(1.05); }
.hero-live { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    background: rgba(34, 8, 4, .72); border: 1px solid rgba(255, 154, 31, .45); color: var(--cd-cream); font-size: 12px; font-weight: 700;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-float { position: absolute; left: 10px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--cd-cream-light); color: var(--cd-espresso);
    border-radius: 20px; padding: 11px 15px; box-shadow: 0 18px 42px rgba(0, 0, 0, .35); }
@media (min-width: 860px) { .hero-float { left: -20px; bottom: 20px; } }
.hero-float-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--cd-gradient); color: #fff; font-size: 19px; }
.hero-float strong { display: block; font-size: 13.5px; }
.hero-float small { font-size: 11.5px; color: var(--cd-clay); }
.hero-visual-empty { display: flex; align-items: center; justify-content: center; min-height: 260px; }
.hero-empty-art { width: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; font-size: 90px; border-radius: var(--cd-radius-card);
    border: 2px dashed rgba(255, 154, 31, .45); background: rgba(255, 255, 255, .04); }

/* trust strip (icon tiles) */
.trust-strip { position: relative; z-index: 3; margin-top: -44px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px; border-radius: var(--cd-radius-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--cd-shadow-lift); }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); padding: 22px 26px; } }
.trust-item { display: flex; align-items: center; gap: 12px; transition: transform var(--cd-fast); }
.trust-item:hover { transform: translateY(-2px); }
.trust-ico { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 18px; background: var(--cd-gradient); color: #fff; box-shadow: 0 6px 14px rgba(230, 59, 31, .28); }
.trust-ico svg { width: 24px; height: 24px; fill: currentColor; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span:not(.trust-ico) { display: block; font-size: 12px; color: var(--text-muted); }
.trust-item-action { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trust-item-action:hover strong { color: var(--link); }
#menu { scroll-margin-top: calc(var(--header-h) + 70px); }

/* how it works */
.steps-section { padding: 56px 0 30px; }
.section-head-center { max-width: 660px; margin: 0 auto 30px; text-align: center; }
.section-head-center .section-title { margin: 4px 0 12px; display: inline-block; }
.section-head-center .section-sub { margin: 0; font-size: 15px; }
.steps-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; overflow: hidden; padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--cd-radius-card); box-shadow: var(--cd-shadow-card); transition: transform var(--cd-med) var(--cd-ease), box-shadow var(--cd-med); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--cd-shadow-lift); }
.step-num { position: absolute; top: 12px; right: 18px; font-size: 48px; font-weight: 700; color: rgba(255, 106, 26, .14); line-height: 1; }
.step-ico { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 16px; border-radius: var(--cd-radius-tile); background: var(--cd-gradient); color: #fff; font-size: 26px; box-shadow: 0 6px 16px rgba(230, 59, 31, .28); }
.step-ico .icon { width: 28px; height: 28px; }
.step-card h3 { font-size: 18px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* dine-in banner */
.dinein-banner {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; padding: 24px; border-radius: var(--cd-radius-card);
    color: #fff; background: var(--cd-gradient-dark); box-shadow: var(--cd-shadow-lift);
}
.dinein-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 176, 46, .14) 1px, transparent 1.4px); background-size: 22px 22px; pointer-events: none; }
.dinein-banner > * { position: relative; }
@media (min-width: 760px) { .dinein-banner { grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px 30px; } }
.dinein-ico { width: 62px; height: 62px; display: grid; place-items: center; border-radius: var(--cd-radius-tile); background: var(--cd-gradient); color: #fff; font-size: 28px; }
.dinein-banner .eyebrow { color: var(--cd-gold); }
.dinein-banner h3 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.dinein-banner p { font-size: 14px; color: var(--cd-sand); max-width: 640px; }
.dinein-chip, .dinein-scan-btn {
    justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 999px;
    border: 0; background: var(--cd-gradient); color: var(--on-primary); font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
    box-shadow: var(--cd-shadow-glow); transition: transform var(--cd-fast), filter var(--cd-fast);
}
.dinein-scan-btn svg { width: 18px; height: 18px; }
.dinein-scan-btn:hover { filter: brightness(1.05); color: var(--on-primary); }
.dinein-scan-btn:active { transform: scale(.97); }

/* reveal on scroll */
.reveal { opacity: 1; }
body.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s var(--cd-ease); }
body.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@keyframes hp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: hp-rise .6s var(--cd-ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .05s; } .hero-copy > *:nth-child(3) { animation-delay: .1s; }
.hero-copy > *:nth-child(4) { animation-delay: .15s; } .hero-copy > *:nth-child(5) { animation-delay: .2s; }
.hero-visual { animation: hp-rise .7s .1s var(--cd-ease) both; }

/* ============================================================
   QR table scanner (camera dialog on the storefront)
   ============================================================ */
html.qr-scan-open, html.qr-scan-open body { overflow: hidden; }
.qr-scan { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; padding: 10px; background: rgba(34, 8, 4, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 560px) { .qr-scan { align-items: center; padding: 16px; } }
.qr-scan[hidden] { display: none; }
.qr-scan-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 20px 18px; border-radius: var(--cd-radius-card);
    background: var(--cd-gradient-dark); color: #fff; border: 2px solid rgba(255, 154, 31, .45); box-shadow: 0 34px 90px rgba(0, 0, 0, .55); animation: qr-pop .24s var(--cd-ease) both; }
@keyframes qr-pop { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.qr-scan-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--cd-cream); font-size: 22px; line-height: 1; cursor: pointer; }
.qr-scan-close:hover { background: rgba(255, 255, 255, .18); }
.qr-scan-dialog h2 { color: #fff; margin: 0 44px 4px 0; font-size: 21px; }
.qr-scan-hint { margin-bottom: 14px; font-size: 13.5px; color: var(--cd-sand); }
.qr-scan-stage { position: relative; aspect-ratio: 3 / 4; max-height: 50vh; border-radius: 22px; overflow: hidden; background: #000; }
@media (min-width: 560px) { .qr-scan-stage { aspect-ratio: 4 / 3; } }
.qr-scan-stage video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.qr-scan-frame { position: absolute; inset: 10%; border: 2px solid rgba(255, 255, 255, .45); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .34); pointer-events: none; }
.qr-scan-frame span { position: absolute; inset: 0;
    background: linear-gradient(var(--cd-gold), var(--cd-gold)) left top / 28px 4px no-repeat, linear-gradient(var(--cd-gold), var(--cd-gold)) left top / 4px 28px no-repeat,
        linear-gradient(var(--cd-gold), var(--cd-gold)) right top / 28px 4px no-repeat, linear-gradient(var(--cd-gold), var(--cd-gold)) right top / 4px 28px no-repeat,
        linear-gradient(var(--cd-tomato), var(--cd-tomato)) left bottom / 28px 4px no-repeat, linear-gradient(var(--cd-tomato), var(--cd-tomato)) left bottom / 4px 28px no-repeat,
        linear-gradient(var(--cd-tomato), var(--cd-tomato)) right bottom / 28px 4px no-repeat, linear-gradient(var(--cd-tomato), var(--cd-tomato)) right bottom / 4px 28px no-repeat; }
.qr-scan-frame span::after { content: ''; position: absolute; left: 5%; right: 5%; top: 8%; height: 3px; border-radius: 3px; background: var(--cd-gradient); box-shadow: 0 0 14px rgba(255, 106, 26, .8); animation: qr-scanline 2.4s ease-in-out infinite; }
@keyframes qr-scanline { 0%, 100% { top: 8%; } 50% { top: 92%; } }
.qr-scan-status { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(34, 8, 4, .85); color: var(--cd-cream); font-size: 12.5px; text-align: center; }
.qr-scan-status.is-error { background: rgba(163, 38, 15, .95); color: #fff; }
.qr-scan-status.is-success { background: rgba(27, 107, 48, .95); color: #fff; }
.qr-scan-actions { display: flex; gap: 10px; margin-top: 14px; }
.qr-scan-actions .btn { flex: 1; }
.qr-scan-photo { position: relative; overflow: hidden; cursor: pointer; }
.qr-scan-photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.qr-scan-note { margin-top: 10px; font-size: 11px; color: var(--cd-tan); text-align: center; }

/* ============================================================
   Marketplace: discovery rows, restaurant cards, filters
   ============================================================ */
.market-section { padding: 30px 0 6px; }
.market-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.market-head h2 { font-size: var(--fs-xl); }
.market-head p { color: var(--text-muted); font-size: 14px; margin-top: 3px; }
.market-head a.market-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--link); }

.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.restaurant-grid.is-scroll { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.restaurant-grid.is-scroll::-webkit-scrollbar { display: none; }
.restaurant-grid.is-scroll .restaurant-card { scroll-snap-align: start; }
@media (min-width: 700px) { .restaurant-grid.is-scroll { grid-auto-columns: 330px; } }

/* restaurant card: large rounded image with legibility overlay */
.food-card.restaurant-card { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; border-radius: var(--cd-radius-card); }
.restaurant-card .restaurant-cover, .restaurant-card .img-wrap { position: relative; display: block; width: 100%; height: 180px; border-radius: 0; overflow: hidden; background: var(--surface-sunken); }
.restaurant-card .restaurant-cover img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card .restaurant-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(34, 8, 4, .45)); pointer-events: none; }
.card-cover-placeholder, .img-placeholder { width: 100%; height: 100%; background: url('../brand/food-placeholder.svg') center / cover no-repeat; font-size: 0; }
.restaurant-logo { position: absolute; left: 14px; bottom: -22px; z-index: 2; width: 52px; height: 52px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--cd-shadow-soft); border: 3px solid var(--surface); }
.restaurant-logo img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card .badge-featured { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
    background: var(--cd-espresso); color: var(--cd-gold); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.restaurant-card .body { padding: 20px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.restaurant-card.has-logo .body { padding-top: 28px; }
.restaurant-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; margin-bottom: 4px; }
.restaurant-topline .cat-tag { margin-bottom: 0; background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }
.rating-pill { display: inline-flex; align-items: center; gap: 3px; background: rgba(255, 176, 46, .2); color: var(--cd-status-new-ink); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rating-pill small { font-weight: 600; opacity: .8; }
.rating-pill.rating-new { background: var(--surface-sunken); color: var(--text-muted); }
.restaurant-card h3 { font-size: 18px; margin: 4px 0 3px; }
.restaurant-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); margin: 8px 0 14px; }
.restaurant-meta .icon { color: var(--cd-orange); }
.restaurant-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.open-badge.is-open { color: var(--success-ink); }
.open-badge.is-closed { color: var(--danger-ink); }
.distance-badge { color: var(--link); font-weight: 700; }
.restaurant-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--border); padding-top: 14px; margin-top: auto; }
.restaurant-card .card-foot .price { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.restaurant-card .card-foot .btn { min-width: 96px; }
@media (max-width: 560px) {
    .restaurant-grid:not(.is-scroll) { grid-template-columns: 1fr; gap: 16px; }
    .restaurant-card .restaurant-cover, .restaurant-card .img-wrap { height: 170px; }
}

/* directory toolbar + filters */
.market-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--cd-radius-card); padding: 12px; margin: 20px 0 10px; box-shadow: var(--cd-shadow-soft); }
.market-search { display: flex; gap: 8px; flex: 1 1 280px; flex-wrap: wrap; }
.market-search input { flex: 1 1 180px; min-width: 0; }
.market-search select { flex: 0 1 200px; }
.nearby-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 16px; border: 1.5px dashed rgba(255, 106, 26, .55); border-radius: 999px;
    background: transparent; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.nearby-toggle .icon { color: var(--cd-orange); }
.nearby-toggle:hover { border-style: solid; border-color: var(--cd-orange); color: var(--text); }
.nearby-toggle.is-active { border-style: solid; border-color: transparent; background: var(--cd-gradient); color: var(--on-primary); }
.nearby-toggle.is-active .icon { color: var(--on-primary); }
.nearby-note { font-size: 13px; color: var(--text-muted); margin: 4px 0 10px; }
.nearby-note.is-error { color: var(--danger-ink); }
.market-count { font-size: 13px; color: var(--text-muted); margin: 6px 0 16px; }
@media (max-width: 560px) { .market-toolbar .nearby-toggle { flex: 1 1 auto; justify-content: center; } }

/* marketplace hero (restaurants.php) */
.market-hero { padding: 36px 0 64px; border-radius: 0 0 36px 36px; }
@media (min-width: 860px) { .market-hero { padding: 64px 0 88px; } }
.market-hero .hero-copy { max-width: 720px; }
.market-hero .search-box { margin-top: 22px; }
.market-hero-links { margin-top: 18px; font-size: 13px; color: var(--cd-sand); display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.market-hero-links a { color: var(--cd-gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.market-hero-chips { margin-top: 18px; }
.market-hero-chips .market-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 154, 31, .45); color: var(--cd-cream); }
.market-hero-chips .market-chip:hover { color: #fff; }
.market-hero-chips .market-chip.active { background: var(--cd-gradient); color: var(--on-primary); border-color: transparent; }
.market-pull { margin-top: -40px; position: relative; z-index: 2; }

/* food search results */
.food-result { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 10px 12px; box-shadow: var(--cd-shadow-soft); }
.food-result img, .food-result .food-result-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--surface-sunken) url('../brand/food-placeholder.svg') center / cover; font-size: 0; }
.food-result .food-result-body { flex: 1; min-width: 0; }
.food-result h3 { font-size: 15px; margin-bottom: 1px; }
.food-result .food-result-meta { font-size: 12.5px; color: var(--text-muted); }
.food-result .food-result-price { font-weight: 700; color: var(--text); font-size: 15px; margin-left: auto; white-space: nowrap; }
.food-result .food-result-cta { margin-left: 4px; }

/* ratings + reviews */
.restaurant-rating-summary { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; box-shadow: var(--cd-shadow-soft); font-size: 14px; font-weight: 700; }
.restaurant-rating-summary .stars, .review-item-stars { color: var(--cd-gold); letter-spacing: 1px; }
.restaurant-rating-summary .muted { font-weight: 500; color: var(--text-muted); }
.reviews-section { padding: 40px 0 10px; }
.reviews-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .reviews-layout { grid-template-columns: 360px 1fr; } }
.review-form-card, .review-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--cd-radius-card); padding: 20px; box-shadow: var(--cd-shadow-soft); }
.review-form-card { align-self: start; }
.review-form-card h3 { font-size: 18px; margin-bottom: 4px; }
.review-form-card p.hint { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.star-input { display: flex; gap: 4px; margin: 6px 0 14px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 32px; line-height: 1; color: var(--cd-sand); cursor: pointer; transition: color var(--cd-fast), transform var(--cd-fast); }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--cd-gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { padding: 16px 18px; border-radius: 22px; }
.review-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.review-item-name { font-weight: 700; font-size: 14px; }
.review-item-date { font-size: 11.5px; color: var(--text-muted); }
.review-item p { font-size: 14px; color: var(--text); }
.review-empty { color: var(--text-muted); font-size: 14px; padding: 10px 0; }

/* ============================================================
   Floating cart pill (appears when food is added)
   ============================================================ */
.cart-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + 22px + env(safe-area-inset-bottom)); z-index: 59;
    display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px;
    background: var(--cd-espresso); color: #fff; border: 1px solid rgba(255, 154, 31, .45); box-shadow: 0 16px 38px rgba(34, 8, 4, .35);
    animation: cart-bar-in .26s var(--cd-ease) both;
}
@media (min-width: 900px) { .cart-bar { left: 50%; right: auto; transform: translateX(-50%); width: min(94vw, 540px); bottom: 20px; } }
.cart-bar[hidden] { display: none; }
@keyframes cart-bar-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.cart-bar.is-updated { animation: cart-bar-pulse .5s ease; }
@keyframes cart-bar-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 26, .6), 0 16px 38px rgba(34, 8, 4, .35); } 100% { box-shadow: 0 0 0 14px rgba(255, 106, 26, 0), 0 16px 38px rgba(34, 8, 4, .35); } }
.cart-bar-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #fff; }
.cart-bar-info:hover { color: #fff; }
.cart-bar-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cd-gradient); color: var(--on-primary); }
.cart-bar-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cart-bar-text strong { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar-text small { font-size: 11.5px; color: var(--cd-sand); }
.cart-bar-text small span { color: var(--cd-gold); font-weight: 700; }
.cart-bar-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: var(--cd-gradient); color: var(--on-primary); font-size: 14px; font-weight: 700; padding: 11px 18px; border-radius: 999px; }
.cart-bar-btn:hover { color: var(--on-primary); filter: brightness(1.05); }
body.cart-bar-open { padding-bottom: calc(var(--bottom-nav-h) + 96px); }
@media (min-width: 900px) { body.cart-bar-open { padding-bottom: 90px; } }
body.cart-bar-open .toast-wrap { bottom: calc(var(--bottom-nav-h) + 96px); }
body.cart-bar-open .app-banner { display: none !important; }

/* ============================================================
   App promotion + download page
   ============================================================ */
.app-promo { position: relative; overflow: hidden; background: var(--cd-gradient-dark); color: #fff; padding: 48px 0; margin-top: 30px; }
.app-promo::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 176, 46, .12) 1px, transparent 1.4px); background-size: 22px 22px; }
.app-promo-inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .app-promo-inner { grid-template-columns: 1.2fr .8fr; } }
.app-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 106, 26, .2); color: var(--cd-gold); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.app-promo h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); margin: 12px 0 8px; }
.app-promo p { color: var(--cd-sand); font-size: 15px; max-width: 480px; }
.app-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; }
.app-points li { font-size: 13px; color: var(--cd-cream); display: flex; align-items: center; gap: 6px; }
.app-promo .btn-dark { background: var(--cd-gradient); color: var(--on-primary); }
.app-promo .btn-outline { border-color: rgba(255, 154, 31, .6); color: #fff; }
.app-note { font-size: 12px !important; color: var(--cd-tan) !important; margin-top: 12px; }
.app-phone { position: relative; width: 232px; max-width: 100%; margin: 0 auto; padding: 12px; background: var(--cd-espresso-deep); border: 2px solid rgba(255, 154, 31, .55); border-radius: 34px; box-shadow: 0 22px 50px rgba(0, 0, 0, .45); }
.app-phone-notch { width: 78px; height: 7px; background: #000; border-radius: 6px; margin: 0 auto 10px; }
.app-phone-screen { background: var(--cd-cream-light); border-radius: 24px; padding: 12px; color: var(--cd-espresso); overflow: hidden; }
.app-phone-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.app-phone-logo { width: 32px; height: 32px; display: grid; place-items: center; background: var(--cd-gradient); color: #fff; border-radius: 10px; font-size: 16px; }
.app-phone-top strong { display: block; font-size: 12px; line-height: 1.2; }
.app-phone-top small { font-size: 10px; color: var(--cd-clay); }
.app-phone-hero { background: var(--cd-gradient); color: var(--on-primary); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 15px; line-height: 1.25; margin-bottom: 10px; }
.app-phone-hero span { font-weight: 600; font-size: 11px; }
.app-phone-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(58, 15, 5, .1); border-radius: 14px; padding: 7px 9px; margin-bottom: 6px; }
.app-phone-item > span { font-size: 16px; }
.app-phone-item b { display: block; font-size: 11px; line-height: 1.3; }
.app-phone-item small { font-size: 10px; color: var(--cd-clay); font-weight: 700; }
.app-phone-cart { background: var(--cd-espresso); color: var(--cd-cream); text-align: center; border-radius: 999px; padding: 8px; font-size: 11px; font-weight: 700; margin-top: 8px; }
.app-hero { position: relative; overflow: hidden; background: var(--cd-gradient-dark); color: #fff; padding: 44px 0; }
.app-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 176, 46, .14) 1px, transparent 1.4px); background-size: 22px 22px; }
.app-hero-inner { position: relative; display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .app-hero-inner { grid-template-columns: 1.15fr .85fr; } }
.app-hero h1 { color: #fff; font-size: clamp(28px, 4.5vw, 40px); margin: 12px 0; }
.app-hero p { color: var(--cd-sand); max-width: 520px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.app-actions .btn-primary { background: var(--cd-gradient); color: var(--on-primary); }
.app-actions .btn-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 154, 31, .55); color: #fff; }
.app-actions .btn small { font-weight: 600; opacity: .85; }
.app-phone-lg { width: 250px; }
.app-page { padding-bottom: 30px; }
.app-block { padding: 32px 0; border-bottom: 1px dashed var(--border); }
.app-block:last-child { border-bottom: none; }
.app-block h2 { font-size: var(--fs-xl); margin-bottom: 16px; }
.app-platforms { display: grid; gap: 16px; }
@media (min-width: 640px) { .app-platforms { grid-template-columns: 1fr 1fr; } }
.app-platform, .app-feature, .app-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--cd-radius-card); padding: 22px; box-shadow: var(--cd-shadow-soft); }
.app-platform { text-align: center; }
.app-platform-icon { font-size: 38px; line-height: 1; }
.app-platform h3 { font-size: 18px; margin: 8px 0 6px; }
.app-platform p, .app-feature p, .app-cta p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.app-platform .app-small { font-size: 11px; margin: 10px 0 0; }
.app-features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.app-feature span { font-size: 26px; line-height: 1; }
.app-feature h3 { font-size: 15px; margin: 8px 0 4px; }
.app-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.app-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + 22px); z-index: 58; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--cd-shadow-lift); }
.app-banner[hidden] { display: none; }
.app-banner-icon { line-height: 0; }
.app-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-banner-text strong { font-size: 13px; }
.app-banner-text span { font-size: 11px; color: var(--text-muted); }
.app-banner-close { background: none; border: none; color: var(--text-muted); font-size: 24px; line-height: 1; cursor: pointer; min-width: 36px; min-height: 36px; }
@media (min-width: 900px) { .app-banner { display: none !important; } }

/* ============================================================
   Order tracking (track_order.php): animated status stepper
   ============================================================ */
.track-page { max-width: 760px; padding-top: 24px; padding-bottom: 30px; }
.track-alert { margin-bottom: 14px; }
.track-result { margin-bottom: 18px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.track-code { font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.track-badge { font-size: 13px; }
.track-steps { list-style: none; display: grid; gap: 0; padding: 0; margin: 22px 0; counter-reset: step; }
.track-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 0 22px 0; font-size: 14px; font-weight: 600; color: var(--text-soft); counter-increment: step; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
    content: counter(step); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
    background: var(--surface-sunken); color: var(--text-soft); border: 2px solid var(--border); position: relative; z-index: 1;
}
.track-step::after { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 3px; border-radius: 3px; background: var(--border); }
.track-step:last-child::after { display: none; }
.track-step.is-done { color: var(--text); }
.track-step.is-done::before { content: '\2713'; background: var(--cd-status-delivered); border-color: transparent; color: #fff; }
.track-step.is-done::after { background: var(--cd-status-delivered); }
.track-step.is-current { color: var(--text); font-weight: 700; }
.track-step.is-current::before { background: var(--cd-gradient); color: var(--on-primary); border-color: transparent; box-shadow: 0 0 0 6px rgba(255, 106, 26, .2); animation: cd-pulse 1.6s ease-out infinite; }
@keyframes cd-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 26, .45); } 100% { box-shadow: 0 0 0 14px rgba(255, 106, 26, 0); } }
@media (min-width: 640px) {
    .track-steps { grid-auto-flow: column; grid-auto-columns: 1fr; }
    .track-step { flex-direction: column; text-align: center; padding: 0 4px; font-size: 13px; gap: 8px; }
    .track-step::after { left: calc(50% + 18px); right: calc(-50% + 18px); top: 17px; bottom: auto; width: auto; height: 3px; }
}
.track-stopped { margin: 16px 0; padding: 14px 16px; border-radius: 18px; background: rgba(230, 59, 31, .1); color: var(--danger-ink); }
.track-subtitle { font-size: 16px; margin: 18px 0 8px; }
.track-refresh { margin-top: 16px; }
.track-help { font-size: 13px; margin-top: 10px; }
.track-link { display: inline-block; margin-top: 8px; }

/* GPS pulse marker (checkout location box + tracking) */
.gps-pulse { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: #fff; }
.gps-pulse .icon { position: relative; z-index: 1; width: 26px; height: 26px; color: var(--cd-orange); filter: drop-shadow(0 4px 6px rgba(230, 59, 31, .4)); }
.gps-pulse::before, .gps-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 106, 26, .5); animation: cd-ring 2s ease-out infinite; }
.gps-pulse::after { animation-delay: 1s; }
@keyframes cd-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---- discount prices ---- */
.price-was { color: var(--text-soft); font-weight: 500; font-size: .85em; margin-right: 2px; }
.price-now { color: var(--danger-ink); }

@media (prefers-reduced-motion: reduce) {
    .hero-copy > *, .hero-visual { animation: none !important; }
    body.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
    .qr-scan-frame span::after, .gps-pulse::before, .gps-pulse::after, .track-step.is-current::before { animation: none; }
}

/* ---- page titles, notices, form sub-heads ---- */
.page-title { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.page-title .icon { color: var(--cd-orange); }
.form-subhead { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; font-size: 16px; }
.form-subhead .icon { color: var(--cd-orange); }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 18px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.notice .icon { flex: none; margin-top: 2px; }
.notice-warn { background: rgba(255, 176, 46, .18); color: var(--cd-status-new-ink); border: 1px solid rgba(255, 176, 46, .5); }
.card h2 .cd-icon-tile { flex: none; }

/* ---- checkout GPS box states ---- */
.loc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.loc-head strong { display: block; font-size: 15px; }
.loc-head small { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.loc-box .loc-status { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.loc-box[data-state="pending"] .loc-status { color: var(--text); }
.loc-box[data-state="ok"] { border-style: solid; border-color: var(--cd-status-delivered); background: rgba(47, 168, 79, .07); }
.loc-box[data-state="ok"] .loc-status { color: var(--success-ink); font-weight: 600; }
.loc-box[data-state="ok"] .loc-status::before { content: '\2713'; font-weight: 700; }
.loc-box[data-state="ok"] .gps-pulse::before, .loc-box[data-state="ok"] .gps-pulse::after { border-color: rgba(47, 168, 79, .55); }
.loc-box[data-state="error"] { border-color: rgba(230, 59, 31, .55); background: rgba(230, 59, 31, .06); }
.loc-box[data-state="error"] .loc-status { color: var(--danger-ink); font-weight: 600; }
.loc-box[data-state="error"] .gps-pulse::before, .loc-box[data-state="error"] .gps-pulse::after { animation: none; opacity: 0; }

/* ---- layout safety: grid/flex children may shrink below content width (no sideways scroll) ---- */
.cart-layout > *, .product-layout > *, .reviews-layout > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.site-footer .footer-restaurant { display: block; }

/* ---- cart rows: image | name/price | remove, then stepper + line total on phones ---- */
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img info remove" "img qty total"; gap: 6px 14px; align-items: center; }
.cart-item img { grid-area: img; width: 64px; height: 64px; }
.cart-item .info { grid-area: info; }
.cart-item .qty { grid-area: qty; justify-self: start; }
.cart-item .line-total { grid-area: total; justify-self: end; }
.cart-item .cart-remove { grid-area: remove; justify-self: end; }
@media (min-width: 640px) {
    .cart-item { grid-template-columns: 72px 1fr auto auto auto; grid-template-areas: "img info qty total remove"; }
    .cart-item img { width: 72px; height: 72px; }
}
/* long labels ("Confirm order & send on WhatsApp") wrap instead of widening the page */
.btn-lg, .btn-block { white-space: normal; max-width: 100%; }
#checkoutForm .btn-lg { width: 100%; }

/* ============================================================
   Home page v2: logo on the left, animated hero stage, marquee
   ============================================================ */
.hero-v2 { padding: 28px 0 0; overflow: hidden; }
.hero-v2::before, .hero-v2::after { display: none; }
.hero-v2 .hero-grid { padding-bottom: 40px; }
@media (min-width: 860px) { .hero-v2 { padding-top: 48px; } .hero-v2 .hero-grid { padding-bottom: 64px; } }

/* animated background */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.hero-orb-1 { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, #FF6A1A, transparent 65%); animation: orb-drift-1 18s ease-in-out infinite alternate; }
.hero-orb-2 { width: 420px; height: 420px; left: -160px; bottom: -160px; background: radial-gradient(circle, #E63B1F, transparent 65%); animation: orb-drift-2 22s ease-in-out infinite alternate; }
.hero-orb-3 { width: 300px; height: 300px; left: 42%; top: 20%; background: radial-gradient(circle, #FFB02E, transparent 65%); opacity: .28; animation: orb-drift-3 26s ease-in-out infinite alternate; }
@keyframes orb-drift-1 { to { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes orb-drift-2 { to { transform: translate(140px, -80px) scale(1.2); } }
@keyframes orb-drift-3 { to { transform: translate(-90px, 70px) scale(.85); } }
.hero-dots { position: absolute; inset: -40px; background-image: radial-gradient(rgba(255, 176, 46, .16) 1px, transparent 1.4px); background-size: 22px 22px; animation: dots-pan 40s linear infinite; }
@keyframes dots-pan { to { transform: translate(22px, 22px); } }

/* logo on the left */
.hero-logo { display: inline-block; margin-bottom: 14px; animation: logo-in .9s var(--cd-ease) both; }
.hero-logo-img { display: block; width: 150px; height: auto; filter: drop-shadow(0 10px 26px rgba(255, 106, 26, .35)); transition: transform var(--cd-med) var(--cd-ease); }
.hero-logo:hover .hero-logo-img { transform: rotate(-3deg) scale(1.04); }
@media (min-width: 860px) { .hero-logo-img { width: 190px; } }
@keyframes logo-in { from { opacity: 0; transform: translateY(-16px) scale(.9); } to { opacity: 1; transform: none; } }

/* headline: line-by-line rise + rotating word with shimmer */
.hero-title { margin: 16px 0 14px; }
.hero-line { display: block; animation: line-rise .8s var(--cd-ease) both; }
.hero-line + .hero-line { animation-delay: .12s; }
@keyframes line-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-rotator { display: inline-block; position: relative; vertical-align: bottom; }
.hero-rotator-word {
    display: inline-block; background: linear-gradient(90deg, #FFB02E, #FF6A1A 40%, #FFD38A 50%, #FF6A1A 60%, #FFB02E); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite;
    transition: opacity .35s ease, transform .35s var(--cd-ease);
}
.hero-rotator-word.is-out { opacity: 0; transform: translateY(-40%); }
.hero-rotator-word.is-in { opacity: 0; transform: translateY(40%); transition: none; }
@keyframes shimmer { to { background-position: -220% 0; } }
.hero-lead strong { color: #fff; }
.hero-v2 .hero-copy > .hero-logo { animation-name: logo-in; }
.hero-v2 .hero-copy > .hero-title { animation: none; }

/* stats */
.hero-v2 .hero-stats strong { font-variant-numeric: tabular-nums; }

/* right side: food stage */
.hero-stage { --px: 0; --py: 0; position: relative; aspect-ratio: 1 / 1; width: min(100%, 520px); margin: 0 auto; animation: hp-rise .9s .15s var(--cd-ease) both; }
.stage-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 26, .55), transparent 70%); filter: blur(30px); animation: glow-pulse 5s ease-in-out infinite; }
@keyframes glow-pulse { 50% { transform: scale(1.08); opacity: .8; } }
.stage-ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed rgba(255, 176, 46, .45); animation: spin 40s linear infinite; }
.stage-ring-2 { inset: 0; border: 1px solid rgba(255, 154, 31, .22); border-top-color: var(--cd-gold); border-right-color: var(--cd-orange); animation-duration: 14s; animation-direction: reverse; }
.stage-plate {
    position: absolute; inset: 16%; border-radius: 50%; overflow: hidden; background: var(--cd-roast);
    border: 6px solid rgba(255, 244, 224, .12); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 176, 46, .4);
    transform: translate(calc(var(--px) * 10px), calc(var(--py) * 10px)); transition: transform .25s ease-out;
}
.stage-plate img { width: 100%; height: 100%; object-fit: cover; animation: plate-turn 60s linear infinite; }
@keyframes plate-turn { to { transform: rotate(360deg) scale(1.02); } }
.stage-plate-empty { display: grid; place-items: center; color: var(--cd-gold); font-size: 80px; }
.stage-thumb {
    position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid var(--cd-espresso);
    box-shadow: 0 0 0 2px var(--cd-orange), 0 16px 34px rgba(0, 0, 0, .45); background: var(--cd-roast);
    transform: translate(calc(var(--px) * 22px), calc(var(--py) * 22px)); transition: transform .25s ease-out;
}
.stage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stage-thumb-1 { right: -2%; top: 4%; animation: bob 6s ease-in-out infinite; }
.stage-thumb-2 { left: -2%; bottom: 10%; width: 22%; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.stage-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px;
    background: rgba(255, 251, 242, .94); color: var(--cd-espresso); box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 700; white-space: nowrap;
    transform: translate(calc(var(--px) * 16px), calc(var(--py) * 16px)); transition: transform .25s ease-out;
}
.stage-card small { display: block; font-size: 11px; font-weight: 600; color: var(--cd-clay); }
.stage-card strong { display: block; font-size: 13.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.stage-card-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--cd-gradient); color: var(--cd-espresso-deep); }
.stage-card-live { left: 2%; top: 6%; padding: 8px 14px; border-radius: 999px; background: rgba(34, 8, 4, .78); color: var(--cd-cream); border: 1px solid rgba(255, 154, 31, .45); animation: float-in .7s .5s var(--cd-ease) both, bob 5s ease-in-out 1.2s infinite; }
.stage-card-live .status-dot.is-open { animation: live-dot 1.6s ease-out infinite; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(47, 168, 79, .6); } 100% { box-shadow: 0 0 0 9px rgba(47, 168, 79, 0); } }
.stage-card-dish { right: -4%; bottom: 22%; animation: float-in .7s .7s var(--cd-ease) both, bob 6.5s ease-in-out 1.4s infinite; }
.stage-card-delivery { left: 6%; bottom: -2%; animation: float-in .7s .9s var(--cd-ease) both, bob 7.5s ease-in-out 1.6s infinite; }
@keyframes float-in { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
@media (max-width: 859px) {
    .hero-stage { width: min(100%, 360px); margin-top: 6px; }
    .stage-card { font-size: 12px; padding: 8px 11px; }
    .stage-card-ico { width: 30px; height: 30px; border-radius: 10px; }
    .stage-card-dish { right: -2%; }
}

/* marquee strip + curved edge + scroll cue */
.hero-marquee { position: relative; border-top: 1px solid rgba(255, 154, 31, .25); border-bottom: 1px solid rgba(255, 154, 31, .25); background: rgba(0, 0, 0, .18); overflow: hidden; padding: 12px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hero-marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }
.hero-marquee-item { display: inline-flex; align-items: center; gap: 8px; color: var(--cd-cream); font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.hero-marquee-item .icon { color: var(--cd-gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-wave { display: block; width: 100%; height: 54px; margin-bottom: -1px; fill: var(--cd-cream); }
.hero-scroll { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 244, 224, .55); border-radius: 14px; display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cd-gold); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1100px) { .hero-scroll { display: block; } }
.hero-v2 + .trust-strip { margin-top: -10px; }

/* trust tiles: icons animate on hover, items reveal with stagger */
.trust-ico .icon { width: 24px; height: 24px; transition: transform var(--cd-med) var(--cd-ease); }
.trust-item:hover .trust-ico .icon { transform: rotate(-10deg) scale(1.12); }
.trust-grid .reveal:nth-child(2) { transition-delay: .08s; }
.trust-grid .reveal:nth-child(3) { transition-delay: .16s; }
.trust-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* food cards: staggered entrance; "+" turns on hover */
.menu-grid .food-card { animation: card-in .6s var(--cd-ease) both; }
.menu-grid .food-card:nth-child(2) { animation-delay: .06s; }
.menu-grid .food-card:nth-child(3) { animation-delay: .12s; }
.menu-grid .food-card:nth-child(4) { animation-delay: .18s; }
.menu-grid .food-card:nth-child(5) { animation-delay: .24s; }
.menu-grid .food-card:nth-child(n+6) { animation-delay: .3s; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.food-card .cd-add { transition: transform var(--cd-fast) var(--cd-ease), box-shadow var(--cd-fast); }
.food-card:hover .cd-add { transform: rotate(90deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
    .hero-orb, .hero-dots, .hero-logo, .hero-line, .hero-rotator-word, .stage-glow, .stage-ring, .stage-plate img, .stage-thumb, .stage-card,
    .hero-marquee-track, .hero-scroll span, .hero-stage, .menu-grid .food-card, .stage-card-live .status-dot.is-open { animation: none !important; }
    .hero-marquee { overflow-x: auto; }
    .stage-plate, .stage-thumb, .stage-card { transform: none !important; }
}
.hero-v2 h1 .hero-line { color: #fff; }
.hero-v2 h1 .hero-rotator { color: inherit; }
@media (max-width: 859px) { .hero-logo-img { width: 130px; } .hero-v2 .hero-title { margin-top: 12px; } }
.hero.hero-v2 { padding-bottom: 0; }
@media (min-width: 860px) { .hero.hero-v2 { padding-top: 48px; padding-bottom: 0; } }
.hero-v2 .hero-scroll { display: none !important; }

/* ============================================================
   Platform vs restaurant context (public site)
   Platform = Cunto Dalbo brand. Restaurant = its own identity chip.
   ============================================================ */
.brand-sub { color: var(--text-muted); }
.restaurant-chip {
    display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 46vw; padding: 5px 12px 5px 5px; margin-left: 2px;
    border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--text);
    transition: border-color var(--cd-fast), box-shadow var(--cd-fast);
}
.restaurant-chip:hover { border-color: var(--cd-orange); color: var(--text); box-shadow: var(--cd-shadow-soft); }
.restaurant-chip-logo { flex: none; width: 32px; height: 32px; border-radius: 10px; object-fit: cover; background: var(--cd-espresso); }
.restaurant-chip-initial { display: grid; place-items: center; color: var(--cd-gold); font-weight: 700; font-size: 15px; }
.restaurant-chip-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.restaurant-chip-text small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.restaurant-chip-text strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-inner { gap: 10px; }
@media (max-width: 899px) {
    .brand-sub { display: none; }
    .brand-name { font-size: 16px; }
    .restaurant-chip { margin-left: auto; }
}
@media (max-width: 380px) { .brand-text { display: none; } .restaurant-chip { max-width: 70vw; } }

/* Restaurant identity in the storefront hero (replaces the platform logo there) */
.store-identity {
    display: inline-flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 10px 18px 10px 10px; border-radius: 22px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 154, 31, .45); animation: logo-in .8s var(--cd-ease) both;
}
.store-identity-logo { flex: none; width: 60px; height: 60px; border-radius: 18px; object-fit: cover; background: var(--cd-cream); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.store-identity-initial { display: grid; place-items: center; background: var(--cd-gradient); color: var(--cd-espresso-deep); font-size: 30px; font-weight: 700; }
.store-identity-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cd-gold); }
.store-identity-name { display: block; color: #fff; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.store-identity-on { display: block; font-size: 12.5px; color: var(--cd-sand); }
.store-identity-on a { color: var(--cd-amber); font-weight: 700; }
@media (min-width: 860px) { .store-identity-logo { width: 72px; height: 72px; } .store-identity-name { font-size: 26px; } }

/* "List your restaurant" panel on the platform home */
.partner-cta {
    display: grid; gap: 16px; align-items: center; margin-top: 22px; padding: 24px; border-radius: var(--cd-radius-card);
    background: var(--surface); border: 1.5px dashed rgba(255, 106, 26, .5); box-shadow: var(--cd-shadow-soft);
}
.partner-cta h3 { font-size: 20px; margin: 4px 0; }
.partner-cta p { color: var(--text-muted); font-size: 14px; }
@media (min-width: 760px) { .partner-cta { grid-template-columns: 1fr auto; padding: 26px 30px; } }
.hero-platform .stage-card-live .icon { color: var(--cd-gold); }
#restaurants { scroll-margin-top: calc(var(--header-h) + 12px); }
.cat-pill.active .cat-pill-count { background: rgba(255, 251, 242, .9); color: var(--cd-espresso); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(160px, 1fr)); } }

/* ---- About / Contact / Terms / Privacy ---- */
.info-page { max-width: 980px; padding-top: 26px; padding-bottom: 20px; }
.info-page .section-title { margin-top: 4px; }
.info-lead { font-size: 16px; color: var(--text-muted); max-width: 720px; margin-bottom: 20px; }
.info-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.info-grid .card h2 { font-size: 17px; }
.info-grid .card p { color: var(--text-muted); font-size: 14px; }
.info-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.contact-list { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.contact-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.contact-list .icon { color: var(--cd-orange); }
.legal-body h2 { font-size: 17px; margin: 18px 0 6px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text); font-size: 14.5px; line-height: 1.65; }
.legal-body ul { padding-left: 20px; display: grid; gap: 6px; }
.site-footer .footer-links + p { margin-top: 14px; }
