/* Giddy Express — design system */
:root {
  --green-900: #063D24;
  --green-800: #0A4F30;
  --green-700: #0B5D38;
  --green-600: #157A4C;
  --green-100: #E3F1EA;
  --green-50: #F1F8F4;
  --orange-600: #C2560F;
  --orange-500: #EE6417;
  --orange-100: #FDEBDD;
  --bg: #FEFCF5;
  --surface: #FFFFFF;
  --ink: #1B1F1D;
  --ink-2: #47504B;
  --ink-3: #5F6863;
  --line: #E4E4DE;
  --line-2: #D3D4CC;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --warn: #8A5300;
  --warn-bg: #FFF4DB;
  --info: #1D4F91;
  --info-bg: #E8F0FB;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 4px 14px rgba(16, 24, 20, .06);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--green-600);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 70px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }

/* Layout */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap-row { display: flex; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }
.strong { font-weight: 700; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .hide-desktop { display: none !important; } }
main { min-height: 60vh; padding-bottom: calc(var(--nav-h) + 32px); }
@media (min-width: 900px) { main { padding-bottom: 48px; } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(250, 249, 246, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--green-700); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.brand span b { color: var(--orange-600); font-weight: 800; }
.topbar .spacer { flex: 1; }
.top-links { display: none; gap: 4px; }
@media (min-width: 900px) { .top-links { display: flex; } }
.top-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.top-links a:hover, .top-links a[aria-current="page"] { background: var(--green-50); color: var(--green-800); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.count-dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange-600); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.announce { background: var(--green-800); color: #fff; font-size: .875rem; text-align: center; padding: 8px 16px; }
.demo-strip { background: var(--warn-bg); color: var(--warn); font-size: .8125rem; text-align: center; padding: 6px 16px; border-bottom: 1px solid #F1DFB0; }

/* Bottom nav (mobile) */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: var(--nav-h); background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .75rem; font-weight: 600; }
.bottom-nav a[aria-current="page"] { color: var(--green-700); }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 650; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.25; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-accent { background: var(--orange-600); color: #fff; }
.btn-accent:hover { background: #A84A0C; color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--green-700); }
.btn-ghost:hover { background: var(--green-50); }
.btn-danger { background: var(--surface); border-color: #F2B8B5; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-block { width: 100%; }
.btn-sm { white-space: nowrap; min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-link { display: block; text-decoration: none; color: inherit; overflow: hidden; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--line-2); color: inherit; transform: translateY(-1px); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge-success { background: var(--green-100); color: var(--green-800); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: #EFEFEA; color: var(--ink-2); }
.badge-demo { background: var(--warn-bg); color: var(--warn); border-color: #F1DFB0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 650; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--ink-3); }
.field .err { font-size: .8125rem; color: var(--danger); font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(26, 122, 83, .18); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-700); flex-shrink: 0; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-box .input { padding-left: 44px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked { background: var(--green-600); }
.switch input:checked::after { left: 21px; }

/* Chips / tabs */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; padding: 12px 14px; font-weight: 650; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs [aria-selected="true"] { color: var(--green-700); border-bottom-color: var(--green-700); }

/* Hero */
.hero { padding: 28px 0 8px; }
.hero-card { background: var(--green-800); color: #fff; border-radius: 20px; padding: 28px 22px; display: grid; gap: 18px; }
@media (min-width: 900px) { .hero-card { padding: 44px; grid-template-columns: 1.4fr 1fr; align-items: center; } }
.hero-card h1 { color: #fff; margin-bottom: 10px; }
.hero-card p { color: #D7E7DE; font-size: 1.05rem; max-width: 52ch; }
.hero-card .btn-accent { min-height: 50px; padding: 12px 22px; font-size: 1.02rem; }
.hero-side { display: grid; gap: 10px; }
.hero-tile { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px; color: #fff; text-decoration: none; font-weight: 650; }
.hero-tile:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-tile .tile-icon { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--green-800); display: grid; place-items: center; flex-shrink: 0; }
.hero-tile small { display: block; color: #CFE2D7; font-weight: 500; }
.location-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; min-height: 40px; font-weight: 600; font-size: .875rem; cursor: pointer; max-width: 100%; }
.location-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }

/* Vendor cards */
.vendor-card .thumb { aspect-ratio: 16 / 9; background: var(--green-50); position: relative; }
.vendor-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vendor-card .thumb .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.vendor-card .body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.vendor-card.closed .thumb { filter: grayscale(.6); opacity: .85; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8125rem; color: var(--ink-3); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Image fallback */
.img-fallback { width: 100%; height: 100%; min-height: 64px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.img-fallback.shop { background: var(--orange-100); color: var(--orange-600); }
.img-fallback .fb-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 1.05rem; text-align: center; padding: 8px; }

/* Vendor page */
.vendor-hero { position: relative; }
.vendor-banner { height: 170px; border-radius: 0 0 18px 18px; overflow: hidden; background: var(--green-50); }
@media (min-width: 900px) { .vendor-banner { height: 240px; border-radius: 18px; margin-top: 16px; } }
.vendor-banner img { width: 100%; height: 100%; object-fit: cover; }
.vendor-head { display: flex; gap: 14px; align-items: flex-end; margin-top: -36px; padding: 0 4px; }
.vendor-logo { width: 76px; height: 76px; border-radius: 18px; border: 3px solid #fff; background: #fff; overflow: hidden; box-shadow: var(--shadow); flex-shrink: 0; }
.vendor-logo img { width: 100%; height: 100%; object-fit: cover; }
.menu-cats { position: sticky; top: 60px; z-index: 20; background: var(--bg); padding: 10px 0; }
.product { display: grid; grid-template-columns: 1fr 96px; gap: 12px; padding: 14px; align-items: start; }
.product.unavailable { opacity: .6; }
.product .pimg { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--green-50); }
.product .pimg img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { font-size: 1rem; margin: 0 0 2px; }
.product .desc { color: var(--ink-3); font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.price { font-weight: 750; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.stepper button:hover { background: var(--green-50); }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; }

/* Modal / sheet */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 20, 18, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 24px; } }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; }
@media (min-width: 640px) { .modal { border-radius: 20px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 18px; display: grid; gap: 14px; }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); display: flex; gap: 10px; align-items: center; }
.opt-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.opt-group legend { font-weight: 700; padding: 0 4px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 20px; height: 20px; accent-color: var(--green-700); }
.opt.disabled { opacity: .5; cursor: not-allowed; }

/* Lists & tables */
.list { display: grid; }
.list > * { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: #FBFBF8; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--green-50); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: #fff; z-index: 1; }
.timeline li.done .tl-dot { background: var(--green-600); border-color: var(--green-600); }
.timeline li.done::before { background: var(--green-600); }
.timeline li.current .tl-dot { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.timeline li.current .tl-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); }
.timeline .tl-label { font-weight: 650; padding-top: 3px; }
.timeline li:not(.done):not(.current) .tl-label { color: var(--ink-3); font-weight: 500; }

/* Notices */
.notice { border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice-info { background: var(--info-bg); color: #163F75; }
.notice-warn { background: var(--warn-bg); color: #6E4300; }
.notice-danger { background: var(--danger-bg); color: #8E1C13; }
.notice-success { background: var(--green-100); color: var(--green-900); }
.test-mode { border: 2px dashed #D9A43A; background: #FFFBF0; border-radius: 14px; padding: 16px; }

/* States */
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); display: grid; justify-items: center; gap: 10px; }
.empty .empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.empty h3 { color: var(--ink); margin: 0; }
.skel { background: linear-gradient(90deg, #EEEEE8 25%, #F6F6F1 50%, #EEEEE8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .btn .spin { animation: none; } .card-link { transition: none; } }

/* Toast */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px); z-index: 80; display: grid; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 550; display: flex; gap: 10px; align-items: center; }
.toast.danger { background: var(--danger); }
.toast.success { background: var(--green-800); }

/* Cart bar */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 10px); z-index: 25; }
@media (min-width: 900px) { .cart-bar { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.cart-bar a { display: flex; justify-content: space-between; align-items: center; background: var(--green-700); color: #fff; padding: 14px 18px; border-radius: 14px; text-decoration: none; font-weight: 700; box-shadow: 0 10px 24px rgba(15, 77, 53, .35); }
.cart-bar a:hover { background: var(--green-800); color: #fff; }

/* Stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.stat { padding: 16px; }
.stat .k { font-size: .8125rem; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Dashboard shell */
.dash { display: grid; min-height: 100vh; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .dash { grid-template-columns: 248px 1fr; } }
.side { display: none; background: var(--green-900); color: #D5E6DC; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (min-width: 1000px) { .side { display: block; } }
.side .brand { color: #fff; padding: 6px 10px 18px; }
.side .brand-mark { background: #fff; color: var(--green-800); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #D5E6DC; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; }
.side nav a .count { margin-left: auto; background: var(--orange-500); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 7px; font-weight: 700; }
.dash-top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.dash-top .wrap { max-width: none; display: flex; align-items: center; gap: 10px; min-height: 58px; }
.dash-main { padding: 20px 0 60px; }
.dash-main .wrap { max-width: 1180px; }
.mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; border-top: 1px solid var(--line); scrollbar-width: none; }
.mobile-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .mobile-nav { display: none; } }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: 6px 12px; font-size: .9375rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
footer.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 calc(var(--nav-h) + 28px); font-size: .9rem; color: var(--ink-3); }
@media (min-width: 900px) { footer.site-footer { padding-bottom: 28px; } }
.footer-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid a { color: var(--ink-2); }
.center-page { min-height: 70vh; display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 440px; }
.contact-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }


/* ===================== Giddy Express home (matches brand mockup) ===================== */
:root { --display: 'Poppins', 'Inter', system-ui, sans-serif; --ink-deep: #0F282C; }
.topbar { background: rgba(254, 252, 245, .97); }
body.is-home .topbar { border-bottom-color: transparent; }
.topbar .wrap { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.brand-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gx-brand { gap: 6px; }
.gx-brand img { width: 44px; height: auto; }
.gx-brand span { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--green-800); letter-spacing: -.02em; }
.deliver-to { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--green-800); text-align: left; min-height: 44px; }
.deliver-to span { display: flex; flex-direction: column; line-height: 1.2; }
.deliver-to small { color: var(--ink-3); font-size: .85rem; }
.deliver-to strong { color: var(--ink-deep); font-size: 1.05rem; font-weight: 700; }
.topbar #top-actions { padding-top: 4px; }
.bag-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--green-800); text-decoration: none; }
.bag-btn:hover { color: var(--green-900); }
.bag-btn .count-dot { top: -2px; right: -2px; background: #F25A0D; min-width: 22px; height: 22px; border-radius: 11px; font-size: .8rem; border: 2px solid var(--bg); }

.gx-home { padding-top: 4px; display: grid; gap: 14px; }
.gx-home h2 { font-family: var(--display); font-weight: 700; color: var(--ink-deep); font-size: 1.45rem; letter-spacing: -.02em; margin: 0; }
.gx-search { position: relative; }
.gx-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-deep); pointer-events: none; }
.gx-search input { width: 100%; min-height: 54px; padding: 12px 18px 12px 58px; border: 1px solid #E6E4DC; border-radius: 16px; background: #fff; font-size: 1.05rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.gx-search input::placeholder { color: #6B6A73; }
.gx-search input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(21, 122, 76, .18); }

.gx-hero { position: relative; overflow: hidden; border-radius: 26px; background: var(--green-700); color: #fff; min-height: 236px; display: flex; align-items: center; }
.gx-hero-text { position: relative; z-index: 1; padding: 26px 0 26px 24px; max-width: 60%; }
.gx-hero h1 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(2rem, 8.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 10px; }
.gx-hero p { color: #EAF4EE; font-size: clamp(.95rem, 3.2vw, 1.2rem); margin: 0 0 18px; }
.gx-hero-img { position: absolute; right: 0; top: 0; height: 100%; width: 52%; object-fit: cover; object-position: 30% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.gx-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--orange-500); color: #fff; font-weight: 700; font-size: 1.15rem; padding: 12px 22px; border-radius: 999px; text-decoration: none; min-height: 48px; box-shadow: 0 6px 16px rgba(238, 100, 23, .35); }
.gx-pill:hover { background: #D9560E; color: #fff; }

.gx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gx-tile { position: relative; overflow: hidden; border-radius: 20px; min-height: 150px; display: flex; text-decoration: none; padding: 18px 16px; }
.gx-tile-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; max-width: 62%; }
.gx-tile strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 5.4vw, 2rem); line-height: 1.05; letter-spacing: -.02em; }
.gx-tile-text span { font-size: clamp(.82rem, 3vw, 1.05rem); font-weight: 500; }
.gx-tile-food { background: #EC5F14; color: #fff; }
.gx-tile-food:hover { color: #fff; filter: brightness(1.03); }
.gx-tile-food img { position: absolute; right: 0; bottom: 0; height: 72%; width: 50%; object-fit: cover; object-position: left center; border-top-left-radius: 40px; }
.gx-tile-ess { background: #E4F2CF; color: var(--green-800); }
.gx-tile-ess:hover { color: var(--green-900); filter: brightness(.99); }
.gx-tile-ess .ess-art { position: absolute; right: 4px; bottom: 6px; width: 50%; height: auto; }
@media (max-width: 430px) { .gx-tile { min-height: 140px; padding: 14px 12px; } .gx-tile-text { max-width: 100%; } .gx-tile-text span { max-width: 9.5em; } }

.gx-data { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; background: #E8FAE5; border-radius: 22px; padding: 16px 16px 16px 14px; text-decoration: none; color: #062C16; min-height: 112px; }
.gx-data:hover { color: #062C16; filter: brightness(.99); }
.gx-data-logo { width: 74px; height: auto; flex-shrink: 0; position: relative; z-index: 1; mix-blend-mode: multiply; }
.gx-data-text { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-width: 0; border-left: 1px solid #BFE2C3; padding-left: 14px; }
.gx-data-text strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 4.6vw, 1.9rem); letter-spacing: -.02em; color: #062C16; line-height: 1.1; }
.gx-data-text span { font-size: clamp(.85rem, 3vw, 1.15rem); color: #1D2B22; }
.gx-data-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; background: #D9560E; color: #fff; font-weight: 700; padding: 11px 16px; border-radius: 999px; white-space: nowrap; min-height: 44px; }
.gx-data-wifi { position: absolute; color: #BDEBC2; width: 90px; opacity: .9; }
.gx-data-wifi-l { left: -26px; top: 4px; transform: rotate(-30deg); }
.gx-data-wifi-r { right: 10px; bottom: -22px; transform: rotate(-20deg); }
.gx-data-corner { position: absolute; right: -28px; top: -28px; width: 84px; height: 84px; border-radius: 50%; background: #1F3E77; }
@media (max-width: 520px) {
  .gx-data { flex-wrap: wrap; }
  .gx-data-logo { width: 56px; }
  .gx-data-btn { margin-left: auto; padding: 9px 14px; font-size: .95rem; }
}

.gx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; }
.gx-sub { color: #6B6A73; margin: 2px 0 0; font-size: .95rem; }
.gx-seeall { display: inline-flex; align-items: center; gap: 6px; color: #C2490B; font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 44px; }
.gx-seeall:hover { color: #9E3B08; }
.gx-favs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .gx-favs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gx-hero { min-height: 320px; } .gx-hero-text { padding: 44px; } .gx-tile { min-height: 190px; padding: 26px; } }
.fav-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #EEECE4; box-shadow: 0 1px 3px rgba(16, 24, 20, .05); display: flex; flex-direction: column; }
.fav-img { text-decoration: none; display: block; aspect-ratio: 3.4 / 1; background: var(--green-50); overflow: hidden; }
.fav-img img { width: 100%; height: 100%; object-fit: cover; }
.fav-img .img-fallback { min-height: 0; height: 100%; }
@media (max-width: 640px) { .fav-img { aspect-ratio: 2.2 / 1; } }
.fav-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 14px; }
.fav-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin: 0 0 2px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav-body h3 a { color: var(--ink-deep); text-decoration: none; }
.fav-meta { font-size: .82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-meta .price { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .fav-vendor { display: none; } }
.fav-add { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; }
.fav-add:hover { background: var(--green-900); color: #fff; }

.bottom-nav { height: 70px; }
.bottom-nav a { font-size: .8rem; color: #6B6A73; }
.bottom-nav a[aria-current="page"] { color: var(--green-800); }
.bottom-nav a[aria-current="page"] svg { fill: currentColor; fill-opacity: .18; }
.deliver-to[hidden] { display: none; }

/* Install the app */
.install-banner { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #EEECE4; border-radius: 18px; padding: 12px 40px 12px 12px; box-shadow: 0 1px 3px rgba(16,24,20,.06); }
.install-banner img { border-radius: 12px; flex-shrink: 0; border: 1px solid #EEECE4; }
.install-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.install-text strong { font-family: var(--display); font-weight: 700; color: var(--ink-deep); }
.install-text span { font-size: .85rem; color: var(--ink-3); }
.install-x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-3); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.install-x:hover { background: #F2F1EC; }
.install-head { display: flex; align-items: center; gap: 14px; }
.install-head img { border-radius: 16px; border: 1px solid #EEECE4; }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.install-step { display: flex; gap: 12px; align-items: flex-start; background: #F7F6F1; border-radius: 14px; padding: 12px; }
.install-step svg { vertical-align: -5px; margin: 0 2px; }
.install-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

/* ---------- Welcome splash ---------- */
.splash{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#FFFFFF 0%,var(--bg) 55%,#F3EEDD 100%);animation:splashOut .55s ease-in 2.4s forwards}
.splash-inner{text-align:center;padding:24px}
.splash-ring{width:150px;height:150px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 0 0 0 rgba(238,100,23,.35),0 18px 40px rgba(11,93,56,.18);animation:splashPop .7s cubic-bezier(.2,1.4,.4,1) both,splashPulse 1.6s ease-out .7s 2}
.splash-ring img{width:104px;height:auto;animation:splashRide .9s cubic-bezier(.2,.9,.3,1) .15s both}
.splash-hello{margin:0;font:500 15px/1.4 var(--display);letter-spacing:.18em;text-transform:uppercase;color:var(--orange-500);animation:splashUp .5s ease-out .55s both}
.splash-name{margin:4px 0 6px;font:800 clamp(34px,9vw,52px)/1.05 var(--display);color:var(--green-700);animation:splashUp .55s ease-out .7s both}
.splash-name em{font-style:normal;color:var(--orange-500)}
.splash-tag{margin:0 0 22px;font-size:14px;color:#5B6660;animation:splashUp .5s ease-out .9s both}
.splash-bar{width:140px;height:4px;margin:0 auto;border-radius:4px;background:var(--green-100);overflow:hidden;animation:splashUp .4s ease-out 1s both}
.splash-bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,var(--green-700),var(--orange-500));transform-origin:left;animation:splashLoad 1.3s ease-in-out 1.05s both}
@keyframes splashPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes splashRide{from{transform:translateX(-70px) rotate(-8deg);opacity:0}70%{transform:translateX(6px)}to{transform:none;opacity:1}}
@keyframes splashPulse{to{box-shadow:0 0 0 22px rgba(238,100,23,0),0 18px 40px rgba(11,93,56,.18)}}
@keyframes splashUp{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
@keyframes splashLoad{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes splashOut{to{opacity:0;visibility:hidden;transform:scale(1.04)}}
.splash.gone{display:none}
@media (prefers-reduced-motion:reduce){.splash,.splash *{animation-duration:.01s!important;animation-delay:0s!important}.splash{animation:splashOut .3s ease 1.2s forwards!important}}
