/* ===== Home page v2 (My G.V. style) ===== */

/* --- Header (mobile-first, hamburger + logo + actions) --- */
.bz-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.bz-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bz-hamburger {
    width: 36px; height: 36px;
    border: 0; background: transparent;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
}
.bz-hamburger:hover { background: var(--bg); }
.bz-hamburger svg { width: 22px; height: 22px; }
.bz-header .bz-logo {
    gap: 8px;
    flex-shrink: 0;
}
.bz-header .bz-logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.bz-header-spacer { flex: 1; }
.bz-header-actions {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}

/* wallet pill — orange/yellow like reference */
.bz-wallet-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #FFC93D 0%, #FF8A3D 100%);
    color: #4A2E00;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 6px 14px rgba(255,138,61,.35);
    transition: filter .15s;
}
.bz-wallet-pill:hover { filter: brightness(1.05); color: #4A2E00; }
.bz-wallet-ico { display: inline-flex; }
.bz-wallet-ico svg { width: 16px; height: 16px; }

/* cart icon with badge */
.bz-cart-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.bz-cart-btn:hover { background: var(--brand-100); color: var(--brand-700); }
.bz-cart-btn svg { width: 18px; height: 18px; }
.bz-cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* generic icon button (login) */
.bz-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.bz-icon-btn:hover { background: var(--brand-100); color: var(--brand-700); }
.bz-icon-btn svg { width: 18px; height: 18px; }

.bz-header-signup { display: none; }
@media (min-width: 640px) {
    .bz-header-signup { display: inline-flex; }
}

/* drawer (slide-in nav on mobile) — stunning pink/violet gradient */
.bz-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 82%; max-width: 340px;
    background:
        radial-gradient(600px 400px at 0% 0%,    rgba(255, 138, 200, .35), transparent 60%),
        radial-gradient(500px 360px at 100% 20%, rgba(186, 153, 255, .35), transparent 60%),
        radial-gradient(420px 320px at 50% 100%, rgba(255, 181, 162, .28), transparent 60%),
        linear-gradient(160deg, #FFF5FA 0%, #F6EFFF 50%, #F0EAFF 100%);
    box-shadow: 12px 0 40px rgba(60, 16, 110, .25);
    padding: 0 0 18px;
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    z-index: 100;
    display: flex; flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.bz-menu-open .bz-drawer { transform: translateX(0); }
body.bz-menu-open::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(28, 8, 70, .45);
    z-index: 99;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: bzOverlayIn .25s ease;
}
@keyframes bzOverlayIn { from { opacity: 0; } to { opacity: 1; } }

/* top — logo + close */
.bz-drawer-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 18px 12px;
}
.bz-drawer-logo {
    display: inline-flex; align-items: center;
    text-decoration: none;
    line-height: 0;
}
.bz-drawer-logo img {
    height: 48px; width: auto; object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(180, 80, 200, .25));
}
.bz-drawer-close {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(8px);
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(60, 16, 110, .12);
    transition: transform .15s, background .15s;
}
.bz-drawer-close:hover { background: #fff; transform: rotate(90deg); }
.bz-drawer-close svg { width: 18px; height: 18px; }

/* nav links */
.bz-drawer-nav {
    display: flex; flex-direction: column;
    padding: 10px 14px;
    gap: 4px;
    flex: 1;
}
.bz-drawer-nav a {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .65);
    backdrop-filter: blur(6px);
    transition: background .15s, transform .15s, border-color .15s;
}
.bz-drawer-nav a:hover {
    background: rgba(255, 255, 255, .85);
    transform: translateX(3px);
}
.bz-drawer-nav a.active {
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(107, 43, 254, .3);
}
.bz-drawer-nav a svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--brand-700);
}
.bz-drawer-nav a.active svg { color: #fff; }

/* bottom — cart + help pills */
.bz-drawer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 18px 6px;
    border-top: 1px solid rgba(255, 255, 255, .6);
    margin-top: 8px;
}
.bz-drawer-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .8);
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.86rem;
    transition: background .15s;
}
.bz-drawer-pill:hover { background: #fff; }
.bz-drawer-pill-ico {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bz-drawer-pill-ico svg { width: 16px; height: 16px; }
.bz-drawer-pill em {
    font-style: normal;
    background: #E5006D;
    color: #fff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    margin-left: 4px;
}

/* hide top strip + nav links on home (we use drawer + bottomnav) */
.bz-topstrip { display: none; }
.bz-nav { display: none !important; }
.bz-search-wrap { display: none !important; }

/* --- Hero carousel --- */
.bz-home-hero {
    padding: 14px 16px 0;
}
.bz-hero-track {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 180px;
}
.bz-hero-slide {
    display: none;
    align-items: stretch;
    justify-content: space-between;
    padding: 22px 22px;
    border-radius: 18px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    width: 100%;
}
.bz-hero-slide.is-active { display: flex; }
.bz-hero-text {
    display: flex; flex-direction: column; justify-content: center;
    gap: 6px;
    max-width: 60%;
}
.bz-hero-eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bz-hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}
.bz-hero-sub {
    font-size: 0.92rem;
    opacity: .9;
    margin-top: 2px;
}
.bz-hero-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    width: fit-content;
}
.bz-hero-img {
    width: 130px; height: auto;
    object-fit: contain;
    align-self: center;
    flex-shrink: 0;
}
.bz-hero-dots {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 10px;
}
.bz-hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(107,43,254,.25);
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.bz-hero-dot.active {
    background: var(--brand-600);
    transform: scale(1.2);
}

/* --- Home search bar --- */
.bz-home-search {
    padding: 16px 16px 4px;
}
.bz-home-search-wrap {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    box-shadow: 0 2px 6px rgba(20,8,55,.04);
}
.bz-home-search-wrap svg { width: 18px; height: 18px; color: var(--ink-2); flex-shrink: 0; }
.bz-home-search-wrap input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font: 500 0.95rem/1 'Inter', sans-serif;
    color: var(--ink);
}
.bz-home-search-wrap input::placeholder { color: var(--muted); }

/* --- Category 6-tile grid (full-tile background colour) --- */
.bz-home-cats {
    padding: 12px 16px 0;
}
.bz-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.bz-cat-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none;
    border-radius: 16px;
    padding: 16px 8px 14px;
    transition: transform .15s, box-shadow .15s, filter .15s;
    color: var(--ink);
}
.bz-cat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(20,8,55,.1); filter: brightness(1.03); }
.bz-cat-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
}
.bz-cat-icon svg { width: 32px; height: 32px; }
.bz-cat-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    line-height: 1.15;
}
.bz-cat-sub {
    font-size: 0.66rem;
    color: var(--ink-2);
    text-align: center;
    line-height: 1.15;
    font-weight: 500;
}
@media (min-width: 640px) {
    .bz-cat-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
    .bz-cat-tile { padding: 16px 6px; }
}
@media (min-width: 880px) {
    .bz-cat-grid { gap: 14px; }
}

/* --- Section + heading --- */
.bz-home-section {
    padding: 18px 16px 0;
}
.bz-section-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 12px;
    gap: 12px;
}
.bz-section-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0;
}
.bz-section-head .bz-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-700);
    text-decoration: none;
}

/* --- Recharge & Bill Payment row --- */
.bz-services-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 6px;
    border: 1px solid var(--line);
}
.bz-service-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-decoration: none;
    padding: 6px 2px;
    border-radius: 10px;
    transition: background .15s;
}
.bz-service-tile:hover { background: var(--bg); }
.bz-service-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F4ECFF, #E1ECFF);
    display: flex; align-items: center; justify-content: center;
}
.bz-service-icon svg { width: 24px; height: 24px; }
.bz-service-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    line-height: 1.15;
}
.bz-service-name span {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--muted);
}
@media (max-width: 720px) {
    .bz-services-row { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 721px) and (max-width: 1100px) {
    .bz-services-row { grid-template-columns: repeat(4, 1fr); }
}

/* --- Top Selling Brands strip --- */
.bz-brand-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge legacy */
}
.bz-brand-strip::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.bz-brand-strip-tile {
    flex: 0 0 auto;
    width: 110px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .15s, box-shadow .15s;
}
.bz-brand-strip-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,8,55,.08); }
.bz-brand-strip-logo {
    width: 48px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    overflow: visible;
}
.bz-brand-strip-logo img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    display: block;
}
.bz-brand-strip-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    line-height: 1.15;
}
.bz-brand-strip-save {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-700);
}

/* --- Trust strip --- */
.bz-home-trust {
    padding: 18px 16px 0;
}
.bz-trust {
    background: #FFE8E8;
    border-radius: 14px;
    padding: 14px 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.bz-trust-item {
    display: flex; align-items: center; gap: 8px;
    color: var(--ink);
}
.bz-trust-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bz-trust-icon svg { width: 18px; height: 18px; }
.bz-trust-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}
.bz-trust-item div div {
    font-size: 0.62rem;
    color: var(--ink-2);
    line-height: 1.15;
}
@media (max-width: 540px) {
    .bz-trust { grid-template-columns: repeat(2, 1fr); }
}

/* --- Footer hide on mobile --- */
@media (max-width: 880px) {
    .bz-footer { display: none; }
}

/* --- Bottom nav (mobile) — vibrant violet, rounded top, professional --- */
.bz-bottomnav {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 40;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(160deg, #7B3CFF 0%, #6B2BFE 55%, #5A1AD9 100%);
    box-shadow:
        0 14px 32px rgba(91, 28, 220, .35),
        0 4px 10px rgba(91, 28, 220, .18),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    border-radius: 22px 22px 22px 22px;
    gap: 4px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.bz-bottomnav::before {
    /* subtle glossy highlight */
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.18), transparent 60%),
        radial-gradient(80% 50% at 100% 100%, rgba(255, 138, 200, .15), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.bz-bottomnav-item {
    position: relative; z-index: 1;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    border-radius: 14px;
    transition: background .2s, color .2s, transform .2s;
    min-height: 56px;
}
.bz-bottomnav-item:hover { color: #fff; }
.bz-bottomnav-item:hover .bz-bottomnav-ico { background: rgba(255,255,255,.18); }
.bz-bottomnav-ico {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.bz-bottomnav-ico svg { width: 21px; height: 21px; color: rgba(255,255,255,.9); }
.bz-bottomnav-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    color: rgba(255, 255, 255, .9);
}
.bz-bottomnav-item.active {
    color: #fff;
}
.bz-bottomnav-item.active .bz-bottomnav-ico {
    background: #FFC93D;
    color: #4A2E00;
    box-shadow:
        0 6px 14px rgba(255, 184, 60, .55),
        inset 0 1px 0 rgba(255, 255, 255, .45);
    transform: translateY(-3px);
}
.bz-bottomnav-item.active .bz-bottomnav-ico svg { color: #4A2E00; stroke: #4A2E00; }
.bz-bottomnav-item.active .bz-bottomnav-lbl { color: #fff; font-weight: 800; }
main { padding-bottom: 96px; }

/* hide bottom nav on admin/staff/auth layouts — site layout uses it only */
@media (min-width: 880px) {
    .bz-bottomnav { display: none; }
    main { padding-bottom: 0; }
}

/* --- FAQ accordion (help page) --- */
.bz-faq-list { display: flex; flex-direction: column; gap: 10px; }
.bz-faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .15s;
}
.bz-faq-item[open] {
    box-shadow: 0 8px 18px rgba(20,8,55,.08);
    border-color: var(--brand-200);
}
.bz-faq-item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
}
.bz-faq-item summary::-webkit-details-marker { display: none; }
.bz-faq-item summary svg {
    width: 18px; height: 18px;
    color: var(--ink-2);
    transition: transform .2s;
    flex-shrink: 0;
}
.bz-faq-item[open] summary svg { transform: rotate(180deg); color: var(--brand-700); }
.bz-faq-body {
    padding: 0 18px 18px;
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* --- Home page voucher grid (re-use) --- */
.bz-home-section .bz-grid-4 {
    grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) {
    .bz-home-section .bz-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Hero image override for dark backgrounds --- */
@media (max-width: 480px) {
    .bz-hero-slide { padding: 16px; }
    .bz-hero-title { font-size: 1.45rem; }
    .bz-hero-img { width: 90px; }
}