/* =====================================================================
   Gadgetz-style header  (light-teal top row + category bar)
   Load AFTER style.css and the dynamic-theme <style> block.
   Colours taken from gadgetz.com.bd:
     top row   #ffffff   category bar #ffffff   orange #ff6700 / #fe6905
   ===================================================================== */
:root {
    --gz-orange: var(--primary, #ff6700);
    --gz-orange-2: var(--primary, #fe6905);
    --gz-top-bg: #ffffff;
    --gz-bar-bg: #ffffff;
    --gz-text: #333333;
}

/* ---------- shared (all screens) ---------- */
body.app-home .site-header {
    background: var(--gz-top-bg);
    border-bottom: 1px solid #fff;
    box-shadow: none;
}

body.app-home .site-header.is-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.app-home .logo img {
    height: auto;
    width: auto;
    max-height: 52px;
    max-width: 210px;
    object-fit: contain;
}

/* search box: white, orange border, orange SEARCH button with notch */
body.app-home .header-search,
body.app-home .mobile-search {
    background: #fff;
    border: 1px solid var(--gz-orange);
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
    align-items: stretch;
}

body.app-home .header-search:focus-within,
body.app-home .mobile-search:focus-within {
    border-color: var(--gz-orange);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 255, 103, 0), 0.14);
}

body.app-home .header-search input,
body.app-home .mobile-search input {
    padding: 0 14px;
    font-size: 14px;
    color: var(--gz-text);
}

body.app-home .header-search input::placeholder {
    color: #8c8c8c;
}

body.app-home .header-search .search-submit,
body.app-home .mobile-search .search-submit {
    position: relative;
    width: auto;
    height: auto;
    min-width: 76px;
    padding: 0 16px;
    border-radius: 0 7px 7px 0;
    background: var(--gz-orange);
    color: #fff;
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

body.app-home .header-search .search-submit:hover,
body.app-home .mobile-search .search-submit:hover {
    background: var(--primary-dark, #e55c00);
}

/* little arrow notch on the left of the button */
body.app-home .header-search .search-submit::before,
body.app-home .mobile-search .search-submit::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    margin-top: -6px;
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent var(--gz-orange) transparent transparent;
}

body.app-home .header-search .search-submit:hover::before {
    border-right-color: var(--primary-dark, #e55c00);
}

.search-submit .ss-icon { display: none; }
.search-submit .ss-text { display: inline; }

/* action icons */
.offers-btn { display: none; }

body.app-home .header-actions .btn-track,
body.app-home .header-actions .profile-btn,
body.app-home .header-actions .cart-btn {
    color: var(--gz-text);
    background: none;
}

body.app-home .cart-count {
    top: -7px;
    right: -9px;
    width: 18px;
    height: 18px;
    background: var(--gz-orange);
    color: #fff;
    border: 0;
    font-size: 10px;
    font-weight: 700;
}

/* ---------- Desktop ---------- */
@media (min-width: 901px) {

    /* row 1 : logo | search | actions */
    body.app-home .header-inner {
        display: grid !important;
        grid-template-columns: 1fr minmax(0, 598px) 1fr;
        align-items: center;
        column-gap: 24px;
        height: 75px;
        padding: 0;
        justify-content: stretch;
    }

    body.app-home .menu-toggle,
    body.app-home .main-nav,
    body.app-home .header-search-toggle {
        display: none !important;
    }

    /* logo is always centred inside the left column (left edge -> search box) */
    body.app-home .logo {
        justify-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* header search is ALWAYS visible on desktop (no scroll-docking) */
    body.app-home .site-header .header-search {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        width: 100%;
        max-width: none;
        height: 40px;
        margin: 0;
        padding: 0;
        flex: none;
    }

    body.app-home .header-search input {
        font-size: 14px;
    }

    /* the big overlay search on the home banner is no longer needed */
    body.has-hero-search .hero-search-wrap {
        display: none !important;
    }

    .hero-banner--overlay .hero-dots { bottom: 16px; }
    .hero-banner--overlay .hero-nav  { top: 50%; }

    /* right side buttons */
    body.app-home .header-actions {
        justify-self: end;
        margin-left: 0;
        gap: 18px;
        display: flex;
        align-items: center;
    }

    .offers-btn {
        order: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 8px;
        background: var(--gz-orange-2);
        color: #fff !important;
        font-family: 'Poppins', 'Roboto', sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
        box-shadow: 0 0 5px -1px rgba(var(--primary-rgb, 255, 103, 0), 0.4);
        transition: opacity 0.2s;
    }

    .offers-btn:hover { opacity: 0.88; }
    .offers-btn svg { width: 21px; height: 22px; margin-top: -2px; }

    body.app-home .header-actions .btn-track   { order: 2; }
    body.app-home .header-actions .cart-wrap   { order: 3; }
    body.app-home .header-actions .profile-btn { order: 5; }

    body.app-home .header-actions .profile-btn,
    body.app-home .header-actions .cart-btn,
    body.app-home .header-actions .btn-track {
        padding: 0;
        font-size: 26px;
        gap: 0;
        position: relative;
    }

    body.app-home .header-actions .profile-label,
    body.app-home .header-actions .cart-label,
    body.app-home .header-actions .track-label,
    body.app-home .header-actions .cart-amount {
        display: none !important;
    }

    body.app-home .header-actions .btn-track .wd-i,
    body.app-home .header-actions .profile-btn .wd-i,
    body.app-home .header-actions .cart-btn .wd-i {
        color: var(--gz-text);
    }

    body.app-home .header-actions .cart-wrap { display: block !important; }

    /* row 2 : category bar */
    body.app-home .header-category-bar {
        display: block !important;
        background: var(--gz-bar-bg);
        border: 0;
        box-shadow: 0 1px 2px -1px rgba(199, 114, 57, 0.32);
        position: relative;
        z-index: 501;
    }

    body.app-home .header-category-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        min-height: 42px;
    }

    body.app-home .header-cat-list {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
    }

    body.app-home .header-category-inner > .header-cat-link,
    body.app-home .header-cat-list > .header-cat-link,
    body.app-home .header-cat-list > .header-cat-item {
        border: 0;
    }

    body.app-home .header-cat-link {
        height: 42px;
        padding: 0 12px;
        background: none;
        color: var(--gz-text);
        font-family: 'Poppins', 'Hind Siliguri', 'Roboto', sans-serif;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0;
        text-transform: uppercase;
        gap: 2px;
    }

    body.app-home .header-cat-item.has-children > .header-cat-link { gap: 3px; }

    body.app-home .header-cat-chevron {
        color: #9aa5a5;
        font-size: 10px;
    }

    /* hover / active : blue → orange gradient text like gadgetz.com.bd */
    body.app-home .header-cat-link:hover,
    body.app-home .header-cat-link.active,
    body.app-home .header-cat-item:hover > .header-cat-link {
        background-image: linear-gradient(90deg, var(--primary-dark, #2f4be8) 0%, var(--primary-dark, #2f4be8) 42%, var(--primary) 58%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    body.app-home .header-cat-link:hover .header-cat-chevron,
    body.app-home .header-cat-link.active .header-cat-chevron {
        -webkit-text-fill-color: #9aa5a5;
    }

    /* dropdowns */
    body.app-home .header-cat-dropdown {
        border-radius: 0 0 8px 8px;
        border-top: 2px solid var(--gz-orange);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    }

    body.app-home .header-cat-dropdown a,
    body.app-home .header-cat-dropdown .header-sub-link {
        color: var(--gz-text);
        font-size: 14px;
        font-weight: 500;
        text-transform: none;
        -webkit-text-fill-color: currentColor;
    }

    body.app-home .header-cat-dropdown a:hover,
    body.app-home .header-cat-dropdown .header-sub-link:hover,
    body.app-home .header-child-dropdown a:hover {
        background: var(--primary-soft, #fff4ec);
        color: var(--gz-orange);
        -webkit-text-fill-color: var(--gz-orange);
    }

    /* optional right-side buttons (Compare / Verify Warranty) */
    .header-bar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
        padding: 4px 0;
    }

    .gz-bar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 6px 12px;
        min-height: 31px;
        border-radius: 6px;
        background: var(--gz-orange-2);
        color: #fff;
        font-family: 'Poppins', 'Roboto', sans-serif;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.15;
        text-align: center;
        transition: opacity 0.2s;
    }

    .gz-bar-btn:hover { opacity: 0.85; }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 900px) {

    /* header is always visible (no hide-until-scroll) */
    body.app-home .site-header,
    body.has-hero-search .site-header,
    body.has-hero-search:not(.search-docked) .site-header,
    body.has-hero-search.search-docked .site-header {
        position: sticky !important;
        top: var(--notice-height) !important;
        left: auto;
        right: auto;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* row 1: menu | logo | cart account track   -   row 2: search */
    body.app-home .header-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        grid-template-areas:
            "menu logo actions"
            "search search search" !important;
        align-items: center;
        gap: 8px 6px;
        padding: 8px 12px 10px;
        height: auto;
    }

    body.app-home .menu-toggle {
        grid-area: menu;
        justify-self: start;
        display: flex !important;
        width: 32px;
        height: 32px;
        background: none;
        color: var(--gz-orange);
        font-size: 22px;
    }

    body.app-home .menu-toggle .wd-svg { width: 22px; height: 22px; }

    body.app-home .logo {
        grid-area: logo;
        justify-self: center;
    }

    body.app-home .logo img {
        max-width: 130px;
        max-height: 40px;
    }

    body.app-home .header-actions {
        grid-area: actions;
        justify-self: end;
        gap: 12px;
    }

    body.app-home .header-actions .cart-wrap { display: block !important; order: 1; }
    body.app-home .header-actions .profile-btn { order: 2; }
    body.app-home .header-actions .btn-track { order: 3; }
    body.app-home .header-actions .header-search-toggle,
    body.app-home .header-actions .offers-btn { display: none !important; }

    body.app-home .header-actions .profile-btn,
    body.app-home .header-actions .btn-track {
        display: inline-flex !important;
    }

    body.app-home .header-actions .cart-btn,
    body.app-home .header-actions .profile-btn,
    body.app-home .header-actions .btn-track {
        width: auto;
        height: auto;
        padding: 0;
        gap: 0;
        font-size: 21px;
        color: var(--gz-text);
        position: relative;
    }

    body.app-home .header-actions .cart-label,
    body.app-home .header-actions .profile-label,
    body.app-home .header-actions .track-label,
    body.app-home .header-actions .cart-amount {
        display: none !important;
    }

    body.app-home .header-actions .btn-track .wd-i,
    body.app-home .header-actions .profile-btn .wd-i,
    body.app-home .header-actions .cart-btn .wd-i {
        color: var(--gz-text);
    }

    body.app-home .cart-count {
        top: -7px;
        right: -8px;
        width: 15px;
        height: 15px;
        font-size: 9px;
    }

    /* search row is always visible */
    body.app-home .site-header .header-search,
    body.app-home .site-header .mobile-search {
        grid-area: search;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        animation: none !important;
        width: 100%;
        height: 38px;
        margin: 0;
        flex: none;
    }

    body.app-home .header-search input,
    body.app-home .mobile-search input {
        font-size: 13px;
        padding: 0 12px;
    }

    body.app-home .header-search .search-submit,
    body.app-home .mobile-search .search-submit {
        min-width: 72px;
        padding: 0 14px;
        font-size: 11.5px;
        border-radius: 0 7px 7px 0;
    }

    body.app-home .header-search .search-submit::before,
    body.app-home .mobile-search .search-submit::before {
        display: block;
    }

    .search-submit .ss-text { display: inline; }
    .search-submit .ss-icon { display: none; }

    /* hero: overlay search is replaced by the header search */
    body.has-hero-search .hero-search-wrap { display: none !important; }
    .hero-banner--overlay .hero-dots { top: auto; bottom: 8px; }
    .hero-banner--overlay .hero-nav  { top: 50%; }

    /* shorter hero banner on mobile (was 56vw). Change --gz-hero-h-mobile to taste. */
    :root { --gz-hero-h-mobile: 44vw; }

    html body .hero-banner--overlay .hero-slider {
        height: var(--gz-hero-h-mobile);
        min-height: 150px;
    }

    /* hide on scroll down / show on scroll up (see gadgetz-header.js) */
    body.app-home .site-header {
        transition: transform 0.3s ease, box-shadow 0.2s ease;
        will-change: transform;
    }

    html body.app-home .site-header.gz-hide {
        transform: translateY(-110%) !important;
        box-shadow: none;
    }
}

/* =====================================================================
   Mobile bottom navigation  (white floating bar, primary line icons, black text)
   Home / Shop / Cart / Wishlist / More
   ===================================================================== */
@media (max-width: 900px) {
    html body.app-home .mobile-bottom-nav.gz-bottom-nav {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(9px + env(safe-area-inset-bottom, 0px));
        max-width: none;
        margin: 0;
        padding: 8px 6px;
        background: #fff !important;
        border: 1px solid #ececec;
        border-radius: 18px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 300;
    }

    html body.app-home .gz-bottom-nav a.gz-nav-item {
        flex: 1;
        min-width: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 2px 0;
        margin: 0;
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        font-size: 10.5px;
        font-weight: 500;
        line-height: 1.1;
        color: #111;
        text-align: center;
        white-space: nowrap;
    }

    html body.app-home .gz-bottom-nav a.gz-nav-item span {
        color: #111;
    }

    html body.app-home .gz-bottom-nav a.gz-nav-item svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        color: var(--primary);
    }

    html body.app-home .gz-bottom-nav a.gz-nav-item.active span {
        font-weight: 700;
    }

    html body.app-home .gz-bottom-nav a.gz-nav-item.active svg {
        stroke-width: 2.2;
    }

    html body.app-home .gz-bottom-nav .gz-nav-badge {
        position: absolute;
        top: -3px;
        left: calc(50% + 4px);
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        border-radius: 10px;
        background: var(--primary);
        color: #fff;
        font-size: 9px;
        font-style: normal;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid #fff;
        box-sizing: border-box;
        line-height: 1;
    }

    html body.app-home .gz-bottom-nav .gz-nav-badge[hidden] {
        display: none;
    }

    /* room for the floating bar */
    html body.app-home {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    html body.app-home .site-footer {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    /* "More" sheet sits above the floating bar */
    html body .more-sheet-panel {
        bottom: calc(89px + env(safe-area-inset-bottom, 0px));
    }
}

/* support (chat) floating button: sits above the floating bottom bar on mobile */
@media (max-width: 767px) {
    html body #gcc-toggle {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* tooltip + options menu move up with the button */
    html body #sup-tip {
        bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html body #sup-menu {
        bottom: calc(146px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* =====================================================================
   Unified product card  (used on EVERY page) + Flash Sale / Hot Deals box
   ===================================================================== */
html body .product-card.gz-fc {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 6px 6px 8px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html body .product-card.gz-fc:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, #fff);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.gz-fc .wl-btn { top: 12px; right: 12px; }

.gz-fc-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f4;
}

.gz-fc-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gz-fc-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.gz-fc-out {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: center;
}

.gz-fc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 2px;
}

.gz-fc-title {
    margin: 8px 0 6px;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.gz-fc-title a { color: #222; }
.gz-fc-title a:hover { color: var(--primary); }

.gz-fc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: auto;
    padding: 7px 0 8px;
    border-top: 1px solid #ececec;
}

.gz-fc-price b {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
}

.gz-fc-price del { font-size: 13px; color: #9a9a9a; }

/* Order Now (big)  +  cart icon (small) */
.gz-fc-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.gz-fc-actions .gz-order {
    flex: 1;
    min-width: 0;
    padding: 9px 6px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.gz-fc-actions .gz-order:hover { opacity: 0.88; }

.gz-fc-actions .gz-cartbtn {
    flex: 0 0 38px;
    width: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: var(--primary-soft, #f3e8f7);
    background: color-mix(in srgb, var(--primary) 14%, #fff);
    color: var(--primary);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.gz-fc-actions .gz-cartbtn:hover {
    background: var(--primary);
    color: #fff;
}

.product-grid > .col-12,
.product-grid > .shop-empty { grid-column: 1 / -1; }

/* ---------- Flash Sale / Hot Deals box ---------- */
.gz-flash { margin: 18px 0 10px; }

.gz-flash-box {
    padding: 12px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: var(--primary);
    background: linear-gradient(145deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 62%, #fff) 100%);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}

/* Hot Deals: light version of the same box */
.gz-flash--hot .gz-flash-box {
    border: 2px solid color-mix(in srgb, var(--primary) 35%, #fff);
    background: color-mix(in srgb, var(--primary) 9%, #fff);
    box-shadow: none;
}

.gz-flash--hot .gz-flash-head { border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff); }

.gz-flash-box .gz-fc { border-color: transparent; }
.gz-flash--hot .gz-flash-box .gz-fc { border-color: #ececec; }

.gz-flash-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #fff;
}

.gz-flash-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: #222;
    white-space: nowrap;
}

.gz-flash-title span { color: var(--primary); }

.gz-flash-line {
    flex: 1;
    height: 1px;
    min-width: 20px;
    background: #e6e6e6;
}

.gz-flash-all {
    flex-shrink: 0;
    padding: 5px 20px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}

.gz-flash-all:hover { background: var(--primary); color: #fff; }

.gz-flash-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.gz-flash-timer i { color: var(--primary); margin-right: 2px; font-size: 14px; }

.gz-flash-timer b {
    min-width: 26px;
    padding: 3px 5px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.gz-flash-timer small { margin-right: 4px; font-size: 11px; }

.gz-flash-wrap { position: relative; }

.gz-flash-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gz-flash-track::-webkit-scrollbar { display: none; }

.gz-flash-track .gz-fc {
    flex: 0 0 calc((100% - 50px) / 6);
    scroll-snap-align: start;
}

.gz-flash-nav {
    position: absolute;
    top: 42%;
    z-index: 8;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transform: translateY(-50%);
}

.gz-flash-nav[hidden] { display: none; }
.gz-flash-nav svg { width: 20px; height: 20px; }
.gz-flash-prev { left: -10px; }
.gz-flash-next { right: -10px; }

@media (max-width: 1100px) {
    .gz-flash-track .gz-fc { flex-basis: calc((100% - 30px) / 4); }
}

@media (max-width: 900px) {
    .gz-flash-track .gz-fc { flex-basis: calc((100% - 20px) / 3); }
}

@media (max-width: 767px) {
    html body .product-card.gz-fc { padding: 5px 5px 7px; }
    .gz-fc-title { font-size: 13px; }
    .gz-fc-price b { font-size: 16px; }
    .gz-fc-actions { gap: 5px; }
    .gz-fc-actions .gz-order { font-size: 13px; padding: 8px 4px; }
    .gz-fc-actions .gz-cartbtn { flex-basis: 34px; width: 34px; font-size: 14px; }

    .gz-flash { margin: 12px 0 6px; }
    .gz-flash-box { padding: 8px; border-radius: 12px; }
    .gz-flash-head { gap: 8px; padding: 8px 10px; margin-bottom: 8px; }
    .gz-flash-title { font-size: 19px; }
    .gz-flash-all { padding: 4px 14px; font-size: 13px; margin-left: auto; }
    .gz-flash-line, .gz-flash-timer, .gz-flash-nav { display: none; }
    .gz-flash-track { gap: 8px; }
    .gz-flash-track .gz-fc { flex-basis: calc((100% - 8px) / 2.2); }
}

/* =====================================================================
   Home category cards: no lift / no shadow on hover (only the stroke colour changes),
   one row + blurred peek of the rest + "See More" button  (desktop AND mobile)
   ===================================================================== */
html body .top-categories-section .top-cat-item:hover {
    transform: none !important;
}

html body .top-categories-section .top-cat-item:hover .top-cat-card {
    border-color: var(--primary);
    box-shadow: none !important;
}

.cat-fade,
.cat-more-wrap { display: none; }

.top-categories-section .category-menu-slider {
    position: relative;
}

.top-categories-section .category-menu-viewport {
    position: relative;
    overflow: hidden;
}

.top-categories-section .category-menu-slider.is-collapsed .category-menu-viewport {
    max-height: var(--cat-h, 240px);
}

/* 2nd row stays visible, then fades out and gets blurrier step by step (progressive blur) */
.top-categories-section .category-menu-slider.is-collapsed .cat-fade {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--cat-peek, 100px);
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 35%,
        rgba(255, 255, 255, 0.8) 75%,
        #fff 100%);
}

.cat-fade::before,
.cat-fade::after,
.cat-fade i {
    content: "";
    position: absolute;
    inset: 0;
}

/* three overlapping blur layers: light -> medium -> strong, each feathered so there is no visible edge */
.cat-fade::before {
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 60%, transparent 85%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 60%, transparent 85%);
}

.cat-fade i {
    -webkit-backdrop-filter: blur(3.5px);
    backdrop-filter: blur(3.5px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 55%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 25%, #000 55%, #000 80%, transparent 100%);
}

.cat-fade::after {
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 90%);
    mask-image: linear-gradient(to bottom, transparent 50%, #000 90%);
}

/* expanded: button sits under the categories */
.top-categories-section .category-menu-slider.has-more .cat-more-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 4;
    margin-top: 12px;
}

/* collapsed: button floats over the faded 2nd row (like the design) */
.top-categories-section .category-menu-slider.is-collapsed .cat-more-wrap {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 0;
    top: calc(var(--cat-h, 240px) - var(--cat-peek, 100px) * 0.62 - 17px);
}

/* no extra white gap under the faded row */
.top-categories-section.cats-collapsed { padding-bottom: 0; }
.top-categories-section .category-menu-slider.is-collapsed { margin-bottom: -2px; }

.cat-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.cat-more-btn:hover { background: var(--primary); color: #fff; }
.cat-more-btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.cat-more-btn.is-open svg { transform: rotate(180deg); }

/* ---- mobile / tablet: the swipe row becomes a wrapped grid (same design as desktop) ---- */
@media (max-width: 900px) {
    html body .top-categories-section .category-menu-viewport { cursor: auto; }

    html body .top-categories-section .category-menu-track {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 12px 8px !important;
        width: 100% !important;
        transform: none !important;
        transition: none !important;
    }

    html body .top-categories-section .top-cat-item {
        flex: none !important;
        width: auto !important;
        min-width: 0;
    }

    /* no more left/right arrows (nothing to swipe) */
    html body .top-categories-section .cat-nav { display: none !important; }

    .cat-more-btn { padding: 6px 16px; font-size: 13px; }
    .cat-more-btn svg { width: 14px; height: 14px; }

    .top-categories-section .category-menu-slider.is-collapsed .cat-more-wrap {
        top: calc(var(--cat-h, 200px) - var(--cat-peek, 60px) * 0.62 - 15px);
    }
}

@media (max-width: 600px) {
    html body .top-categories-section .category-menu-track {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
