/* Hazbe - app design system (customer, seller and rider apps).
   Warm off-white canvas, white cards with real (neutral) elevation, deep-ink primary buttons,
   Hazbe gold as the accent, one colour per business category. No glow, no gradient buttons. */

@font-face {
    font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(/assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* brand accent (Admin > Settings > Primary colour overrides --mf-primary via brand_head()) */
    --mf-primary: #A06A00;
    --mf-primary-dark: #805500;
    --mf-primary-rgb: 160, 106, 0;
    --hz-gold: #D89A17;
    --hz-gold-soft: #FFF4DC;
    --mf-ink: #17151F;
    --hz-ink: #17151F;
    --hz-ink-2: #2A2733;
    --mf-success: #16A34A;
    --mf-danger: #E5484D;
    --mf-warning: #E07B00;
    --mf-bg: #F5F4F0;
    --mf-surface: rgba(255, 255, 255, 0.86);
    --mf-surface-solid: #FFFFFF;
    --hz-surface-2: #F1EFEA;
    --mf-border: rgba(23, 21, 31, 0.08);
    --mf-text: #17151F;
    --mf-text-muted: #6B6875;
    --mf-radius: 22px;
    --mf-radius-sm: 14px;
    --mf-blur: 18px;
    --mf-shadow: 0 1px 2px rgba(23, 21, 31, .05), 0 10px 28px -14px rgba(23, 21, 31, .22);
    --hz-shadow-lg: 0 2px 4px rgba(23, 21, 31, .05), 0 18px 40px -18px rgba(23, 21, 31, .32);
    --mf-safe-bottom: env(safe-area-inset-bottom, 0px);
    --hz-sat: max(env(safe-area-inset-top, 0px), var(--sb, 0px)); /* status bar inside the apps */
    --hz-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
:root[data-theme="dark"] {
    --mf-bg: #0E0D12;
    --mf-surface: rgba(26, 24, 32, 0.86);
    --mf-surface-solid: #1A1820;
    --hz-surface-2: #24212C;
    --mf-border: rgba(255, 255, 255, 0.09);
    --mf-text: #F4F2F7;
    --mf-text-muted: #A19DAD;
    --hz-ink: #F4F2F7;
    --mf-ink: #F4F2F7;
    --hz-gold-soft: #2B2314;
    --mf-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --hz-shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
    margin: 0; padding: 0;
    background: var(--mf-bg);
    color: var(--mf-text);
    font-family: var(--hz-font);
    font-size: 15px; line-height: 1.4;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
}
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.mf-app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: calc(92px + var(--mf-safe-bottom)); }

/* ---------- top bar (inner pages) ---------- */
.mf-topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    padding: calc(12px + var(--hz-sat)) 16px 12px;
    background: var(--mf-surface);
    backdrop-filter: blur(var(--mf-blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--mf-blur)) saturate(1.4);
    border-bottom: 1px solid var(--mf-border);
}
.mf-topbar h1 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-back {
    width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; background: var(--hz-surface-2); color: var(--mf-text); text-decoration: none; font-size: 15px;
    transition: transform .12s ease;
}
.mf-back:active { transform: scale(.92); }

/* ---------- cards ---------- */
.mf-card {
    background: var(--mf-surface-solid);
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow);
    padding: 18px;
    margin: 14px 16px;
}
.mf-card-solid { background: var(--mf-surface-solid); }

/* ---------- buttons ---------- */
.mf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 15px 20px; border: none; border-radius: 16px;
    font-size: 15.5px; font-weight: 700; letter-spacing: -.1px; cursor: pointer;
    background: var(--hz-ink); color: #fff; text-decoration: none;
    box-shadow: 0 1px 2px rgba(23, 21, 31, .12), 0 8px 18px -10px rgba(23, 21, 31, .45);
    transition: transform .12s ease, filter .15s ease;
}
:root[data-theme="dark"] .mf-btn { color: #17151F; }
.mf-btn:active { transform: scale(.97); }
.mf-btn:hover { filter: brightness(1.08); }
.mf-btn.mf-btn-outline { background: var(--mf-surface-solid); color: var(--mf-text); border: 1.5px solid var(--mf-border); box-shadow: 0 1px 2px rgba(23,21,31,.05); }
.mf-btn.mf-btn-danger { background: var(--mf-danger); color: #fff; border-color: var(--mf-danger); }
.mf-btn.mf-btn-sm { padding: 10px 16px; font-size: 14px; width: auto; border-radius: 12px; }
.mf-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- form ---------- */
.mf-field { margin-bottom: 14px; }
.mf-field label { display: block; font-size: 13px; font-weight: 700; color: var(--mf-text-muted); margin-bottom: 7px; }
.mf-input, .mf-select, .mf-textarea {
    width: 100%; padding: 14px 15px; border-radius: 14px;
    border: 1.5px solid var(--mf-border); background: var(--hz-surface-2);
    color: var(--mf-text); font-size: 15px; outline: none; transition: border-color .15s ease, background .15s ease;
}
.mf-input:focus, .mf-select:focus, .mf-textarea:focus { border-color: var(--hz-ink); background: var(--mf-surface-solid); }
:root[data-theme="dark"] .mf-input:focus, :root[data-theme="dark"] .mf-select:focus { border-color: var(--hz-gold); }
input[type=file].mf-input { padding: 11px 12px; font-size: 13px; }
input[type=checkbox], input[type=radio] { accent-color: var(--hz-ink); width: 18px; height: 18px; }

/* ---------- bottom navigation ---------- */
.mf-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    max-width: 560px; margin: 0 auto;
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px 10px calc(8px + var(--mf-safe-bottom));
    background: var(--mf-surface);
    backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-top: 1px solid var(--mf-border);
    box-shadow: 0 -8px 24px -18px rgba(23, 21, 31, .35);
}
.mf-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--mf-text-muted); text-decoration: none; font-size: 11px; font-weight: 700; padding: 4px 2px;
    transition: color .15s ease;
}
.mf-nav-item i { font-size: 19px; width: 56px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 16px; transition: background .2s ease, transform .15s ease; }
.mf-nav-item:active i { transform: scale(.9); }
.mf-nav-item.active { color: var(--mf-text); }
.mf-nav-item.active i { background: var(--hz-gold-soft); color: var(--mf-primary); }
:root[data-theme="dark"] .mf-nav-item.active i { color: var(--hz-gold); }

/* ---------- rows / lists ---------- */
.mf-row { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--mf-border); }
.mf-row:last-child { border-bottom: none; }
.mf-card > .mf-row:first-child { margin-top: -18px; }
.mf-card > .mf-row:last-child { margin-bottom: -18px; }
.mf-card > .mf-row { margin-left: -18px; margin-right: -18px; }
.mf-card[style*="padding:0"] > .mf-row, .mf-card[style*="padding: 0"] > .mf-row { margin: 0; }
.mf-row i:first-child { color: var(--mf-text-muted); }
.mf-thumb { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--hz-surface-2); flex-shrink: 0; }
.mf-row-title { font-weight: 700; font-size: 15px; }
.mf-row-sub { font-size: 13px; color: var(--mf-text-muted); margin-top: 2px; }

/* ---------- badges ---------- */
.mf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; letter-spacing: .2px; text-transform: none; }
.mf-badge-success { background: rgba(22,163,74,.12); color: #15803D; }
.mf-badge-warning { background: rgba(224,123,0,.13); color: #B45F00; }
.mf-badge-danger { background: rgba(229,72,77,.12); color: #C8262C; }
.mf-badge-muted { background: var(--hz-surface-2); color: var(--mf-text-muted); }
:root[data-theme="dark"] .mf-badge-success { color: #4ADE80; }
:root[data-theme="dark"] .mf-badge-warning { color: #FDBA74; }
:root[data-theme="dark"] .mf-badge-danger { color: #FCA5A5; }

/* ---------- empty state ---------- */
.mf-empty { text-align: center; padding: 56px 28px; color: var(--mf-text-muted); }
.mf-empty i { font-size: 30px; width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--mf-surface-solid); box-shadow: var(--mf-shadow); color: var(--mf-text-muted); }
.mf-empty p { margin: 6px 0; font-weight: 600; }

/* ---------- order status stepper ---------- */
.mf-steps { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.mf-step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.mf-step:last-child { padding-bottom: 0; }
.mf-step-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--hz-surface-2); border: 2px solid var(--mf-border); margin-top: 3px; flex-shrink: 0; position: relative; z-index: 1; }
.mf-step.done .mf-step-dot { background: var(--mf-success); border-color: var(--mf-success); }
.mf-step:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 17px; bottom: -3px; width: 2px; background: var(--mf-border); }
.mf-step.done:not(:last-child)::before { background: var(--mf-success); }
.mf-step-title { font-weight: 700; font-size: 14.5px; }
.mf-step-time { font-size: 12px; color: var(--mf-text-muted); }

.mf-toast {
    position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(8px);
    background: var(--hz-ink-2); color: #fff; padding: 13px 20px; border-radius: 16px; max-width: calc(100% - 32px);
    font-size: 14px; font-weight: 600; z-index: 999; box-shadow: var(--hz-shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.mf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- toggle switch ---------- */
.mf-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.mf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mf-switch-track { position: absolute; inset: 0; background: var(--hz-surface-2); border: 1px solid var(--mf-border); border-radius: 28px; transition: background .2s ease; cursor: pointer; }
.mf-switch-track::before { content: ''; position: absolute; height: 22px; width: 22px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.mf-switch input:checked + .mf-switch-track { background: var(--hz-ink); }
.mf-switch input:checked + .mf-switch-track::before { transform: translateX(20px); }

/* =====================================================================================
   CUSTOMER APP
   ===================================================================================== */

/* home hero header */
.hz-hero {
    position: relative; z-index: 30;
    background: var(--hz-ink); color: #fff;
    padding: calc(14px + var(--hz-sat)) 16px 20px;
    border-radius: 0 0 28px 28px;
}
:root[data-theme="dark"] .hz-hero { background: #1A1820; border-bottom: 1px solid var(--mf-border); }
.hz-hero-top { display: flex; align-items: center; gap: 10px; }
.hz-hero-logo { height: 30px; width: auto; display: block; flex-shrink: 0; }
.hz-hero-loc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.hz-hero-loc-icon { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--hz-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hz-hero-loc small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; color: rgba(255,255,255,.6); text-transform: uppercase; }
.hz-hero-loc strong { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-hero-loc strong span { overflow: hidden; text-overflow: ellipsis; }
.hz-hero-loc strong i { font-size: 10px; color: rgba(255,255,255,.6); }
.hz-hero-btn { position: relative; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; font-size: 16px; transition: transform .12s ease; }
.hz-hero-btn:active { transform: scale(.92); }
.hz-hero-btn .hz-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hz-gold); color: #17151F; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--hz-ink); }
.hz-hero-login { padding: 9px 14px; border-radius: 12px; background: var(--hz-gold); color: #17151F; font-weight: 800; font-size: 13px; text-decoration: none; flex-shrink: 0; }
.hz-hero h2 { margin: 18px 2px 14px; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; }
.hz-hero h2 em { font-style: normal; color: var(--hz-gold); }
.hz-hero-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 8px 0 16px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.hz-hero-search i { color: #8A8794; }
.hz-hero-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15px; padding: 15px 0; color: #17151F; font-weight: 600; }
.hz-hero-search input::placeholder { color: #8A8794; font-weight: 500; }
.hz-hero-search a, .hz-hero-search button { width: 34px; height: 34px; border-radius: 10px; border: none; background: #F1EFEA; color: #17151F; display: flex; align-items: center; justify-content: center; text-decoration: none; }

.hz-section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 18px 10px; }
.hz-section-head h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.hz-section-head a, .hz-section-head span { font-size: 13px; color: var(--mf-text-muted); text-decoration: none; font-weight: 700; }

/* business categories */
.hz-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; padding: 2px 16px 4px; }
.hz-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--mf-text); }
.hz-cat-icon { width: 100%; aspect-ratio: 1 / 1; max-width: 78px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 26px; transition: transform .15s ease; box-shadow: inset 0 0 0 1px rgba(23,21,31,.04); position: relative; }
.hz-cat:active .hz-cat-icon { transform: scale(.92); }
.hz-cat.active .hz-cat-icon { outline: 2px solid currentColor; outline-offset: 2px; }
.hz-cat-name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; letter-spacing: -.1px; }

/* filter chips */
.hz-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; scrollbar-width: none; scroll-behavior: smooth; }
.hz-chips::-webkit-scrollbar { display: none; }
.hz-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 15px; border-radius: 14px; font-size: 13px; font-weight: 700; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); color: var(--mf-text); text-decoration: none; box-shadow: 0 1px 2px rgba(23,21,31,.05); transition: transform .12s ease; }
.hz-chip i { font-size: 13px; }
.hz-chip:active { transform: scale(.95); }
.hz-chip.active { background: var(--hz-ink); border-color: var(--hz-ink); color: #fff; }
:root[data-theme="dark"] .hz-chip.active { color: #17151F; }

/* store cards (home) */
.store-grid { display: flex; flex-direction: column; gap: 18px; padding: 4px 16px 16px; }
.store-card {
    display: block; text-decoration: none; color: inherit; position: relative;
    background: var(--mf-surface-solid); border-radius: 24px; overflow: hidden;
    box-shadow: var(--mf-shadow); border: 1px solid var(--mf-border);
    transition: transform .15s ease, box-shadow .15s ease;
}
.store-card:active { transform: scale(.985); }
.store-card-cover { position: relative; height: 164px; background-size: cover; background-position: center; background-color: var(--hz-surface-2); }
.store-card-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.0) 45%, rgba(0,0,0,.38) 100%); }
.store-card-closed-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(23,21,31,.82); color: #fff; font-size: 11px; font-weight: 800; padding: 6px 11px; border-radius: 10px; }
.store-card-rating-pill { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #17151F; font-weight: 800; font-size: 12.5px; padding: 6px 10px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); }
.store-card-rating-pill i { color: #F5A524; font-size: 11px; }
.store-card-logo { position: absolute; left: 16px; bottom: -24px; z-index: 2; width: 58px; height: 58px; border-radius: 18px; object-fit: cover; border: 3px solid var(--mf-surface-solid); box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); background: var(--mf-surface-solid); }
.store-card-body { padding: 32px 18px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.store-card-info { flex: 1; min-width: 0; }
.store-card-type { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 8px; margin-bottom: 7px; letter-spacing: .1px; }
.store-card-name { font-weight: 800; font-size: 17.5px; letter-spacing: -.4px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-tagline { font-size: 13.5px; color: var(--mf-text-muted); margin: 0 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.store-card-meta { font-size: 12.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-weight: 700; color: var(--mf-text-muted); }
.store-card-meta .hz-meta { display: inline-flex; align-items: center; gap: 5px; }
.store-card-meta .hz-open { color: var(--mf-success); }
.store-card-meta .hz-closed { color: var(--mf-danger); }
.store-card-rating { color: #D98E04; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.store-card-dot { color: var(--mf-border); }
.store-card-arrow { flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; background: var(--hz-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: transform .15s ease; }
:root[data-theme="dark"] .store-card-arrow { color: #17151F; }
.store-card:active .store-card-arrow { transform: translateX(3px); }

.hz-more-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.hz-more-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 18px; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); box-shadow: var(--mf-shadow); text-decoration: none; color: var(--mf-text); font-weight: 800; font-size: 14px; transition: transform .12s ease; }
.hz-more-row:active { transform: scale(.98); }
.hz-more-icon { width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.hz-more-text { flex: 1; }

.hz-location-card { margin: 18px 16px; padding: 26px 20px; border-radius: 24px; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); text-align: center; box-shadow: var(--mf-shadow); }
.hz-location-card .hz-loc-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--hz-gold-soft); color: var(--mf-primary); }
.hz-location-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.hz-location-card p { margin: 0 0 18px; color: var(--mf-text-muted); font-size: 14px; line-height: 1.5; }

/* store page */
.hz-store-cover { position: relative; height: calc(230px + var(--hz-sat)); background-size: cover; background-position: center; background-color: var(--hz-ink-2); }
.hz-store-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.25) 100%); }
.hz-store-actions { position: absolute; top: calc(12px + var(--hz-sat)); left: 16px; right: 16px; z-index: 3; display: flex; justify-content: space-between; gap: 10px; }
.hz-float-btn { position: relative; width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.95); color: #17151F; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); font-size: 15px; transition: transform .12s ease; }
.hz-float-btn:active { transform: scale(.92); }
.hz-float-btn .hz-dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--hz-ink); color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.hz-store-info { position: relative; z-index: 4; margin: -48px 16px 0; background: var(--mf-surface-solid); border-radius: 24px; padding: 18px; box-shadow: var(--hz-shadow-lg); border: 1px solid var(--mf-border); }
.hz-store-info-top { display: flex; gap: 14px; align-items: center; }
.hz-store-logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex-shrink: 0; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); background: var(--hz-surface-2); }
.hz-store-name { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.hz-store-tagline { margin: 4px 0 0; font-size: 13.5px; color: var(--mf-text-muted); font-weight: 500; }
.hz-store-stats { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hz-stat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 11px; background: var(--hz-surface-2); font-size: 12.5px; font-weight: 700; }
.hz-stat i { font-size: 12px; }
.hz-stat.rating i { color: #F5A524; }
.hz-stat.open { background: rgba(22,163,74,.1); color: #15803D; }
.hz-stat.closed { background: rgba(229,72,77,.1); color: #C8262C; }
.hz-store-addr { margin-top: 12px; font-size: 12.5px; color: var(--mf-text-muted); display: flex; gap: 7px; align-items: flex-start; font-weight: 500; }

.hz-store-toolbar { position: sticky; top: 0; z-index: 35; padding: calc(10px + var(--hz-sat)) 0 2px; background: linear-gradient(var(--mf-bg) 82%, rgba(245,244,240,0)); }
:root[data-theme="dark"] .hz-store-toolbar { background: linear-gradient(var(--mf-bg) 82%, rgba(14,13,18,0)); }
.hz-store-toolbar.no-sat { padding-top: 10px; }
.store-search-bar { padding: 0 16px; margin-bottom: 2px; }
.store-search-input { display: flex; align-items: center; gap: 10px; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); border-radius: 16px; padding: 0 15px; box-shadow: 0 1px 2px rgba(23,21,31,.05); }
.store-search-input i { color: var(--mf-text-muted); }
.store-search-input input { border: none; background: none; outline: none; flex: 1; font-size: 14.5px; color: var(--mf-text); padding: 13px 0; font-weight: 600; min-width: 0; }
.store-cat-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 10px; scrollbar-width: none; }
.store-cat-pills::-webkit-scrollbar { display: none; }
.store-cat-pill { white-space: nowrap; padding: 9px 15px; border-radius: 13px; font-size: 13px; font-weight: 700; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); color: var(--mf-text-muted); text-decoration: none; transition: transform .12s ease; }
.store-cat-pill:active { transform: scale(.95); }
.store-cat-pill.active { background: var(--hz-ink); color: #fff; border-color: var(--hz-ink); }
:root[data-theme="dark"] .store-cat-pill.active { color: #17151F; }

/* products: 2-column grid */
.product-list { padding: 4px 16px 150px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hz-menu-head { grid-column: 1 / -1; font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin: 12px 2px 0; display: flex; align-items: baseline; gap: 6px; }
.hz-menu-head span { color: var(--mf-text-muted); font-weight: 700; font-size: 13px; }
.product-list .mf-empty { grid-column: 1 / -1; }
.product-card { display: flex; flex-direction: column; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); border-radius: 20px; padding: 8px; box-shadow: var(--mf-shadow); position: relative; min-width: 0; }
.product-card-img-wrap { position: relative; }
.product-card-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; object-fit: cover; background: var(--hz-surface-2); display: block; }
.product-list .hz-product-thumb-ph { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 14px; font-size: 26px; }
.product-card-discount { position: absolute; top: 8px; left: 8px; background: var(--mf-success); color: #fff; font-size: 10.5px; font-weight: 800; padding: 4px 7px; border-radius: 8px; letter-spacing: .2px; }
.product-card-rx { position: absolute; top: 8px; right: 8px; background: rgba(23,21,31,.85); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 7px; border-radius: 8px; }
.product-card-info { flex: 1; min-width: 0; padding: 10px 4px 4px; display: flex; flex-direction: column; }
.product-card-name { font-weight: 700; font-size: 14px; line-height: 1.3; letter-spacing: -.1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.product-card-generic { font-size: 12px; color: var(--mf-text-muted); margin-top: 3px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.product-card-price { display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 0; }
.price-now { font-weight: 800; font-size: 15.5px; letter-spacing: -.2px; }
.price-mrp { font-size: 11.5px; color: var(--mf-text-muted); text-decoration: line-through; font-weight: 600; }
.product-card-action { flex-shrink: 0; }
.add-btn { background: var(--mf-surface-solid); color: var(--mf-success); border: 1.5px solid rgba(22,163,74,.45); font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 12px; letter-spacing: .4px; cursor: pointer; box-shadow: 0 2px 6px -2px rgba(22,163,74,.25); transition: transform .12s ease; }
.add-btn:active { transform: scale(.93); }
.qty-stepper { display: flex; align-items: center; background: var(--mf-success); border-radius: 12px; overflow: hidden; }
.qty-btn { width: 30px; height: 34px; border: none; background: transparent; color: #fff; font-size: 12px; cursor: pointer; }
.qty-btn-primary { background: transparent; color: #fff; }
.qty-val { min-width: 18px; text-align: center; font-weight: 800; font-size: 14px; color: #fff; }

/* (seller list keeps the row layout) */
.hz-list-cards .product-card { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
.hz-list-cards .product-card-img, .hz-list-cards .hz-product-thumb-ph { width: 68px; height: 68px; aspect-ratio: auto; }
.hz-list-cards .product-card-info { padding: 0; }
.hz-list-cards .product-card-name { min-height: 0; }
.hz-list-cards .product-card-price { flex-direction: row; align-items: baseline; gap: 8px; margin-top: 6px; }

.cart-float-bar {
    position: fixed; bottom: calc(82px + var(--mf-safe-bottom)); left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 528px; z-index: 60;
    background: var(--hz-ink); color: #fff; text-decoration: none;
    border-radius: 20px; padding: 12px 12px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: 0 2px 4px rgba(23,21,31,.12), 0 16px 32px -14px rgba(23,21,31,.6);
    animation: hzBarIn .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes hzBarIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
:root[data-theme="dark"] .cart-float-bar { background: #2A2733; }
.cart-float-count { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 700; }
.cart-float-total { font-weight: 800; font-size: 16px; }
.cart-float-label { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; background: var(--hz-gold); color: #17151F; padding: 11px 16px; border-radius: 14px; }

.hz-product-thumb-ph { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--hz-surface-2); color: var(--mf-text-muted); font-size: 20px; }

/* =====================================================================================
   SELLER + RIDER APPS
   ===================================================================================== */
.drv-status-hero {
    margin: 14px 16px; border-radius: 24px; padding: 20px;
    background: var(--hz-ink); color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--hz-shadow-lg);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.drv-status-hero.offline { background: #4A4752; }
:root[data-theme="dark"] .drv-status-hero { background: #24212C; }
.drv-status-left { display: flex; align-items: center; gap: 14px; position: relative; }
.drv-status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hz-gold); position: relative; flex-shrink: 0; }
.drv-status-hero.offline .drv-status-dot { background: rgba(255,255,255,.5); }
.drv-status-hero:not(.offline) .drv-status-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(216,154,23,.55); animation: drvPulse 1.8s ease-out infinite; }
@keyframes drvPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.drv-status-title { font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.drv-status-sub { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 3px; font-weight: 500; }
.drv-status-switch { position: relative; display: inline-block; width: 56px; height: 32px; flex-shrink: 0; }
.drv-status-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.drv-status-switch-track { position: absolute; inset: 0; background: rgba(255,255,255,.18); border-radius: 32px; cursor: pointer; transition: background .2s ease; }
.drv-status-switch-track::before { content: ''; position: absolute; height: 26px; width: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.drv-status-switch input:checked + .drv-status-switch-track { background: var(--hz-gold); }
.drv-status-switch input:checked + .drv-status-switch-track::before { transform: translateX(24px); }

.drv-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.drv-stat-card { background: var(--mf-surface-solid); border: 1px solid var(--mf-border); border-radius: 20px; padding: 16px; box-shadow: var(--mf-shadow); }
.drv-stat-num { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.drv-stat-label { font-size: 11px; color: var(--mf-text-muted); margin-top: 4px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }

.drv-wallet-card { margin: 12px 16px; background: var(--hz-gold-soft); border: 1px solid rgba(216,154,23,.25); border-radius: 22px; padding: 18px; display: flex; align-items: center; justify-content: space-between; }
.drv-wallet-label { font-size: 11px; color: #8A6410; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
:root[data-theme="dark"] .drv-wallet-label { color: var(--hz-gold); }
.drv-wallet-amount { font-size: 26px; font-weight: 800; color: var(--mf-text); margin-top: 3px; letter-spacing: -.6px; }
.drv-wallet-icon { width: 46px; height: 46px; border-radius: 15px; background: var(--hz-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
:root[data-theme="dark"] .drv-wallet-icon { color: #17151F; }

.drv-request-card { margin: 10px 16px; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); border-radius: 22px; padding: 18px; box-shadow: var(--mf-shadow); animation: drvSlideIn .3s ease; }
@keyframes drvSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.drv-request-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--hz-gold-soft); color: #8A6410; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 9px; margin-bottom: 10px; letter-spacing: .3px; }
.drv-request-store { font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.drv-request-meta { font-size: 13px; color: var(--mf-text-muted); margin-top: 3px; font-weight: 500; }
.drv-request-earn { font-weight: 800; color: var(--mf-success); font-size: 15px; }

.drv-waiting-card { margin: 26px 16px; text-align: center; padding: 30px 22px; }
.drv-waiting-icon { width: 76px; height: 76px; border-radius: 26px; background: var(--mf-surface-solid); box-shadow: var(--mf-shadow); color: var(--mf-text-muted); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; }
.drv-radar { position: relative; width: 76px; height: 76px; margin: 0 auto 16px; }
.drv-radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hz-gold); opacity: 0; animation: drvRadar 2.2s ease-out infinite; }
.drv-radar-ring:nth-child(2) { animation-delay: .7s; }
.drv-radar-ring:nth-child(3) { animation-delay: 1.4s; }
@keyframes drvRadar { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.drv-radar-center { position: absolute; inset: 22px; border-radius: 50%; background: var(--hz-ink); display: flex; align-items: center; justify-content: center; color: var(--hz-gold); }

.drv-route-card { margin: 10px 16px; background: var(--mf-surface-solid); border: 1px solid var(--mf-border); border-radius: 22px; overflow: hidden; box-shadow: var(--mf-shadow); }
.drv-route-row { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.drv-route-icon { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.drv-route-icon.pickup { background: rgba(224,123,0,.12); color: var(--mf-warning); }
.drv-route-icon.drop { background: rgba(22,163,74,.12); color: var(--mf-success); }
.drv-route-label { font-size: 10.5px; color: var(--mf-text-muted); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.drv-route-name { font-weight: 800; font-size: 15.5px; margin-top: 2px; }
.drv-route-addr { font-size: 13px; color: var(--mf-text-muted); margin-top: 3px; line-height: 1.45; }
.drv-route-divider { height: 1px; background: var(--mf-border); margin: 0 16px; }
.drv-route-nav { flex-shrink: 0; width: 40px; height: 40px; border-radius: 13px; background: var(--hz-ink); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; }

.drv-cod-banner { margin: 10px 16px; padding: 14px 16px; background: rgba(224,123,0,.09); border: 1px solid rgba(224,123,0,.22); border-radius: 18px; display: flex; align-items: center; gap: 12px; }
.drv-cod-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--mf-warning); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.drv-otp-input { font-size: 28px !important; letter-spacing: 12px !important; text-align: center; font-weight: 800; }

/* =====================================================================================
   SHARED HAZBE PIECES
   ===================================================================================== */
.hz-brandbar { display: flex; align-items: center; gap: 10px; }
.hz-brandbar img { height: 26px; width: auto; display: block; }
.hz-auth-logo { display: block; margin: 0 auto 14px; height: 84px; width: auto; }
.hz-help { font-size: 12px; color: var(--mf-text-muted); margin-top: 6px; line-height: 1.45; font-weight: 500; }
.hz-alert { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.hz-alert-danger { background: rgba(229,72,77,.1); color: #C8262C; }
.hz-alert-success { background: rgba(22,163,74,.1); color: #15803D; }

.hz-type-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hz-type-option { position: relative; }
.hz-type-option input { position: absolute; opacity: 0; pointer-events: none; }
.hz-type-option span { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 15px; border: 1.5px solid var(--mf-border); background: var(--mf-surface-solid); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, transform .12s ease; }
.hz-type-option span:active { transform: scale(.97); }
.hz-type-option span i { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.hz-type-option input:checked + span { border-color: var(--hz-ink); box-shadow: 0 0 0 3px rgba(23,21,31,.08); }
.hz-type-option input:focus-visible + span { outline: 2px solid var(--hz-ink); outline-offset: 2px; }

/* seller + rider top bars sit under the status bar inside the apps */
.mf-topbar .mf-badge { flex-shrink: 0; }

/* full-screen auth pages (seller login / register) need the status-bar gap too */
.mf-app > div[style*="min-height:100vh"] { padding-top: var(--hz-sat); }

/* ---------- motion (transform/opacity only; off for reduced motion) ---------- */
@keyframes hzRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hz-rise { animation: hzRise .45s cubic-bezier(.2,.7,.2,1) both; }
.mf-card, .store-card, .product-card, .drv-stat-card, .hz-store-info { animation: hzRise .45s cubic-bezier(.2,.7,.2,1) both; }
.product-list .product-card:nth-child(2n) { animation-delay: 40ms; }
.product-list .product-card:nth-child(n+5) { animation-delay: 80ms; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 561px) {
    .hz-hero { border-radius: 0 0 32px 32px; }
}
@media (max-width: 360px) {
    .hz-cat-grid { gap: 10px 6px; padding: 2px 12px 4px; }
    .hz-cat-name { font-size: 11px; }
    .product-list { gap: 10px; padding-left: 12px; padding-right: 12px; }
    .add-btn { padding: 7px 10px; }
}

.product-card-info .mf-badge { align-self: flex-start; }
.hz-list-cards .product-card-info { gap: 0; }

/* fixed strip behind the phone status bar on pages with a dark top (apps only; --sb is 0 in browsers) */
html.hz-dark-status body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--hz-sat); background: var(--hz-ink); z-index: 1000; pointer-events: none; }
:root[data-theme="dark"].hz-dark-status body::before { background: #1A1820; }

/* ---------- footer menu v2: floating dark dock, active tab = gold capsule ---------- */
.mf-app { padding-bottom: calc(108px + var(--mf-safe-bottom)); }
.mf-bottomnav {
    left: 12px; right: 12px; bottom: calc(12px + var(--mf-safe-bottom));
    max-width: 536px; margin: 0 auto;
    padding: 8px; gap: 4px;
    background: var(--hz-ink);
    border: 1px solid rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .06);
    border-radius: 26px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 2px 6px rgba(23, 21, 31, .18), 0 18px 36px -14px rgba(23, 21, 31, .55);
}
:root[data-theme="dark"] .mf-bottomnav { background: #24212C; border-color: rgba(255, 255, 255, .08); }
.mf-nav-item {
    flex: 1 1 0; min-width: 0; height: 52px; border-radius: 19px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: rgba(255, 255, 255, .58); font-size: 10.5px; font-weight: 700; letter-spacing: .1px; padding: 0 6px;
    transition: flex-grow .28s cubic-bezier(.2,.7,.2,1), background .2s ease, color .2s ease;
    white-space: nowrap; overflow: hidden; position: relative;
}
.mf-nav-item i { width: auto; height: auto; font-size: 18px; background: none !important; border-radius: 0; color: inherit !important; }
.mf-nav-item:active { transform: scale(.94); }
.mf-nav-item.active {
    flex-grow: 1.7; flex-direction: row; gap: 8px;
    background: var(--hz-gold); color: #17151F; font-size: 13px; font-weight: 800;
}
.mf-nav-item.active i { font-size: 17px; }
.mf-nav-item .mf-badge { position: absolute; top: 5px; right: 10px; padding: 2px 6px; font-size: 10px; background: var(--mf-danger); color: #fff; margin: 0 !important; }
.mf-nav-item.active .mf-badge { position: static; background: #17151F; color: #fff; }
.cart-float-bar { bottom: calc(92px + var(--mf-safe-bottom)); }
.product-list { padding-bottom: 180px; }
@media (max-width: 380px) {
    .mf-nav-item { font-size: 9.5px; padding: 0 3px; }
    .mf-nav-item.active { font-size: 12px; gap: 6px; flex-grow: 1.9; }
}

/* business category tiles with a real photo */
.hz-cat-photo { overflow: hidden; padding: 0; box-shadow: 0 1px 2px rgba(23,21,31,.06), 0 8px 18px -10px rgba(23,21,31,.35); }
.hz-cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; transition: transform .3s ease; }
.hz-cat:active .hz-cat-photo img { transform: scale(1.06); }

/* =====================================================================================
   PRODUCT VIEWER: reels (swipe up/down) + photos (swipe left/right) + Buy Now
   ===================================================================================== */
body:has(.hz-reels) { background: #000; overflow: hidden; }
body:has(.hz-reels) .mf-app { padding-bottom: 0; }
.hz-reels {
    position: fixed; top: 0; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto; z-index: 1;
    overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; background: #000; scrollbar-width: none;
}
.hz-reels::-webkit-scrollbar { display: none; }
.hz-reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.hz-reel-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hz-reel-track::-webkit-scrollbar { display: none; }
.hz-reel-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; background: #000; }
.hz-reel-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-reel-slide.is-photo::before { content: ''; position: absolute; inset: -40px; background: var(--bg) center / cover no-repeat; filter: blur(28px) brightness(.55); transform: scale(1.1); }
.hz-reel-slide.is-photo img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.hz-reel-slide::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 48%, rgba(0,0,0,.78) 100%); }
.hz-reel-play { position: absolute; z-index: 2; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.8); width: 72px; height: 72px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 26px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.hz-reel.paused .hz-reel-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hz-reel-dots { position: absolute; z-index: 3; left: 0; right: 0; top: calc(66px + var(--hz-sat)); display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.hz-reel-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); transition: width .2s ease, background .2s ease; display: flex; align-items: center; justify-content: center; }
.hz-reel-dots span.vid { width: 14px; height: 14px; border-radius: 7px; font-size: 6px; color: #17151F; background: rgba(255,255,255,.55); }
.hz-reel-dots span.on { width: 18px; background: #fff; }
.hz-reel-dots span.vid.on { width: 22px; background: var(--hz-gold); }

.hz-reel-top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--hz-sat)) 14px 10px; }
.hz-reel-btn { position: relative; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; border: none; background: rgba(0,0,0,.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none; cursor: pointer; }
.hz-reel-btn:active { transform: scale(.92); }
.hz-reel-btn .hz-dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--hz-gold); color: #17151F; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hz-reel-btn .hz-dot[hidden] { display: none; }
.hz-reel-store { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 14.5px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hz-reel-store img { width: 30px; height: 30px; border-radius: 10px; object-fit: cover; border: 1.5px solid rgba(255,255,255,.8); }
.hz-reel-store span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hz-reel-pips { position: fixed; z-index: 10; right: max(10px, calc(50% - 270px)); top: 42%; display: flex; flex-direction: column; gap: 6px; }
.hz-reel-pips span { width: 4px; height: 16px; border-radius: 2px; background: rgba(255,255,255,.4); transition: height .2s ease, background .2s ease; }
.hz-reel-pips span.on { height: 28px; background: #fff; }

.hz-reel-hint { position: fixed; z-index: 11; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; transition: opacity .5s ease; }
.hz-reel-hint span { background: rgba(0,0,0,.62); color: #fff; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hz-reel-hint.out { opacity: 0; }

.hz-reel-info { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 0 16px calc(16px + var(--mf-safe-bottom)); color: #fff; pointer-events: none; }
.hz-reel-info > * { pointer-events: auto; }
.hz-reel-name { font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hz-reel-rx { display: inline-block; vertical-align: middle; font-size: 11px; padding: 3px 7px; border-radius: 7px; background: #fff; color: #17151F; margin-left: 4px; }
.hz-reel-sub { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.78); font-weight: 600; }
.hz-reel-price { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.hz-reel-price strong { font-size: 22px; font-weight: 800; }
.hz-reel-price s { color: rgba(255,255,255,.6); font-size: 13.5px; font-weight: 600; }
.hz-reel-price em { font-style: normal; font-size: 11px; font-weight: 800; background: var(--mf-success); padding: 3px 7px; border-radius: 7px; }
.hz-reel-desc { margin: 8px 0 0; font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.45; max-height: 2.9em; overflow: hidden; }
.hz-reel-actions { display: flex; gap: 10px; margin-top: 14px; }
.hz-reel-actions form { flex: 1; margin: 0; }
.hz-reel-add, .hz-reel-buy { width: 100%; height: 52px; border-radius: 16px; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: none; transition: transform .12s ease; }
.hz-reel-add { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13.5px; padding: 0 10px; }
.hz-reel-add span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-reel-buy { background: var(--hz-gold); color: #17151F; box-shadow: 0 10px 24px -12px rgba(0,0,0,.8); }
.hz-reel-add:active, .hz-reel-buy:active { transform: scale(.97); }
.hz-reel-add:disabled { opacity: .6; }
.hz-reel-soldout { flex: 1; text-align: center; padding: 15px; border-radius: 16px; background: rgba(255,255,255,.14); font-weight: 800; }
body:has(.hz-reels) .mf-toast { bottom: 170px; }

/* store grid: reels badge + tappable image */
.product-card-link { display: block; text-decoration: none; color: inherit; }
.product-card-reel { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; background: rgba(23,21,31,.82); color: #fff; font-size: 10.5px; font-weight: 800; padding: 5px 8px; border-radius: 9px; }
.product-card-reel i { font-size: 9px; color: var(--hz-gold); }
.product-card-name.product-card-link { display: -webkit-box; }
