/* ==========================================================================
   Zillah Market — Kenyan multi-vendor marketplace design system
   Palette: deep market green + sunset orange on warm cream
   ========================================================================== */

:root {
    --green-950: #06231A;
    --green-900: #0A3527;
    --green-800: #0B4A36;
    --green-700: #0E6B4F;
    --green-600: #12805E;
    --green-500: #16A34A;
    --green-100: #DCF3E6;
    --green-50: #EEF8F2;

    --orange-700: #C2410C;
    --orange-600: #EA580C;
    --orange-500: #F97316;
    --orange-400: #FB923C;
    --orange-100: #FFE8D6;
    --orange-50: #FFF4EA;

    --cream: #FFF9F2;
    --cream-dark: #F6EEE2;
    --sand: #EDE3D3;
    --white: #FFFFFF;

    --ink: #13251D;
    --ink-soft: #40544A;
    --muted: #75847C;
    --line: #E8E0D3;
    --line-strong: #D8CDBB;

    --red: #DC2626;
    --red-50: #FEF2F2;
    --amber: #B45309;
    --amber-50: #FFFBEB;
    --blue: #0369A1;
    --blue-50: #F0F9FF;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(19, 37, 29, .06);
    --shadow-sm: 0 4px 14px rgba(19, 37, 29, .06);
    --shadow: 0 14px 40px -18px rgba(19, 37, 29, .22);
    --shadow-lg: 0 30px 70px -30px rgba(19, 37, 29, .35);
    --shadow-orange: 0 18px 34px -16px rgba(249, 115, 22, .55);
    --shadow-green: 0 18px 34px -18px rgba(14, 107, 79, .5);

    --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --header-h: 76px;
    --wrap: 1240px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
::selection { background: var(--green-100); color: var(--green-900); }
:focus-visible { outline: 3px solid rgba(249, 115, 22, .5); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); letter-spacing: -.03em; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--green-700); margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--orange-500); border-radius: 2px; }
.eyebrow--light { color: var(--green-100); }
.eyebrow--plain::before { display: none; }
.lead { font-size: 1.08rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tiny { font-size: .74rem; }
.strong { font-weight: 700; }
.text-green { color: var(--green-700); }
.text-orange { color: var(--orange-600); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; letter-spacing: .08em; }
.nowrap { white-space: nowrap; }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); display: inline-block; flex: none; }

/* ---------- Layout ---------- */
.container { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 880px); margin-inline: auto; }
.section { padding: clamp(46px, 6vw, 84px) 0; }
.section--tight { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { margin-bottom: 0; color: var(--muted); max-width: 560px; }
.section-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--green-700); white-space: nowrap; }
.section-link svg { transition: transform .25s var(--ease); }
.section-link:hover svg { transform: translateX(4px); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hscroll {
    display: grid; grid-auto-flow: column; grid-auto-columns: 272px;
    gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px; scrollbar-width: thin;
}
.hscroll > * { scroll-snap-align: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.page-hero { background: radial-gradient(circle at 88% 15%, rgba(249, 115, 22, .12), transparent 40%), linear-gradient(160deg, #F3FAF5, var(--cream)); border-bottom: 1px solid var(--line); padding: 44px 0 38px; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--ink-soft); max-width: 620px; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--green-700);
    --btn-fg: #fff;
    --btn-border: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 11px 22px;
    border: 1.5px solid var(--btn-border); border-radius: var(--radius-pill);
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: .9rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
    cursor: pointer; text-align: center; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
    box-shadow: var(--shadow-xs);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: var(--shadow-green); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; transform: none; box-shadow: none; }
.btn svg { flex: none; }
.btn--orange { --btn-bg: var(--orange-500); box-shadow: var(--shadow-xs); }
.btn--orange:hover { --btn-bg: var(--orange-600); box-shadow: var(--shadow-orange); }
.btn--dark { --btn-bg: var(--green-950); }
.btn--soft { --btn-bg: var(--green-50); --btn-fg: var(--green-800); }
.btn--soft:hover { --btn-bg: var(--green-100); color: var(--green-900); box-shadow: var(--shadow-sm); }
.btn--cream { --btn-bg: var(--white); --btn-fg: var(--ink); border-color: var(--line); }
.btn--cream:hover { --btn-bg: var(--cream); color: var(--green-800); box-shadow: var(--shadow); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); --btn-border: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--green-50); border-color: var(--green-500); box-shadow: none; color: var(--green-800); }
.btn--danger { --btn-bg: var(--red); }
.btn--danger:hover { --btn-bg: #B91C1C; box-shadow: 0 18px 34px -18px rgba(220, 38, 38, .5); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--green-800); }
.btn--white:hover { --btn-bg: var(--orange-50); color: var(--green-900); }
.btn--sm { min-height: 36px; padding: 8px 15px; font-size: .8rem; gap: 6px; }
.btn--xs { min-height: 30px; padding: 5px 11px; font-size: .74rem; gap: 5px; }
.btn--lg { min-height: 54px; padding: 15px 30px; font-size: .98rem; }
.btn--block { display: flex; width: 100%; }
.btn--icon { min-height: 42px; width: 42px; padding: 0; border-radius: 50%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--ghost.is-loading::after, .btn--soft.is-loading::after { border-color: rgba(14, 107, 79, .25); border-top-color: var(--green-700); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; color: var(--green-700); }
.link-arrow svg { transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-muted { color: var(--muted); font-weight: 600; }
.link-muted:hover { color: var(--green-700); }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
    transition: all .22s var(--ease);
}
.icon-btn:hover { background: var(--green-50); color: var(--green-700); border-color: var(--green-500); transform: translateY(-1px); }

/* ---------- Badges & pills ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 7px;
    font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
    background: var(--green-50); color: var(--green-800); white-space: nowrap;
}
.badge--orange { background: var(--orange-500); color: #fff; }
.badge--dark { background: rgba(6, 35, 26, .82); color: #fff; backdrop-filter: blur(4px); }
.badge--muted { background: rgba(19, 37, 29, .55); color: #fff; }
.badge--soft { background: var(--cream-dark); color: var(--ink-soft); }
.badge--green { background: var(--green-100); color: var(--green-800); }
.badge--red { background: var(--red-50); color: #B91C1C; }
.badge--amber { background: var(--amber-50); color: var(--amber); }
.badge--blue { background: var(--blue-50); color: var(--blue); }
.badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border-radius: var(--radius-pill);
    background: var(--white); border: 1px solid var(--line);
    font-size: .82rem; font-weight: 600; color: var(--ink-soft);
    transition: all .2s var(--ease); white-space: nowrap;
}
.chip:hover, .chip.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.chip--orange.is-active { background: var(--orange-500); border-color: var(--orange-500); }
.pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange-500); color: #fff; font-size: .68rem; font-weight: 800; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
.label .req { color: var(--orange-600); }
.input, .select, .textarea {
    width: 100%; min-height: 46px; padding: 11px 14px;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: .9rem; color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
}
.textarea { min-height: 110px; resize: vertical; }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2375847C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); background: #fff; }
.input::placeholder, .textarea::placeholder { color: #A6B0AA; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); background: var(--red-50); }
.field-error { display: block; font-size: .76rem; color: var(--red); margin-top: 5px; font-weight: 600; }
.field-hint { display: block; font-size: .75rem; color: var(--muted); margin-top: 5px; }
.input-group { display: flex; align-items: stretch; gap: 0; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-height: 46px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .84rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.radio-card { display: flex; gap: 12px; padding: 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: all .2s var(--ease); }
.radio-card:hover { border-color: var(--green-500); }
.radio-card input { accent-color: var(--green-700); margin-top: 3px; }
.radio-card:has(input:checked) { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(22, 163, 74, .1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
.module-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 4px; }
.module-option { position: relative; display: flex; align-items: center; gap: 11px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.module-option:hover { border-color: var(--module-accent, var(--green-500)); transform: translateY(-1px); }
.module-option input { position: absolute; opacity: 0; pointer-events: none; }
.module-option .mo-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--module-accent, var(--green-700)); flex: none; }
.module-option .mo-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.module-option .mo-body strong { font-size: .85rem; color: var(--ink); }
.module-option .mo-body span { font-size: .72rem; line-height: 1.35; color: var(--muted); }
.module-option .mo-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--module-accent, var(--green-600)); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.7); transition: all .18s var(--ease); flex: none; }
.module-option:has(input:checked) { border-color: var(--module-accent, var(--green-600)); background: color-mix(in srgb, var(--module-accent, #0E6B4F) 7%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--module-accent, #0E6B4F) 12%, transparent); }
.module-option:has(input:checked) .mo-check { opacity: 1; transform: scale(1); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-xs); }

/* ---------- Flash / alerts ---------- */
.alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500; border: 1px solid transparent; margin-bottom: 16px; }
.alert svg { flex: none; margin-top: 2px; }
.alert--success { background: var(--green-50); border-color: #B7E4CA; color: var(--green-800); }
.alert--error { background: var(--red-50); border-color: #FECACA; color: #991B1B; }
.alert--warning { background: var(--amber-50); border-color: #FDE68A; color: #92400E; }
.alert--info { background: var(--blue-50); border-color: #BAE6FD; color: #075985; }
.alert a { font-weight: 700; text-decoration: underline; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; right: 20px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 360px; width: calc(100% - 40px); pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 11px;
    padding: 13px 16px; background: var(--green-950); color: #fff; border-radius: 14px;
    box-shadow: var(--shadow-lg); font-size: .86rem; font-weight: 600;
    animation: toastIn .35s var(--ease-spring) both;
}
.toast.is-out { animation: toastOut .25s var(--ease) forwards; }
.toast svg { flex: none; color: var(--green-500); }
.toast--error svg { color: #FCA5A5; }
.toast a { color: var(--orange-400); font-weight: 800; margin-left: auto; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); transition: box-shadow .25s, background .25s; }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(19, 37, 29, .35); background: rgba(255, 255, 255, .97); }
.topbar { background: var(--green-950); color: rgba(255, 255, 255, .82); font-size: .74rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 34px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.topbar a:hover { color: var(--orange-400); }
.topbar .topbar-accent { color: var(--orange-400); font-weight: 700; }
.header-main { border-bottom: 1px solid var(--line); }
.header-main .container { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; box-shadow: var(--shadow-sm); }
.brand-logo { display: block; width: auto; height: auto; max-width: 190px; max-height: 50px; object-fit: contain; }
.brand--logo-only .brand-logo { max-height: 48px; }
.brand--logo-only .brand-text { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 800; letter-spacing: -.04em; color: var(--green-900); }
.brand-name span { color: var(--orange-500); }
.brand-tag { font-size: .58rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.location-picker {
    display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--cream); min-width: 170px;
    transition: all .2s var(--ease); flex: none;
}
.location-picker:hover { border-color: var(--green-500); background: var(--green-50); }
.location-picker > svg { color: var(--orange-500); flex: none; }
.location-picker .lp-label { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.location-picker .lp-value { display: block; font-size: .79rem; font-weight: 700; color: var(--ink); line-height: 1.3; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search { flex: 1; position: relative; min-width: 0; }
.search-box { display: flex; align-items: center; background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 4px 4px 4px 16px; transition: all .2s var(--ease); }
.search-box:focus-within { border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(22, 163, 74, .1); }
.search-box > svg { color: var(--muted); flex: none; }
.search-box input { flex: 1; border: 0; background: transparent; min-width: 0; height: 38px; padding: 0 10px; font-size: .86rem; outline: none; }
.search-box .search-cat { border: 0; border-left: 1px solid var(--line); background: transparent; font-size: .78rem; font-weight: 600; color: var(--ink-soft); padding: 0 9px; max-width: 130px; outline: none; }
.search-box .btn { min-height: 38px; padding: 8px 18px; font-size: .8rem; }
.search-suggest {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: none;
    max-height: 420px; overflow-y: auto;
}
.search-suggest.is-open { display: block; animation: popIn .18s var(--ease); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; transition: background .15s; }
.suggest-item:hover { background: var(--cream); }
.suggest-item img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cream-dark); }
.suggest-item .si-body { min-width: 0; }
.suggest-item .si-name { font-size: .84rem; font-weight: 700; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item .si-meta { font-size: .72rem; color: var(--muted); }
.suggest-empty { padding: 18px; text-align: center; font-size: .84rem; color: var(--muted); }
.suggest-head { padding: 8px 10px 4px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.header-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 10px; border-radius: 12px; color: var(--ink-soft); font-size: .66rem; font-weight: 700; transition: all .2s var(--ease); }
.header-action:hover { background: var(--green-50); color: var(--green-800); }
.header-action svg { width: 21px; height: 21px; }
.header-action .count { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--orange-500); color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
.header-action .count:empty, .header-action .count[data-count="0"] { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.navbar { border-bottom: 1px solid var(--line); background: #fff; }
.navbar .container { display: flex; align-items: center; gap: 6px; min-height: 48px; overflow-x: auto; scrollbar-width: none; }
.navbar::-webkit-scrollbar { display: none; }
.navbar a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: all .18s; }
.navbar a:hover, .navbar a.is-active { background: var(--green-50); color: var(--green-800); }
.navbar a.nav-all { font-weight: 800; color: var(--green-800); background: var(--green-50); }
.navbar a.nav-all svg { color: var(--orange-500); }
.navbar .nav-pill { margin-left: auto; background: var(--orange-50); color: var(--orange-700); font-weight: 800; }
.navbar .nav-pill:hover { background: var(--orange-100); color: var(--orange-700); }

/* Account dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px; z-index: 200;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .2s var(--ease);
}
.dropdown.is-open .dropdown-menu, .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); background: transparent; border: 0; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--cream); color: var(--green-800); }
.dropdown-menu .dropdown-head { padding: 10px 11px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-menu .dropdown-head strong { display: block; font-size: .86rem; }
.dropdown-menu .dropdown-head span { font-size: .74rem; color: var(--muted); }
.dropdown-menu .danger { color: var(--red); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 35, 26, .5); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.drawer-panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw);
    background: var(--cream); display: flex; flex-direction: column;
    transform: translateX(-102%); transition: transform .35s var(--ease); overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-body { padding: 16px 20px 30px; }
.drawer-links { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.drawer-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.drawer-links a:hover { background: var(--green-50); color: var(--green-800); }
.drawer-links a svg { color: var(--green-600); }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-cats a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .74rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.drawer-cats a:hover { border-color: var(--green-500); background: var(--green-50); }
.drawer-cats img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.drawer-auth { display: flex; flex-direction: column; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Mobile bottom nav */
.mobile-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -20px rgba(19, 37, 29, .35);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.mobile-nav-inner { display: grid; grid-template-columns: repeat(var(--mn-count, 5), 1fr); max-width: 560px; margin: auto; }
.mobile-nav .mn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: .64rem; font-weight: 700; line-height: 1.15; color: var(--muted); position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mobile-nav .mn-item svg { width: 22px; height: 22px; }
.mobile-nav .mn-item.is-active { color: var(--green-700); }
.mobile-nav .mn-item.is-active::before { content: ''; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 4px 4px; background: var(--orange-500); }
.mobile-nav .mn-cart { position: relative; }
.mobile-nav .count { position: absolute; top: 1px; right: calc(50% - 20px); min-width: 17px; height: 17px; border-radius: 99px; background: var(--orange-500); color: #fff; font-size: .6rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, #F2FAF4 0%, var(--cream) 55%, #FFF3E6 100%); padding: clamp(38px, 5vw, 70px) 0 clamp(36px, 5vw, 64px); }
.hero::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .14), transparent 65%); top: -240px; right: -140px; }
.hero::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 163, 74, .13), transparent 68%); bottom: -220px; left: -120px; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); line-height: 1.06; margin-bottom: 18px; }
.hero h1 .accent { color: var(--orange-500); position: relative; }
.hero h1 .accent::after { content: ''; position: absolute; left: 2px; right: 0; bottom: 4px; height: 10px; background: rgba(249, 115, 22, .16); border-radius: 6px; z-index: -1; }
.hero p.lead { max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--green-900); letter-spacing: -.03em; }
.hero-stat span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.hero-stat + .hero-stat { border-left: 1px solid var(--line-strong); padding-left: clamp(18px, 3vw, 36px); }
.hero-visual { position: relative; }
.hero-image { border-radius: 30px 30px 30px 90px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 1 / .92; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-visual:hover .hero-image img { transform: scale(1.04); }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 35, 26, .38)); }
.hero-float {
    position: absolute; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px; padding: 10px 14px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
    animation: floatY 5s ease-in-out infinite;
}
.hero-float strong { display: block; font-size: .78rem; line-height: 1.2; }
.hero-float span { font-size: .66rem; color: var(--muted); }
.hero-float .hf-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--green-700); flex: none; }
.hero-float--delivery { left: -18px; bottom: 24%; animation-delay: .6s; }
.hero-float--rating { right: -10px; top: 12%; }
.hero-float--mpesa { left: 10%; top: -14px; animation-delay: 1.2s; }
.hero-float--mpesa .hf-icon { background: var(--orange-50); color: var(--orange-600); }
.hero-badge { position: absolute; right: 18px; bottom: 18px; z-index: 2; background: var(--orange-500); color: #fff; border-radius: 14px; padding: 9px 13px; font-size: .72rem; font-weight: 800; box-shadow: var(--shadow-orange); display: flex; align-items: center; gap: 6px; }

/* ---------- Category tiles ---------- */
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; overflow: hidden; transition: all .28s var(--ease); }
.cat-tile::before { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--green-500), var(--orange-500)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.cat-tile:hover::before { transform: scaleX(1); }
.cat-tile img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; margin: 0 auto; border: 3px solid var(--cream); box-shadow: var(--shadow-xs); transition: transform .35s var(--ease-spring); }
.cat-tile:hover img { transform: scale(1.08) rotate(-3deg); }
.cat-tile strong { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cat-tile span { font-size: .68rem; color: var(--muted); }
.cat-tile--wide { flex-direction: row; text-align: left; align-items: center; padding: 12px; }
.cat-tile--wide img { width: 52px; height: 52px; margin: 0; }
.cat-tile--wide .ct-text { min-width: 0; }
.cat-tile--wide strong, .cat-tile--wide span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Product card ---------- */
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(14, 107, 79, .22); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.product-image { display: block; width: 100%; height: 100%; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.07); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; }
.wish-btn { position: absolute; top: 9px; right: 9px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-xs); transition: all .2s var(--ease); z-index: 2; }
.wish-btn:hover { color: var(--red); transform: scale(1.08); }
.wish-btn.is-active { background: var(--red); color: #fff; }
.wish-btn.is-active svg { fill: currentColor; }
.wish-btn.is-busy { pointer-events: none; opacity: .65; }
.product-add-fab {
    position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: var(--green-700); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-green); transform: translateY(8px) scale(.85); opacity: 0;
    transition: all .25s var(--ease-spring); z-index: 2;
}
.product-card:hover .product-add-fab { transform: none; opacity: 1; }
.product-add-fab:hover { background: var(--orange-500); box-shadow: var(--shadow-orange); }
.product-add-fab:disabled { background: var(--muted); box-shadow: none; }
.product-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-store { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-store:hover { color: var(--green-700); }
.product-name { font-size: .88rem; font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.product-name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-name a:hover { color: var(--green-700); }
.product-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); }
.product-meta .rating { display: inline-flex; }
.product-unit { font-size: .72rem; }
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.product-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product-price strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; color: var(--green-900); letter-spacing: -.03em; }
.product-price s { font-size: .72rem; color: var(--muted); }
.product-add-btn { flex: none; }
.product-card--compact .product-body { padding: 11px 12px 13px; }
.product-card--compact .product-name { font-size: .8rem; }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 4px; }
.rating-stars { display: inline-flex; gap: 1px; color: var(--orange-500); }
.rating-stars svg { width: var(--star-size, 13px); height: var(--star-size, 13px); fill: currentColor; opacity: .32; }
.rating-stars svg.is-full { opacity: 1; }
.rating-value { font-size: .72rem; font-weight: 700; color: var(--ink); }
.rating-count { font-size: .7rem; color: var(--muted); font-weight: 600; }

/* ---------- Store card ---------- */
.store-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .28s var(--ease); }
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(14, 107, 79, .22); }
.store-cover { position: relative; display: block; aspect-ratio: 2.35 / 1; background: var(--cream-dark); overflow: hidden; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.store-card:hover .store-cover img { transform: scale(1.05); }
.store-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 35, 26, .35)); }
.store-status { position: absolute; top: 11px; left: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: .66rem; font-weight: 800; color: var(--green-700); }
.store-status.is-closed { color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.store-status.is-open .status-dot { background: var(--green-500); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.store-card-body { position: relative; padding: 0 16px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.store-logo { width: 54px; height: 54px; border-radius: 15px; background: #fff; padding: 4px; margin-top: -27px; box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.store-logo img { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; }
.store-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.store-card-heading h3 { font-size: 1rem; margin: 0 0 2px; }
.store-card-heading h3 a { color: var(--ink); }
.store-card-heading h3 a:hover { color: var(--green-700); }
.store-type { font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); }
.store-tagline { font-size: .78rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .71rem; color: var(--ink-soft); margin-top: 2px; }
.store-meta span { display: inline-flex; align-items: center; gap: 4px; }
.store-meta svg { color: var(--green-600); }
.store-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }

/* ---------- Hero category rail / promo cards ---------- */
.promo-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.promo-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; isolation: isolate; }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.promo-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(6, 35, 26, .78) 8%, rgba(6, 35, 26, .18) 72%); }
.promo-card:hover img { transform: scale(1.05); }
.promo-card .eyebrow { color: var(--orange-400); margin-bottom: 8px; }
.promo-card .eyebrow::before { background: var(--orange-400); }
.promo-card h3 { color: #fff; font-size: clamp(1.2rem, 2vw, 1.65rem); margin-bottom: 6px; }
.promo-card p { color: rgba(255, 255, 255, .84); font-size: .82rem; margin-bottom: 14px; max-width: 280px; }
.promo-card .btn { align-self: flex-start; }
.promo-card--orange::after { background: linear-gradient(120deg, rgba(194, 65, 12, .88) 4%, rgba(234, 88, 12, .28) 78%); }
.promo-card--green::after { background: linear-gradient(120deg, rgba(11, 74, 54, .9) 4%, rgba(14, 107, 79, .3) 78%); }
.promo-card--tall { grid-row: span 2; min-height: 100%; }

/* Feature banners */
.feature-band { background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.feature-band::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(249, 115, 22, .16); right: -100px; top: -140px; }
.feature-band::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(22, 163, 74, .22); left: -120px; bottom: -180px; }
.feature-band .container-fluid { position: relative; z-index: 2; }
.feature-band h2 { color: #fff; }
.feature-band p { color: rgba(255, 255, 255, .74); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 16px; border-radius: 14px; }
.feature-item .fi-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(249, 115, 22, .2); color: var(--orange-400); display: flex; align-items: center; justify-content: center; flex: none; }
.feature-item strong { display: block; font-size: .86rem; color: #fff; }
.feature-item span { font-size: .76rem; color: rgba(255, 255, 255, .68); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: all .25s var(--ease); }
.step-card:hover { border-color: var(--green-500); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 15px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; position: relative; }
.step-card:nth-child(even) .step-num { background: var(--orange-50); color: var(--orange-600); }
.step-num::after { counter-increment: step; content: counter(step); position: absolute; top: -6px; right: -6px; width: 21px; height: 21px; border-radius: 50%; background: var(--green-900); color: #fff; font-size: .64rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.step-card:nth-child(even) .step-num::after { background: var(--orange-500); }
.step-card h3 { font-size: .98rem; margin-bottom: 5px; }
.step-card p { font-size: .8rem; color: var(--muted); margin: 0; }

/* Testimonials / values */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.testimonial .quote { font-size: .88rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.testimonial .person { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.testimonial .person img, .testimonial .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.testimonial .person strong { display: block; font-size: .82rem; }
.testimonial .person span { font-size: .72rem; color: var(--muted); }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-800); font-weight: 800; font-size: .82rem; flex: none; }
.avatar--orange { background: var(--orange-100); color: var(--orange-700); }

/* Newsletter */
.newsletter { background: linear-gradient(120deg, var(--green-800), var(--green-950)); border-radius: var(--radius-lg); color: #fff; padding: clamp(28px, 4vw, 46px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.newsletter::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(249, 115, 22, .25), transparent 45%); pointer-events: none; }
.newsletter > * { position: relative; z-index: 2; }
.newsletter h2 { color: #fff; margin-bottom: 6px; }
.newsletter p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .9rem; }
.newsletter-form { display: flex; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 5px; border-radius: var(--radius-pill); }
.newsletter-form input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 16px; color: #fff; outline: none; font-size: .88rem; }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .66); padding: 58px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255, 255, 255, .4); }
.footer-about { font-size: .84rem; line-height: 1.7; margin: 16px 0 18px; max-width: 300px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: .82rem; }
.footer-contact a, .footer-contact span { display: flex; align-items: flex-start; gap: 9px; color: rgba(255, 255, 255, .7); }
.footer-contact svg { color: var(--orange-500); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: var(--orange-400); }
.footer-col h4 { color: #fff; font-size: .84rem; font-family: var(--font-body); font-weight: 800; letter-spacing: .02em; margin: 6px 0 16px; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .82rem; color: rgba(255, 255, 255, .66); }
.footer-col a:hover { color: var(--orange-400); padding-left: 3px; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-payments span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: .68rem; font-weight: 700; color: rgba(255, 255, 255, .78); }
.footer-payments .mpesa { color: var(--orange-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; flex-wrap: wrap; font-size: .74rem; }
.footer-copy { color: rgba(255, 255, 255, .72); }
.footer-powered { color: rgba(255, 255, 255, .52); }
.footer-powered strong { color: var(--orange-400); font-weight: 800; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .7); }
.footer-socials a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; transform: translateY(-2px); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Shop / listing ---------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.shop-layout--store { grid-template-columns: minmax(0, 1fr) 300px; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h) + 60px); }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-title { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 800; color: var(--ink); margin-bottom: 11px; cursor: pointer; }
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-list .check { font-size: .8rem; }
.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input { width: 100%; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar-count { font-size: .82rem; color: var(--muted); }
.toolbar-count strong { color: var(--ink); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 11px; border-radius: 99px; background: var(--green-50); border: 1px solid #C4E8D4; font-size: .74rem; font-weight: 600; color: var(--green-800); }
.active-filter a { color: var(--green-700); display: inline-flex; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.products-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-img { aspect-ratio: 16/7; }
.shop-hero-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; margin-bottom: 26px; background: var(--green-900); min-height: 170px; display: flex; align-items: center; padding: 26px; color: #fff; }
.shop-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.shop-hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 35, 26, .88), rgba(6, 35, 26, .15)); }
.shop-hero-card > div { position: relative; z-index: 2; }
.shop-hero-card h1, .shop-hero-card h2 { color: #fff; margin-bottom: 4px; font-size: clamp(1.4rem, 3vw, 2rem); }
.shop-hero-card p { color: rgba(255, 255, 255, .75); margin: 0; font-size: .86rem; }
.mobile-filter-btn { display: none; }

/* ---------- Product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 60px); }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 1; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; padding: 0; flex: none; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--green-600); }
.product-info .product-store-link { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-600); margin-bottom: 6px; display: inline-block; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.product-info .rating-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: .78rem; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.price-row .price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--green-900); letter-spacing: -.04em; }
.price-row s { font-size: 1rem; color: var(--muted); }
.price-row .save { font-size: .72rem; font-weight: 800; color: var(--orange-600); background: var(--orange-50); padding: 3px 8px; border-radius: 6px; }
.stock-line { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--green-700); margin-bottom: 18px; }
.stock-line.is-low { color: var(--orange-600); }
.stock-line.is-out { color: var(--red); }
.stock-line .status-dot { width: 8px; height: 8px; background: currentColor; box-shadow: 0 0 0 3px rgba(22, 163, 74, .14); }
.product-short { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.qty-stepper { display: inline-flex; align-items: center; background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty-stepper button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 1.1rem; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; }
.qty-stepper button:hover { background: var(--green-50); color: var(--green-700); }
.qty-stepper input { width: 48px; height: 44px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: .9rem; outline: none; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.product-cta .btn--lg { flex: 1; min-width: 180px; }
.product-usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 20px; }
.product-usp div { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; color: var(--ink-soft); }
.product-usp svg { color: var(--green-600); flex: none; }
.meta-table { display: flex; flex-direction: column; gap: 7px; font-size: .8rem; color: var(--ink-soft); }
.meta-table div { display: flex; gap: 8px; }
.meta-table dt { font-weight: 700; color: var(--ink); min-width: 100px; }
.meta-table dd { margin: 0; }
.tabs { margin-top: 44px; }
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn { padding: 12px 18px; border: 0; background: transparent; font-size: .88rem; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-btn:hover { color: var(--green-700); }
.tab-btn.is-active { color: var(--green-800); border-color: var(--orange-500); }
.tab-panel { display: none; padding: 24px 0; }
.tab-panel.is-active { display: block; animation: fadeUp .3s var(--ease); }
.prose { font-size: .92rem; color: var(--ink-soft); line-height: 1.8; max-width: 760px; }
.prose h3 { font-size: 1.05rem; margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 20px; margin: 0 0 1em; display: flex; flex-direction: column; gap: 6px; }
.review-summary { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 18px; background: var(--cream); border-radius: var(--radius); margin-bottom: 20px; }
.review-score { text-align: center; }
.review-score strong { font-family: var(--font-display); font-size: 2.4rem; display: block; line-height: 1; color: var(--green-900); }
.review-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 5px; }
.review-bar { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); }
.review-bar .bar { flex: 1; height: 6px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.review-bar .bar span { display: block; height: 100%; border-radius: 4px; background: var(--orange-500); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-head .avatar { width: 36px; height: 36px; }
.review-head strong { font-size: .84rem; display: block; }
.review-head span { font-size: .72rem; color: var(--muted); }
.review-item p { font-size: .86rem; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- Store page ---------- */
.store-hero { position: relative; height: clamp(180px, 26vw, 300px); overflow: hidden; background: var(--green-900); }
.store-hero > img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.store-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 35, 26, .05) 30%, rgba(6, 35, 26, .68)); }
.store-head-card { position: relative; margin-top: -70px; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
.store-head-logo { width: 84px; height: 84px; border-radius: 20px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-sm); flex: none; background: var(--cream); }
.store-head-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-head-info { flex: 1; min-width: 200px; }
.store-head-info h1 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-bottom: 4px; }
.store-head-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.store-head-meta span { display: inline-flex; align-items: center; gap: 4px; }
.store-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-panel-head h2 { font-size: 1.02rem; margin: 0; }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item-img { width: 88px; height: 88px; border-radius: 13px; overflow: hidden; background: var(--cream); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { min-width: 0; }
.cart-item-info h3 { font-size: .9rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; }
.cart-item-info h3 a { color: var(--ink); }
.cart-item-info .ci-store { font-size: .7rem; color: var(--muted); margin-bottom: 7px; display: block; }
.cart-item-price { font-weight: 800; color: var(--green-800); font-size: .88rem; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cart-item-controls .qty-stepper button { width: 30px; height: 32px; }
.cart-item-controls .qty-stepper input { width: 36px; height: 32px; font-size: .82rem; }
.cart-item-total { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--green-900); white-space: nowrap; }
.cart-remove { border: 0; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cart-remove:hover { color: var(--red); }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 60px); }
.cart-summary h2 { font-size: 1.02rem; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--ink-soft); padding: 6px 0; }
.summary-row strong { color: var(--ink); font-weight: 700; }
.summary-row--total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font-size: .98rem; }
.summary-row--total strong { font-family: var(--font-display); font-size: 1.32rem; color: var(--green-900); letter-spacing: -.03em; }
.summary-saving { color: var(--green-700); font-weight: 700; }
.coupon-form { display: flex; gap: 7px; margin: 14px 0; }
.coupon-form .input { min-height: 40px; font-size: .8rem; }
.coupon-form .btn { min-height: 40px; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--green-50); border: 1px dashed #A7D9BC; padding: 8px 11px; border-radius: 10px; font-size: .78rem; font-weight: 700; color: var(--green-800); margin-bottom: 12px; }
.free-delivery-note { background: var(--orange-50); border: 1px solid #FED7AA; border-radius: 10px; padding: 9px 11px; font-size: .75rem; color: var(--orange-700); margin-bottom: 12px; }
.free-delivery-note .bar { height: 5px; border-radius: 4px; background: #FED7AA; margin-top: 6px; overflow: hidden; }
.free-delivery-note .bar span { display: block; height: 100%; background: var(--orange-500); border-radius: 4px; }
.empty-cart { text-align: center; padding: 50px 24px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.checkout-layout--pay { grid-template-columns: minmax(0, 1fr) 340px; }
.checkout-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.checkout-step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--cream-dark); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; }
.checkout-step.is-active { color: var(--green-800); }
.checkout-step.is-active .num { background: var(--green-700); color: #fff; }
.checkout-step.is-done .num { background: var(--green-100); color: var(--green-800); }
.checkout-step + .checkout-step::before { content: ''; width: 22px; height: 1px; background: var(--line-strong); }
.checkout-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); margin-bottom: 18px; }
.checkout-panel h2 { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.checkout-panel h2 .step-badge { width: 24px; height: 24px; border-radius: 8px; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-family: var(--font-body); font-weight: 800; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.address-card { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px; cursor: pointer; transition: all .2s; background: #fff; }
.address-card input { position: absolute; opacity: 0; }
.address-card:has(input:checked) { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(22, 163, 74, .1); }
.address-card .ac-head { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; margin-bottom: 3px; }
.address-card p { font-size: .76rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.address-card .ac-edit { position: absolute; top: 10px; right: 10px; color: var(--muted); }
.delivery-options { display: grid; gap: 9px; }
.pay-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.pay-option { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: all .2s; }
.pay-option:has(input:checked) { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(22, 163, 74, .1); }
.pay-option input { accent-color: var(--green-700); }
.pay-option .po-logo { width: 44px; height: 44px; border-radius: 11px; background: var(--cream); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.pay-option .po-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pay-option .po-body { flex: 1; min-width: 0; }
.pay-option strong { display: block; font-size: .85rem; }
.pay-option span { font-size: .74rem; color: var(--muted); }
.pay-option:has(input:disabled) { opacity: .55; cursor: not-allowed; background: #FAFAF9; }
.loyalty-redeem { margin: 10px 0 4px; padding: 11px 12px; border: 1px dashed var(--orange-300, #FDBA74); border-radius: 12px; background: #FFFBF4; }
.loyalty-redeem-row { display: flex; gap: 8px; margin: 7px 0 5px; }
.loyalty-redeem-row .input { max-width: 130px; }
.loyalty-redeem .field-hint { display: block; }
.mpesa-badge { font-family: var(--font-display); font-weight: 800; font-size: .68rem; color: #fff; background: var(--green-600); border-radius: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.order-mini { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.order-mini-item { display: flex; gap: 10px; align-items: center; }
.order-mini-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; background: var(--cream); }
.order-mini-item .omi-body { flex: 1; min-width: 0; }
.order-mini-item .omi-body strong { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-mini-item .omi-body span { font-size: .7rem; color: var(--muted); }
.order-mini-item .omi-price { font-size: .78rem; font-weight: 800; }
.payment-note { background: var(--green-50); border: 1px solid #C4E8D4; border-radius: 10px; padding: 10px 12px; font-size: .76rem; color: var(--green-800); margin-top: 10px; }
.payment-pending { text-align: center; padding: 34px 18px; }
.payment-pending .spinner { width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--green-100); border-top-color: var(--green-600); margin: 0 auto 18px; animation: spin 1s linear infinite; }
.payment-pending h2 { font-size: 1.2rem; }
.payment-pending p { font-size: .84rem; color: var(--muted); max-width: 340px; margin: 0 auto 16px; }
.payment-code { display: inline-flex; gap: 6px; align-items: center; background: var(--cream); border: 1px dashed var(--line-strong); border-radius: 9px; padding: 7px 13px; font-family: var(--font-display); font-weight: 800; letter-spacing: .14em; text-align: center; }

/* Success page */
.success-wrap { max-width: 680px; margin: 0 auto; text-align: center; padding: 30px 0 10px; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; }
.success-icon::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed #A7D9BC; animation: spin 22s linear infinite; }
.success-wrap h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 8px; }
.success-wrap > p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }
.success-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: left; margin-bottom: 18px; box-shadow: var(--shadow-xs); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.order-ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.order-ref strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.02em; }

/* ---------- Auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; background: var(--green-950); color: #fff; padding: 44px clamp(30px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-aside::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .26), transparent 65%); top: -220px; right: -180px; }
.auth-aside::after { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 163, 74, .3), transparent 68%); bottom: -240px; left: -160px; }
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside .brand-name { color: #fff; }
.auth-aside .brand-tag { color: rgba(255, 255, 255, .5); }
.auth-copy { max-width: 430px; }
.auth-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 12px; }
.auth-copy p { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.auth-point { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: rgba(255, 255, 255, .82); }
.auth-point svg { color: var(--orange-400); flex: none; }
.auth-quote { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 16px 18px; font-size: .82rem; color: rgba(255, 255, 255, .8); margin-top: 26px; }
.auth-quote .person { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.auth-quote .person strong { display: block; color: #fff; font-size: .78rem; }
.auth-quote .person span { font-size: .7rem; color: rgba(255, 255, 255, .5); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 38px 24px; background: var(--cream); }
.auth-card { width: min(100%, 430px); }
.auth-card .brand { display: none; margin-bottom: 22px; }
.auth-card h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 5px; }
.auth-card > p { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.auth-card .form-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.auth-foot { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 20px; }
.auth-foot a { font-weight: 700; color: var(--green-700); }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .74rem; margin: 18px 0; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.otp-row { display: flex; gap: 8px; justify-content: center; }
.otp-row input { width: 48px; height: 54px; text-align: center; font-size: 1.2rem; font-weight: 800; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }

/* ---------- Account ---------- */
.dash-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: calc(var(--header-h) + 60px); }
.dash-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 15px; border-bottom: 1px solid var(--line); margin-bottom: 9px; }
.dash-user .avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; }
.dash-user img.avatar { object-fit: cover; }
.dash-user strong { display: block; font-size: .84rem; line-height: 1.2; }
.dash-user span { font-size: .7rem; color: var(--muted); }
.dash-links { display: flex; flex-direction: column; gap: 2px; }
.dash-links a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.dash-links a:hover { background: var(--cream); color: var(--green-800); }
.dash-links a.is-active { background: var(--green-50); color: var(--green-800); font-weight: 800; }
.dash-links a.is-active svg { color: var(--green-700); }
.dash-links a svg { color: var(--muted); flex: none; }
.dash-links .logout-btn { color: var(--red); }
.dash-links .logout-btn svg { color: var(--red); }
.dash-link-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: .82rem; font-weight: 600; text-align: left; color: var(--ink-soft); }
.dash-link-btn:hover { background: var(--cream); color: var(--green-800); }
.dash-link-btn svg { flex: none; }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0; }
.dash-head p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 13px; transition: all .22s var(--ease); }
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.stat-card:nth-child(2) .stat-icon { background: var(--orange-50); color: var(--orange-600); }
.stat-card:nth-child(3) .stat-icon { background: var(--blue-50); color: var(--blue); }
.stat-card:nth-child(4) .stat-icon { background: var(--red-50); color: var(--red); }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.1; letter-spacing: -.03em; }
.stat-card span { font-size: .72rem; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: .98rem; margin: 0; }
.panel-body { padding: 18px; }
.panel-body--flush { padding: 0; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.order-card:last-child { margin-bottom: 0; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--cream); flex-wrap: wrap; font-size: .78rem; }
.order-card-head strong { font-family: var(--font-display); font-size: .84rem; }
.order-card-body { display: flex; align-items: center; gap: 12px; padding: 13px 14px; flex-wrap: wrap; }
.order-thumbs { display: flex; }
.order-thumbs img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; border: 2px solid #fff; margin-left: -8px; background: var(--cream); }
.order-thumbs img:first-child { margin-left: 0; }
.order-card-info { flex: 1; min-width: 130px; font-size: .76rem; color: var(--muted); }
.order-card-info strong { display: block; color: var(--ink); font-size: .82rem; }
.order-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.profile-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-avatar-row .avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; font-size: 1.4rem; }
.profile-avatar-row img.avatar { object-fit: cover; }
.addr-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px; position: relative; }
.addr-card.is-default { border-color: var(--green-500); background: var(--green-50); }
.addr-card .addr-label { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--green-700); margin-bottom: 5px; }
.addr-card p { font-size: .8rem; margin: 0; color: var(--ink-soft); }
.addr-card .addr-actions { display: flex; gap: 8px; margin-top: 10px; font-size: .74rem; }
.notif-item { display: flex; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item .notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--line-strong); flex: none; }
.notif-item.is-unread { background: var(--green-50); }
.notif-item.is-unread .notif-dot { background: var(--orange-500); }
.notif-item strong { font-size: .82rem; display: block; }
.notif-item p { font-size: .78rem; color: var(--ink-soft); margin: 1px 0; }
.notif-item time { font-size: .68rem; color: var(--muted); }
.empty-state { text-align: center; padding: 44px 22px; }
.empty-state .es-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.empty-state h3 { font-size: 1.02rem; margin-bottom: 4px; }
.empty-state p { color: var(--muted); font-size: .83rem; max-width: 340px; margin: 0 auto 16px; }

/* Order timeline */
.timeline { display: flex; flex-direction: column; gap: 0; margin: 6px 0 0; }
.tl-step { display: flex; gap: 12px; position: relative; padding-bottom: 22px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; z-index: 2; }
.tl-step.is-done .tl-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.tl-step.is-current .tl-dot { border-color: var(--orange-500); color: var(--orange-600); box-shadow: 0 0 0 4px var(--orange-50); }
.tl-step.is-done::before { background: var(--green-600); }
.tl-body { padding-top: 2px; }
.tl-body strong { display: block; font-size: .83rem; }
.tl-body span { font-size: .72rem; color: var(--muted); }
.tl-body p { font-size: .76rem; color: var(--ink-soft); margin: 3px 0 0; }

/* Tracking */
.track-card { max-width: 640px; margin: 0 auto; }
.track-status { text-align: center; padding: 20px 0 10px; }
.track-status .ts-icon { width: 70px; height: 70px; border-radius: 22px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.track-status h2 { margin-bottom: 4px; }
.track-code { display: flex; gap: 7px; justify-content: center; margin: 12px 0; }
.track-code span { width: 44px; height: 52px; border-radius: 10px; background: var(--cream); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--green-800); }

/* ---------- Parcel ---------- */
.parcel-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.parcel-map { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--green-50); border: 1px solid var(--line); position: relative; display: flex; align-items: center; justify-content: center; }
.map-placeholder { text-align: center; color: var(--muted); padding: 20px; }
.map-placeholder svg { color: var(--green-500); margin: 0 auto 8px; }
.quote-box { background: var(--green-50); border: 1px dashed var(--green-500); border-radius: var(--radius-sm); padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.quote-box strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--green-900); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Vendor apply ---------- */
.apply-steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.perk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.perk-card .pk-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.perk-card strong { display: block; font-size: .84rem; margin-bottom: 3px; }
.perk-card span { font-size: .76rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item strong { display: block; font-size: .82rem; }
.contact-item a, .contact-item span { font-size: .8rem; color: var(--muted); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 300px; background: var(--green-50); position: relative; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .82rem; text-align: center; padding: 20px; }

/* ---------- CMS page ---------- */
.page-main { padding: 40px 0 60px; }
.legal-page { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 60px); font-size: .82rem; }
.legal-nav a { display: block; padding: 7px 0; color: var(--muted); font-weight: 600; }
.legal-nav a:hover { color: var(--green-700); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.table th { text-align: left; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FCFAF6; }
.table .cell-main { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.table .cell-main img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: var(--cream); }
.table .cell-main strong { display: block; font-size: .8rem; line-height: 1.3; }
.table .cell-main span { font-size: .7rem; color: var(--muted); }
.table .row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { min-height: 38px; font-size: .8rem; width: auto; }
.filter-bar .input { min-width: 200px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; color: var(--ink-soft);
    background: #fff; border: 1px solid var(--line); transition: all .2s;
}
.pagination a:hover { border-color: var(--green-500); color: var(--green-800); background: var(--green-50); }
.pagination .is-current { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pagination .is-disabled { opacity: .45; }
.pagination .ellipsis { background: transparent; border-color: transparent; }
.pager-simple { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; font-size: .82rem; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 35, 26, .55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.modal-panel { position: relative; background: #fff; border-radius: var(--radius-lg); width: min(100%, 520px); max-height: min(92vh, 760px); overflow-y: auto; padding: 26px; box-shadow: var(--shadow-lg); animation: popIn .25s var(--ease); }
.modal-panel--wide { width: min(100%, 720px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { font-size: 1.15rem; margin: 0; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.modal-close:hover { background: var(--cream); color: var(--ink); }

/* ---------- Misc components ---------- */
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; font-size: .7rem; }
.avatar-lg { width: 56px; height: 56px; border-radius: 50%; font-size: 1.1rem; }
.status-flow { display: flex; gap: 4px; margin-top: 8px; }
.status-flow span { height: 4px; flex: 1; border-radius: 3px; background: var(--cream-dark); }
.status-flow span.is-done { background: var(--green-500); }
.status-flow span.is-current { background: var(--orange-500); }
.skeleton { background: linear-gradient(90deg, #F2ECE1 25%, #FAF6EE 50%, #F2ECE1 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
.code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--cream); border: 1px dashed var(--line-strong); padding: 4px 9px; border-radius: 7px; letter-spacing: .08em; }
.notice-bar { background: var(--orange-50); border-bottom: 1px solid #FED7AA; color: var(--orange-700); font-size: .78rem; font-weight: 600; padding: 8px 0; text-align: center; }
.notice-bar a { text-decoration: underline; font-weight: 800; color: var(--orange-700); }
.badge-role { display: inline-flex; align-items: center; gap: 4px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 5px; background: var(--cream-dark); color: var(--ink-soft); }
.hidden { display: none !important; }
.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; }
.pb-mobile-nav { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

/* ---------- Map ---------- */
.map-canvas { width: 100%; height: 320px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--line); }
.map-pin-note { display: flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--muted); margin-top: 8px; }
.map-pin-note svg { color: var(--orange-500); }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .35); } 70% { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .grid-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 1 / -1; }
    .header-main { gap: 14px; }
    .location-picker { display: none; }
    .header-action span { display: none; }
    .header-action { padding: 8px; }
    .header-action .count { right: -1px; top: -1px; }
}
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 34px; }
    .hero-copy { max-width: 640px; }
    .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
    .promo-grid { grid-template-columns: 1fr 1fr; }
    .promo-card:first-child { grid-column: 1 / -1; }
    .feature-list { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .testimonial-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-grid > :last-child { display: none; }
    .product-layout { grid-template-columns: 1fr; gap: 28px; }
    .product-gallery { position: static; max-width: 560px; }
    .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .cart-summary { position: static; }
    .dash-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .shop-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .newsletter { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: .9fr 1.1fr; }
    .parcel-layout, .contact-layout { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .legal-page { grid-template-columns: 1fr; }
    .legal-nav { display: none; }
}
@media (max-width: 860px) {
    .topbar { display: none; }
    .navbar { display: none; }
    .header-main .container { min-height: 66px; gap: 10px; flex-wrap: wrap; padding-block: 10px; }
    .header-search { order: 3; flex-basis: 100%; }
    .header-actions { order: 2; margin-left: auto; }
    .menu-toggle { display: flex; }
    .header-actions .header-action--saved { display: none; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-logo { max-width: 150px; max-height: 40px; }
    .brand--logo-only .brand-logo { max-height: 40px; }
    .brand-name { font-size: 1.15rem; }
    .brand-tag { display: none; }
    .mobile-nav { display: block; }
    .site-footer { padding-bottom: 64px; }
    .footer-bottom { padding-bottom: 26px; }
    .shop-layout { grid-template-columns: minmax(0, 1fr); }
    .filter-panel { display: none; position: fixed; inset: 0; z-index: 2500; border-radius: 0; overflow-y: auto; padding: 20px; }
    .filter-panel.is-open { display: block; }
    .mobile-filter-btn { display: inline-flex; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-img { aspect-ratio: 16/8; }
    .dash-layout { grid-template-columns: minmax(0, 1fr); }
    .dash-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
    .dash-user { display: none; }
    .dash-links { flex-direction: row; gap: 4px; }
    .dash-links a { white-space: nowrap; font-size: .78rem; padding: 7px 10px; background: var(--cream); }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-main { min-height: 100vh; }
    .auth-card .brand { display: flex; }
    .page-hero { padding: 28px 0 26px; }
    .section-head { margin-bottom: 20px; }
    .store-head-card { margin-top: -50px; padding: 16px; }
    .store-head-logo { width: 66px; height: 66px; border-radius: 16px; }
    .grid-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .hscroll { grid-auto-columns: 78%; }
    .products-grid .product-card:nth-child(n + 7) { display: none; }
    .hero-float--delivery { left: -6px; }
    .hero-float--rating { right: -4px; }
    .hero-float--mpesa { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .footer-grid > :last-child { grid-column: auto; }
    .footer-brand { grid-column: 1 / -1; }
    .checkout-panel, .cart-summary, .panel { border-radius: 15px; }
    .cart-item { grid-template-columns: 74px minmax(0, 1fr); padding: 13px 14px; }
    .cart-item-img { width: 74px; height: 74px; }
    .cart-item-total { grid-column: 2; text-align: left; }
    .cart-item-controls { margin-top: 6px; }
    .product-card .product-add-fab { opacity: 1; transform: none; }
}
@media (max-width: 620px) {
    .container, .container--narrow { width: calc(100% - 28px); }
    body { font-size: 15px; }
    .section { padding: 34px 0; }
    .hero { padding: 26px 0 34px; }
    .hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
    .hero-cta .btn { flex: 1; min-width: 140px; }
    .hero-stats { gap: 14px; }
    .hero-stat + .hero-stat { padding-left: 14px; }
    .hero-stat strong { font-size: 1.1rem; }
    .hero-image { border-radius: 22px 22px 22px 62px; }
    .hero-badge { font-size: .64rem; padding: 7px 10px; right: 10px; bottom: 10px; }
    .trust-item { padding: 14px 12px; }
    .trust-item .ti-icon { width: 34px; height: 34px; border-radius: 10px; }
    .trust-item strong { font-size: .74rem; }
    .trust-item span { font-size: .66rem; }
    .grid-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .cat-tile { padding: 12px 8px; border-radius: 13px; }
    .cat-tile img { width: 56px; height: 56px; }
    .cat-tile strong { font-size: .72rem; }
    .cat-tile span { font-size: .62rem; }
    .products-grid { gap: 11px; }
    .product-body { padding: 10px 10px 12px; gap: 4px; }
    .product-name { font-size: .8rem; }
    .product-name a { min-height: 2.5em; }
    .product-price strong { font-size: .9rem; }
    .product-add-btn span { display: none; }
    .product-add-btn { width: 32px; min-height: 32px; padding: 0; border-radius: 50%; }
    .product-store { font-size: .6rem; }
    .product-meta .rating-count { display: none; }
    .wish-btn { width: 30px; height: 30px; }
    .product-add-fab { width: 33px; height: 33px; }
    .promo-grid { grid-template-columns: 1fr; gap: 12px; }
    .promo-card { min-height: 180px; padding: 20px; }
    .steps { gap: 10px; }
    .step-card { padding: 18px 12px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial-grid > :last-child { display: flex; }
    .newsletter-form { flex-direction: column; border-radius: 18px; padding: 9px; }
    .newsletter-form input { padding: 8px 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-grid { padding-bottom: 28px; }
    .section-head { gap: 10px; }
    .section-head .section-link { font-size: .82rem; }
    .product-usp { grid-template-columns: 1fr; gap: 8px; }
    .product-cta .btn { width: 100%; flex: none; }
    .price-row .price { font-size: 1.6rem; }
    .gallery-thumb { width: 60px; height: 60px; }
    .form-grid { grid-template-columns: 1fr; }
    .address-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-card { padding: 12px; gap: 9px; }
    .stat-icon { width: 36px; height: 36px; }
    .stat-card strong { font-size: 1.05rem; }
    .order-mini-item img { width: 40px; height: 40px; }
    .checkout-panel, .cart-summary, .panel, .cart-panel { border-radius: 14px; }
    .checkout-panel { padding: 15px; }
    .pay-option .badge { display: none; }
    .cart-summary { padding: 16px; }
    .success-icon { width: 68px; height: 68px; }
    .auth-main { padding: 26px 18px; }
    .modal-panel { padding: 20px; border-radius: 18px; }
    .toast-stack { right: 14px; left: 14px; bottom: 82px; width: auto; max-width: none; }
    .feature-band { padding: 24px 18px; border-radius: 20px; }
    .panel-body { padding: 14px; }
    .panel-head { padding: 12px 14px; }
    .table th, .table td { padding: 9px 10px; }
    .track-code span { width: 38px; height: 46px; font-size: 1rem; }
}
@media (max-width: 380px) {
    .cat-tile span { display: none; }
    .hero-stats .hero-stat:last-child { display: none; }
    .header-action:nth-child(3) { display: none; }
}

/* Account stat grid with four metrics */
.stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) {
    .stat-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Professional home hero ---------- */
.hero-pro { position: relative; overflow: hidden; background: linear-gradient(128deg, #041A13 0%, #072B20 42%, #0B4A36 100%); color: #fff; padding: clamp(40px, 5vw, 72px) 0 clamp(58px, 6vw, 84px); }
.hero-pro-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-pro-orb--orange { width: 640px; height: 640px; top: -320px; right: -140px; background: radial-gradient(circle, rgba(249, 115, 22, .3), transparent 62%); }
.hero-pro-orb--green { width: 520px; height: 520px; bottom: -300px; left: -160px; background: radial-gradient(circle, rgba(22, 163, 74, .22), transparent 66%); }
.hero-pro::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse at 60% 40%, black, transparent 72%); pointer-events: none; }
.hero-pro-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(28px, 4.5vw, 58px); }
.hero-pro-copy { max-width: 620px; }
.hero-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .82); font-size: .73rem; font-weight: 700; letter-spacing: .01em; backdrop-filter: blur(6px); }
.hero-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-400); box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); animation: heroPulse 2.6s ease-in-out infinite; flex: none; }
@keyframes heroPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(249, 115, 22, .16); } 50% { box-shadow: 0 0 0 7px rgba(249, 115, 22, .05); } }
.hero-pro h1 { color: #fff; font-size: clamp(2.25rem, 4.7vw, 3.85rem); line-height: 1.045; letter-spacing: -.035em; margin: 18px 0 18px; }
.hero-pro h1 .accent { color: var(--orange-400); }
.hero-pro .lead { color: rgba(255, 255, 255, .71); font-size: clamp(.9rem, 1.1vw, 1rem); line-height: 1.7; max-width: 545px; margin-bottom: 27px; }
.hero-pro .hero-cta { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 0; }
.btn--hero-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.btn--hero-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-1px); }
.hero-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .63); }
.hero-assure span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assure svg { color: var(--orange-400); flex: none; }
.hero-pro-visual { position: relative; }
.hero-pro-photo { position: relative; margin: 0; border-radius: 28px 28px 28px 82px; overflow: hidden; aspect-ratio: 1 / .93; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 44px 90px -38px rgba(0, 0, 0, .72); }
.hero-pro-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hero-pro-visual:hover .hero-pro-photo img { transform: scale(1.035); }
.hero-pro-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(3, 18, 13, .42)); pointer-events: none; }
.hero-pro-photo-badge { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--orange-500); color: #fff; font-size: .7rem; font-weight: 800; box-shadow: var(--shadow-orange); }
.hero-pro-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 15px; background: rgba(255, 255, 255, .97); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .5); animation: floatY 5.4s ease-in-out infinite; backdrop-filter: blur(10px); }
.hero-pro-float strong { display: block; font-size: .77rem; line-height: 1.2; color: var(--ink); }
.hero-pro-float span { font-size: .66rem; color: var(--muted); }
.hero-pro-float .hf-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.hero-pro-float .hf-icon--orange { background: var(--orange-50); color: var(--orange-600); }
.hero-pro-float--pay { left: -20px; top: 12%; }
.hero-pro-float--track { left: -14px; bottom: 13%; animation-delay: -2.4s; }

/* Quick access strip overlapping the hero */
.hero-quick-wrap { position: relative; z-index: 4; margin-top: -36px; }
.hero-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 24px 50px -26px rgba(6, 35, 26, .38); }
.hero-quick-item { display: flex; align-items: center; gap: 11px; padding: 13px 12px; border-radius: 13px; border: 1px solid transparent; transition: all .2s var(--ease); min-width: 0; }
.hero-quick-item:hover { background: var(--cream); border-color: var(--line); transform: translateY(-2px); }
.hero-quick-item .hq-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--quick-accent, var(--green-700)); flex: none; transition: all .2s var(--ease); }
.hero-quick-item:hover .hq-icon { background: var(--quick-accent, var(--green-700)); color: #fff; }
.hero-quick-item .hq-text { min-width: 0; flex: 1; }
.hero-quick-item strong { display: block; font-family: var(--font-display); font-size: .84rem; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-quick-item small { display: block; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-quick-item .hq-arrow { color: var(--muted); flex: none; transition: transform .2s var(--ease); }
.hero-quick-item:hover .hq-arrow { transform: translateX(3px); color: var(--quick-accent, var(--green-700)); }

@media (max-width: 1024px) {
    .hero-pro-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-pro-copy { max-width: 680px; }
    .hero-pro-visual { max-width: 590px; width: 100%; margin-inline: auto; }
    .hero-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .hero-pro { padding-top: 32px; padding-bottom: 56px; }
    .hero-pro-float--pay { left: 6px; top: 8px; }
    .hero-pro-float--track { left: 4px; bottom: 8px; }
    .hero-quick-wrap { margin-top: -30px; }
}
@media (max-width: 620px) {
    .hero-pro h1 { font-size: clamp(1.95rem, 9vw, 2.55rem); }
    .hero-pro .hero-cta .btn { flex: 1; min-width: 150px; justify-content: center; }
    .hero-pro-float { padding: 8px 10px; gap: 8px; }
    .hero-pro-float .hf-icon { width: 30px; height: 30px; border-radius: 9px; }
    .hero-pro-float strong { font-size: .7rem; }
    .hero-pro-float span { font-size: .6rem; }
    .hero-pro-photo { border-radius: 20px 20px 20px 56px; }
    .hero-pro-photo-badge { font-size: .62rem; padding: 6px 9px; right: 10px; bottom: 10px; }
    .hero-quick { gap: 6px; padding: 7px; border-radius: 15px; }
    .hero-quick-item { padding: 9px 8px; gap: 8px; border-radius: 11px; }
    .hero-quick-item .hq-icon { width: 34px; height: 34px; border-radius: 10px; }
    .hero-quick-item .hq-icon svg { width: 17px; height: 17px; }
    .hero-quick-item strong { font-size: .74rem; }
    .hero-quick-item small { display: none; }
    .hero-quick-item .hq-arrow { display: none; }
    .hero-assure { gap: 7px 14px; font-size: .69rem; }
}

/* Hero typewriter */
.hero-type-wrap { display: block; }
.hero-type-caret {
    display: inline-block; width: 0; height: .78em; margin-left: 2px; margin-right: -4px;
    border-right: 2px solid var(--orange-400);
    vertical-align: -.02em; animation: heroCaret 1s steps(1, end) infinite;
}
@keyframes heroCaret { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hero-type-caret { display: none; }
}

/* Mobile home refinements */
@media (max-width: 860px) {
    .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 620px) {
    .hero-pro { padding-top: 26px; }
    .hero-pro h1 { font-size: clamp(1.85rem, 8.7vw, 2.45rem); margin: 14px 0; }
    .hero-pro .lead { font-size: .84rem; line-height: 1.6; margin-bottom: 20px; }
    .hero-pro .hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .hero-pro .hero-cta .btn { width: 100%; min-width: 0; min-height: 46px; padding-inline: 12px; font-size: .84rem; flex: none; }
    .hero-pro .hero-cta .btn:first-child { grid-column: 1 / -1; }
    .hero-pro .hero-cta .btn:not(:first-child) svg { display: none; }
    .hero-pro .hero-assure { margin-top: 18px; }

    .grid-cats .cat-tile:not(.cat-tile--mobile-pick) { display: none; }
    .grid-cats .cat-tile--mobile-pick { order: var(--cat-mobile-order, 0); }

    .vendor-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
    .vendor-grid > * { flex: 0 0 82%; scroll-snap-align: start; }

    .home-page .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .home-page .section-head .section-link {
        padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
        background: #fff; font-size: .8rem;
    }
}
@media (max-width: 380px) {
    .hero-pro .hero-cta .btn { font-size: .8rem; padding-inline: 8px; }
}

/* ---------- Wallet ---------- */
.wallet-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 26px 26px; margin-bottom: 16px; border-radius: 20px;
    background:
        radial-gradient(620px 280px at 110% -20%, rgba(249, 115, 22, .38), transparent 60%),
        radial-gradient(480px 260px at -10% 120%, rgba(34, 197, 94, .55), transparent 65%),
        linear-gradient(135deg, #0B4F3A, #0E6B4F 58%, #128354);
    color: #fff;
    box-shadow: 0 22px 48px -32px rgba(11, 79, 58, .85);
}
.wallet-hero-main { display: flex; flex-direction: column; gap: 4px; }
.wallet-hero-label { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: #A9D8C2; }
.wallet-hero strong { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.04em; line-height: 1.1; }
.wallet-hero-meta { font-size: .72rem; color: #BFE3D2; }
.wallet-hero-side { text-align: right; display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
.wallet-hero-side span { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: #CDEBDD; }
.wallet-hero-side strong { font-size: 1.5rem; }
.wallet-actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.wallet-actions-grid .panel { margin: 0; height: 100%; }
.wallet-actions-grid .panel-body { display: flex; flex-direction: column; height: calc(100% - 54px); }
.wallet-actions-grid form { display: flex; flex-direction: column; flex: 1; }
.wallet-actions-grid form > .btn { margin-top: auto; }
@media (max-width: 980px) { .wallet-actions-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .wallet-hero { padding: 20px; }
    .wallet-hero-side { text-align: left; width: 100%; }
}

/* ---------- Rewards, referrals & QR ---------- */
.reward-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 24px 26px; margin-bottom: 16px; border-radius: 20px;
    background:
        radial-gradient(520px 260px at 110% -30%, rgba(249, 115, 22, .35), transparent 60%),
        linear-gradient(135deg, #0B4F3A, #0E6B4F 60%, #128354);
    color: #fff; box-shadow: 0 20px 44px -30px rgba(11, 79, 58, .8);
}
.reward-hero-label { display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: #A9D8C2; }
.reward-points { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.1rem); letter-spacing: -.04em; line-height: 1.05; margin: 4px 0 2px; }
.reward-hero-worth { font-size: .78rem; color: #D7EFE3; }
.reward-hero-side { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); text-align: right; }
.reward-hero-side > span:first-child { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #CDEBDD; }
.reward-hero-side strong { font-size: 1.2rem; }
.reward-rules { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.reward-rules li { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--muted); }
.reward-rules svg { color: var(--green-600); flex: none; margin-top: 1px; }

.referral-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
    padding: 24px 26px; margin-bottom: 16px; border-radius: 20px;
    background: linear-gradient(135deg, #FFFBF4, #F0FDF4 55%, #ECFDF5);
    border: 1px solid #D7F0E0; box-shadow: 0 10px 28px -24px rgba(15, 118, 78, .5);
}
.referral-hero-main { flex: 1; min-width: 260px; }
.referral-code { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .12em; color: var(--green-800); margin: 5px 0 3px; }
.share-row { display: flex; gap: 8px; margin: 12px 0 10px; }
.share-row .input { flex: 1; min-width: 0; font-size: .78rem; }
.referral-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.referral-qr .qr-canvas { padding: 4px; background: #fff; }
.qr-canvas img, .qr-canvas canvas { display: block; max-width: 100%; height: auto; }
.referral-steps { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.referral-steps li { display: flex; gap: 12px; align-items: flex-start; }
.referral-steps > li > span { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--green-800); font-weight: 800; font-size: .76rem; }
.referral-steps strong { font-size: .86rem; }
.referral-steps p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.wallet-qr { display: flex; gap: 11px; align-items: center; margin-top: 12px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--cream); }
.wallet-qr .qr-canvas { width: 82px; height: 82px; flex: none; background: #fff; padding: 3px; border-radius: 6px; }
.wallet-qr .qr-canvas img, .wallet-qr .qr-canvas canvas { width: 76px !important; height: 76px !important; }
.wallet-qr strong { display: block; font-size: .78rem; }
.wallet-qr span { display: block; font-size: .7rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) {
    .reward-hero, .referral-hero { padding: 20px; }
    .reward-hero-side { text-align: left; width: 100%; }
    .share-row { flex-wrap: wrap; }
    .share-row .input { flex-basis: 100%; }
    .referral-qr { width: 100%; }
}

/* ---------- Location gate & nearby ---------- */
button.location-picker { font-family: inherit; text-align: left; cursor: pointer; color: var(--ink); }
button.location-picker .lp-label { color: var(--muted); }
.mobile-location-bar {
    display: none; width: 100%; align-items: center; gap: 7px; padding: 8px 16px;
    border: 0; border-bottom: 1px solid var(--line); background: var(--green-50);
    color: var(--green-800); font-family: inherit; font-size: .76rem; font-weight: 600; text-align: left;
}
.mobile-location-bar > svg:first-child { color: var(--orange-500); flex: none; }
.mobile-location-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-location-bar strong { font-weight: 800; }
.mobile-location-bar > svg:last-child { color: var(--muted); flex: none; }

.badge--button { border: 0; font-family: inherit; cursor: pointer; }

.location-modal { z-index: 3200; }
.location-panel {
    width: min(100%, 470px); padding: 26px 28px 22px; text-align: center;
    overflow-y: auto; max-height: calc(100dvh - 32px);
    scrollbar-width: none;
    background:
        radial-gradient(420px 240px at 50% -30%, rgba(249, 115, 22, .12), transparent 70%),
        radial-gradient(340px 220px at 110% 110%, rgba(22, 163, 74, .12), transparent 70%),
        #fff;
}
.location-panel::-webkit-scrollbar { display: none; }
.location-panel > .modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.location-radar { position: relative; width: 98px; height: 98px; margin: 0 auto 14px; display: grid; place-items: center; }
.location-radar-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(249, 115, 22, .26);
    animation: locationRadar 2.8s ease-out infinite;
}
.location-radar-ring--two { inset: 15px; animation-delay: .55s; border-color: rgba(22, 163, 74, .24); }
@keyframes locationRadar {
    0% { transform: scale(.82); opacity: .9; }
    70% { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(1.08); opacity: 0; }
}
.location-panel-head { text-align: center; margin-bottom: 16px; }
.location-panel-head .eyebrow { justify-content: center; }
.location-panel-head p { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 8px auto 0; max-width: 38ch; }
.location-panel-head p strong { color: var(--ink); }
.location-panel-head h2 { margin: 7px 0 0; font-size: clamp(1.4rem, 3vw, 1.72rem); letter-spacing: -.02em; }
.location-pin {
    display: flex; width: 56px; height: 56px; margin: 0; border-radius: 18px;
    align-items: center; justify-content: center; color: #fff; position: relative; z-index: 1;
    background: linear-gradient(145deg, var(--orange-500), #EA580C);
    box-shadow: 0 16px 30px -14px rgba(234, 88, 12, .85), inset 0 1px 0 rgba(255,255,255,.25);
}
.location-detect {
    width: 100%; justify-content: center; gap: 9px; min-height: 50px; font-size: .92rem;
    border-radius: 14px; box-shadow: 0 16px 32px -22px rgba(234, 88, 12, .95);
}
.location-detect[disabled] { opacity: .65; cursor: progress; }
.location-detect.is-locating { animation: pulseRing 1.8s infinite; }
.location-skip {
    display: block; width: 100%; margin: 0 auto; padding: 8px 6px; border: 0; background: none;
    color: var(--muted); font-family: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.location-skip:hover { color: var(--green-700); }
.location-status { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.location-status.is-error { color: var(--red); font-weight: 600; }
.wallet-stk-note {
    display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px;
    border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100);
}
.wallet-stk-note p { margin: 0; font-size: .74rem; line-height: 1.5; color: var(--green-800); }
.wallet-stk-icon { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wallet-stk-wait { align-items: center; }
.wallet-stk-wait > div { flex: 1; min-width: 0; }
.wallet-stk-wait strong { display: block; font-size: .8rem; }
.wallet-stk-wait span { display: block; font-size: .74rem; color: var(--ink-soft); }
.plan-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }
.plan-pay-option {
    display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    transition: border-color .18s var(--ease), background .18s var(--ease);
}
.plan-pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pay-option span { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; color: var(--ink); }
.plan-pay-option small { font-size: .62rem; color: var(--muted); line-height: 1.25; }
.plan-pay-option:has(input:checked) { border-color: var(--green-500); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-500); }
.plan-pay-option:has(input:checked) span { color: var(--green-700); }
.plan-pay-option.is-disabled { opacity: .5; cursor: not-allowed; }
.plan-phone { margin-bottom: 9px !important; }
.plan-phone .input { min-height: 38px; font-size: .8rem; }

.nearby-section .eyebrow { gap: 5px; }
.nearby-stores { grid-auto-columns: minmax(300px, 1fr); margin-top: 4px; }
.store-distance { color: var(--orange-600) !important; font-weight: 700; }
.store-distance svg { color: var(--orange-500) !important; }

@media (max-width: 1180px) {
    .mobile-location-bar { display: flex; }
}
@media (max-width: 640px) {
    .location-panel { padding: 22px 18px 18px; border-radius: 20px; }
    .location-radar { width: 84px; height: 84px; margin-bottom: 10px; }
    .location-pin { width: 50px; height: 50px; border-radius: 15px; }
    .location-panel-head h2 { font-size: 1.35rem; }
    .location-panel-head p { font-size: .8rem; }
    .plan-pay { grid-template-columns: 1fr; }
    .nearby-stores { grid-auto-columns: 82%; }
}
@media (max-height: 560px) {
    .location-panel { padding: 20px 18px 14px; }
    .location-radar { display: none; }
    .location-panel-head { margin-bottom: 10px; }
    .location-panel-head h2 { font-size: 1.28rem; }
    .location-panel-head p { font-size: .78rem; line-height: 1.5; margin-top: 5px; }
    .location-detect { min-height: 46px; }
}
@media (max-height: 460px) {
    .location-panel { padding: 14px 16px 10px; }
    .location-panel-head { margin-bottom: 8px; }
    .location-panel-head .eyebrow { font-size: .66rem; }
    .location-panel-head h2 { font-size: 1.18rem; }
    .location-panel-head p { font-size: .74rem; line-height: 1.4; margin-top: 4px; }
    .location-detect { min-height: 42px; font-size: .84rem; }
    .location-status { min-height: 12px; margin-top: 4px; font-size: .72rem; }
    .location-skip { padding: 5px 4px; font-size: .75rem; }
}

/* ---------- Admin impersonation banner ---------- */
.impersonation-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4500;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(100deg, #06231A, #0B4A36 62%, #0E6B4F);
    border-top: 3px solid var(--orange-500);
    color: #D8EBE0;
    box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .8);
}
body.has-impersonation { padding-bottom: 68px; }
.impersonation-copy { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .78rem; line-height: 1.45; }
.impersonation-copy strong { color: #fff; }
.impersonation-icon {
    width: 33px; height: 33px; border-radius: 9px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(249, 115, 22, .17); color: #FDBA74; border: 1px solid rgba(249, 115, 22, .32);
}
.impersonation-bar form { margin: 0; flex: none; }
.impersonation-bar .btn--orange { background: var(--orange-500); color: #fff; border-color: transparent; }
.impersonation-bar .btn--orange:hover { background: var(--orange-600); }
@media (max-width: 700px) {
    body.has-impersonation { padding-bottom: 76px; }
    .impersonation-bar { padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); gap: 8px; }
    .impersonation-copy { font-size: .7rem; align-items: flex-start; }
    .impersonation-icon { display: none; }
    .impersonation-bar .btn--sm { min-height: 34px; padding: 6px 10px; font-size: .7rem; }
}

/* ---------- Fixed-position tooltips ---------- */
.tooltip-float {
    position: fixed; z-index: 5000; left: 0; top: 0;
    transform: translateY(4px); opacity: 0;
    max-width: 240px; padding: 6px 9px; border-radius: 7px;
    background: var(--green-950); color: #fff;
    font-family: var(--font-body); font-size: .67rem; font-weight: 600; line-height: 1.35;
    letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none; box-shadow: 0 8px 22px -10px rgba(6, 35, 26, .7);
    transition: opacity .14s ease, transform .14s ease;
}
.tooltip-float.is-visible { opacity: 1; transform: none; }

/* ---------- Customer account: mobile dashboard + account sheet ---------- */
.acct-hub,
.acct-quick { display: none; }
.acct-service { display: block; }
.acct-services { gap: 14px; }

.account-sheet { align-items: flex-end; padding: 0; }
.account-sheet .modal-panel {
    width: 100%; max-width: 560px; border-radius: 22px 22px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    animation: sheetUp .3s var(--ease);
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.acct-sheet-head {
    display: flex; align-items: center; gap: 11px;
    padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.acct-sheet-head .avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-50); color: var(--green-800); font-weight: 800; font-size: .9rem;
}
.acct-sheet-head img.avatar { object-fit: cover; }
.acct-sheet-head > div { min-width: 0; }
.acct-sheet-head strong { display: block; font-size: .88rem; line-height: 1.25; }
.acct-sheet-head span:not(.avatar) {
    display: block; font-size: .72rem; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-sheet-head .modal-close { margin-left: auto; }
.acct-sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.acct-sheet-links a {
    display: flex; align-items: center; gap: 8px; padding: 11px 10px;
    border-radius: 11px; background: var(--cream);
    font-size: .78rem; font-weight: 700; color: var(--ink-soft);
}
.acct-sheet-links a.is-active { background: var(--green-50); color: var(--green-800); }
.acct-sheet-links a svg { color: var(--green-700); flex: none; }
.acct-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.acct-sheet-actions form { margin: 0; }
.acct-sheet-actions .btn { width: 100%; }

@media (max-width: 860px) {
    .account-page .page-hero { padding: 11px 0; }
    .account-page .page-hero .breadcrumb { display: none; }
    .account-page .page-hero h1 { font-size: clamp(1.25rem, 5.6vw, 1.55rem); margin: 0; line-height: 1.2; }
    .account-page .page-hero p { display: none; }
    .account-page .section--tight { padding: 16px 0 10px; }
    .account-page .dash-nav { display: none; }
    .account-dashboard .stat-grid { display: none; }

    .acct-hub {
        display: block; position: relative; overflow: hidden; color: #fff;
        background: linear-gradient(135deg, #052019 0%, #083A2B 52%, #0E6B4F 100%);
        border-radius: 18px; padding: 15px;
        box-shadow: 0 20px 34px -26px rgba(5, 32, 25, .7);
        margin-bottom: 12px;
    }
    .acct-hub::after {
        content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%;
        top: -78px; right: -58px; pointer-events: none;
        background: radial-gradient(circle, rgba(249, 115, 22, .32), transparent 66%);
    }
    .acct-hub-top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
    .acct-hub .avatar {
        width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
        display: flex; align-items: center; justify-content: center;
        background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .3);
        color: #fff; font-weight: 800; font-size: .95rem;
    }
    .acct-hub img.avatar { object-fit: cover; }
    .acct-hub-id { min-width: 0; }
    .acct-hub-id > span:first-child {
        display: block; font-size: .62rem; letter-spacing: .07em;
        text-transform: uppercase; color: rgba(255, 255, 255, .66);
    }
    .acct-hub-id strong {
        display: block; font-family: var(--font-display);
        font-size: 1.08rem; line-height: 1.2; color: #fff;
    }
    .acct-hub-id .acct-contact {
        display: block; font-size: .7rem; color: rgba(255, 255, 255, .7);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .acct-hub-edit {
        margin-left: auto; width: 36px; height: 36px; border-radius: 50%; flex: none;
        display: flex; align-items: center; justify-content: center;
        background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
    }
    .acct-hub-edit:hover { background: rgba(255, 255, 255, .2); color: #fff; }
    .acct-hub-metrics {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px; margin-top: 13px; position: relative; z-index: 1;
    }
    .acct-metric {
        display: block; min-width: 0; padding: 9px;
        border-radius: 11px; background: rgba(255, 255, 255, .09);
        border: 1px solid rgba(255, 255, 255, .13); transition: background .2s;
    }
    .acct-metric:hover { background: rgba(255, 255, 255, .16); }
    .acct-metric > span {
        display: block; font-size: .6rem; letter-spacing: .05em;
        text-transform: uppercase; color: rgba(255, 255, 255, .66);
    }
    .acct-metric strong {
        display: block; font-family: var(--font-display); color: #fff;
        font-size: clamp(.78rem, 3.6vw, .95rem); line-height: 1.25;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .acct-quick {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
        background: #fff; border: 1px solid var(--line); border-radius: 16px;
        padding: 10px 8px; margin-bottom: 14px;
    }
    .acct-quick a {
        display: flex; flex-direction: column; align-items: center; gap: 5px;
        padding: 8px 2px 7px; border-radius: 11px; text-align: center;
        font-size: .64rem; font-weight: 700; line-height: 1.15;
        color: var(--ink-soft); position: relative;
    }
    .acct-quick a:hover { background: var(--green-50); color: var(--green-800); }
    .aq-ico {
        width: 38px; height: 38px; border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        background: var(--green-50); color: var(--green-700);
    }
    .aq-ico--orange { background: var(--orange-50); color: var(--orange-600); }
    .aq-ico--red { background: var(--red-50); color: var(--red); }
    .aq-ico--blue { background: var(--blue-50); color: var(--blue); }
    .aq-badge {
        position: absolute; top: 3px; right: 4px; min-width: 16px; height: 16px;
        padding: 0 3px; border-radius: 99px; border: 2px solid #fff;
        background: var(--orange-500); color: #fff; font-size: .54rem; font-weight: 800;
        display: flex; align-items: center; justify-content: center;
    }
}

@media (max-width: 620px) {
    .account-dashboard .panel { border-radius: 14px; margin-bottom: 12px; }
    .account-dashboard .panel-head { padding: 13px 14px; }
    .account-dashboard .panel-body { padding: 14px; }
    .account-dashboard .order-card-body {
        display: grid; grid-template-columns: auto minmax(0, 1fr);
        align-items: center; gap: 10px 12px;
    }
    .account-dashboard .order-actions { grid-column: 1 / -1; }
    .account-dashboard .order-actions .btn { flex: 1; justify-content: center; }
    .account-dashboard .acct-services { grid-template-columns: 1fr; gap: 8px; }
    .account-dashboard .acct-service { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
    .account-dashboard .acct-service .pk-icon { margin: 0; flex: none; width: 36px; height: 36px; }
    .account-dashboard .acct-service .pk-body { min-width: 0; }
    .account-dashboard .acct-service .pk-body strong { margin-bottom: 1px; }
}
