/* ══════════════════════════════════════════════════════════════
   Food Junction — brand.css
   Design layer on top of style.css: logo, shared header/footer,
   light/dark mode, category themes, icons, splash, location picker.
   ══════════════════════════════════════════════════════════════ */

:root { --nav-h: 72px; --ring: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 25%, transparent); }

/* ── One green brand theme for every category; only light/dark changes ── */
body, body.theme-all, body.theme-fastfood, body.theme-desi, body.theme-homecooked {
  --theme-bg: #f6f8f7; --theme-text: #0f172a; --theme-card-bg: #ffffff; --theme-section-alt: #eef6f1;
  --theme-primary: #22c55e; --theme-primary-dark: #15803d; --theme-muted: #64748b;
  --theme-border: rgba(15, 23, 42, 0.08); --theme-nav-bg: rgba(255, 255, 255, 0.86);
}
html[data-mode="dark"] body, html[data-mode="dark"] body.theme-all, html[data-mode="dark"] body.theme-fastfood,
html[data-mode="dark"] body.theme-desi, html[data-mode="dark"] body.theme-homecooked {
  --theme-bg: #0a1018; --theme-text: #e6edf3; --theme-card-bg: #111a26; --theme-section-alt: #0d1520;
  --theme-primary: #22c55e; --theme-primary-dark: #16a34a; --theme-muted: #94a3b8;
  --theme-border: rgba(148, 163, 184, 0.14); --theme-nav-bg: rgba(10, 16, 24, 0.86);
}

/* Neutral surfaces and layered "3D" shadows that follow the theme */
body {
  --surface: var(--theme-card-bg); --surface-2: color-mix(in srgb, var(--theme-text) 5%, var(--theme-card-bg)); --line: var(--theme-border);
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --sh-2: 0 2px 4px rgba(15, 23, 42, .04), 0 8px 16px -4px rgba(15, 23, 42, .08);
  --sh-3: 0 4px 8px rgba(15, 23, 42, .04), 0 16px 32px -8px rgba(15, 23, 42, .14);
  --sh-4: 0 8px 16px rgba(15, 23, 42, .06), 0 28px 56px -12px rgba(15, 23, 42, .22);
  --sh-green: 0 10px 24px -6px rgba(34, 197, 94, .45);
  --shadow: var(--sh-2);
}
html[data-mode="dark"] body {
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 16px -4px rgba(0, 0, 0, .45);
  --sh-3: 0 4px 8px rgba(0, 0, 0, .3), 0 16px 32px -8px rgba(0, 0, 0, .6);
  --sh-4: 0 8px 16px rgba(0, 0, 0, .35), 0 28px 56px -12px rgba(0, 0, 0, .7);
}

/* ── Page loader: the logo pulses while a page loads ───────────── */
html::before, html::after { content: ''; position: fixed; z-index: 100000; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
html::before { inset: 0; background: #f6f8f7; }
html[data-mode="dark"]::before { background: #0a1018; }
html::after { left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 20px; background: url("../img/logo.svg") center / contain no-repeat; }
html.fj-loading::before, html.fj-loading::after { opacity: 1; visibility: visible; }
html.fj-loading::after { animation: fjLoaderPulse 1.1s ease-in-out infinite; }
@keyframes fjLoaderPulse {
  0% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  60% { transform: scale(1); box-shadow: 0 0 0 22px rgba(34, 197, 94, 0); }
  100% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Scroll progress bar ───────────────────────────────────────── */
.fj-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.fj-progress span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #ffd43b); transform-origin: left; transform: scaleX(var(--scroll, 0)); }

/* ── Icons ─────────────────────────────────────────────────────── */
.ico, svg.lucide { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; stroke-width: 2; }
.btn svg.lucide { margin-right: 6px; }
.btn svg.lucide:last-child:not(:first-child) { margin: 0 0 0 6px; }

/* ── Brand ─────────────────────────────────────────────────────── */
.fj-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--theme-text); }
.fj-word { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1; color: var(--theme-text); }
.fj-word span { color: var(--theme-primary); transition: color .6s ease; }
.fj-brand-sm .fj-word { font-size: 1.25rem; }
.fj-logo-mark { display: block; flex-shrink: 0; border-radius: 12px; box-shadow: 0 6px 16px rgba(21, 128, 61, 0.28); }

/* Logo animation on every page load (short) */
.fj-logo-animate .fj-logo-plate { stroke-dasharray: 100; stroke-dashoffset: 100; animation: fjDraw 0.9s 0.15s ease forwards; }
.fj-logo-animate .fj-logo-dot { transform-origin: 24px 24px; transform: scale(0); animation: fjPop 0.45s 0.85s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.fj-logo-animate .fj-logo-fork { transform: translateY(-6px); opacity: 0; animation: fjSlide 0.5s 0.35s ease forwards; }
.fj-logo-animate .fj-logo-knife { transform: translateY(6px); opacity: 0; animation: fjSlide 0.5s 0.45s ease forwards; }
.fj-brand:hover .fj-logo-plate { animation: fjSpin 0.8s ease; transform-origin: 24px 24px; }
@keyframes fjDraw { to { stroke-dashoffset: 0; } }
@keyframes fjPop { to { transform: scale(1); } }
@keyframes fjSlide { to { transform: none; opacity: 1; } }
@keyframes fjSpin { from { transform: rotate(-120deg); } to { transform: rotate(0); } }

/* ── Header ────────────────────────────────────────────────────── */
.fj-header { transition: background .6s ease, box-shadow .3s ease, border-color .6s ease; }
.fj-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.fj-nav { padding: 14px 0; gap: 20px; min-height: var(--nav-h); }
.fj-links { display: flex; gap: 6px; margin-left: 12px; }
.fj-link { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--theme-text); text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .8; transition: .25s; }
.fj-link:hover { opacity: 1; background: var(--surface-2); }
.fj-link.active { opacity: 1; color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 12%, transparent); }
.fj-actions { margin-left: auto; gap: 10px; }
.fj-loc { display: inline-flex; align-items: center; gap: 8px; max-width: 230px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--theme-text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: .25s; }
.fj-loc:hover { border-color: var(--theme-primary); }
.fj-loc > svg:first-child { color: var(--theme-primary); }
.fj-loc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-loc-caret { opacity: .5; }
.fj-icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--theme-text); cursor: pointer; transition: .25s; font: inherit; }
.fj-icon-btn:hover { border-color: var(--theme-primary); color: var(--theme-primary); transform: translateY(-1px); }
.fj-icon-btn:focus-visible, .fj-loc:focus-visible, .fj-account:focus-visible, .fj-link:focus-visible { outline: none; box-shadow: var(--ring); }
.fj-icon-btn .cart-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--theme-primary); color: #fff; font-size: .7rem; font-weight: 800; align-items: center; justify-content: center; border: 2px solid var(--theme-bg); }
.fj-account { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--theme-primary); color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem; transition: .25s; }
.fj-account:hover { background: var(--theme-primary-dark); transform: translateY(-1px); }
.fj-burger { display: none; }

/* Old per-page navbar items that the shared header replaces */
.fj-header .menu-trigger-btn.fj-burger { padding: 0; box-shadow: none; }

/* ── Mobile menu ───────────────────────────────────────────────── */
.fj-drawer { background: var(--theme-card-bg); color: var(--theme-text); }
.fj-drawer .drawer-header { display: flex; align-items: center; justify-content: space-between; }
.fj-drawer .drawer-close { display: inline-flex; align-items: center; justify-content: center; }
.fj-drawer-loc { display: flex; align-items: center; gap: 12px; width: calc(100% - 40px); margin: 6px 20px 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--theme-text); font: inherit; text-align: left; cursor: pointer; }
.fj-drawer-loc > svg:first-child { color: var(--theme-primary); }
.fj-drawer-loc > span { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-drawer-loc small { display: block; font-weight: 500; font-size: .72rem; color: var(--theme-muted); }
.fj-drawer .drawer-link { display: flex; align-items: center; gap: 12px; width: 100%; border: none; background: none; font: inherit; font-weight: 600; color: var(--theme-text); cursor: pointer; text-align: left; }
.fj-drawer .drawer-link.active { color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 10%, transparent); }
.fj-drawer .drawer-link:hover { color: var(--theme-primary); }
.fj-drawer .drawer-icon { width: 20px; height: 20px; opacity: .8; }
.fj-drawer .fj-danger { color: #ef4444; }
.fj-drawer .fj-accent { color: var(--theme-primary); }

/* ── Footer ────────────────────────────────────────────────────── */
.fj-footer { background: #0b1220; color: #cbd5e1; }
.fj-footer .fj-brand, .fj-footer .fj-word { color: #fff; }
.fj-footer .fj-word span { color: #22c55e; }
.fj-footer .footer-desc { margin-top: 14px; max-width: 340px; color: #94a3b8; }
.fj-footer .footer-links { display: flex; flex-direction: column; gap: 10px; }
.fj-footer .footer-links a, .fj-footer .fj-footer-line { color: #94a3b8; text-decoration: none; font-size: .92rem; }
.fj-footer .footer-links a:hover { color: #fff; }
.fj-footer-line { display: inline-flex; align-items: center; gap: 8px; }
.fj-footer-line svg { color: #22c55e; }

/* ── Category pills with icons ─────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 8px; }
.pill svg.lucide { width: 18px; height: 18px; }
.category-strip { top: var(--nav-h); }

/* ── Animated background icons (replace floating emojis) ───────── */
.theme-backdrop { z-index: -1; }
.fj-blob { position: absolute; border-radius: 50%; will-change: transform; }
.fj-blob-1 { width: 60vmax; height: 60vmax; left: -20vmax; top: -18vmax; background: radial-gradient(circle, rgba(34, 197, 94, .16), transparent 62%); animation: fjDrift1 26s ease-in-out infinite alternate; }
.fj-blob-2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 30vh; background: radial-gradient(circle, rgba(255, 212, 59, .13), transparent 62%); animation: fjDrift2 32s ease-in-out infinite alternate; }
.fj-blob-3 { width: 45vmax; height: 45vmax; left: 20vw; bottom: -25vmax; background: radial-gradient(circle, rgba(16, 185, 129, .12), transparent 62%); animation: fjDrift1 38s ease-in-out infinite alternate-reverse; }
@keyframes fjDrift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.1); } }
@keyframes fjDrift2 { to { transform: translate3d(-10vw, -8vh, 0) scale(1.15); } }
.fj-floats { position: absolute; inset: 0; }
.fj-float { position: absolute; bottom: -80px; color: var(--theme-primary); opacity: 0; animation: fjFloat 34s linear infinite; will-change: transform; }
.fj-float svg { width: 100%; height: 100%; stroke-width: 1.5; }
@keyframes fjFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
  10%, 85% { opacity: .13; }
  50% { transform: translate3d(30px, -58vh, 0) rotate(80deg); }
  100% { transform: translate3d(0, -118vh, 0) rotate(160deg); opacity: 0; }
}
body.fj-dark .fj-float { color: #4ade80; }

/* ── First-visit splash ────────────────────────────────────────── */
html.fj-splash-lock, html.fj-splash-lock body { overflow: hidden; }
#fjSplash { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 600px at 50% 40%, #12321f 0%, #0b1220 60%, #070b14 100%); transition: opacity .6s ease, visibility .6s ease; cursor: pointer; }
#fjSplash.hide { opacity: 0; visibility: hidden; }
.fj-splash-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, .35), transparent 65%); filter: blur(20px); animation: fjGlow 2.6s ease-in-out infinite alternate; }
@keyframes fjGlow { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.1); opacity: 1; } }
.fj-splash-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; }
.fj-splash-logo { border-radius: 30px; box-shadow: 0 20px 60px rgba(34, 197, 94, .35); animation: fjLogoIn .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.fj-splash-logo .fj-logo-plate { stroke-dasharray: 100; stroke-dashoffset: 100; animation: fjDraw 1s .35s ease forwards; }
.fj-splash-logo .fj-logo-dot { transform-origin: 24px 24px; transform: scale(0); animation: fjPop .5s 1.15s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.fj-splash-logo .fj-logo-fork { transform: translateX(-10px); opacity: 0; animation: fjSlide .55s .55s ease forwards; }
.fj-splash-logo .fj-logo-knife { transform: translateX(10px); opacity: 0; animation: fjSlide .55s .65s ease forwards; }
@keyframes fjLogoIn { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.fj-splash-word { margin-top: 26px; font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -1px; color: #fff; }
.fj-splash-word b { display: inline-block; font-weight: 800; opacity: 0; transform: translateY(24px); animation: fjLetter .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.fj-splash-word b.g { color: #22c55e; }
.fj-splash-word b.sp { width: .3em; }
@keyframes fjLetter { to { opacity: 1; transform: none; } }
.fj-splash-tag { margin-top: 10px; color: rgba(255, 255, 255, .6); font-size: .85rem; letter-spacing: 4px; text-transform: uppercase; opacity: 0; animation: fjFade .6s 1.5s ease forwards; }
@keyframes fjFade { to { opacity: 1; } }
.fj-splash-bar { margin-top: 34px; width: 150px; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fj-splash-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #ffd43b); animation: fjBar 1.4s 1s ease forwards; }
@keyframes fjBar { to { width: 100%; } }

/* ── Modal + location picker ───────────────────────────────────── */
.fj-modal-overlay { position: fixed; inset: 0; z-index: 4000; display: none; align-items: flex-end; justify-content: center; background: rgba(2, 6, 23, .6); backdrop-filter: blur(4px); padding: 0; }
.fj-modal-overlay.active { display: flex; animation: fjFade .2s ease forwards; }
.fj-modal { width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; gap: 14px; background: var(--theme-card-bg); color: var(--theme-text); border-radius: 22px 22px 0 0; padding: 22px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: fjSheet .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes fjSheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.fj-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fj-modal-head h3 { font-size: 1.2rem; margin: 0 0 4px; }
.fj-modal-head p { margin: 0; color: var(--theme-muted); font-size: .88rem; }
.fj-input-icon { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.fj-input-icon:focus-within { border-color: var(--theme-primary); }
.fj-input-icon svg { color: var(--theme-muted); }
.fj-input-icon input { flex: 1; border: none; outline: none; background: transparent; padding: 13px 0; font: inherit; color: var(--theme-text); }
.fj-loc-list { overflow-y: auto; min-height: 120px; margin: 0 -6px; padding: 0 6px; }
.fj-loc-group { margin-bottom: 10px; }
.fj-loc-group-title { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--theme-muted); margin: 6px 0 8px; }
.fj-loc-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: none; border-radius: 12px; background: none; color: var(--theme-text); font: inherit; font-size: .93rem; text-align: left; cursor: pointer; }
.fj-loc-option svg { color: var(--theme-muted); }
.fj-loc-option:hover { background: var(--surface-2); }
.fj-loc-option:hover svg { color: var(--theme-primary); }
.fj-loc-empty { color: var(--theme-muted); font-size: .88rem; padding: 10px 4px; }
.fj-loc-custom { border-top: 1px solid var(--line); padding-top: 12px; }
.fj-loc-custom-row { display: flex; gap: 10px; }
.fj-loc-custom-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--theme-text); font: inherit; outline: none; }
.fj-loc-custom-row input:focus { border-color: var(--theme-primary); }
.fj-loc-custom-row .btn { padding: 12px 20px; border-radius: 12px; }
@media (min-width: 640px) {
  .fj-modal-overlay { align-items: center; padding: 20px; }
  .fj-modal { border-radius: 22px; }
}

/* ── Dark surfaces for older components with fixed light colours ─ */
body.fj-dark .cart-sidebar, body.fj-dark .modal, body.fj-dark .nav-drawer, body.fj-dark .search-autocomplete { background: var(--theme-card-bg) !important; color: var(--theme-text); }
body.fj-dark .cart-sidebar [style*="background:#fafafa"], body.fj-dark .cart-sidebar [style*="background:#f5f5f5"],
body.fj-dark .modal [style*="background:#f5f5f5"], body.fj-dark .modal [style*="background:#fff"] { background: var(--surface-2) !important; color: var(--theme-text) !important; }
body.fj-dark .cart-sidebar h3, body.fj-dark .modal h3, body.fj-dark .modal [style*="color:#111"], body.fj-dark .cart-item [style*="font-weight:600"] { color: var(--theme-text) !important; }
body.fj-dark .cart-item, body.fj-dark .cart-footer, body.fj-dark .modal-header { border-color: var(--line) !important; }
body.fj-dark .form-control, body.fj-dark select, body.fj-dark textarea, body.fj-dark input[type="text"], body.fj-dark input[type="tel"], body.fj-dark input[type="email"], body.fj-dark input[type="password"] { background: var(--surface-2); color: var(--theme-text); border-color: var(--line); }
body.fj-dark .auto-item:hover { background: var(--surface-2); }
body.fj-dark .skeleton-card { background: var(--theme-card-bg); }

/* ── Responsive header ─────────────────────────────────────────── */
@media (max-width: 1100px) { .fj-links { display: none; } .fj-burger { display: inline-flex; } }
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .fj-nav { padding: 10px 0; gap: 10px; }
  .fj-loc { display: none; }
  .fj-word { font-size: 1.25rem; }
  .fj-brand .fj-logo-mark { width: 34px; height: 34px; }
  .fj-account .fj-account-name { display: none; }
  .fj-account { width: 42px; padding: 0; justify-content: center; }
  .fj-actions { gap: 8px; }
}
@media (max-width: 340px) { .fj-header .fj-word { display: none; } }
/* style.css hides .navbar-actions on phones and stretches every .btn; the shared header and these buttons stay compact */
.fj-header .fj-actions { display: flex !important; }
@media (max-width: 480px) {
  .fj-hero-search-btn, .pc-add-btn, .fj-loc-custom-row .btn, .fj-empty .btn, .fj-header .btn { width: auto !important; }
  .fj-actions { gap: 6px; }
  .fj-icon-btn, .fj-account { width: 38px; height: 38px; }
  .fj-header .fj-mode-btn { display: none; } /* available in the mobile menu */
  .fj-header .fj-word { font-size: 1.12rem; }
  .fj-brand { gap: 8px; }
  .fj-header .fj-logo-mark { width: 32px; height: 32px; }
}
/* Laptops/tablets: links + location + buttons must fit without pushing Login off-screen */
@media (max-width: 1360px) {
  .fj-nav { gap: 12px; }
  .fj-links { margin-left: 4px; gap: 2px; }
  .fj-link { padding: 8px 10px; font-size: .9rem; }
  .fj-loc { max-width: 170px; }
}
@media (max-width: 1100px) {
  .fj-header .fj-loc { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .fj-header .fj-loc-text, .fj-header .fj-loc-caret { display: none; }
}
/* Small phones (≤400px): logo + cart + bell + account + menu must all fit */
@media (max-width: 400px) {
  .fj-header .container { padding-left: 10px; padding-right: 10px; }
  .fj-nav { gap: 4px; }
  .fj-header .fj-actions { gap: 3px; }
  .fj-header .fj-icon-btn, .fj-header .fj-account { width: 32px; height: 32px; }
  .fj-header .fj-icon-btn svg, .fj-header .fj-account svg { width: 18px; height: 18px; }
  .fj-header .fj-word { font-size: .92rem; letter-spacing: -.3px; }
  .fj-header .fj-logo-mark { width: 28px; height: 28px; }
  .fj-brand { gap: 6px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fj-float, .fj-logo-animate *, .fj-splash-glow { animation: none !important; }
  .fj-logo-animate .fj-logo-plate { stroke-dashoffset: 0; }
  .fj-logo-animate .fj-logo-dot, .fj-logo-animate .fj-logo-fork, .fj-logo-animate .fj-logo-knife { transform: none; opacity: 1; }
}

/* ══ Page sections (landing + menu) ════════════════════════════ */
main, .fj-page { padding-top: var(--nav-h); }
/* Scroll reveal: fade-up by default, other directions via data-reveal; --d staggers cards */
.reveal, [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
[data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
[data-reveal="right"] { transform: translate3d(36px, 0, 0); }
[data-reveal="zoom"] { transform: scale(.94); }
.reveal.visible, [data-reveal].visible { opacity: 1; transform: none; }
.delay-1 { --d: 90ms; } .delay-2 { --d: 180ms; } .delay-3 { --d: 270ms; }

/* 3D cards: layered shadow + tilt toward the pointer */
.product-card, .fj-cat-card, .shop-card, .fj-step, .fj-card, .order-card, .profile-card { box-shadow: var(--sh-2); }
.fj-tilt { transform-style: preserve-3d; }
.fj-tilt.visible, .fj-tilt:not(.reveal) { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease, opacity .7s ease; transition-delay: 0ms; }
.fj-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translate3d(0, -8px, 0); box-shadow: var(--sh-4); }
.fj-tilt:hover img { transform: scale(1.06); }
.product-card img, .shop-card img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.btn-primary { box-shadow: var(--sh-green); }
.btn-primary:active { transform: translateY(1px) scale(.98); }

/* Mobile bottom tab bar (app-style) */
.fj-tabbar { display: none; }
@media (max-width: 768px) {
  .fj-tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1200; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 22px; background: var(--theme-nav-bg); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); box-shadow: var(--sh-4); }
  .fj-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border: none; border-radius: 16px; background: none; color: var(--theme-muted); text-decoration: none; font: inherit; font-size: .66rem; font-weight: 600; cursor: pointer; transition: .2s; }
  .fj-tab svg { width: 21px; height: 21px; }
  .fj-tab.active { color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 12%, transparent); }
  .fj-tab .cart-badge { position: absolute; top: 2px; left: 55%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--theme-primary); color: #fff; font-size: .62rem; font-weight: 800; align-items: center; justify-content: center; }
  body.fj-has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.fj-has-tabbar #fj-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .fj-hide-mobile { display: none !important; }
}
.overline { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 1.2px; font-size: .78rem; }
.fj-section-head { text-align: center; margin-bottom: 36px; }
.fj-section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; margin: 6px 0 8px; }
.fj-section-head p { color: var(--theme-muted); max-width: 560px; margin: 0 auto; }
.fj-section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; flex-wrap: wrap; }
.fj-section-head-row p { margin: 0; }
.fj-link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--theme-primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.fj-link-more:hover { gap: 10px; }
.fj-count { color: var(--theme-muted); font-size: .9rem; margin: 18px 0; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* Hero */
.fj-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 56px) 0 70px; background:
  radial-gradient(900px 500px at 85% 20%, color-mix(in srgb, var(--theme-primary) 18%, transparent), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%), var(--theme-bg); }
.fj-hero-shape { position: absolute; border-radius: 50%; pointer-events: none; border: 1px dashed color-mix(in srgb, var(--theme-primary) 30%, transparent); }
.fj-hero-shape-1 { width: 520px; height: 520px; right: -140px; top: 40px; animation: fjSpinSlow 60s linear infinite; }
.fj-hero-shape-2 { width: 300px; height: 300px; left: -120px; bottom: -120px; animation: fjSpinSlow 45s linear infinite reverse; }
@keyframes fjSpinSlow { to { transform: rotate(360deg); } }
.fj-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.fj-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); font-weight: 700; font-size: .82rem; animation: fadeUp .7s ease both; }
.fj-hero h1 { margin: 18px 0 16px; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; color: var(--theme-text); animation: fadeUp .7s .08s ease both; }
.fj-hero h1 span { color: var(--theme-primary); position: relative; white-space: nowrap; }
.fj-hero h1 span::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; border-radius: 9px; background: color-mix(in srgb, var(--gold) 70%, transparent); z-index: -1; transform-origin: left; animation: fjUnderline .8s .7s ease both; }
@keyframes fjUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fj-hero-copy > p { color: var(--theme-muted); font-size: 1.08rem; line-height: 1.7; max-width: 560px; animation: fadeUp .7s .16s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.fj-hero-search { position: relative; margin-top: 28px; max-width: 580px; padding: 6px 6px 6px 18px; gap: 8px; border-radius: 18px !important; box-shadow: 0 18px 40px rgba(15, 23, 42, .1) !important; animation: fadeUp .7s .24s ease both; }
.fj-hero-search-icon { color: var(--theme-muted); }
.fj-hero-search input { padding: 12px 4px !important; font-size: 1rem !important; border-radius: 0 !important; }
.fj-hero-search-btn { padding: 13px 24px !important; border-radius: 13px !important; box-shadow: none !important; }
.fj-clear { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--surface-2); color: var(--theme-muted); cursor: pointer; }
.fj-hero-search .search-autocomplete { top: calc(100% + 8px); left: 0; right: 0; }

/* Smart search suggestions (sits above everything below the search box) */
.fj-hero-search, .search-bar { position: relative; z-index: 30; }
.fj-hero-search.fj-sugg-open { z-index: 60; }
.fj-sugg { position: fixed; z-index: 1250; display: none; max-height: 460px; overscroll-behavior: contain; overflow-y: auto; padding: 10px; border-radius: 20px; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: var(--sh-4); text-align: left; color: var(--theme-text); }
.fj-sugg.open { display: block; animation: fjSheet .2s ease; }
.fj-sugg.up { transform-origin: bottom center; }
.fj-sugg-sec { padding: 6px 6px 10px; }
.fj-sugg-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--theme-muted); }
.fj-sugg-head svg { width: 14px; height: 14px; color: #f97316; }
.fj-sugg-head button { margin-left: auto; border: none; background: none; color: var(--theme-primary); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.fj-sugg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px; }
.fj-sugg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--theme-text); font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; transition: .15s; }
.fj-sugg-chip svg { width: 15px; height: 15px; color: var(--theme-primary); }
.fj-sugg-chip:hover, .fj-sugg-chip.active { border-color: var(--theme-primary); color: var(--theme-primary); }
.fj-sugg-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: none; border-radius: 14px; background: none; color: var(--theme-text); font: inherit; text-align: left; cursor: pointer; }
.fj-sugg-row:hover, .fj-sugg-row.active { background: var(--surface-2); }
.fj-sugg-row img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.fj-sugg-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); flex-shrink: 0; }
.fj-sugg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fj-sugg-main b { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-sugg-main b mark { background: none; color: var(--theme-primary); font-weight: 800; }
.fj-sugg-main small { display: flex; align-items: center; gap: 4px; color: var(--theme-muted); font-size: .76rem; }
.fj-sugg-main small svg { width: 12px; height: 12px; }
.fj-sugg-row em { font-style: normal; font-weight: 700; color: var(--theme-primary); white-space: nowrap; font-size: .88rem; }
.fj-sugg-all { margin-bottom: 4px; }
.fj-sugg-all > svg:first-child { width: 46px; height: 46px; padding: 13px; border-radius: 12px; background: var(--surface-2); color: var(--theme-muted); }
.fj-sugg-all span { flex: 1; }
.fj-sugg-none { display: flex; align-items: center; gap: 12px; padding: 16px 12px; color: var(--theme-muted); font-size: .9rem; }
.fj-sugg-none svg { width: 26px; height: 26px; flex-shrink: 0; }
.fj-auto-empty { padding: 14px; text-align: center; color: var(--theme-muted); font-size: .88rem; }
.auto-item-sub { display: flex; align-items: center; gap: 4px; }
.auto-item-sub svg { width: 12px; height: 12px; }
.fj-deliver-to { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 2px; border: none; background: none; color: var(--theme-muted); font: inherit; font-size: .9rem; cursor: pointer; animation: fadeUp .7s .3s ease both; }
.fj-deliver-to svg { color: var(--theme-primary); width: 16px; height: 16px; }
.fj-deliver-to b { color: var(--theme-text); }
.fj-deliver-to span { color: var(--theme-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fj-hero-stats { display: flex; gap: 36px; margin-top: 34px; animation: fadeUp .7s .36s ease both; }
.fj-hero-stats div { display: flex; flex-direction: column; }
.fj-hero-stats b { font-size: 1.7rem; font-weight: 800; color: var(--theme-text); }
.fj-hero-stats span { font-size: .82rem; color: var(--theme-muted); }

.fj-hero-visual { position: relative; height: 460px; animation: fadeUp .9s .2s ease both; }
.fj-hero-plate { position: absolute; inset: 30px 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--theme-primary) 35%, transparent), color-mix(in srgb, var(--theme-primary) 8%, transparent) 70%); filter: blur(2px); }
.fj-hero-cards { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 0 30px; }
.fj-hero-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); animation: fjBob 6s ease-in-out infinite; }
.fj-hero-card:nth-child(1) { margin-right: 60px; }
.fj-hero-card:nth-child(2) { margin-left: 60px; animation-delay: -2s; }
.fj-hero-card:nth-child(3) { margin-right: 30px; animation-delay: -4s; }
.fj-hero-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.fj-hero-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fj-hero-card b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-hero-card span { font-size: .78rem; color: var(--theme-muted); }
.fj-hero-card em { font-style: normal; font-weight: 800; color: var(--theme-primary); white-space: nowrap; }
.fj-skel { height: 88px; background: linear-gradient(90deg, var(--surface-2), var(--theme-card-bg), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes fjBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fj-hero-badge { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15, 23, 42, .12); font-size: .8rem; }
.fj-hero-badge svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--theme-primary) 14%, transparent); color: var(--theme-primary); }
.fj-hero-badge div { display: flex; flex-direction: column; }
.fj-hero-badge span { color: var(--theme-muted); }
.fj-hero-badge-1 { top: 6px; left: 0; animation: fjBob 7s ease-in-out infinite; }
.fj-hero-badge-2 { bottom: 10px; right: 0; animation: fjBob 7s -3s ease-in-out infinite; }

/* Category cards — each in its own category colour */
.fj-cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { animation: none !important; }
.fj-cat-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; min-height: 260px; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: #0b1220; color: #fff; font: inherit; text-align: left; cursor: pointer; isolation: isolate; }
.fj-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.fj-cat-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 9, .05) 20%, rgba(5, 12, 9, .78) 75%, rgba(5, 12, 9, .92)); }
.fj-cat-card:hover { border-color: var(--theme-primary); }
.fj-cat-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--theme-primary); color: #fff; margin-bottom: 8px; box-shadow: var(--sh-green); transform: translateZ(30px); }
.fj-cat-icon svg { width: 26px; height: 26px; }
.fj-cat-title { font-size: 1.3rem; font-weight: 800; transform: translateZ(20px); }
.fj-cat-text { color: rgba(255, 255, 255, .8); font-size: .9rem; }
.fj-cat-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-weight: 700; font-size: .85rem; transition: gap .25s ease, background .25s ease; }
.fj-cat-card:hover .fj-cat-go { gap: 10px; background: var(--theme-primary); }

/* Themed category banner (changes with the active category) */
.fj-cat-banner { display: flex; align-items: center; gap: 22px; padding: 30px 32px; border-radius: 24px; color: #fff; background:
  radial-gradient(500px 200px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
  linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark)); box-shadow: 0 20px 40px color-mix(in srgb, var(--theme-primary) 25%, transparent); transition: background .6s ease; }
.fj-cat-banner .overline { color: rgba(255, 255, 255, .85); }
.fj-cat-banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 4px 0; }
.fj-cat-banner p { margin: 0; opacity: .9; }
.fj-cat-banner { position: relative; overflow: hidden; }
.fj-cat-banner > div, .fj-cat-banner > .fj-cat-banner-icon { position: relative; z-index: 1; }
.fj-cat-banner-photo { position: absolute; right: 0; top: 0; height: 100%; width: 42%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); opacity: .9; transition: opacity .4s ease; }
@media (max-width: 768px) { .fj-cat-banner-photo { width: 60%; opacity: .35; } }
.fj-cat-banner-icon { width: 72px; height: 72px; flex-shrink: 0; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.fj-cat-banner-icon svg { width: 34px; height: 34px; }

/* Sticky category strip + sort */
.category-strip { margin-top: 22px; padding: 14px 0; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); }
.fj-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.category-pills { scrollbar-width: none; padding: 4px 2px; }
.category-pills::-webkit-scrollbar { display: none; }
.pill { padding: 10px 18px; font-size: .9rem; border: 1px solid var(--line); box-shadow: none; }
.pill.active { box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-primary) 30%, transparent); border-color: transparent; }
.fj-sort { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--theme-card-bg); color: var(--theme-muted); flex-shrink: 0; }
.fj-sort select { border: none; outline: none; background: transparent; color: var(--theme-text); font: inherit; font-size: .88rem; font-weight: 600; padding: 10px 0; cursor: pointer; }

/* How it works */
.fj-steps-section { background: var(--theme-section-alt); }
.fj-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.fj-step { position: relative; padding: 28px 22px; border-radius: 20px; background: var(--theme-card-bg); border: 1px solid var(--line); }
.fj-step-num { position: absolute; top: 18px; right: 20px; font-size: 2.4rem; font-weight: 800; color: color-mix(in srgb, var(--theme-text) 8%, transparent); }
.fj-step-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); margin-bottom: 16px; }
.fj-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.fj-step p { color: var(--theme-muted); font-size: .9rem; line-height: 1.55; }

/* CTA */
.fj-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 28px; color: #fff; background: radial-gradient(600px 300px at 90% 10%, rgba(34, 197, 94, .35), transparent 60%), #0b1220; flex-wrap: wrap; }
.fj-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.fj-cta p { color: #94a3b8; }

/* Menu page hero — full-width in the active category colours */
.fj-menu-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 48px) 0 56px; color: #fff; text-align: center; background:
  radial-gradient(700px 300px at 85% 0%, rgba(255, 255, 255, .2), transparent 60%),
  radial-gradient(500px 260px at 0% 100%, rgba(0, 0, 0, .18), transparent 60%),
  linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark)); transition: background .6s ease; }
.fj-menu-hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto; }
/* Category hero: text on the left, the category's dish photo with orbiting icons on the right */
.fj-cat-hero { text-align: left; }
.fj-cat-hero .fj-cat-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.fj-cat-hero .fj-menu-hero-inner { align-items: flex-start; max-width: none; margin: 0; }
.fj-cat-hero .fj-menu-hero-inner > p { max-width: 520px; }
.fj-crumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .8); margin-bottom: 14px; }
.fj-crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.fj-crumbs a:hover { color: #fff; }
.fj-crumbs b { color: #fff; }
.fj-crumbs svg { width: 14px; height: 14px; opacity: .7; }
.fj-cat-visual { position: relative; width: min(380px, 100%); aspect-ratio: 1; justify-self: center; }
.fj-cat-visual-photo { position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; border: 8px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .45); animation: fjSpinSlow 80s linear infinite; }
.fj-cat-visual-photo img { width: 100%; height: 100%; object-fit: cover; }
.fj-cat-visual-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); animation: fjSpinSlow 40s linear infinite reverse; }
.fj-cat-visual-ring span { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--theme-primary-dark); box-shadow: var(--sh-3); animation: fjSpinSlow 40s linear infinite; }
.fj-cat-visual-ring span svg { width: 24px; height: 24px; }
.fj-cat-badge { position: absolute; left: 0; bottom: 8%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; color: #0f172a; box-shadow: var(--sh-4); font-size: .8rem; animation: fjBob 6s ease-in-out infinite; }
.fj-cat-badge svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, #22c55e 14%, transparent); color: #16a34a; }
.fj-cat-badge b { display: block; font-size: .9rem; }
.fj-cat-badge small { color: #64748b; }
@media (max-width: 860px) {
  .fj-cat-hero .fj-cat-hero-grid { grid-template-columns: 1fr; }
  .fj-cat-visual { display: none; }
}
.fj-menu-hero-icon { width: 76px; height: 76px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); margin-bottom: 18px; animation: fjLogoIn .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.fj-menu-hero-icon svg { width: 36px; height: 36px; }
.fj-eyebrow-light { background: rgba(255, 255, 255, .16) !important; color: #fff !important; }
.fj-menu-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -1px; margin: 14px 0 8px; }
.fj-menu-hero p { opacity: .92; max-width: 560px; }
.fj-menu-hero .fj-hero-search { width: 100%; margin: 26px 0 0; padding-right: 10px; color: var(--theme-text); }
.fj-menu-strip { margin-top: 0; }
.fj-menu-main { padding-top: 10px; min-height: 50vh; }

@media (max-width: 992px) {
  .fj-hero-grid { grid-template-columns: 1fr; }
  .fj-hero-visual { height: 340px; max-width: 520px; width: 100%; margin: 0 auto; }
  .fj-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fj-hero { padding: calc(var(--nav-h) + 28px) 0 40px; }
  .fj-hero-search-btn { padding: 12px 16px !important; }
  .fj-hero-stats { gap: 22px; }
  .fj-hero-stats b { font-size: 1.35rem; }
  .fj-hero-visual { display: none; }
  .fj-cat-cards { grid-template-columns: 1fr; gap: 14px; }
  .fj-cat-card { min-height: 150px; flex-direction: row; flex-wrap: wrap; align-items: flex-end; column-gap: 14px; padding: 18px; }
  .fj-cat-icon { margin-bottom: 0; width: 46px; height: 46px; }
  .fj-cat-card .fj-cat-title { flex: 1; align-self: center; }
  .fj-cat-text { display: none; }
  .fj-cat-go { margin-top: 0; align-self: center; }
  .fj-cat-banner { padding: 22px; gap: 16px; }
  .fj-cat-banner-icon { width: 56px; height: 56px; }
  .fj-strip-row { flex-direction: column; align-items: stretch; }
  .fj-sort { align-self: flex-end; }
  .fj-steps { grid-template-columns: 1fr; }
  .fj-cta { padding: 28px; }
  .section, .section-sm { padding: 48px 0; }
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
}

/* ══ Login / Register ══════════════════════════════════════════ */
.fj-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--theme-bg); }
.fj-auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; color: #fff; background:
  radial-gradient(600px 400px at 100% 0%, rgba(34, 197, 94, .35), transparent 60%),
  radial-gradient(500px 300px at 0% 100%, rgba(255, 212, 59, .14), transparent 60%), #0b1220; }
.fj-auth-side .fj-word { color: #fff; }
.fj-auth-side .fj-word span { color: #22c55e; }
.fj-auth-side h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; max-width: 460px; }
.fj-auth-side h2 span { color: #22c55e; }
.fj-auth-side p { color: #94a3b8; max-width: 420px; margin-top: 12px; }
.fj-auth-points { display: grid; gap: 14px; margin-top: 28px; }
.fj-auth-points div { display: flex; align-items: center; gap: 12px; color: #cbd5e1; font-size: .92rem; }
.fj-auth-points svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(34, 197, 94, .14); color: #22c55e; }
.fj-auth-floats { position: absolute; inset: 0; pointer-events: none; color: #22c55e; }
.fj-auth-floats svg { position: absolute; opacity: .08; width: 60px; height: 60px; stroke-width: 1.3; animation: fjBob 8s ease-in-out infinite; }
.fj-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.fj-auth-box { width: 100%; max-width: 430px; }
.fj-auth-box h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.5px; }
.fj-auth-box > p { color: var(--theme-muted); margin: 4px 0 22px; }
.fj-role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-2); margin-bottom: 22px; }
.fj-role-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: none; border-radius: 12px; background: transparent; color: var(--theme-muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: .2s; }
.fj-role-tab svg { width: 20px; height: 20px; }
.fj-role-tab.active { background: var(--theme-card-bg); color: var(--theme-primary); box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
.fj-field { margin-bottom: 14px; }
.fj-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--theme-muted); margin-bottom: 6px; }
.fj-field .fj-input-icon input, .fj-field .fj-input-icon select { flex: 1; border: none; outline: none; background: transparent; padding: 13px 0; font: inherit; color: var(--theme-text); }
.fj-field .fj-input-icon select { cursor: pointer; }
.fj-pass-toggle { border: none; background: none; color: var(--theme-muted); cursor: pointer; padding: 4px; display: inline-flex; }
/* minmax(0, …) + min-width: 0 stop long placeholders from pushing fields outside the card */
.fj-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fj-field, .fj-field .fj-input-icon, .fj-field input, .fj-field select, .fj-field textarea { min-width: 0; }
.fj-field .fj-input-icon select { width: 100%; }
.fj-field textarea.fj-textarea { width: 100%; min-height: 80px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--theme-text); font: inherit; resize: vertical; outline: none; }
.fj-field textarea.fj-textarea:focus { border-color: var(--theme-primary); }
.fj-auth-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); text-decoration: none; font-weight: 600; font-size: .86rem; box-shadow: var(--sh-1); transition: .2s; }
.fj-auth-back:hover { color: var(--theme-primary); border-color: var(--theme-primary); transform: translateX(-2px); }
.fj-auth-section { margin: 18px 0 10px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .78rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--theme-muted); display: flex; align-items: center; gap: 8px; }
.fj-auth-section svg { width: 16px; height: 16px; color: var(--theme-primary); }
.fj-auth-box { min-width: 0; }
.fj-auth-btn { width: 100%; margin-top: 8px; padding: 15px !important; border-radius: 14px !important; font-size: 1rem; }
.fj-auth-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.fj-msg { min-height: 20px; margin-top: 10px; font-size: .88rem; font-weight: 600; text-align: center; }
.fj-msg.error { color: #ef4444; }
.fj-msg.ok { color: #16a34a; }
.fj-auth-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--theme-primary) 8%, transparent); color: var(--theme-text); font-size: .84rem; margin-bottom: 16px; }
.fj-auth-note svg { color: var(--theme-primary); margin-top: 1px; }
.fj-auth-foot { text-align: center; margin-top: 20px; color: var(--theme-muted); font-size: .9rem; }
.fj-auth-foot a { color: var(--theme-primary); font-weight: 700; text-decoration: none; }
.fj-auth-top { position: absolute; top: 20px; right: 24px; display: flex; gap: 8px; }
@media (max-width: 900px) {
  .fj-auth { grid-template-columns: minmax(0, 1fr); }
  .fj-auth-side, .fj-auth-main { min-width: 0; }
  .fj-auth-side { padding: 22px 20px; }
  .fj-auth-side h2, .fj-auth-side p, .fj-auth-points, .fj-auth-floats, .fj-auth-side small { display: none; }
  .fj-auth-main { padding: 28px 18px 110px; align-items: flex-start; } /* room for the floating Live chat button */
}
@media (max-width: 420px) { .fj-form-row { grid-template-columns: 1fr; } }

/* ══ Components rendered by main.js ════════════════════════════ */

/* Product card */
.product-card { cursor: pointer; }
.pc-img-wrap { position: relative; overflow: hidden; }
.pc-img-wrap img { height: 210px !important; }
.pc-badge-popular, .pc-badge-prep { display: inline-flex; align-items: center; gap: 6px; }
.pc-badge-popular svg, .pc-badge-prep svg { width: 14px; height: 14px; }
.pc-vendor { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--theme-muted); margin-bottom: 6px; font-weight: 500; }
.pc-vendor svg { width: 14px; height: 14px; }
.product-title { font-size: 1.12rem !important; line-height: 1.35; }
a.product-title { display: block; color: var(--theme-text); text-decoration: none; }
a.product-title:hover { color: var(--theme-primary); }
.pc-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pc-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.pc-tag svg { width: 13px; height: 13px; }
.pc-tag-cat { background: var(--surface-2); color: var(--theme-muted); }
.pc-rating { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; font-size: .85rem; }
.pc-rating b { font-weight: 700; color: var(--theme-text); }
.fj-star { width: 15px; height: 15px; color: #f59e0b; fill: #f59e0b; }
.fj-new { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--theme-primary) 14%, transparent); color: var(--theme-primary); font-weight: 700; font-size: .72rem; }
.pc-orders { color: var(--theme-muted); font-size: .8rem; }
.pc-orders::before { content: '·'; margin-right: 6px; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { color: var(--theme-primary) !important; }
.pc-add-btn { padding: 9px 16px !important; font-size: .85rem !important; }
.pc-add-btn svg { width: 16px; height: 16px; margin-right: 4px !important; }

/* Shared modal base (size picker) */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 3000; align-items: flex-end; justify-content: center; background: rgba(2, 6, 23, .6); backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.fj-opt { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 0; background: var(--theme-card-bg); color: var(--theme-text); animation: fjSheet .3s cubic-bezier(.2, .8, .2, 1); }
.fj-opt-media { position: relative; height: 200px; background: #111; }
.fj-opt-media img { width: 100%; height: 100%; object-fit: cover; }
.fj-opt-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fj-opt-body { padding: 22px; }
.fj-opt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fj-opt-head h3 { margin: 0; font-size: 1.3rem; }
.fj-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); font-weight: 600; font-size: .78rem; white-space: nowrap; }
.fj-chip svg { width: 14px; height: 14px; }
.fj-opt-desc { color: var(--theme-muted); font-size: .9rem; line-height: 1.55; margin: 8px 0 18px; }
.fj-opt-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 10px; }
.fj-opt-label span { text-transform: none; font-weight: 500; color: var(--theme-muted); letter-spacing: 0; }
.fj-opt-variants { display: grid; gap: 8px; margin-bottom: 18px; }
.fj-variant { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); font: inherit; cursor: pointer; transition: .2s; }
.fj-variant:hover { border-color: var(--theme-primary); }
.fj-variant.active { border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 8%, var(--theme-card-bg)); }
.fj-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: .2s; }
.fj-variant.active .fj-radio { border: 5px solid var(--theme-primary); }
.fj-variant-name { flex: 1; text-align: left; font-weight: 600; }
.fj-variant-price { font-weight: 700; }
.fj-variant.active .fj-variant-price { color: var(--theme-primary); }
.fj-opt-notes { width: 100%; padding: 12px 14px; margin-bottom: 18px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--theme-text); font: inherit; outline: none; }
.fj-opt-notes:focus { border-color: var(--theme-primary); }
.fj-opt-actions { display: flex; align-items: center; gap: 12px; }
.fj-opt-submit { flex: 1; padding: 15px 18px !important; border-radius: 14px !important; }
.fj-qty { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface-2); }
.fj-qty button { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--theme-card-bg); color: var(--theme-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.fj-qty button:hover { color: var(--theme-primary); }
.fj-qty span { min-width: 22px; text-align: center; font-weight: 700; }
.fj-qty-sm button { width: 28px; height: 28px; }
.fj-qty-sm button svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 20px; } .fj-opt { border-radius: 22px; } }

/* Cart sidebar */
.fj-cart { display: flex; flex-direction: column; background: var(--theme-card-bg); color: var(--theme-text); }
.fj-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.fj-cart-title { display: flex; align-items: center; gap: 12px; }
.fj-cart-title h3 { margin: 0; font-size: 1.1rem; }
.fj-cart-title p { margin: 0; font-size: .8rem; color: var(--theme-muted); }
.fj-cart-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); }
.fj-cart .cart-body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.fj-cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fj-cart-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.fj-cart-item-info { flex: 1; min-width: 0; }
.fj-cart-item-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.fj-cart-item-price { color: var(--theme-primary); font-weight: 700; font-size: .9rem; margin-top: 2px; }
.fj-cart-remove { border: none; background: none; color: var(--theme-muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.fj-cart-remove:hover { color: #ef4444; background: color-mix(in srgb, #ef4444 10%, transparent); }
.fj-cart-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.fj-cart-summary { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.fj-cart-summary .cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--theme-muted); }
.fj-cart-summary .cart-total-row span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.fj-cart-summary .cart-total-row.final { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 800; font-size: 1.05rem; color: var(--theme-text); }
.fj-cart-summary .cart-total-row.final .amount { color: var(--theme-primary); }
.fj-cart-foot .cart-checkout-btn { width: 100%; padding: 15px; border-radius: 14px; }
.fj-btn-ghost { width: 100%; padding: 12px; border-radius: 14px; background: transparent; color: var(--theme-muted); font-weight: 600; }
.fj-btn-ghost:hover { background: var(--surface-2); color: #ef4444; }
.fj-empty { text-align: center; padding: 50px 10px; color: var(--theme-muted); }
.fj-empty-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--theme-muted); }
.fj-empty-icon svg { width: 32px; height: 32px; }
.fj-empty h4 { color: var(--theme-text); margin-bottom: 4px; }
.fj-empty p { font-size: .88rem; margin-bottom: 16px; }

/* Toast */
#fj-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 13px 22px; border-radius: 999px; background: #0f172a; color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translate(-50%, 80px); transition: .35s ease; pointer-events: none; }
#fj-toast.show { opacity: 1; transform: translate(-50%, 0); }
#fj-toast svg { color: #22c55e; }
#fj-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.fj-dark #fj-toast { background: #f8fafc; color: #0f172a; }

/* ── Floating actions: WhatsApp live chat (left) + back to top (right) ── */
.fj-fabs { --fab-bottom: calc(22px + env(safe-area-inset-bottom)); position: fixed; left: 20px; right: 20px; bottom: var(--fab-bottom); z-index: 1150; display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.fj-fabs > * { pointer-events: auto; }
.fj-fab { position: relative; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; font: inherit; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.fj-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--theme-primary) 45%, transparent); outline-offset: 3px; }

/* Back to top with a scroll-progress ring */
.fj-fab-top { width: 48px; height: 48px; border-radius: 50%; background: var(--theme-card-bg); color: var(--theme-text); box-shadow: var(--sh-3); opacity: 0; transform: translateY(14px) scale(.85); pointer-events: none; }
.fj-fabs.show-top .fj-fab-top { opacity: 1; transform: none; pointer-events: auto; }
.fj-fab-top:hover { transform: translateY(-3px); color: var(--theme-primary); }
.fj-fab-top > svg:not(.fj-fab-ring) { width: 20px; height: 20px; }
.fj-fab-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; }
.fj-fab-ring circle { stroke: var(--theme-primary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset .1s linear; }

/* Live chat pill */
.fj-wa-group { position: relative; }
.fj-fab-wa { gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; text-align: left; color: #fff; background: linear-gradient(135deg, #25d366 0%, #1ebe5b 45%, #128c7e 100%); box-shadow: 0 12px 28px -6px rgba(18, 140, 126, .55), 0 2px 6px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .25); animation: fjWaIn .6s .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.fj-fab-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -6px rgba(18, 140, 126, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.fj-fab-wa-ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); flex: none; }
.fj-fab-wa-ico::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: fjWaPulse 2.4s ease-out infinite; }
.fj-fab-wa-text b { display: block; font-size: .95rem; font-weight: 700; line-height: 1.15; letter-spacing: .1px; }
.fj-fab-wa-text small { display: flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 500; opacity: .92; }
.fj-live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #b9f6ca; animation: fjLiveDot 1.8s ease-out infinite; }
.fj-fabs.wa-open .fj-fab-wa-ico::after { animation: none; opacity: 0; }
@keyframes fjWaPulse { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes fjLiveDot { 0% { box-shadow: 0 0 0 0 rgba(185, 246, 202, .8); } 100% { box-shadow: 0 0 0 7px rgba(185, 246, 202, 0); } }
@keyframes fjWaIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }

/* Chat card */
.fj-wa-card { position: absolute; left: 0; bottom: calc(100% + 14px); width: min(350px, calc(100vw - 32px)); border-radius: 22px; overflow: hidden; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: var(--sh-4); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transform-origin: bottom left; transition: .28s cubic-bezier(.2,.8,.2,1); }
.fj-fabs.wa-open .fj-wa-card { opacity: 1; visibility: visible; transform: none; }
.fj-wa-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, #075e54, #128c7e 60%, #25d366); color: #fff; }
.fj-wa-head b { display: block; font-size: .98rem; }
.fj-wa-head small { display: flex; align-items: center; gap: 5px; font-size: .74rem; opacity: .92; }
.fj-wa-head small svg { width: 13px; height: 13px; }
.fj-wa-head > div { flex: 1; min-width: 0; }
.fj-wa-avatar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.fj-wa-avatar-dot { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #25d366; border: 2px solid #fff; }
.fj-wa-close { display: grid; place-items: center; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; }
.fj-wa-close svg { width: 18px; height: 18px; }
.fj-wa-body { display: grid; gap: 8px; padding: 16px; background-color: color-mix(in srgb, #25d366 6%, var(--theme-card-bg)); background-image: radial-gradient(color-mix(in srgb, #128c7e 12%, transparent) 1px, transparent 1.2px); background-size: 14px 14px; }
.fj-wa-bubble { position: relative; justify-self: start; max-width: 88%; margin: 0 0 6px; padding: 10px 14px 18px; border-radius: 4px 16px 16px 16px; background: var(--theme-card-bg); box-shadow: var(--sh-1); font-size: .88rem; color: var(--theme-text); }
.fj-wa-bubble time { position: absolute; right: 10px; bottom: 4px; font-size: .64rem; color: var(--theme-muted); }
.fj-wa-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--theme-card-bg); border: 1px solid var(--line); color: var(--theme-text); text-decoration: none; box-shadow: var(--sh-1); transition: .2s; }
.fj-wa-opt:hover { border-color: #25d366; transform: translateX(3px); }
.fj-wa-opt > svg:first-child { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: color-mix(in srgb, #25d366 14%, transparent); color: #128c7e; }
.fj-wa-opt > svg:last-child { width: 16px; height: 16px; color: var(--theme-muted); margin-left: auto; flex: none; }
.fj-wa-opt span { min-width: 0; }
.fj-wa-opt b { display: block; font-size: .88rem; }
.fj-wa-opt small { display: block; font-size: .74rem; color: var(--theme-muted); }
.fj-wa-start { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 16px 0; padding: 12px; border-radius: 14px; background: #25d366; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 8px 18px -6px rgba(37, 211, 102, .6); transition: .2s; }
.fj-wa-start:hover { background: #1ebe5b; transform: translateY(-1px); }
.fj-wa-foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px 12px; font-size: .72rem; color: var(--theme-muted); }
.fj-wa-foot svg { width: 13px; height: 13px; color: #25d366; }
html[data-mode=dark] .fj-wa-opt > svg:first-child { color: #25d366; }

/* WhatsApp order buttons (cart, product, checkout) */
.fj-btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
.fj-btn-wa:hover { background: #1ebe5b !important; }
.fj-btn-wa .fj-wa-svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .fj-fabs { left: 12px; right: 12px; }
  body.fj-has-tabbar .fj-fabs, body:has(#pdSticky) .fj-fabs { --fab-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .fj-fab-wa { gap: 8px; padding: 5px 14px 5px 5px; }
  .fj-fab-wa-ico { width: 38px; height: 38px; }
  .fj-fab-wa-ico svg { width: 21px; height: 21px; }
  .fj-fab-wa-text b { font-size: .85rem; }
  .fj-fab-wa-text small { font-size: .64rem; }
  .fj-fab-top { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .fj-fab-wa-ico::after, .fj-live-dot, .fj-fab-wa { animation: none; } }
@media print { .fj-fabs { display: none; } }

.fj-credits { display: flex; align-items: flex-start; gap: 10px; text-align: left; line-height: 1.55; }
.fj-credits > svg { width: 18px; height: 18px; margin-top: 2px; color: var(--theme-primary); flex: none; }
.fj-credits span, .fj-credits small { display: block; }
.fj-credits small { font-size: .8em; opacity: .8; }
.fj-credits b { color: #fff; font-weight: 600; }

/* ══ Category moods ═══════════════════════════════════════════════════
   Brand buttons, links and the logo stay Food Junction green on every page.
   The selected category adds its own mood on top so you always know where you are:
     Fast Food   → ketchup red & mustard, diner halftone dots
     Desi/Hotel  → Multani-tile blue & gold, eight-point tile pattern
     Home Cooked → turmeric & chai brown, gingham tablecloth
   Colours are registered so they cross-fade smoothly when the category changes. */
@property --cat-a { syntax: '<color>'; inherits: true; initial-value: #22c55e; }
@property --cat-b { syntax: '<color>'; inherits: true; initial-value: #15803d; }
@property --cat-glow { syntax: '<color>'; inherits: true; initial-value: #facc15; }

body {
  --cat-a: #22c55e; --cat-b: #15803d; --cat-glow: #facc15;
  --cat-pattern: radial-gradient(rgba(255, 255, 255, .10) 1.2px, transparent 1.6px) 0 0 / 20px 20px;
  transition: --cat-a .8s ease, --cat-b .8s ease, --cat-glow .8s ease;
}
body[data-category="fastfood"] {
  --cat-a: #ef4444; --cat-b: #b91c1c; --cat-glow: #facc15;
  --cat-pattern: radial-gradient(rgba(255, 255, 255, .16) 2px, transparent 2.6px) 0 0 / 22px 22px;
}
body[data-category="desi"] {
  --cat-a: #0e7490; --cat-b: #1e3a8a; --cat-glow: #f59e0b;
  --cat-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.17' stroke-width='1.3'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Cpath d='M0 0l9 9M56 0l-9 9M0 56l9-9M56 56l-9-9'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px;
}
body[data-category="homecooked"] {
  --cat-a: #d97706; --cat-b: #7c2d12; --cat-glow: #fde68a;
  --cat-pattern: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 14px, transparent 14px 28px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 14px, transparent 14px 28px);
}

/* Hero (menu page) and banner (home page) wear the category mood */
.fj-menu-hero, .fj-cat-banner {
  background:
    var(--cat-pattern),
    radial-gradient(700px 320px at 88% 0%, color-mix(in srgb, var(--cat-glow) 38%, transparent), transparent 62%),
    radial-gradient(520px 260px at 0% 100%, rgba(0, 0, 0, .22), transparent 60%),
    linear-gradient(135deg, var(--cat-a), var(--cat-b));
  box-shadow: 0 24px 48px -16px color-mix(in srgb, var(--cat-b) 55%, transparent);
}
.fj-menu-hero { box-shadow: none; }
.fj-cat-visual-ring { border-color: color-mix(in srgb, var(--cat-glow) 55%, transparent); }
.fj-cat-visual-ring span { color: var(--cat-b); box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--cat-b) 45%, transparent); }
.fj-cat-visual-photo { border-color: color-mix(in srgb, var(--cat-glow) 35%, rgba(255, 255, 255, .2)); }
.fj-cat-badge svg { background: color-mix(in srgb, var(--cat-a) 14%, transparent); color: var(--cat-b); }

/* Mood chips under the hero title */
.fj-mood { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fj-mood:empty { display: none; }
.fj-mood span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); color: #fff; font-size: .78rem; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fjMoodIn .5s calc(var(--i) * 80ms + 150ms) cubic-bezier(.2, .8, .2, 1) both; }
.fj-mood span svg { width: 15px; height: 15px; color: var(--cat-glow); }
.fj-menu-hero .fj-mood { margin-bottom: 4px; }
@keyframes fjMoodIn { from { opacity: 0; transform: translateY(8px) scale(.95); } to { opacity: 1; transform: none; } }

/* Active category pill, header ribbon and scroll progress follow the mood */
.pill.active { background: linear-gradient(135deg, var(--cat-a), var(--cat-b)) !important; color: #fff !important; box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--cat-a) 55%, transparent) !important; }
.pill:not(.active):hover { border-color: var(--cat-a) !important; color: var(--cat-b) !important; }
html[data-mode="dark"] .pill:not(.active):hover { color: var(--cat-glow) !important; }
.fj-progress span { background: linear-gradient(90deg, var(--cat-a), var(--cat-glow)); }
.fj-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--cat-a), var(--cat-glow), var(--cat-b)); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
body:not([data-category="all"]) .fj-header::after { transform: scaleX(1); }

/* Page background glow tints toward the category */
.fj-blob-1 { background: radial-gradient(circle, color-mix(in srgb, var(--cat-a) 16%, transparent), transparent 62%); }
.fj-blob-2 { background: radial-gradient(circle, color-mix(in srgb, var(--cat-glow) 14%, transparent), transparent 62%); }
.fj-blob-3 { background: radial-gradient(circle, color-mix(in srgb, var(--cat-b) 11%, transparent), transparent 62%); }
body:not([data-category="all"]) .fj-float { color: color-mix(in srgb, var(--cat-a) 55%, var(--theme-muted)); }

/* Product cards pick up the mood on hover inside a category */
body:not([data-category="all"]) .product-card:hover { border-color: color-mix(in srgb, var(--cat-a) 55%, transparent); box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--cat-a) 45%, transparent); }

/* Home page category cards preview their own mood */
.fj-cat-card[data-cat-card="fastfood"] { --card-a: #ef4444; }
.fj-cat-card[data-cat-card="desi"] { --card-a: #0e7490; }
.fj-cat-card[data-cat-card="homecooked"] { --card-a: #d97706; }
.fj-cat-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--card-a, var(--theme-primary)); transform: scaleX(.18); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.fj-cat-card:hover::after { transform: scaleX(1); }
.fj-cat-card:hover { border-color: var(--card-a, var(--theme-primary)); }
.fj-cat-card:hover .fj-cat-go { background: var(--card-a, var(--theme-primary)); }

/* Switching category: content re-enters and a light sweep crosses the hero */
.fj-cat-switch .fj-menu-hero-inner > *, .fj-cat-switch .fj-cat-banner > div { animation: fjCatIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.fj-cat-switch .fj-menu-hero-inner > :nth-child(2) { animation-delay: .04s; }
.fj-cat-switch .fj-menu-hero-inner > :nth-child(3) { animation-delay: .08s; }
.fj-cat-switch .fj-menu-hero-inner > :nth-child(4) { animation-delay: .12s; }
.fj-cat-switch .fj-cat-visual { animation: fjCatPop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.fj-menu-hero::after, .fj-cat-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); }
.fj-cat-switch .fj-menu-hero::after, .fj-cat-switch .fj-cat-banner::after { animation: fjSweep .9s ease both; }
@keyframes fjCatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fjCatPop { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes fjSweep { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .fj-cat-switch .fj-menu-hero-inner > *, .fj-cat-switch .fj-cat-banner > div, .fj-cat-switch .fj-cat-visual, .fj-mood span { animation: none; }
  .fj-cat-switch .fj-menu-hero::after, .fj-cat-switch .fj-cat-banner::after { animation: none; }
}
.fj-fabs { transition: opacity .2s ease; }
body.fj-searching .fj-fabs { opacity: 0; pointer-events: none; }
body.fj-searching .fj-fabs > * { pointer-events: none; }

/* ── Home page: warm, food-themed backgrounds instead of plain white ───── */
body.fj-home { --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%2315803d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(20 18) rotate(-14 12 12) scale(1.5)'%3E%3Cpath d='m12 14-1 1'/%3E%3Cpath d='m13.75 18.25-1.25 1.42'/%3E%3Cpath d='M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12'/%3E%3Cpath d='M18.8 9.3a1 1 0 0 0 2.1 7.7'/%3E%3Cpath d='M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z'/%3E%3C/g%3E%3Cg transform='translate(128 8) rotate(10 12 12) scale(1.25)'%3E%3Cpath d='m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777'/%3E%3Cpath d='M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25'/%3E%3Cpath d='M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9'/%3E%3Cpath d='m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2'/%3E%3Crect width='20' height='4' x='2' y='11' rx='1'/%3E%3C/g%3E%3Cg transform='translate(238 26) rotate(-6 12 12) scale(1.4)'%3E%3Cpath d='M10 2v2'/%3E%3Cpath d='M14 2v2'/%3E%3Cpath d='M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1'/%3E%3Cpath d='M6 2v2'/%3E%3C/g%3E%3Cg transform='translate(70 102) rotate(18 12 12) scale(1.2)'%3E%3Cpath d='M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M19.5 12 22 6'/%3E%3Cpath d='M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62'/%3E%3Cpath d='M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62'/%3E%3Cpath d='M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62'/%3E%3C/g%3E%3Cg transform='translate(186 96) rotate(-20 12 12) scale(1.5)'%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8'/%3E%3Cpath d='m4 8 16-4'/%3E%3Cpath d='m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8'/%3E%3C/g%3E%3Cg transform='translate(282 128) rotate(12 12 12) scale(1.15)'%3E%3Cpath d='m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11'/%3E%3Cpath d='M17 7A5 5 0 0 0 7 7'/%3E%3Cpath d='M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4'/%3E%3C/g%3E%3Cg transform='translate(16 186) rotate(8 12 12) scale(1.35)'%3E%3Cpath d='M15.4 15.63a7.875 6 135 1 1 6.23-6.23 4.5 3.43 135 0 0-6.23 6.23'/%3E%3Cpath d='m8.29 12.71-2.6 2.6a2.5 2.5 0 1 0-1.65 4.65A2.5 2.5 0 1 0 8.7 18.3l2.59-2.59'/%3E%3C/g%3E%3Cg transform='translate(122 200) rotate(-10 12 12) scale(1.45)'%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z'/%3E%3Cpath d='M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1'/%3E%3Cpath d='m13 12 4-4'/%3E%3Cpath d='M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2'/%3E%3C/g%3E%3Cg transform='translate(226 210) rotate(22 12 12) scale(1.2)'%3E%3Cpath d='m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8'/%3E%3Cpath d='M5 8h14'/%3E%3Cpath d='M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0'/%3E%3Cpath d='m12 8 1-6h2'/%3E%3C/g%3E%3Cg transform='translate(60 268) rotate(-18 12 12) scale(1.25)'%3E%3Cpath d='M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z'/%3E%3Cpath d='M6 17h12'/%3E%3C/g%3E%3Cg transform='translate(172 284) rotate(6 12 12) scale(1.35)'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/g%3E%3Cg transform='translate(276 256) rotate(-8 12 12) scale(1.3)'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); --home-cream: #fff9f0; --home-mint: #f1faf4; background: #fbfaf6; }
html[data-mode="dark"] body.fj-home { --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%234ade80' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(20 18) rotate(-14 12 12) scale(1.5)'%3E%3Cpath d='m12 14-1 1'/%3E%3Cpath d='m13.75 18.25-1.25 1.42'/%3E%3Cpath d='M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12'/%3E%3Cpath d='M18.8 9.3a1 1 0 0 0 2.1 7.7'/%3E%3Cpath d='M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z'/%3E%3C/g%3E%3Cg transform='translate(128 8) rotate(10 12 12) scale(1.25)'%3E%3Cpath d='m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777'/%3E%3Cpath d='M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25'/%3E%3Cpath d='M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9'/%3E%3Cpath d='m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2'/%3E%3Crect width='20' height='4' x='2' y='11' rx='1'/%3E%3C/g%3E%3Cg transform='translate(238 26) rotate(-6 12 12) scale(1.4)'%3E%3Cpath d='M10 2v2'/%3E%3Cpath d='M14 2v2'/%3E%3Cpath d='M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1'/%3E%3Cpath d='M6 2v2'/%3E%3C/g%3E%3Cg transform='translate(70 102) rotate(18 12 12) scale(1.2)'%3E%3Cpath d='M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M19.5 12 22 6'/%3E%3Cpath d='M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62'/%3E%3Cpath d='M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62'/%3E%3Cpath d='M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62'/%3E%3C/g%3E%3Cg transform='translate(186 96) rotate(-20 12 12) scale(1.5)'%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8'/%3E%3Cpath d='m4 8 16-4'/%3E%3Cpath d='m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8'/%3E%3C/g%3E%3Cg transform='translate(282 128) rotate(12 12 12) scale(1.15)'%3E%3Cpath d='m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11'/%3E%3Cpath d='M17 7A5 5 0 0 0 7 7'/%3E%3Cpath d='M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4'/%3E%3C/g%3E%3Cg transform='translate(16 186) rotate(8 12 12) scale(1.35)'%3E%3Cpath d='M15.4 15.63a7.875 6 135 1 1 6.23-6.23 4.5 3.43 135 0 0-6.23 6.23'/%3E%3Cpath d='m8.29 12.71-2.6 2.6a2.5 2.5 0 1 0-1.65 4.65A2.5 2.5 0 1 0 8.7 18.3l2.59-2.59'/%3E%3C/g%3E%3Cg transform='translate(122 200) rotate(-10 12 12) scale(1.45)'%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z'/%3E%3Cpath d='M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1'/%3E%3Cpath d='m13 12 4-4'/%3E%3Cpath d='M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2'/%3E%3C/g%3E%3Cg transform='translate(226 210) rotate(22 12 12) scale(1.2)'%3E%3Cpath d='m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8'/%3E%3Cpath d='M5 8h14'/%3E%3Cpath d='M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0'/%3E%3Cpath d='m12 8 1-6h2'/%3E%3C/g%3E%3Cg transform='translate(60 268) rotate(-18 12 12) scale(1.25)'%3E%3Cpath d='M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z'/%3E%3Cpath d='M6 17h12'/%3E%3C/g%3E%3Cg transform='translate(172 284) rotate(6 12 12) scale(1.35)'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/g%3E%3Cg transform='translate(276 256) rotate(-8 12 12) scale(1.3)'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); --home-cream: #0f1620; --home-mint: #0c1a16; background: #0a1018; }
.fj-home .fj-hero { background:
  radial-gradient(900px 520px at 88% 12%, color-mix(in srgb, var(--theme-primary) 20%, transparent), transparent 62%),
  radial-gradient(700px 420px at 0% 100%, rgba(251, 191, 36, .16), transparent 60%),
  linear-gradient(180deg, var(--home-cream) 0%, var(--home-mint) 100%); }
.fj-home .fj-hero::before { content: ""; position: absolute; inset: 0; background: var(--doodle) 0 0 / 320px 320px; opacity: .07; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%); }
html[data-mode="dark"] .fj-home .fj-hero::before { opacity: .06; }
.fj-home .fj-hero > .container { position: relative; z-index: 1; }
.fj-home .fj-cats-section { position: relative; background: linear-gradient(180deg, var(--home-mint), var(--theme-card-bg) 45%); }
html[data-mode="dark"] .fj-home .fj-cats-section { background: linear-gradient(180deg, var(--home-mint), var(--theme-bg) 45%); }
.fj-home .fj-band { position: relative; background: var(--home-cream); }
.fj-home .fj-band::before { content: ""; position: absolute; inset: 0; background: var(--doodle) 0 0 / 320px 320px; opacity: .045; pointer-events: none; }
.fj-home .fj-band > .container, .fj-home .fj-band > .category-strip { position: relative; }
.fj-home .fj-steps-section { background: linear-gradient(180deg, var(--home-mint), var(--home-cream)); }
.fj-home .theme-backdrop .fj-float { display: none; }

/* ── Gold for every rating star ─────────────────────────────────────── */
body { --gold-star: #f5b301; --gold-star-dark: #c98a00; --star-off: #dde1e7; }
html[data-mode="dark"] body { --star-off: #334155; }
.fj-star { color: var(--gold-star) !important; fill: var(--gold-star) !important; filter: drop-shadow(0 1px 1px rgba(201, 138, 0, .35)); }
.pc-reviews { color: var(--theme-muted); font-size: .78rem; font-weight: 500; }

/* ── Product card actions: view (eye) + add to cart ─────────────────── */
.pc-actions { display: flex; align-items: center; gap: 8px; }
.pc-act { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s; }
.pc-act svg { width: 19px; height: 19px; }
.pc-view:hover { border-color: var(--theme-primary); color: var(--theme-primary); transform: translateY(-2px); }
.pc-cart { border: none; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 8px 18px -6px rgba(34, 197, 94, .6); }
.pc-cart:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 22px -6px rgba(34, 197, 94, .7); }
.pc-cart:active { transform: scale(.94); }
.pc-plus { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #fbbf24; color: #1f2937; font-size: .8rem; font-weight: 800; line-height: 1; border: 2px solid var(--theme-card-bg); }
@media (max-width: 480px) { .pc-act { width: 38px; height: 38px; border-radius: 12px; } .pc-act svg { width: 17px; height: 17px; } }

/* ── Call / WhatsApp to order ────────────────────────────────────────── */
.fj-callpill { display: none; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; text-decoration: none; color: var(--theme-text); background: color-mix(in srgb, var(--theme-primary) 9%, var(--theme-card-bg)); border: 1px solid color-mix(in srgb, var(--theme-primary) 28%, transparent); transition: .2s; }
.fj-callpill:hover { border-color: var(--theme-primary); box-shadow: var(--sh-green); transform: translateY(-1px); }
.fj-callpill-ico { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--theme-primary); color: #fff; }
.fj-callpill-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--theme-primary); animation: fjWaPulse 2.4s ease-out infinite; }
.fj-callpill-ico svg { width: 16px; height: 16px; }
.fj-callpill-txt { display: flex; flex-direction: column; line-height: 1.15; }
.fj-callpill-txt small { font-size: .62rem; color: var(--theme-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.fj-callpill-txt b { font-size: .86rem; letter-spacing: .2px; }
.fj-callpill-txt { white-space: nowrap; }
@media (min-width: 769px) { .fj-callpill { display: inline-flex; } }
@media (max-width: 1399px) { .fj-callpill { padding: 4px; } .fj-callpill-txt { display: none; } }
.fj-links .fj-link { white-space: nowrap; }

.fj-drawer-order { margin: 4px 16px 12px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--theme-primary) 9%, var(--theme-card-bg)); border: 1px solid color-mix(in srgb, var(--theme-primary) 25%, transparent); }
.fj-drawer-order small { display: block; font-size: .72rem; color: var(--theme-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.fj-drawer-order b { display: block; font-size: 1.1rem; margin: 2px 0 10px; }
.fj-drawer-order div, .fj-footer-order-btns { display: flex; gap: 8px; }
.fj-drawer-order .btn, .fj-footer-order-btns .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px !important; border-radius: 12px !important; font-size: .82rem !important; }
.fj-drawer-order .btn svg, .fj-footer-order-btns .btn svg { width: 16px; height: 16px; }
.fj-drawer-call { background: var(--theme-primary) !important; color: #fff !important; border: none !important; }

.fj-footer-order { padding: 14px; margin-bottom: 8px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.fj-footer-order small { display: block; font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.fj-footer-phone { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 1.2rem; font-weight: 800; color: #fff !important; text-decoration: none; letter-spacing: .3px; }
.fj-footer-phone svg { width: 20px; height: 20px; color: #4ade80; }

.fj-hero-call { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; padding: 10px 12px; border-radius: 18px; width: fit-content; max-width: 100%; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: var(--sh-2); animation: fadeUp .7s .3s ease both; }
.fj-hero-call-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--theme-primary) 14%, transparent); color: var(--theme-primary); }
.fj-hero-call-ico svg { width: 19px; height: 19px; }
.fj-hero-call > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
.fj-hero-call small { font-size: .74rem; color: var(--theme-muted); }
.fj-hero-call a b { font-size: 1.02rem; color: var(--theme-text); }
.fj-hero-call a { text-decoration: none; }
.fj-hero-call-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; font-size: .82rem; font-weight: 700; color: #fff !important; background: var(--theme-primary); transition: .2s; }
.fj-hero-call-btn.wa { background: #25d366; }
.fj-hero-call-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fj-hero-call-btn svg { width: 15px; height: 15px; }

/* ── Breathing room before the footer on every page ──────────────────── */
.fj-footer, #siteFooter { margin-top: clamp(48px, 7vw, 88px); }

/* Shared login page: one login for every role */
.fj-login-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.fj-login-roles span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--theme-muted); background: var(--surface-2); border: 1px solid var(--line); }
.fj-login-roles svg { width: 15px; height: 15px; color: var(--theme-primary); }
.fj-auth-foot small { display: inline-block; margin-top: 8px; color: var(--theme-muted); }
.fj-footer-order-btns { flex-wrap: wrap; } .fj-footer-order-btns .btn, .fj-drawer-order .btn { white-space: nowrap; flex: 1 1 96px; }

/* Hero: "Order by phone" floating card (desktop) and a quiet link on phones */
.fj-hero-badge-call { top: 6px; right: 0; padding: 8px 8px 8px 10px; gap: 8px; z-index: 2; animation: fjBob 7s -5s ease-in-out infinite; }
.fj-hbc-main { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--theme-text); }
.fj-hbc-main b { font-size: .92rem; letter-spacing: .2px; }
.fj-hbc-main span { font-size: .72rem; }
.fj-hbc-main:hover b { color: var(--theme-primary); }
.fj-hbc-wa { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #25d366; color: #fff; transition: .2s; }
.fj-hbc-wa:hover { transform: scale(1.08); }
.fj-hero-phone-link { display: none; align-items: center; gap: 6px; margin-top: 8px; font-size: .86rem; color: var(--theme-muted); text-decoration: none; }
.fj-hero-phone-link svg { width: 15px; height: 15px; color: var(--theme-primary); }
.fj-hero-phone-link b { color: var(--theme-text); }
@media (max-width: 768px) { .fj-hero-phone-link { display: inline-flex; } }
.fj-cart-foot .cart-wa-btn { width: 100%; padding: 13px 15px; border-radius: 14px; font-size: .95rem; font-weight: 700; text-decoration: none; box-shadow: 0 10px 22px -8px rgba(37, 211, 102, .6); transition: transform .2s, box-shadow .2s, background .2s; }
.fj-cart-foot .cart-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -8px rgba(37, 211, 102, .7); }
.fj-cart-foot .cart-wa-btn .fj-wa-svg { width: 20px; height: 20px; }

/* ── Help & Support: header button with LIVE badge ───────────────────── */
.fj-support-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, var(--line)); background: color-mix(in srgb, var(--theme-primary) 8%, var(--theme-card-bg)); color: var(--theme-text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: .2s; }
.fj-support-btn:hover { border-color: var(--theme-primary); box-shadow: var(--sh-green); transform: translateY(-1px); }
.fj-support-btn > svg { width: 19px; height: 19px; color: var(--theme-primary); }
.fj-live-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .6px; line-height: 1.3; }
.fj-live-badge i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: fjLiveBlink 1.2s ease-in-out infinite; }
@keyframes fjLiveBlink { 50% { opacity: .25; } }
.fj-support-btn .fj-live-badge { position: absolute; top: -7px; right: -6px; box-shadow: 0 4px 10px -2px rgba(239, 68, 68, .6); border: 2px solid var(--theme-card-bg); }
@media (max-width: 1200px) { .fj-support-txt { display: none; } .fj-support-btn { width: 42px; padding: 0; justify-content: center; } }
@media (max-width: 480px) { .fj-support-btn { width: 38px; height: 38px; } .fj-support-btn .fj-live-badge { font-size: .5rem; padding: 1px 4px; top: -6px; right: -8px; } }
.drawer-link .fj-live-badge { margin-left: auto; }
.fj-footer-ticket { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.fj-footer-ticket:hover { color: #4ade80; }

/* ── Help & Support panel ───────────────────────────────────────────── */
.fj-support .fj-support-box { max-width: 560px; padding: 0; gap: 0; overflow: hidden; }
.fj-support-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: linear-gradient(135deg, #15803d, #22c55e); color: #fff; }
.fj-support-head h3 { margin: 0; font-size: 1.15rem; color: #fff; }
.fj-support-head p { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: .8rem; opacity: .92; }
.fj-support-head > div { flex: 1; min-width: 0; }
.fj-support-head .fj-icon-btn { background: rgba(255, 255, 255, .18); border-color: transparent; color: #fff; }
.fj-support-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .18); }
.fj-support-ico svg { width: 24px; height: 24px; }
.fj-support-body { padding: 18px 20px 20px; overflow-y: auto; display: grid; gap: 14px; }
.fj-support-live { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--theme-text); background: color-mix(in srgb, #25d366 10%, var(--theme-card-bg)); border: 1.5px solid color-mix(in srgb, #25d366 45%, transparent); transition: .2s; }
.fj-support-live:hover { border-color: #25d366; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(37, 211, 102, .7); }
.fj-support-live > .fj-wa-svg { flex: none; padding: 9px; width: 46px; height: 46px; border-radius: 14px; background: #25d366; color: #fff; }
.fj-support-live b { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.fj-support-live em { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #25d366; color: #fff; }
.fj-support-live small { display: block; margin-top: 2px; font-size: .78rem; color: var(--theme-muted); }
.fj-support-live > svg:last-child { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--theme-muted); }
.fj-support-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fj-support-contacts a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--theme-text); transition: .2s; }
.fj-support-contacts a:hover { border-color: var(--theme-primary); }
.fj-support-contacts svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); }
.fj-support-contacts span { min-width: 0; }
.fj-support-contacts small { display: block; font-size: .7rem; color: var(--theme-muted); }
.fj-support-contacts b { display: block; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-support-or { display: flex; align-items: center; gap: 10px; color: var(--theme-muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.fj-support-or::before, .fj-support-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fj-support-form { display: grid; gap: 12px; }
.fj-support-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.fj-support-topics label { cursor: pointer; }
.fj-support-topics input { position: absolute; opacity: 0; pointer-events: none; }
.fj-support-topics span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--theme-muted); transition: .15s; }
.fj-support-topics input:checked + span { border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary-dark); }
.fj-support-topics input:focus-visible + span { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
.fj-support-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fj-support-form label { display: grid; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--theme-text); min-width: 0; }
.fj-support-form label small { color: var(--theme-muted); font-weight: 500; }
.fj-support-form input:not([type=radio]), .fj-support-form textarea { width: 100%; min-width: 0; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--theme-text); font: inherit; font-size: .88rem; font-weight: 400; outline: none; transition: border-color .15s; }
.fj-support-form textarea { min-height: 96px; resize: vertical; }
.fj-support-form input:focus, .fj-support-form textarea:focus { border-color: var(--theme-primary); }
.fj-support-msg { margin: 0; min-height: 0; color: #ef4444; font-size: .82rem; font-weight: 600; }
.fj-support-msg:empty { display: none; }
.fj-support-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px !important; border-radius: 14px !important; }
.fj-support-submit svg { width: 18px; height: 18px; }
.fj-support-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .74rem; color: var(--theme-muted); }
.fj-support-note svg { flex: none; width: 15px; height: 15px; color: var(--theme-primary); }
.fj-support-done { display: grid; justify-items: center; gap: 10px; padding: 8px 0; text-align: center; }
.fj-support-done-ico svg { width: 56px; height: 56px; color: #22c55e; animation: fjLogoIn .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.fj-support-done h4 { margin: 0; font-size: 1.15rem; }
.fj-support-done p { margin: 0; color: var(--theme-muted); font-size: .86rem; max-width: 380px; }
.fj-ticket-no { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px dashed var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 8%, transparent); color: var(--theme-text); font: inherit; font-size: 1.1rem; font-weight: 800; letter-spacing: .5px; cursor: pointer; }
.fj-ticket-no svg { width: 16px; height: 16px; color: var(--theme-muted); }
.fj-ticket-no.copied { border-style: solid; }
.fj-ticket-no.copied svg { color: #22c55e; }
.fj-support-done .fj-btn-wa { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 520px) {
  .fj-support-contacts, .fj-support-row { grid-template-columns: 1fr; }
  .fj-support-body { padding: 16px; }
}

/* ── Home: popular restaurants ───────────────────────────────────────── */
.fj-rest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fj-rest-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: var(--sh-2); text-decoration: none; color: var(--theme-text); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.fj-rest-card.fj-skel { min-height: 300px; }
.fj-rest-card:hover { transform: translateY(-6px); border-color: var(--theme-primary); box-shadow: var(--sh-4); }
.fj-rest-banner { position: relative; height: 150px; overflow: hidden; background: var(--surface-2); }
.fj-rest-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fj-rest-card:hover .fj-rest-banner img { transform: scale(1.07); }
.fj-rest-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 45%); }
.fj-rest-rank { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #f5b301, #e09b00); color: #1f2937; font-size: .76rem; font-weight: 800; box-shadow: 0 6px 14px -4px rgba(201, 138, 0, .6); }
.fj-rest-open { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(6px); }
.fj-rest-open i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.fj-rest-open.closed i { background: #ef4444; }
.fj-rest-body { position: relative; padding: 34px 18px 18px; display: grid; gap: 8px; flex: 1; }
.fj-rest-logo { position: absolute; top: -26px; left: 18px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--theme-card-bg); color: var(--theme-primary); box-shadow: var(--sh-3); overflow: hidden; }
.fj-rest-logo svg { width: 24px; height: 24px; }
.fj-rest-logo img { width: 100%; height: 100%; object-fit: cover; }
.fj-rest-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fj-rest-top h3 { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.fj-rest-rating { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--gold-star) 16%, transparent); color: var(--gold-star-dark); font-size: .82rem; font-weight: 800; }
.fj-rest-rating .fj-star { width: 14px; height: 14px; }
.fj-rest-rating small { color: var(--theme-muted); font-weight: 600; }
.fj-rest-body > p { margin: 0; color: var(--theme-muted); font-size: .84rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fj-rest-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--theme-muted); }
.fj-rest-meta span { display: inline-flex; align-items: center; gap: 5px; }
.fj-rest-meta svg { width: 14px; height: 14px; }
@media (max-width: 1000px) { .fj-rest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fj-rest-grid { grid-template-columns: 1fr; gap: 16px; } .fj-rest-banner { height: 130px; } }

/* ── Home: load more / view full menu ────────────────────────────────── */
.fj-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fj-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px !important; border-radius: 14px !important; background: var(--theme-card-bg) !important; color: var(--theme-text) !important; border: 1.5px solid var(--line) !important; font-weight: 700; box-shadow: var(--sh-1); }
.fj-more-btn:hover { border-color: var(--theme-primary) !important; color: var(--theme-primary) !important; }
.fj-more-all { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px !important; border-radius: 14px !important; font-weight: 700; }
.fj-more svg { width: 18px; height: 18px; }
.fj-more [hidden] { display: none !important; }
@media (max-width: 480px) { .fj-more .btn { flex: 1 1 100%; justify-content: center; } }

/* ── Personal recommendations: "Picked for you" ──────────────────────── */
.pc-badge-foryou { max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(135deg, #7c3aed, #db2777) !important; color: #fff !important; }
.fj-foryou-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fj-taste-edit { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, #7c3aed 35%, var(--line)); background: color-mix(in srgb, #7c3aed 8%, var(--theme-card-bg)); color: var(--theme-text); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: .2s; }
.fj-taste-edit:hover { border-color: #7c3aed; transform: translateY(-1px); }
.fj-taste-edit svg { width: 16px; height: 16px; color: #7c3aed; }
.fj-foryou-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 22px; }
.fj-foryou-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--theme-card-bg); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; box-shadow: var(--sh-1); }
.fj-foryou-chips span svg { width: 14px; height: 14px; color: #7c3aed; }
.fj-foryou-chips .fj-foryou-lead { background: none; border: none; box-shadow: none; padding-left: 0; color: var(--theme-muted); }
.fj-again { margin-top: 30px; }
.fj-again h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.05rem; }
.fj-again h3 svg { width: 18px; height: 18px; color: var(--theme-primary); }
.fj-again-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.fj-again-card { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-width: 260px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; color: var(--theme-text); scroll-snap-align: start; transition: .2s; }
.fj-again-card:hover { border-color: var(--theme-primary); transform: translateY(-2px); }
.fj-again-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.fj-again-card span { flex: 1; min-width: 0; }
.fj-again-card b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-again-card small { color: var(--theme-muted); font-size: .76rem; }
.fj-again-card em { font-style: normal; font-weight: 800; color: var(--theme-primary); font-size: .88rem; }

/* ── One-time taste pop-up ───────────────────────────────────────────── */
.fj-taste .fj-taste-box { max-width: 640px; padding: 20px 22px 18px; gap: 14px; overflow-y: auto; }
.fj-taste-top { display: flex; align-items: center; justify-content: space-between; }
.fj-taste-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-size: .76rem; font-weight: 700; }
.fj-taste-badge svg { width: 14px; height: 14px; }
.fj-taste-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fj-taste-progress i { height: 5px; border-radius: 9px; background: var(--line); transition: background .3s; }
.fj-taste-progress i.on { background: linear-gradient(90deg, #22c55e, #16a34a); }
.fj-taste-step h3 { margin: 4px 0 4px; font-size: 1.3rem; }
.fj-taste-step > p { margin: 0 0 14px; color: var(--theme-muted); font-size: .9rem; }
.fj-taste-h2 { margin-top: 18px !important; font-size: 1.05rem !important; }
.fj-taste-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fj-taste-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 14px; border-radius: 18px; border: 2.5px solid transparent; overflow: hidden; color: #fff; text-align: left; font: inherit; cursor: pointer; isolation: isolate; transition: .2s; }
.fj-taste-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.fj-taste-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .78)); }
.fj-taste-cat:hover img { transform: scale(1.06); }
.fj-taste-cat b { font-size: 1rem; }
.fj-taste-cat small { font-size: .74rem; opacity: .9; }
.fj-taste-cat.on { border-color: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 25%, transparent); }
.fj-taste-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 2px solid #fff; color: transparent; transition: .2s; }
.fj-taste-check svg { width: 15px; height: 15px; }
.fj-taste-cat.on .fj-taste-check { background: #22c55e; border-color: #22c55e; color: #fff; }
.fj-taste-dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fj-taste-dish { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); font: inherit; font-size: .82rem; font-weight: 600; text-align: left; cursor: pointer; transition: .15s; }
.fj-taste-dish img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.fj-taste-dish span { flex: 1; min-width: 0; line-height: 1.25; }
.fj-taste-dish i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; flex: none; }
.fj-taste-dish i svg { width: 12px; height: 12px; }
.fj-taste-dish.on { border-color: #22c55e; background: color-mix(in srgb, #22c55e 9%, var(--theme-card-bg)); }
.fj-taste-dish.on i { background: #22c55e; border-color: #22c55e; color: #fff; }
.fj-taste-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fj-taste-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fj-taste-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); font: inherit; text-align: left; cursor: pointer; transition: .15s; }
.fj-taste-opt > svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); }
.fj-taste-opt b { display: block; font-size: .86rem; }
.fj-taste-opt small { display: block; font-size: .72rem; color: var(--theme-muted); }
.fj-taste-opt.on { border-color: #22c55e; background: color-mix(in srgb, #22c55e 9%, var(--theme-card-bg)); }
.fj-taste-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.fj-taste-foot .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px !important; border-radius: 14px !important; }
.fj-taste-foot .btn svg { width: 17px; height: 17px; }
.fj-taste-link { background: none; border: none; color: var(--theme-muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.fj-taste-link:hover { color: var(--theme-text); }
@media (max-width: 560px) {
  .fj-taste-cats { grid-template-columns: 1fr; }
  .fj-taste-cat { min-height: 96px; }
  .fj-taste-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fj-taste-opts, .fj-taste-opts.two { grid-template-columns: 1fr; }
  .fj-taste .fj-taste-box { padding: 16px; }
}

/* ── Home hero: faded food photo, stronger doodles and floating food icons ── */
.fj-home .fj-hero-bgphoto { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; pointer-events: none;
  background: url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1400&q=70&auto=format&fit=crop") center / cover no-repeat;
  opacity: .28; filter: saturate(1.15);
  -webkit-mask-image: radial-gradient(120% 95% at 100% 40%, #000 30%, transparent 72%); mask-image: radial-gradient(120% 95% at 100% 40%, #000 30%, transparent 72%);
  animation: fjHeroPhotoIn 1.6s ease both; }
html[data-mode="dark"] .fj-home .fj-hero-bgphoto { opacity: .16; filter: saturate(.9) brightness(.8); }
@keyframes fjHeroPhotoIn { from { opacity: 0; transform: scale(1.06); } }
.fj-home .fj-hero::before { opacity: .1; }
.fj-hero-bubbles { position: absolute; inset: 0; pointer-events: none; }
.fj-hero-bubbles span { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px;
  background: color-mix(in srgb, var(--theme-card-bg) 88%, transparent); color: var(--theme-primary); box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .25);
  border: 1px solid var(--line); backdrop-filter: blur(6px); animation: fjBubble 9s var(--t) ease-in-out infinite; }
.fj-hero-bubbles span:nth-child(even) { color: #f59e0b; }
.fj-hero-bubbles svg { width: 22px; height: 22px; }
@keyframes fjBubble { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 1000px) { .fj-home .fj-hero-bgphoto { width: 100%; opacity: .14; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); } }
@media (max-width: 768px) { .fj-hero-bubbles span:nth-child(n+3) { display: none; } .fj-hero-bubbles span { width: 38px; height: 38px; } .fj-hero-bubbles span:nth-child(1) { --x: 84% !important; --y: 12% !important; } .fj-hero-bubbles span:nth-child(2) { --x: 88% !important; --y: 48% !important; } }
@media (prefers-reduced-motion: reduce) { .fj-hero-bubbles span, .fj-home .fj-hero-bgphoto { animation: none; } }

/* ── Cart: complete your meal + frequently ordered together ─────────── */
.fj-cart-suggest { display: grid; gap: 14px; margin-top: 14px; }
.fj-combo { padding: 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, #f59e0b 12%, var(--theme-card-bg)), color-mix(in srgb, #22c55e 8%, var(--theme-card-bg))); border: 1.5px dashed color-mix(in srgb, #f59e0b 55%, transparent); animation: fjComboIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fjComboIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.fj-combo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fj-combo-head > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; flex: none; }
.fj-combo-head svg { width: 18px; height: 18px; }
.fj-combo-head b { display: block; font-size: .95rem; }
.fj-combo-head small { color: var(--theme-muted); font-size: .74rem; }
.fj-combo-items { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.fj-combo-item { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 8px; border-radius: 14px; background: var(--theme-card-bg); text-align: center; box-shadow: var(--sh-1); }
.fj-combo-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.fj-combo-item span { font-size: .74rem; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fj-combo-item em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--theme-primary); }
.fj-combo-plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--theme-card-bg); color: #f59e0b; flex: none; }
.fj-combo-plus svg { width: 14px; height: 14px; }
.fj-combo-add { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px !important; border-radius: 12px !important; font-size: .86rem !important; }
.fj-combo-add svg { width: 16px; height: 16px; }
.fj-together h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .9rem; }
.fj-together h4 svg { width: 16px; height: 16px; color: var(--theme-primary); }
.fj-together-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.fj-together-card { flex: 0 0 132px; display: grid; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--theme-card-bg); scroll-snap-align: start; animation: fjComboIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.fj-together-card img { width: 100%; height: 76px; border-radius: 10px; object-fit: cover; }
.fj-together-card b { font-size: .76rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.5em; }
.fj-together-card small { font-size: .66rem; color: #7c3aed; font-weight: 600; }
.fj-together-card > div { display: flex; align-items: center; justify-content: space-between; }
.fj-together-card span { font-size: .78rem; font-weight: 800; color: var(--theme-primary); }
.fj-together-card button { display: grid; place-items: center; width: 28px; height: 28px; border: none; border-radius: 9px; background: var(--theme-primary); color: #fff; cursor: pointer; transition: transform .15s; }
.fj-together-card button:hover { transform: scale(1.1); }
.fj-together-card button svg { width: 15px; height: 15px; }
.fj-link-foryou { display: inline-flex; align-items: center; gap: 5px; color: #7c3aed !important; font-weight: 700; } .fj-link-foryou svg { width: 15px; height: 15px; } .fj-link-foryou.active { background: color-mix(in srgb, #7c3aed 12%, transparent) !important; }
@media (max-width: 1480px) { .fj-header .fj-loc-text { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; } .fj-support-txt { display: none; } .fj-support-btn { width: 42px; padding: 0; justify-content: center; } .fj-links { gap: 2px; } }
@media (max-width: 1240px) and (min-width: 769px) { .fj-header .fj-loc-text, .fj-header .fj-loc-caret { display: none; } .fj-header .fj-loc { padding: 0; width: 42px; justify-content: center; } }

/* ══ Design refresh: wordmark, header, footer, clock, steps ═════════════ */
.fj-word { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1; }
.fj-word .fj-wm { display: inline-flex; align-items: baseline; color: inherit; font-size: 1.42rem; font-weight: 800; letter-spacing: -.6px; }
.fj-wm b { color: var(--theme-text); font-weight: 800; }
.fj-wm em { font-style: normal; font-weight: 800; background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #0f7a3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fj-wm-dot { display: inline-block; width: .3em; height: .3em; margin-left: 2px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px color-mix(in srgb, #fbbf24 25%, transparent); }
.fj-wm-tag { font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--theme-muted); padding-left: 1px; }
.fj-brand-sm .fj-word .fj-wm { font-size: 1.2rem; }
.fj-footer .fj-wm b, .fj-auth-side .fj-wm b { color: #fff; }
.fj-footer .fj-wm em, .fj-auth-side .fj-wm em { background: linear-gradient(135deg, #86efac, #22c55e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fj-footer .fj-wm-tag { color: #94a3b8; }
@media (max-width: 768px) { .fj-header .fj-wm-tag { display: block; font-size: .5rem; letter-spacing: .14em; white-space: nowrap; margin-top: 1px; } .fj-header .fj-word .fj-wm { font-size: 1.2rem; } }
@media (max-width: 340px) { .fj-header .fj-wm-tag { letter-spacing: .08em; } }

/* Header polish */
.fj-header { box-shadow: 0 1px 0 var(--line); }
.fj-header .fj-link { position: relative; font-weight: 600; }
.fj-header .fj-link:not(.fj-link-foryou)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--theme-primary); transform: scaleX(0); transition: transform .25s ease; }
.fj-header .fj-link:not(.fj-link-foryou):hover::after { transform: scaleX(1); }

/* How it works — v2 cards */
.fj-steps-v2 { position: relative; gap: 22px; }
.fj-steps-v2::before { content: ""; position: absolute; top: 58px; left: 12%; right: 12%; border-top: 2px dashed color-mix(in srgb, var(--theme-primary) 35%, transparent); z-index: 0; }
.fj-steps-v2 .fj-step { z-index: 1; padding: 30px 22px 24px; border-radius: 24px; text-align: center; box-shadow: var(--sh-2); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.fj-steps-v2 .fj-step::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 16%, transparent), transparent); opacity: 0; transition: opacity .3s; }
.fj-steps-v2 .fj-step:hover { transform: translateY(-8px); box-shadow: var(--sh-4); border-color: color-mix(in srgb, var(--g1) 50%, transparent); }
.fj-steps-v2 .fj-step:hover::after { opacity: 1; }
.fj-steps-v2 .fj-step-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 20px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; box-shadow: 0 14px 26px -10px var(--g1); transition: transform .3s; }
.fj-steps-v2 .fj-step:hover .fj-step-icon { transform: rotate(-6deg) scale(1.06); }
.fj-steps-v2 .fj-step-icon svg { width: 28px; height: 28px; }
.fj-steps-v2 .fj-step-num { top: 14px; right: 16px; font-size: 1.9rem; color: color-mix(in srgb, var(--g1) 22%, transparent); }
.fj-steps-v2 .fj-step h3 { font-size: 1.08rem; font-weight: 800; }
.fj-steps-v2 .fj-step p b { color: #7c3aed; }
@media (max-width: 1000px) { .fj-steps-v2::before { display: none; } }

/* Footer v2 */
.fj-footer { position: relative; overflow: hidden; background: radial-gradient(900px 300px at 15% 0%, rgba(34, 197, 94, .12), transparent 60%), radial-gradient(700px 260px at 95% 10%, rgba(251, 191, 36, .08), transparent 60%), #0b1220 !important; }
.fj-foot-glow { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #22c55e, #fbbf24, #22c55e); }
.fj-foot-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 46px 0 28px; padding: 26px 28px; border-radius: 24px; background: linear-gradient(135deg, #16a34a, #22c55e 55%, #4ade80); box-shadow: 0 24px 48px -20px rgba(34, 197, 94, .6); position: relative; overflow: hidden; }
.fj-foot-cta::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.fj-foot-cta-txt span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fef3c7; }
.fj-foot-cta-txt span svg { width: 15px; height: 15px; }
.fj-foot-cta h3 { margin: 6px 0 0; color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; }
.fj-foot-cta-btns { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.fj-foot-cta-btns .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px !important; border-radius: 14px !important; font-weight: 700; }
.fj-foot-cta-btns .btn svg { width: 17px; height: 17px; }
.fj-foot-cta-btns .btn-primary { background: #fff !important; color: #15803d !important; border: none !important; }
.fj-foot-ghost { background: rgba(255, 255, 255, .16) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .35) !important; }
.fj-foot-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
.fj-foot-trust span { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.fj-foot-trust svg { grid-row: span 2; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(34, 197, 94, .14); color: #4ade80; }
.fj-foot-trust b { color: #fff; font-size: .88rem; }
.fj-foot-trust small { color: #94a3b8; font-size: .74rem; }
.fj-foot-partner { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fj-foot-partner a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #e2e8f0 !important; font-size: .78rem; font-weight: 600; text-decoration: none; transition: .2s; }
.fj-foot-partner a:hover { border-color: #22c55e; color: #4ade80 !important; }
.fj-foot-partner svg { width: 14px; height: 14px; }
.fj-footer .footer-title { color: #fff; font-weight: 700; letter-spacing: .02em; }
.fj-footer .footer-links a { transition: color .2s, transform .2s; }
.fj-footer .footer-links a:hover { color: #4ade80; transform: translateX(3px); }
.fj-footer { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) { .fj-foot-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fj-foot-trust { grid-template-columns: 1fr; } .fj-foot-cta { padding: 22px; } .fj-foot-cta-btns .btn { flex: 1; justify-content: center; } }

/* ── Shelves: Popular / Top rated / New rows on the restaurants and menu pages ── */
.fj-shelves { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: 34px; }
.fj-shelf { min-width: 0; }
.fj-shelves:empty { display: none; }
.fj-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fj-shelf-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; }
.fj-shelf-head h3 .fj-shelf-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: var(--c, #22c55e); box-shadow: 0 10px 20px -8px var(--c, #22c55e); }
.fj-shelf-head h3 .fj-shelf-ico svg { width: 19px; height: 19px; }
.fj-shelf-head p { margin: 4px 0 0 46px; color: var(--theme-muted); font-size: .85rem; }
.fj-shelf-arrows { display: flex; gap: 8px; flex: none; }
.fj-shelf-arrows button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); cursor: pointer; box-shadow: var(--sh-1); transition: .2s; }
.fj-shelf-arrows button:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.fj-shelf-arrows svg { width: 17px; height: 17px; }
.fj-shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; }
.fj-shelf-row > * { scroll-snap-align: start; }
.fj-shelf-row .reveal { opacity: 1; transform: none; }
@media (min-width: 1100px) { .fj-shelf-row { grid-auto-columns: calc((100% - 40px) / 3); } .fj-shelf-row.dishes { grid-auto-columns: calc((100% - 60px) / 4); } }
@media (max-width: 560px) { .fj-shelf-row { grid-auto-columns: 82%; } .fj-shelf-head p { margin-left: 0; } }
.fj-shelf-all { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; }
.fj-shelf-all svg { width: 22px; height: 22px; color: var(--theme-primary); }
.fj-shelf-all small { font-size: .82rem; font-weight: 600; color: var(--theme-muted); }
.fj-new-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; box-shadow: 0 6px 14px -4px rgba(99, 102, 241, .6); }

/* ── Auth extras: forgot link, notices, password strength ── */
.fj-label-row { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.fj-forgot { font-size: .8rem; font-weight: 600; color: var(--theme-primary); text-decoration: none; }
.fj-forgot:hover { text-decoration: underline; }
.fj-notice[hidden] { display: none !important; }
.fj-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.5; }
.fj-notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.fj-notice.ok { background: color-mix(in srgb, #22c55e 12%, transparent); color: #15803d; border: 1px solid color-mix(in srgb, #22c55e 30%, transparent); }
.fj-notice.warn { background: color-mix(in srgb, #f59e0b 12%, transparent); color: #b45309; border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent); }
html[data-mode="dark"] .fj-notice.ok { color: #4ade80; }
html[data-mode="dark"] .fj-notice.warn { color: #fbbf24; }
.fj-notice a { color: inherit; font-weight: 700; }
.fj-strength { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 5px; margin-top: 8px; }
.fj-strength i { height: 5px; border-radius: 9px; background: var(--line); transition: background .25s; }
.fj-strength span { font-size: .74rem; font-weight: 600; color: var(--theme-muted); min-width: 72px; text-align: right; }
.fj-strength[data-score="1"] i:nth-child(-n+1) { background: #ef4444; }
.fj-strength[data-score="2"] i:nth-child(-n+2) { background: #f59e0b; }
.fj-strength[data-score="3"] i:nth-child(-n+3) { background: #22c55e; }
.fj-strength[data-score="4"] i:nth-child(-n+4) { background: #15803d; }

/* ── Header notification bell ── */
.fj-bell-wrap { position: relative; }
.fj-bell { position: relative; }
.fj-bell.ring svg { animation: fjRing .9s ease; transform-origin: 50% 10%; }
@keyframes fjRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-6deg); } }
.fj-bell-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: #ef4444; color: #fff; font-size: .66rem; font-weight: 800; border: 2px solid var(--theme-card-bg); }
.fj-bell-count[hidden] { display: none; }
.fj-bell-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 1300; width: min(360px, calc(100vw - 24px)); border-radius: 18px; background: var(--theme-card-bg); border: 1px solid var(--line); box-shadow: var(--sh-4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; overflow: hidden; }
.fj-bell-wrap.open .fj-bell-panel { opacity: 1; visibility: visible; transform: none; }
.fj-bell-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fj-bell-head button { display: inline-flex; align-items: center; gap: 5px; border: none; background: none; color: var(--theme-primary); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.fj-bell-head button svg { width: 15px; height: 15px; }
.fj-bell-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.fj-bell-item { display: flex; gap: 10px; padding: 10px; border-radius: 12px; cursor: default; }
.fj-bell-item.unread { background: color-mix(in srgb, var(--theme-primary) 8%, transparent); cursor: pointer; }
.fj-bell-item > svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--surface-2); color: var(--theme-primary); }
.fj-bell-item b { display: block; font-size: .84rem; }
.fj-bell-item p { margin: 2px 0; font-size: .78rem; color: var(--theme-muted); line-height: 1.4; }
.fj-bell-item small { font-size: .7rem; color: var(--theme-muted); }
.fj-bell-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 10px; color: var(--theme-muted); font-size: .86rem; }
.fj-bell-empty svg { width: 30px; height: 30px; opacity: .5; }
.fj-bell-foot { display: block; padding: 12px; text-align: center; border-top: 1px solid var(--line); color: var(--theme-primary); font-size: .8rem; font-weight: 700; text-decoration: none; }
.fj-account.has-img { padding-left: 4px; }
.fj-account-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.fj-account.has-img > svg { display: none; }
@media (max-width: 480px) { .fj-account-img { width: 100%; height: 100%; } .fj-account.has-img { padding: 0; overflow: hidden; } }

.fj-ticket-no em { font-style: normal; font-size: .76rem; font-weight: 700; color: #16a34a; }
.fj-ticket-no.copied { border-color: #22c55e; background: color-mix(in srgb, #22c55e 12%, transparent); }
.fj-ticket-no.copied svg { color: #16a34a !important; animation: fjPop .35s ease; }

/* ── Mobile drawer v2 ── */
.fj-drawer { display: flex; flex-direction: column; overflow-y: auto; }
.fj-drawer-me { display: flex; align-items: center; gap: 12px; margin: 4px 16px 10px; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--theme-text); background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 14%, var(--theme-card-bg)), var(--theme-card-bg)); border: 1px solid color-mix(in srgb, var(--theme-primary) 25%, transparent); }
.fj-drawer-me > span:nth-child(2) { flex: 1; min-width: 0; }
.fj-drawer-me b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-drawer-me small { color: var(--theme-muted); font-size: .76rem; }
.fj-drawer-me > svg { width: 18px; height: 18px; color: var(--theme-muted); }
.fj-drawer-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; font-weight: 800; font-size: 1.1rem; flex: none; }
.fj-drawer-auth { margin: 4px 16px 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #15803d, #22c55e); color: #fff; }
.fj-drawer-auth p { margin: 0 0 10px; font-weight: 700; font-size: .92rem; }
.fj-drawer-auth div { display: flex; gap: 8px; }
.fj-drawer-auth .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px !important; border-radius: 12px !important; font-size: .86rem !important; font-weight: 700; }
.fj-drawer-auth .btn svg { width: 16px; height: 16px; }
.fj-drawer-auth .btn-primary { background: #fff !important; color: #15803d !important; border: none !important; }
.fj-drawer-signup { background: rgba(255, 255, 255, .16) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .4) !important; }
.fj-drawer-label { margin: 14px 22px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--theme-muted); }
.fj-drawer .drawer-menu-list { margin: 0 10px; padding: 0; }
.fj-drawer .drawer-link { padding: 12px 14px; border-radius: 14px; position: relative; }
.fj-drawer .drawer-link.active { background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); font-weight: 700; }
.fj-drawer .drawer-link.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--theme-primary); }
.fj-drawer .drawer-link.active .drawer-icon { opacity: 1; }
.fj-drawer .drawer-foryou { color: #7c3aed; background: color-mix(in srgb, #7c3aed 9%, transparent); margin-top: 4px; }
.fj-drawer .drawer-foryou .drawer-icon { color: #7c3aed; opacity: 1; }
.fj-drawer .drawer-foryou.active { background: color-mix(in srgb, #7c3aed 16%, transparent); color: #6d28d9; }
.fj-drawer .drawer-foryou.active::before { background: #7c3aed; }
.fj-drawer-new { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 600px) {
  .fj-header .fj-support-btn { display: none; }
  .fj-bell-panel { position: fixed; left: 10px; right: 10px; top: calc(var(--nav-h, 64px) + 6px); width: auto; }
  .fj-bell-list { max-height: 60vh; }
}
@media (max-width: 480px) { .fj-header .fj-actions { gap: 4px; } }

.fj-taste-learned { display: flex; gap: 8px; align-items: center; margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #7c3aed 9%, transparent); color: var(--theme-text); font-size: .82rem; }
.fj-taste-learned svg { flex: none; width: 17px; height: 17px; color: #7c3aed; }
.fj-taste-meals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fj-taste-meal { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; text-align: center; transition: .15s; }
.fj-taste-meal svg { width: 22px; height: 22px; color: var(--theme-primary); }
.fj-taste-meal.on { border-color: #22c55e; background: color-mix(in srgb, #22c55e 10%, var(--theme-card-bg)); }
.fj-taste-opts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .fj-taste-meals { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fj-taste-opts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fj-cart-suggest { grid-template-columns: minmax(0, 1fr); } .fj-combo, .fj-together { min-width: 0; } .fj-combo-items { justify-content: center; } .fj-combo-item { flex: 0 1 160px; }

/* ══ Mobile: no sideways panning ═══════════════════════════════
   Phones zoom in when a field with text under 16px is tapped, which made
   login, sign-up and profile slide left/right; 16px fields prevent that.
   overflow-x: clip on html + body stops any decoration from widening the page
   (unlike hidden, clip keeps the sticky/fixed header working). */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (max-width: 768px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}

/* ══ Themed confirm / alert dialog (FJ.confirm / FJ.alert in ui.js) ══ */
.fj-dialog-overlay { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; padding: 18px; background: rgba(2, 6, 23, .55); backdrop-filter: blur(5px); animation: fjFade .18s ease; }
.fj-dialog-overlay.closing { opacity: 0; transition: opacity .15s ease; }
.fj-dialog { width: min(400px, 100%); padding: 26px 24px 20px; border-radius: 24px; text-align: center; background: var(--theme-card-bg); color: var(--theme-text); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .45); animation: fjDlgIn .22s cubic-bezier(.2, .8, .2, 1); }
.fj-dialog-ico { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 18px; color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 13%, transparent); }
.fj-dialog-ico svg { width: 28px; height: 28px; }
.fj-dialog-danger .fj-dialog-ico { color: #ef4444; background: color-mix(in srgb, #ef4444 12%, transparent); }
.fj-dialog h3 { margin: 0 0 6px; font-size: 1.18rem; font-weight: 800; letter-spacing: -.2px; }
.fj-dialog p { margin: 0 0 20px; color: var(--theme-muted); font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.fj-dialog-btns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.fj-dialog-btn { padding: 12px 14px; border-radius: 14px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; }
.fj-dialog-btn:active { transform: scale(.97); }
.fj-dialog-btn:focus-visible { outline: none; box-shadow: var(--ring, 0 0 0 3px rgba(34, 197, 94, .35)); }
.fj-dialog-btn.ghost { border: 1.5px solid var(--line); background: var(--surface-2); color: var(--theme-text); }
.fj-dialog-btn.ghost:hover { border-color: var(--theme-muted); }
.fj-dialog-btn.solid { border: none; background: var(--theme-primary); color: #fff; box-shadow: 0 10px 22px -10px var(--theme-primary); }
.fj-dialog-btn.solid:hover { filter: brightness(1.06); }
.fj-dialog-danger .fj-dialog-btn.solid { background: #ef4444; box-shadow: 0 10px 22px -10px #ef4444; }
@keyframes fjDlgIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 400px) { .fj-dialog-btns { grid-auto-flow: row; } .fj-dialog-btns .solid { order: -1; } }

/* Menu/restaurant filter strip on phones: compact pills + small sort dropdown.
   The select keeps 16px text (smaller makes phones zoom in on tap) but loses the padding and border bulk. */
@media (max-width: 768px) {
  .category-strip { margin-top: 12px; padding: 8px 0; }
  .fj-strip-row { gap: 8px; }
  .category-pills { gap: 8px; }
  .category-pills .pill { padding: 7px 14px; font-size: .84rem; }
  .category-pills .pill svg { width: 16px; height: 16px; }
  .fj-sort { align-self: flex-end; gap: 6px; padding: 0 4px 0 10px; height: 36px; }
  .fj-sort > svg { width: 15px; height: 15px; }
  .fj-sort select { padding: 0 2px; height: 34px; font-size: 16px !important; font-weight: 600; transform: scale(.85); transform-origin: left center; margin-right: -14px; }
}

/* ══ Mixed-size rails (home, menu, restaurants) ═════════════════════
   Horizontal rows with cards of different sizes: round craving chips,
   tall highlight banners, small dish cards, square logo tiles, wide restaurant cards. */
.fj-rail { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 2px; padding: 4px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fj-rail::-webkit-scrollbar { display: none; }
.fj-rail > * { scroll-snap-align: start; }
.fj-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.fj-rail-head h2 { margin: 2px 0 0; font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 800; letter-spacing: -.3px; }
.fj-rail-head p { margin: 3px 0 0; color: var(--theme-muted); font-size: .86rem; }
.fj-rail-head .overline { display: inline-flex; align-items: center; gap: 6px; }
.fj-rail-head .overline svg { width: 14px; height: 14px; }
.fj-rail-ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.fj-rail-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--theme-card-bg); color: var(--theme-text); cursor: pointer; box-shadow: var(--sh-1); transition: .2s; }
.fj-rail-btn:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.fj-rail-btn svg { width: 17px; height: 17px; }
.fj-rail-block { margin-top: 8px; }

/* Craving chips: round dish photos */
.fj-crave-rail { grid-auto-columns: 92px; gap: 10px; margin-bottom: 18px; }
.fj-crave { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--theme-text); }
.fj-crave-img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .45); border: 3px solid var(--theme-card-bg); transition: transform .25s; }
.fj-crave-img img { width: 100%; height: 100%; object-fit: cover; }
.fj-crave:hover .fj-crave-img { transform: translateY(-3px) scale(1.04); }
.fj-crave b { font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.2; }

/* Highlight banners: tall, colourful */
.fj-promo-rail { grid-auto-columns: minmax(250px, 300px); }
.fj-promo { position: relative; display: flex; min-height: 150px; overflow: hidden; border-radius: 22px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 14px 30px -18px var(--p1); }
.fj-promo-text { position: relative; z-index: 1; display: grid; align-content: space-between; gap: 6px; max-width: 60%; padding: 18px; }
.fj-promo-text small { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.fj-promo-text b { font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -.2px; }
.fj-promo-text em { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--p1); font-style: normal; font-size: .78rem; font-weight: 800; }
.fj-promo-text em svg { width: 14px; height: 14px; }
.fj-promo img { position: absolute; right: -18px; bottom: -18px; width: 58%; height: 118%; object-fit: cover; border-radius: 50% 0 0 0; box-shadow: -10px -10px 30px rgba(0, 0, 0, .18); transition: transform .4s; }
.fj-promo:hover img { transform: scale(1.05) rotate(-2deg); }

/* Small dish cards */
.fj-rail#trendRail, .fj-dish-rail { grid-auto-columns: 196px; }
.fj-dish-mini { display: grid; align-content: start; gap: 4px; min-width: 0; text-decoration: none; color: var(--theme-text); }
.fj-dish-mini-img { position: relative; display: block; height: 138px; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.fj-dish-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fj-dish-mini:hover .fj-dish-mini-img img { transform: scale(1.06); }
.fj-chip-time { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #0f172a; font-size: .7rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.fj-dish-add { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: none; border-radius: 50%; background: #fff; color: var(--theme-primary); cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); transition: transform .15s; }
.fj-dish-add:hover { transform: scale(1.1); background: var(--theme-primary); color: #fff; }
.fj-dish-add svg { width: 18px; height: 18px; stroke-width: 2.6; }
.fj-dish-mini-shop { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--theme-muted); font-size: .76rem; min-width: 0; }
.fj-dish-mini-shop > svg { width: 13px; height: 13px; flex: none; }
.fj-dish-mini-shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-dish-mini-shop em { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; flex: none; font-style: normal; font-weight: 700; color: var(--theme-text); }
.fj-dish-mini-shop em svg, .fj-rest-wide-row em svg, .fj-brand-tile small svg { width: 12px; height: 12px; color: #f59e0b; fill: #f59e0b; }
.fj-dish-mini-name { font-size: .92rem; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.fj-dish-mini-price { color: var(--theme-primary); font-weight: 800; font-size: .95rem; }
.fj-dish-mini-meta { display: flex; align-items: center; gap: 4px; color: var(--theme-muted); font-size: .72rem; }
.fj-dish-mini-meta svg { width: 13px; height: 13px; }
.fj-dish-mini.fj-skel { height: 230px; border-radius: 18px; }

/* Restaurant logo tiles (brand logo, or a monogram in the restaurant's colour) */
.fj-brand-rail { grid-auto-columns: 124px; gap: 12px; }
.fj-brand-tile { display: grid; justify-items: center; gap: 4px; padding: 0 2px; text-align: center; text-decoration: none; color: var(--theme-text); min-width: 0; }
.fj-brand-tile b { width: 100%; margin-top: 6px; font-size: .8rem; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fj-brand-tile small { display: inline-flex; align-items: center; gap: 3px; color: var(--theme-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fj-brand-mark { display: grid; place-items: center; overflow: hidden; flex: none; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.fj-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.fj-brand-mark.mono { border: none; color: #fff; font-weight: 800; letter-spacing: -.5px; background: radial-gradient(circle at 30% 20%, hsl(var(--bh) 75% 62%), hsl(var(--bh) 65% 38%)); text-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.fj-brand-mark.lg { width: 108px; height: 108px; font-size: 2.1rem; border-radius: 24px; box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .5); transition: transform .25s; }
.fj-brand-tile:hover .fj-brand-mark.lg { transform: translateY(-3px); }
.fj-brand-mark.sm { position: absolute; left: 12px; bottom: -18px; width: 46px; height: 46px; font-size: 1rem; border-radius: 14px; border: 3px solid var(--theme-card-bg); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }

/* Wide restaurant cards */
.fj-rest-section .fj-rail { grid-auto-columns: minmax(270px, 320px); }
.fj-rest-wide { display: grid; align-content: start; gap: 3px; min-width: 0; text-decoration: none; color: var(--theme-text); }
.fj-rest-wide-img { position: relative; display: block; height: 158px; margin-bottom: 20px; border-radius: 20px; background: var(--surface-2); }
.fj-rest-wide-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.fj-rest-wide-tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(6px); }
.fj-rest-wide-tag svg { width: 13px; height: 13px; color: #facc15; }
.fj-rest-wide-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.fj-rest-wide-row b { font-size: 1rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-rest-wide-row em { display: inline-flex; align-items: center; gap: 4px; flex: none; font-style: normal; font-weight: 700; font-size: .84rem; }
.fj-rest-wide-row em small { color: var(--theme-muted); font-weight: 500; }
.fj-rest-wide-row em.new { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--theme-primary) 14%, transparent); color: var(--theme-primary); font-size: .72rem; }
.fj-rest-wide-meta { display: flex; align-items: center; gap: 4px; color: var(--theme-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-rest-wide-meta svg { width: 14px; height: 14px; flex: none; }
.fj-rest-wide.fj-skel { height: 230px; border-radius: 20px; }

@media (min-width: 1100px) { .fj-promo-rail { grid-auto-columns: calc((100% - 42px) / 4); } }
@media (max-width: 600px) {
  .fj-rail { gap: 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px; }
  .fj-rail-btn { display: none; }
  .fj-rail-head { margin: 22px 0 10px; }
  .fj-rail-head p { display: none; }
  .fj-crave-rail { grid-auto-columns: 78px; gap: 6px; }
  .fj-crave-img { width: 72px; height: 72px; }
  .fj-promo-rail { grid-auto-columns: 78%; }
  .fj-promo { min-height: 138px; }
  .fj-rail#trendRail, .fj-dish-rail { grid-auto-columns: 168px; }
  .fj-dish-mini-img { height: 120px; }
  .fj-brand-rail { grid-auto-columns: 100px; }
  .fj-brand-mark.lg { width: 92px; height: 92px; font-size: 1.8rem; border-radius: 20px; }
  .fj-rest-section .fj-rail { grid-auto-columns: 82%; }
  .fj-rest-wide-img { height: 140px; }
}

/* ══ Phones: compact sizes instead of one giant card per row ═════════ */
@media (max-width: 600px) {
  /* Three category tiles side by side */
  .fj-cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .fj-cat-card { min-height: 112px; padding: 10px; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-end; gap: 4px; border-radius: 18px; }
  .fj-cat-card .fj-cat-icon { width: 30px; height: 30px; border-radius: 10px; }
  .fj-cat-card .fj-cat-icon svg { width: 16px; height: 16px; }
  .fj-cat-card .fj-cat-title { flex: none; align-self: auto; font-size: .82rem; line-height: 1.15; }
  .fj-cat-card .fj-cat-go, .fj-cat-card .fj-cat-text { display: none; }

  /* Product grids (home menu, menu page, restaurant pages): compact list rows */
  .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid-4 .product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; border-radius: 18px; overflow: hidden; }
  /* the photo fills a fixed box (cropped to its centre), so its own size never changes the card height */
  .grid-4 .product-card { min-height: 132px; }
  .grid-4 .product-card .pc-img-wrap { position: relative; height: auto; min-height: 132px; }
  .grid-4 .product-card .pc-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100% !important; min-height: 0; object-fit: cover; object-position: center; border-radius: 0; }
  .grid-4 .product-card .pc-badge-popular { top: 6px; left: 6px; max-width: calc(100% - 12px); padding: 3px 7px; font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid-4 .product-card .pc-badge-popular svg { width: 11px; height: 11px; }
  .grid-4 .product-card .pc-badge-prep { left: 6px; right: auto; bottom: 6px; top: auto; padding: 2px 7px; font-size: .62rem; }
  .grid-4 .product-card .pc-badge-prep svg { width: 11px; height: 11px; }
  .grid-4 .product-card .product-content { padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; }
  .grid-4 .product-card .pc-vendor { font-size: .72rem; margin-bottom: 2px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .grid-4 .product-card .pc-vendor svg { vertical-align: -2px; }
  .grid-4 .product-card .product-title { font-size: .95rem !important; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .grid-4 .product-card .pc-meta-row { display: none; }
  .grid-4 .product-card .pc-rating { margin: 4px 0 6px; font-size: .74rem; }
  .grid-4 .product-card .pc-footer { margin-top: auto; }
  .grid-4 .product-card .product-price { font-size: 1rem !important; }
  .grid-4 .product-card .pc-act { width: 34px; height: 34px; }
}

/* Sort dropdown sits on the "Showing 12 of 72 dishes" line as plain text */
.fj-count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.fj-count-row .fj-count { margin: 0; }
.fj-sort.fj-sort-inline { align-self: center; height: auto; gap: 4px; padding: 0; border: none; background: none; box-shadow: none; color: var(--theme-muted); }
.fj-sort.fj-sort-inline > svg { width: 15px; height: 15px; }
.fj-sort.fj-sort-inline select { height: auto; padding: 2px 0; margin: 0; transform: none; color: var(--theme-text); font-size: .9rem; font-weight: 600; text-align: right; }
.fj-sort.fj-sort-inline:hover select { color: var(--theme-primary); }
@media (max-width: 768px) {
  .fj-count-row { margin: 12px 0; }
  .fj-count-row .fj-count { font-size: .82rem; }
  /* 16px text stops phones zooming in on tap; scaled down visually to match the line */
  .fj-sort.fj-sort-inline select { font-size: 16px !important; transform: scale(.84); transform-origin: right center; margin-left: -12px; }
}

/* Menu-page shelves (Popular, Top rated, New, Under Rs. 300) use the small dish cards */
.fj-shelf-row.dishes { grid-auto-columns: 200px; gap: 16px; }
@media (min-width: 1100px) { .fj-shelf-row.dishes { grid-auto-columns: calc((100% - 80px) / 6); } }
@media (max-width: 600px) { .fj-shelf-row.dishes { grid-auto-columns: 168px; gap: 12px; } }

/* Restaurants page shelves: logo tiles and wide cards */
.fj-shelf-row.brands { grid-auto-columns: 124px; gap: 14px; }
.fj-shelf-row.wide { grid-auto-columns: minmax(270px, 320px); gap: 18px; }
@media (min-width: 1100px) { .fj-shelf-row.brands { grid-auto-columns: 124px; } .fj-shelf-row.wide { grid-auto-columns: calc((100% - 54px) / 4); } }
@media (max-width: 600px) { .fj-shelf-row.brands { grid-auto-columns: 100px; gap: 10px; } .fj-shelf-row.wide { grid-auto-columns: 82%; gap: 12px; } }

/* Home hero "Deliver to <area> Change": the area name always shows, shortened with … if long */
.fj-deliver-to .fj-loc-text { display: inline-block; max-width: min(52vw, 260px); vertical-align: bottom; }

/* Every food photo is cropped to the centre of a fixed box, whatever size the uploaded image is */
.pc-img-wrap img, .fj-dish-mini-img img, .fj-rest-wide-img > img, .fj-crave-img img, .fj-promo img, .fj-again-card img, .shop-card img, .fj-hero-card img { object-fit: cover; object-position: center; }

/* Footer bottom: just the copyright line, centred */
.footer-bottom { justify-content: center; text-align: center; }

/* Why-this-dish reason ("Matches your taste", "You viewed this"…): on the photo for wide cards,
   but on phones the photo is too narrow, so the full text sits above the dish name instead */
.pc-reason { display: none; }
@media (max-width: 600px) {
  .grid-4 .product-card .pc-badge-popular { display: none; }
  .grid-4 .product-card .pc-reason { display: inline-flex; align-items: flex-start; gap: 5px; align-self: flex-start; max-width: 100%; margin-bottom: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1.35; color: #15803d; background: color-mix(in srgb, #22c55e 13%, transparent); }
  .grid-4 .product-card .pc-reason.foryou { color: #7c3aed; background: color-mix(in srgb, #a855f7 13%, transparent); }
  .grid-4 .product-card .pc-reason svg { flex: none; width: 12px; height: 12px; margin-top: 2px; }
  .grid-4 .product-card .pc-reason span { min-width: 0; overflow-wrap: anywhere; }
}
[data-mode="dark"] .grid-4 .product-card .pc-reason { color: #4ade80; }
[data-mode="dark"] .grid-4 .product-card .pc-reason.foryou { color: #c4b5fd; }
@media (max-width: 600px) {
  .fj-foryou-chips { gap: 6px; }
  .fj-foryou-chips span { padding: 5px 10px; font-size: .74rem; gap: 5px; }
  .fj-foryou-chips span svg { width: 13px; height: 13px; }
  .fj-foryou-chips .fj-foryou-lead { padding-left: 0; padding-right: 2px; }
}

/* Side menu, cart and dashboard drawers: fit the real visible screen on phones (100dvh excludes the
   browser bar, so the last items are reachable) and scroll on their own without dragging the page */
.nav-drawer, .cart-sidebar { height: 100vh; height: 100dvh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.nav-drawer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) { .dash-side { height: 100dvh; overscroll-behavior: contain; padding-bottom: calc(16px + env(safe-area-inset-bottom)); } }
.fj-modal, .modal-overlay .modal, .fj-dialog { overscroll-behavior: contain; }
.fj-modal { max-height: 88dvh; }
html.fj-scroll-locked { overflow: hidden; }

/* Notifications are clickable everywhere */
[data-notif-link] { cursor: pointer; transition: background .15s, transform .15s; }
[data-notif-link]:hover { background: color-mix(in srgb, var(--theme-primary) 7%, transparent); }
[data-notif-link]:active { transform: scale(.99); }
/* A card opened from a notification flashes briefly so it is easy to spot */
.fj-flash { animation: fjFlash 1.6s ease; }
@keyframes fjFlash { 0%, 100% { box-shadow: var(--sh-3); } 25%, 60% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary) 55%, transparent), var(--sh-3); } }
#tickets { scroll-margin-top: calc(var(--nav-h, 70px) + 12px); }
.track-card { scroll-margin-top: calc(var(--nav-h, 70px) + 12px); }
.past-card { scroll-margin-top: calc(var(--nav-h, 70px) + 12px); }

/* Delivery: free-delivery badges, checkout fee lines, cart hint */
.fj-free, .fj-free-text, .fj-dish-mini-meta.free, .fj-rest-wide-meta.free { color: #16a34a !important; font-weight: 800; }
.fj-free-badge { position: absolute; z-index: 2; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: #16a34a; color: #fff; font-size: .7rem; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(22, 163, 74, .7); }
.fj-free-badge svg { width: 13px; height: 13px; }
.fj-free-badge.pc { top: auto; bottom: 10px; right: 10px; }
.fj-rest-wide-img .fj-free-badge { top: auto; bottom: 10px; }
.fj-fee-lines { display: grid; gap: 6px; margin: -2px 0 10px; }
.fj-fee-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: .8rem; }
.fj-fee-line span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-fee-line svg { width: 14px; height: 14px; flex: none; }
.fj-fee-line small { grid-column: 1 / -1; color: var(--theme-muted); font-size: .72rem; }
.fj-fee-line.free { background: color-mix(in srgb, #22c55e 10%, transparent); }
.fj-fee-line.free b, .fj-fee-line.free svg { color: #16a34a; }
.fj-free-hint { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, #22c55e 10%, transparent); color: var(--theme-text); font-size: .78rem; }
.fj-free-hint svg { width: 15px; height: 15px; color: #16a34a; flex: none; }
.pd-fact.free b { color: #16a34a; }

/* Free-delivery badge on phones: smaller, and on list-row dish cards just a compact "Free" chip
   in the photo's top-right corner so it never covers the prep-time chip */
@media (max-width: 600px) {
  .fj-free-badge { gap: 3px; padding: 3px 7px; font-size: .62rem; right: 8px; }
  .fj-free-badge svg { width: 11px; height: 11px; }
  .fj-rest-wide-img .fj-free-badge { bottom: 8px; }
  .grid-4 .product-card .fj-free-badge.pc { top: 6px; right: 6px; bottom: auto; padding: 3px 6px; font-size: 0; }
  .grid-4 .product-card .fj-free-badge.pc::after { content: 'Free'; font-size: .6rem; }
  .fj-fee-line { padding: 7px 9px; font-size: .76rem; }
  .fj-free-hint { font-size: .74rem; }
}
/* Small dish cards: one tidy line for delivery info (order count hidden on phones to keep it on one line) */
.fj-dish-mini-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fj-dish-mini-meta svg { flex: none; }
@media (max-width: 600px) { .fj-mini-orders { display: none; } .fj-dish-mini-meta { font-size: .68rem; } }

/* restaurant names on dish cards open the restaurant */
a.pc-vendor { text-decoration: none; color: inherit; cursor: pointer; }
a.pc-vendor:hover, .fj-dish-mini-shop:hover span { color: var(--theme-primary); text-decoration: underline; }
.fj-dish-mini-shop { cursor: pointer; }

/* Every pop-up scrolls when its content is taller than the screen (rider list, coupon / combo forms …) */
.fj-modal { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.fj-modal > * { flex-shrink: 0; }
.fj-chat-box, .fj-chat-box > * { overflow: hidden; }
.fj-chat-box > .fj-chat-list { flex-shrink: 1; overflow-y: auto; }
/* pop-ups with a fixed header and their own scrolling body (Help → Report a problem, ad pop-up) */
.fj-support-box > .fj-support-body, .fj-popup-box > .fj-popup-body { flex-shrink: 1; min-height: 0; overflow-y: auto; }
.d-modal .d-form { min-height: 0; }
