/*
 * Redesigned storefront header (front.inc.header_v2, header_search, bnm_v2; assets/js/header-search.js).
 * Desktop: a floating glass bar that sticks to the top. Phones: the logo mark and the search box in a 56px bar
 * (same height as the old fixed header, so pages keep their spacing) and a floating glass bottom bar.
 * Built on the gozar-ui.css tokens.
 */

.gzh {
    --gzh-glass: rgba(255, 255, 255, .74);
    --gzh-glass-border: rgba(255, 255, 255, .75);
    --gzh-blur: saturate(180%) blur(18px);
    position: sticky;
    top: 0;
    z-index: 1021;
    padding: 10px 0 6px;
    font-family: var(--gz-font);
    pointer-events: none; /* only the bar takes clicks, not the gap around it */
}
.gzh-top-banner .banner-item, .gzh-top-banner img { display: block; width: 100%; }

.gzh .gzh-bar {
    pointer-events: auto;
    isolation: isolate;
    height: 66px;
    gap: 10px;
    padding: 0 12px 0 10px;
}
/* the glass sits on a layer behind the bar: a backdrop-filter on the bar itself would trap its fixed children
   (category menu, account menu, full-screen search) inside it */
.gzh .gzh-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--gz-radius-xl);
    background: var(--gzh-glass);
    -webkit-backdrop-filter: var(--gzh-blur);
    backdrop-filter: var(--gzh-blur);
    border: 1px solid var(--gzh-glass-border);
    box-shadow: 0 8px 28px rgba(40, 25, 51, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: box-shadow var(--gz-normal) var(--gz-ease);
}
.gzh.is-scrolled .gzh-bar::before { box-shadow: 0 12px 36px rgba(40, 25, 51, .14), inset 0 1px 0 rgba(255, 255, 255, .7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .gzh { --gzh-glass: rgba(255, 255, 255, .97); }
}

/* logo */
.gzh-logo { display: inline-flex; align-items: center; flex-shrink: 0; padding: 0 4px; }
.gzh-logo-full { height: 38px; width: auto; max-width: 170px; }
.gzh-logo-mark { display: none; width: 34px; height: 34px; object-fit: contain; }

/* categories */
.gzh-cats {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    height: 44px; padding: 0 12px; border: 0; border-radius: var(--gz-radius-md);
    background: transparent; color: var(--gz-ink);
    font: 700 var(--gz-text-md)/1 var(--gz-font); cursor: pointer;
    transition: background var(--gz-fast), color var(--gz-fast);
}
.gzh-cats .gzi { font-size: 22px; color: var(--gz-brand-500); }
.gzh-cats .gzh-cats-caret { font-size: 16px; color: var(--gz-ink-3); transition: transform var(--gz-normal) var(--gz-ease); }
.gzh-cats:hover, .gzh-cats[aria-expanded="true"] { background: rgba(147, 57, 217, .08); color: var(--gz-brand-700); }
.gzh-cats[aria-expanded="true"] .gzh-cats-caret { transform: rotate(180deg); }

/* actions */
.gzh-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-shrink: 0; }
.gzh-action {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: var(--gz-radius-md);
    background: transparent; color: var(--gz-ink-2) !important; font: 500 var(--gz-text-sm)/1 var(--gz-font);
    cursor: pointer; transition: background var(--gz-fast), color var(--gz-fast);
}
/* thinner than on the bottom bar: at desktop size the full stroke reads too heavy */
.gzh-action .gzi, .gzh-cats .gzi, .gzh-search-box .gzi { stroke-width: 1.6; }
.gzh-action .gzi { font-size: 23px; }
.gzh-action:hover { background: rgba(147, 57, 217, .08); color: var(--gz-brand-600) !important; }
.gzh-action-label { display: none; }
@media (min-width: 1400px) { .gzh-action-label { display: inline; } }
.gzh-action .count, .gzh-account .count {
    position: absolute; top: 3px; inset-inline-end: 3px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--gz-radius-pill);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gz-brand-500); color: #fff; border: 2px solid #fff;
    font: 700 10.5px/1 var(--gz-font);
}
@media (min-width: 1400px) { .gzh-action .count { position: static; border: 0; } }
.gzh-divider { width: 1px; height: 26px; margin: 0 6px; background: var(--gz-border-strong); }

.gzh-login {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px;
    border: 0; border-radius: var(--gz-radius-md); background: var(--gz-brand-500); color: #fff;
    font: 700 var(--gz-text-md)/1 var(--gz-font); cursor: pointer; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(147, 57, 217, .28); transition: background var(--gz-fast), transform var(--gz-fast);
}
.gzh-login .gzi { font-size: 20px; }
.gzh-login:hover { background: var(--gz-brand-600); }
.gzh-login:active { transform: scale(.97); }

.gzh-account-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 10px;
    border: 1px solid var(--gz-border); border-radius: var(--gz-radius-md); background: rgba(255, 255, 255, .6);
    color: var(--gz-ink); font: 500 var(--gz-text-md)/1 var(--gz-font); cursor: pointer;
}
.gzh-account-btn:hover { border-color: var(--gz-brand-200); }
.gzh-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--gz-surface-3); }
.gzh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gzh-account-name { max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gzh-account-btn .gzi { font-size: 16px; color: var(--gz-ink-3); }
.gzh-account:focus-within .mobile-sidebar-menu { visibility: visible; opacity: 1; top: 100%; }

/* ---- account menu (front.inc.account_menu_v2): a dropdown here, a card above the bottom bar on phones ---- */
.gzh .gzam {
    width: 330px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 12px;
    border: 1px solid var(--gz-border); border-radius: var(--gz-radius-xl); background: var(--gz-surface);
    box-shadow: 0 20px 50px rgba(40, 25, 51, .18); font-family: var(--gz-font); line-height: 1.6;
}
.gzam-head { display: flex; flex-direction: column; gap: 10px; }
.gzam-who { display: flex; align-items: center; gap: 12px; padding: 4px; border-radius: var(--gz-radius-md); color: var(--gz-ink) !important; }
.gzam-who:hover { background: var(--gz-surface-2); }
.gzam-avatar { flex-shrink: 0; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: var(--gz-surface-3); }
.gzam-avatar.is-shop { border-radius: var(--gz-radius-md); outline: 1px solid var(--gz-border); }
.gzam-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gzam-who-text { display: flex; flex-direction: column; min-width: 0; }
.gzam-who-text b { overflow: hidden; font-size: 15px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.gzam-who-text small { display: inline-flex; align-items: center; gap: 2px; color: var(--gz-ink-3); font-size: 12px; direction: ltr; justify-content: flex-end; }
.gzam-who-text small:has(.gzi) { direction: rtl; justify-content: flex-start; color: var(--gz-brand-600); font-weight: 700; }
.gzam-who-text small .gzi { font-size: 14px; transform: rotate(90deg); }
.gzam-wallet {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px;
    border-radius: var(--gz-radius-md); background: var(--gz-brand-50); color: var(--gz-brand-700) !important; font-size: 13px; font-weight: 700;
}
.gzam-wallet span { display: inline-flex; align-items: center; gap: 6px; }
.gzam-wallet i { font-size: 18px; }
.gzam-wallet b { color: var(--gz-ink); font-size: 14px; font-weight: 800; }
.gzam-wallet b small { color: var(--gz-ink-3); font-size: 11px; font-weight: 500; }
.gzam-wallet:hover { background: var(--gz-brand-100); }

.gzam-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; }
.gzam-tile {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px;
    border-radius: var(--gz-radius-md); background: var(--gz-surface-2); color: var(--gz-ink) !important; font-size: 13px; font-weight: 700;
    transition: background var(--gz-fast);
}
.gzam-tile i { color: var(--gz-brand-600); font-size: 21px; }
.gzam-tile:hover { background: var(--gz-brand-50); }
.gzam-badge {
    position: absolute; top: 10px; inset-inline-end: 10px; min-width: 22px; height: 22px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: var(--gz-radius-pill);
    background: var(--gz-danger); color: #fff; font-size: 11px; font-weight: 800;
}
.gzh .gzam .gzam-list { margin: 0; padding: 0; list-style: none; }
.gzam-list a {
    display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--gz-radius-sm);
    color: var(--gz-ink-2) !important; font-size: 13.5px; transition: background var(--gz-fast);
}
.gzam-list a:hover { background: var(--gz-surface-2); color: var(--gz-ink) !important; }
.gzam-list i { width: 20px; color: var(--gz-ink-3); font-size: 18px; text-align: center; }
.gzam-label { margin: 12px 6px 6px; color: var(--gz-ink-3); font-size: 12px; font-weight: 700; }
.gzam-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gzam-chips a {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
    border: 1px solid var(--gz-border); border-radius: var(--gz-radius-md); color: var(--gz-ink-2) !important; font-size: 12px; font-weight: 500;
}
.gzam-chips a:hover { border-color: var(--gz-brand-200); color: var(--gz-brand-700) !important; }
.gzam-chips i { color: var(--gz-brand-500); font-size: 18px; }
.gzam-sell {
    display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--gz-radius-md);
    background: var(--gz-brand-500); color: #fff !important; box-shadow: 0 8px 20px rgba(147, 57, 217, .25);
}
.gzam-sell i { font-size: 24px; }
.gzam-sell span { display: flex; flex-direction: column; }
.gzam-sell b { font-size: 14px; }
.gzam-sell small { opacity: .85; font-size: 12px; }
.gzam-sell:hover { background: var(--gz-brand-600); }
.gzam-logout {
    display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--gz-border);
    color: var(--gz-danger) !important; font-size: 13.5px;
}
.gzam-logout i { width: 20px; font-size: 18px; text-align: center; }

/* ---- search ---- */
.gzh-search { position: relative; flex: 1 1 auto; max-width: 640px; min-width: 0; margin-inline-start: 6px; }
.gzh-search-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.gzh-search-box { flex: 1; height: 44px; min-height: 0; border-radius: var(--gz-radius-md); background: rgba(241, 238, 244, .85); }
.gzh-search-box .gz-search__icon .gzi { font-size: 21px; }
.gzh-search-back {
    display: none; flex-shrink: 0; width: 42px; height: 42px; border: 0; border-radius: var(--gz-radius-md);
    align-items: center; justify-content: center; background: transparent; color: var(--gz-ink); font-size: 22px;
}
.gzh-search-clear[hidden] { display: none; }

.gzh-panel {
    position: absolute; top: calc(100% + 12px); right: 0; left: 0; z-index: 40;
    min-width: min(540px, calc(100vw - 40px)); /* wider than a narrow box, growing from its start side */
    max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain;
    padding: 18px; border-radius: var(--gz-radius-xl); background: var(--gz-surface);
    border: 1px solid var(--gz-border); box-shadow: var(--gz-shadow-lg);
    animation: gzh-drop var(--gz-normal) var(--gz-ease);
}
.gzh-panel[hidden], .gzh-panel-idle[hidden], .gzh-panel-results[hidden], .gzh-sec[hidden] { display: none; }
@keyframes gzh-drop { from { opacity: 0; transform: translateY(-6px); } }

.gzh-panel-banner { display: block; margin-bottom: 18px; border-radius: var(--gz-radius-lg); overflow: hidden; }
.gzh-panel-banner img { display: block; width: 100%; height: auto; }

.gzh-sec + .gzh-sec { margin-top: 20px; }
.gzh-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gzh-sec-title { display: inline-flex; align-items: center; gap: 6px; color: var(--gz-ink); font-size: var(--gz-text-md); font-weight: 700; }
.gzh-sec-title i { font-size: 19px; color: var(--gz-brand-500); }
.gzh-sec-action { border: 0; background: none; padding: 4px; color: var(--gz-danger); font: 500 var(--gz-text-sm)/1 var(--gz-font); cursor: pointer; }

.gzh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gzh-chip {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 36px; padding: 0 14px;
    border: 1px solid var(--gz-border); border-radius: var(--gz-radius-pill); background: var(--gz-surface);
    color: var(--gz-ink-2) !important; font-size: var(--gz-text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: border-color var(--gz-fast), color var(--gz-fast), background var(--gz-fast);
}
.gzh-chip:hover { border-color: var(--gz-brand-300); color: var(--gz-brand-600) !important; background: var(--gz-brand-50); }
.gzh-chip-recent { padding-inline-end: 6px; }
.gzh-chip-recent a { color: inherit !important; overflow: hidden; text-overflow: ellipsis; }
.gzh-chip-remove {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0;
    border-radius: 50%; background: transparent; color: var(--gz-ink-4); font-size: 12px; cursor: pointer;
}
.gzh-chip-remove:hover { background: var(--gz-surface-3); color: var(--gz-danger); }

.gzh-shops { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gzh-shops::-webkit-scrollbar { display: none; }
.gzh-shop { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; flex-shrink: 0; color: var(--gz-ink-2) !important; text-align: center; }
.gzh-shop-logo { width: 60px; height: 60px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--gz-brand-400), var(--gz-accent-500)); }
.gzh-shop-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; }
.gzh-shop-title { width: 100%; font-size: var(--gz-text-xs); line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gzh-shop:hover .gzh-shop-title { color: var(--gz-brand-600); }

.gzh-results { display: flex; flex-direction: column; }
.gzh-result {
    display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: var(--gz-radius-md);
    color: var(--gz-ink) !important; font-size: var(--gz-text-md);
}
.gzh-result:hover, .gzh-result.is-active { background: var(--gz-surface-2); }
.gzh-result-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px;
    border-radius: var(--gz-radius-sm); background: var(--gz-surface-3); color: var(--gz-ink-3); font-size: 17px;
}
.gzh-result-main .gzh-result-icon { background: var(--gz-brand-50); color: var(--gz-brand-600); }
.gzh-result-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gzh-result-text b { font-weight: 700; }
.gzh-result-text small { color: var(--gz-ink-4); font-size: var(--gz-text-xs); margin-inline-start: 6px; }
.gzh-result-go { color: var(--gz-ink-4); font-size: 15px; }
.gzh-results-title { margin: 14px 10px 4px; color: var(--gz-ink-4); font-size: var(--gz-text-xs); font-weight: 700; }
.gzh-results-loading { padding: 4px 0; }
.gzh-results-loading span { display: block; height: 40px; margin: 6px 0; border-radius: var(--gz-radius-md); }

/* the page behind the open desktop panel */
.gzh-shade {
    position: fixed; inset: 0; z-index: 1020;
    opacity: 0; pointer-events: none; transition: opacity var(--gz-normal);
}

/* every shade behind a panel, menu, sheet or modal: the side cart's tinted blur instead of a dark layer */
.gzh-shade, body .backdrop, body .cm-backdrop, .gz-sheet-backdrop, body .modal-backdrop, body .offcanvas-backdrop {
    background: var(--gz-overlay); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
body .modal-backdrop.show, body .offcanvas-backdrop.show { opacity: 1; }
html.gzh-search-open .gzh-shade { opacity: 1; pointer-events: auto; }

/* ---- side cart (front.inc.mini_cart, same markup as before; restyled with the new header) ---- */
body .mini-shopping-cart {
    top: 12px; bottom: 12px; left: 12px; height: auto; width: 400px;
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--gz-radius-xl); background: var(--gz-surface); box-shadow: 0 20px 60px rgba(40, 25, 51, .22);
    font-family: var(--gz-font); opacity: 0; visibility: hidden; transform: translateX(-24px);
    transition: transform var(--gz-normal) var(--gz-ease), opacity var(--gz-normal), visibility var(--gz-normal);
}
body .mini-shopping-cart.open { left: 12px !important; transform: none; }

.mini-shopping-cart .mini-cart-head { flex: 0 0 auto; height: 64px; padding: 0 18px 0 12px; border-bottom: 1px solid var(--gz-border); }
.mini-shopping-cart .mini-cart-head > span:first-child { display: inline-flex !important; align-items: center; gap: 8px; font-size: var(--gz-text-lg) !important; color: var(--gz-ink); }
.mini-shopping-cart .mini-cart-head .text-muted {
    margin: 0 !important; padding: 3px 9px; border-radius: var(--gz-radius-pill);
    background: var(--gz-brand-50); color: var(--gz-brand-600) !important; font-size: var(--gz-text-xs) !important; font-weight: 700;
}
.mini-shopping-cart .close-cart {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
    border-radius: 50%; background: var(--gz-surface-2); color: var(--gz-ink-2); font-size: 18px; opacity: 1;
    transition: background var(--gz-fast);
}
.mini-shopping-cart .close-cart:hover { background: var(--gz-surface-3); }

.mini-shopping-cart .mini-cart-items { flex: 1 1 auto; height: auto; padding: 6px 12px; overscroll-behavior: contain; }
.mini-shopping-cart .h-product-item {
    gap: 12px; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--gz-border); border-radius: 0; background: none;
}
.mini-shopping-cart .h-product-item:hover { background: none; }
.mini-shopping-cart .h-product-item-thumb {
    width: 76px; height: 76px; margin: 0; padding: 4px; border: 1px solid var(--gz-border); border-radius: var(--gz-radius-md); background: #fff;
}
.mini-shopping-cart .h-product-item-thumb a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.mini-shopping-cart .h-product-item-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--gz-radius-xs); }
.mini-shopping-cart .h-product-item .title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal;
    margin: 0 0 6px; color: var(--gz-ink) !important; font-size: var(--gz-text-sm); line-height: 1.75; font-weight: 500;
}
.mini-shopping-cart .h-product-item-content .mb-2 { gap: 6px; margin-bottom: 6px !important; flex-wrap: wrap; }
.mini-shopping-cart .h-product-item-content .mb-2 > div {
    align-items: center; gap: 4px; margin: 0 !important; padding: 2px 8px; border-radius: var(--gz-radius-pill);
    background: var(--gz-surface-2); color: var(--gz-ink-3); font-size: var(--gz-text-xs) !important;
}
.mini-shopping-cart .color-square { width: 10px; height: 10px; margin: 0; border-radius: 50%; }
.mini-shopping-cart .h-product-item .price { color: var(--gz-ink); font-size: var(--gz-text-md); font-weight: 800; }
.mini-shopping-cart .h-product-item .price span { margin-right: 2px; color: var(--gz-ink-3); font-size: var(--gz-text-xs); }
.mini-shopping-cart .h-product-item-content > .d-flex { margin-top: 6px !important; color: var(--gz-ink-3); font-size: var(--gz-text-xs); }
.mini-shopping-cart .cart-menu-remove {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: var(--gz-radius-sm); background: var(--gz-danger-50); color: var(--gz-danger); font-size: 15px;
}
.mini-shopping-cart .cart-menu-remove:hover { background: var(--gz-danger); color: #fff; }
.mini-shopping-cart .alertEmpty { padding: 48px 24px !important; text-align: center; }
.mini-shopping-cart .alertEmpty img { max-width: 180px; padding: 0 !important; }
.mini-shopping-cart .alertEmpty span { font-size: var(--gz-text-md) !important; color: var(--gz-ink-3) !important; }

.mini-shopping-cart .mini-cart-footer {
    position: static; flex: 0 0 auto; height: auto; gap: 12px; padding: 14px 16px calc(14px + var(--gz-safe-bottom));
    border-top: 1px solid var(--gz-border); background: var(--gz-surface-2);
}
.mini-shopping-cart .mini-cart-footer .font-13 { color: var(--gz-ink-3); font-size: var(--gz-text-xs) !important; }
.mini-shopping-cart .mini-cart-footer .fw-800 { margin-top: 4px !important; color: var(--gz-ink); }
.mini-shopping-cart .mini-cart-footer .btn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; height: 48px; padding: 0 22px;
    border: 0; border-radius: var(--gz-radius-md); background: var(--gz-brand-500); color: #fff;
    font-weight: 700; font-size: var(--gz-text-md); box-shadow: 0 8px 20px rgba(147, 57, 217, .3) !important;
}
.mini-shopping-cart .mini-cart-footer .btn:hover { background: var(--gz-brand-600); }

/* ---- bottom bar (phones) ---- */
.gzb, .gzb-spacer { display: none; }

@media (max-width: 991.98px) {
    /* above the bottom bar, so the full-screen search and category menu inside it cover the bar */
    /* a stronger frost than the desktop bar: on phones the page scrolls right under it */
    .gzh {
        position: fixed; right: 0; left: 0; z-index: 1040; padding: 0; pointer-events: auto;
        --gzh-glass: rgba(255, 255, 255, .7); --gzh-blur: saturate(190%) blur(26px);
    }
    .gzh::before {
        content: ""; position: absolute; inset: 0; z-index: -1;
        background: var(--gzh-glass); -webkit-backdrop-filter: var(--gzh-blur); backdrop-filter: var(--gzh-blur);
        border-bottom: 1px solid rgba(220, 212, 227, .6);
    }
    .gzh .gzh-shell { width: 100% !important; max-width: none; margin: 0; padding: 0 14px; }
    .gzh .gzh-bar { height: 56px; gap: 10px; padding: 0; isolation: auto; }
    .gzh .gzh-bar::before { display: none; }
    .gzh-logo { padding: 0; }
    .gzh-logo-full, .gzh-cats, .gzh-action, .gzh-divider, .gzh-login, .gzh-account-btn { display: none !important; }
    .gzh-logo-mark { display: block; }
    /* only the account menu (fixed, opened from the bottom bar) is left in here: take no room in the bar */
    .gzh-actions { position: absolute; width: 0; height: 0; margin: 0; gap: 0; overflow: visible; }
    .gzh-search { max-width: none; margin: 0; }
    .gzh-search-box { height: 38px; }
    .gzh-shade { display: none; }

    /* full-screen search */
    html.gzh-search-open, html.gzh-search-open body { overflow: hidden; }
    html.gzh-search-open .gzh-search {
        position: fixed; inset: 0; z-index: 1065; display: flex; flex-direction: column; background: var(--gz-surface);
    }
    html.gzh-search-open .gzh-search-form { padding: 7px 8px 7px 12px; border-bottom: 1px solid var(--gz-border); }
    html.gzh-search-open .gzh-search-back { display: inline-flex; }
    .gzh-panel {
        position: static; flex: 1; max-height: none; padding: 16px; border: 0; border-radius: 0; box-shadow: none; animation: none;
        padding-bottom: calc(24px + var(--gz-safe-bottom));
    }

    .gzb {
        position: fixed; right: 12px; left: 12px; bottom: calc(10px + var(--gz-safe-bottom)); z-index: 1030;
        display: flex; align-items: stretch; height: 64px; padding: 0 6px;
        border-radius: var(--gz-radius-xl); background: rgba(255, 255, 255, .78);
        -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
        border: 1px solid rgba(255, 255, 255, .8);
        box-shadow: 0 10px 30px rgba(40, 25, 51, .16), inset 0 1px 0 rgba(255, 255, 255, .7);
        font-family: var(--gz-font);
        transition: transform var(--gz-normal) var(--gz-ease);
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .gzb { background: rgba(255, 255, 255, .97); } }
    html.gzh-search-open .gzb { transform: translateY(140%); }

    /* the category menu and the side cart open as cards above the bottom bar, which stays in sight on top of
       their blurred shade */
    .gzh .cm-backdrop { display: block; position: absolute; inset: 0; }
    .gzh .cm-panel {
        position: absolute; top: 8px; right: 8px; left: 8px; bottom: calc(84px + var(--gz-safe-bottom)); height: auto;
        overflow: hidden; border-radius: var(--gz-radius-xl); box-shadow: 0 20px 60px rgba(40, 25, 51, .22);
    }
    /* the panels the bar opens (cart, categories, account, conversations; assets/js/gz-dock.js keeps one open and
       names it in html[data-dock]) open alike: the shade fades in and the card rises a little into place */
    .gzh .cm:not(.is-open) { display: block; visibility: hidden; pointer-events: none; }
    .gzh .cm { transition: visibility .3s; }
    .gzh .cm .cm-backdrop { opacity: 0; transition: opacity .25s; }
    .gzh .cm.is-open .cm-backdrop { opacity: 1; }
    .gzh .cm .cm-panel { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .22s, transform .28s var(--gz-ease); }
    .gzh .cm.is-open .cm-panel { opacity: 1; transform: none; }

    html[data-dock] .gzb { z-index: 1050; }
    html[data-dock] .gzb .gzb-item.is-active { color: var(--gz-ink-3) !important; font-weight: 500; }
    html[data-dock] .gzb .gzb-item.is-active .gzi { background: none; }
    html[data-dock="cart"] .gzb .open-cart, html[data-dock="cats"] .gzb .open-categories,
    html[data-dock="account"] .gzb .show-mobile-menu-mobile, html[data-dock="inbox"] .gzb [data-gz-inbox] { color: var(--gz-brand-600) !important; font-weight: 700; }
    html[data-dock="cart"] .gzb .open-cart .gzi, html[data-dock="cats"] .gzb .open-categories .gzi,
    html[data-dock="account"] .gzb .show-mobile-menu-mobile .gzi, html[data-dock="inbox"] .gzb [data-gz-inbox] .gzi { background: var(--gz-brand-100); }
    /* a chat or another window covers the whole screen: the bar steps aside */
    body.modal-open .gzb { transform: translateY(140%); }

    /* account card */
    .gzh .gzam {
        position: fixed; top: 8px !important; right: 8px; bottom: calc(84px + var(--gz-safe-bottom)); left: 8px !important;
        width: auto; height: auto; max-height: none; z-index: 1045;
        border-radius: var(--gz-radius-xl) !important; box-shadow: 0 20px 60px rgba(40, 25, 51, .22);
        opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98);
        transition: opacity .22s, transform .28s var(--gz-ease), visibility .28s;
    }
    /* the full-height card: the buyer's links of a seller (or a buyer's «sell» card) and the logout sit at its bottom */
    .gzh .gzam.gzam { display: flex; flex-direction: column; }
    .gzh .gzam > * { flex-shrink: 0; }
    .gzh .gzam > .gzam-label, .gzh .gzam > .gzam-list + .gzam-sell, .gzh .gzam > .gzam-list + .gzam-logout { margin-top: auto; }
    .gzh .gzam > .gzam-label { padding-top: 16px; }
    .gzh .gzam > .gzam-list + .gzam-sell { margin-bottom: 0; }
    .gzh .gzam.show { top: 8px !important; left: 8px !important; opacity: 1 !important; visibility: visible !important; transform: none; }
    .gzh .mobile-sidebar-menu-backdrop { z-index: 1044; }
    .gzb-item {
        position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        border: 0; background: none; padding: 0; color: var(--gz-ink-3) !important; font: 500 var(--gz-text-xs)/1.2 var(--gz-font);
        -webkit-tap-highlight-color: transparent; cursor: pointer;
    }
    .gzb-item .gzi {
        box-sizing: content-box; width: 23px; height: 23px; padding: 4px 14px;
        border-radius: var(--gz-radius-pill); transition: background var(--gz-fast), transform var(--gz-fast);
    }
    .gzb-item:active .gzi { transform: scale(.9); }
    .gzb-item.is-active { color: var(--gz-brand-600) !important; font-weight: 700; }
    .gzb-item.is-active .gzi { background: var(--gz-brand-100); }
    .gzb-item.is-active .gzi .f { fill: rgba(147, 57, 217, .2); }
    .gzb .cartCount {
        top: 7px; left: auto; inset-inline-start: calc(50% + 6px); z-index: 1;
        width: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--gz-radius-pill);
        background: var(--gz-brand-500); border: 2px solid #fff; font: 700 10px/1 var(--gz-font);
    }
    .gzb-spacer { display: block; height: calc(84px + var(--gz-safe-bottom)); }

    body .mini-shopping-cart {
        top: 8px; bottom: calc(84px + var(--gz-safe-bottom)); left: 8px; width: auto; right: 8px; z-index: 1045;
        transform: translateY(16px) scale(.98); transition: opacity .22s, transform .28s var(--gz-ease), visibility .28s;
    }
    body .mini-shopping-cart.open { left: 8px !important; }
    body .mini-cart-backdrop { z-index: 1044; }
    .mini-shopping-cart .mini-cart-footer { padding-bottom: 14px; }
}

/* customer pages of the redesign (orders, an order, the payment result, the account panel, the rating page): the soft
   lavender runs behind the whole page, under the header and down to the footer, not just behind the content */
html body:has(.ors), html body:has(.upv), html body:has(.rv) { background: var(--gz-surface-2); }
