/* Customer navigation: one bounded header before and after sign-in. */
html[data-app-area="client"] { --theme-topbar-height:64px; }
html:has(>body.public-site) { scrollbar-gutter:auto; }
html[data-app-area="client"] body.app-client .app-content { scrollbar-gutter:auto; }
html[data-app-area="client"] body.app-client .app-topbar {
  position:relative; z-index:1000; flex:none; width:100%; height:auto; min-height:64px;
  padding:0; border:0; border-bottom:1px solid var(--chrome-line);
  background:var(--chrome-bg); color:var(--chrome-text); box-shadow:none; backdrop-filter:none;
}
html[data-app-area="client"] body.app-client .app-topbar-primary {
  display:flex; align-items:center; flex-wrap:nowrap; gap:10px; width:min(1120px,100%); height:auto;
  max-width:1120px; min-height:64px; margin-inline:auto; padding:12px 24px;
}
html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot {
  display:flex; align-items:center; flex:0 1 auto; min-width:0; max-width:260px;
  height:auto; gap:8px; padding:0; background:transparent; border:0;
}
html[data-app-area="client"] body.app-client .app-topbar-brand {
  display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; height:auto; padding:0;
  color:var(--chrome-text); background:transparent; border:0; text-decoration:none;
}
html[data-app-area="client"] body.app-client .app-topbar-brand-visual { display:flex; align-items:center; max-width:36px; flex:0 0 36px; }
html[data-app-area="client"] body.app-client .app-topbar-brand-image { display:block; width:auto; height:auto; max-width:36px; flex:0 0 36px; max-height:36px; object-fit:contain; }
html[data-app-area="client"] body.app-client .app-topbar-brand-name {
  min-width:0; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:var(--chrome-text); font-size:14px; font-weight:600; line-height:1.3;
}
html[data-app-area="client"] body.app-client .app-topbar .public-header-search { flex:1 1 280px; min-width:180px; max-width:none; }
html body:is(.app-client,.public-site) .customer-header-navigation { display:flex; flex:none; align-items:center; justify-content:center; gap:4px; min-width:0; }
html body:is(.app-client,.public-site) .customer-header-link {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px;
  padding:0 10px; border:1px solid transparent; border-radius:6px;
  background:transparent; color:var(--chrome-text); text-decoration:none;
  font:500 13px/1.3 var(--gv-font-sans); white-space:nowrap;
}
html body:is(.app-client,.public-site) .customer-header-link svg { flex:none; width:17px; height:17px; }
html body:is(.app-client,.public-site) .customer-header-link:is(:hover,.is-active) { background:var(--chrome-hover); }
html body:is(.app-client,.public-site) .customer-header-link.customer-place-order { border-color:var(--chrome-text); background:var(--chrome-text); color:var(--chrome-bg); }
html body:is(.app-client,.public-site) .customer-header-link.customer-place-order:hover { opacity:.88; }
html[data-app-area="client"] body.app-client .app-topbar-actions { display:flex; flex:none; align-items:center; gap:5px; height:36px; min-width:0; margin:0; white-space:nowrap; }
html[data-app-area="client"] body.app-client .app-topbar-actions>.app-header-menu { display:flex; align-items:center; flex:none; position:relative; }
html[data-app-area="client"] body.app-client .app-topbar :is(.app-theme-button,.app-language-button,.app-notification-button,.app-menu-button) {
  display:inline-flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px;
  min-width:34px; min-height:34px; padding:0; border:0; border-radius:6px;
  background:transparent; color:var(--chrome-text); box-shadow:none;
}
html[data-app-area="client"] body.app-client .app-topbar :is(.app-theme-button,.app-language-button,.app-notification-button,.app-menu-button):hover {
  border:0; background:transparent; color:var(--chrome-muted); box-shadow:none;
}
html[data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership {
  display:inline-flex; align-items:center; flex:none; width:auto; min-width:34px; max-width:154px;
  min-height:34px; height:34px; padding:0 9px 0 3px; justify-content:flex-start; gap:7px;
  border:1px solid var(--chrome-line); border-radius:6px; background:transparent; color:var(--chrome-text); box-shadow:none;
}
[dir="rtl"] html[data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership,
html[dir="rtl"][data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership { padding:0 3px 0 8px; }
html[data-app-area="client"] body.app-client .app-profile-button-membership .app-profile-avatar {
  width:26px; height:26px; flex:0 0 26px; font-size:10px;
}
html[data-app-area="client"] body.app-client .app-profile-trigger-membership {
  min-width:0; max-width:102px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:var(--chrome-text); font:650 12px/1.15 var(--gv-font-sans); text-align:start;
}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger {
  display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:0; max-width:128px; height:34px;
  padding:0 8px; gap:6px; border:1px solid var(--chrome-line); border-radius:6px;
  background:transparent; color:var(--chrome-text); box-shadow:none; cursor:pointer;
}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon {
  display:grid; place-items:center; width:18px; height:18px; flex:0 0 18px;
  border:0; border-radius:0; background:transparent; color:inherit;
}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon svg { width:17px; height:17px; display:block; }
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy { display:block; min-width:0; text-align:start; }
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong {
  display:block; max-width:88px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:inherit; font:600 12px/1.2 var(--gv-font-sans);
}
html[data-app-area="client"] body.app-client .app-topbar :is(button,a):hover { text-decoration:none; }
html[data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership:hover { background:var(--chrome-hover); }
html[data-app-area="client"] body.app-client .app-topbar .app-language-button :is(img,svg) { width:22px; height:16px; object-fit:cover; }
html[data-app-area="client"] body.app-client .app-profile-popover [role="menuitem"] { display:flex; align-items:center; gap:10px; }
html body:is(.app-client,.public-site) :is(.app-profile-popover,.customer-account-popover) [role="menuitem"].customer-menu-mobile-only { display:none; }

body.public-site .public-account-menu { position:relative; }
body.public-site .public-customer-notifications {
  display:flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px;
  padding:0; border:0; border-radius:6px; color:var(--chrome-text); background:transparent; text-decoration:none;
}
body.public-site .public-customer-notifications:hover { color:var(--chrome-muted); background:transparent; }
body.public-site .public-account-button {
  display:flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px;
  padding:0; border:1px solid var(--chrome-line); border-radius:6px; list-style:none;
  color:var(--chrome-text); background:transparent; text-decoration:none;
}
body.public-site .public-customer-balance { display:flex; align-items:center; gap:5px; min-height:34px; padding:0 7px; border:1px solid var(--chrome-line); border-radius:6px; color:var(--chrome-text); text-decoration:none; white-space:nowrap; }
body.public-site .public-customer-balance strong { font-size:12px; font-weight:500; }
body.public-site .customer-account-popover { position:absolute; inset-inline-end:0; top:calc(100% + 8px); width:244px; max-width:calc(100vw - 24px); max-height:70dvh; overflow-y:auto; z-index:4100; padding:6px; border:1px solid var(--gv-border); border-radius:8px; background:var(--gv-surface); color:var(--gv-text); box-shadow:0 8px 30px #0002; }
body.public-site .public-account-menu:not([open])>.customer-account-popover { display:none; }
body.public-site .customer-account-heading { padding:10px; margin-bottom:5px; border-bottom:1px solid var(--gv-border); overflow-wrap:anywhere; }
body.public-site .customer-account-popover [role="menuitem"] { display:flex; align-items:center; gap:10px; min-height:38px; padding:8px 10px; border-radius:5px; color:var(--gv-text); text-decoration:none; }
body.public-site .customer-account-popover [role="menuitem"]:hover { background:var(--gv-surface-subtle); }
body.public-site .customer-account-popover [role="menuitem"] svg { width:18px; height:18px; flex:none; }

@media(min-width:901px) {
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-sidebar-slot { display:none; }
}
@media(min-width:901px) and (max-width:1100px) {
  html[data-app-area="client"] body.app-client .app-topbar-primary { gap:8px; padding-inline:16px; }
  body.public-site .public-site-header-inner.has-customer-navigation { gap:10px; grid-template-columns:minmax(150px,1fr) minmax(120px,1fr) auto auto; padding-inline:16px; }
  html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot { max-width:180px; }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name { max-width:150px; }
  html[data-app-area="client"] body.app-client .app-topbar .public-header-search { flex-basis:190px; min-width:150px; }
  html body:is(.app-client,.public-site) .customer-header-link { gap:5px; padding-inline:7px; font-size:12px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger { max-width:112px; padding-inline:7px; gap:5px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong { max-width:74px; font-size:11px; }
}

/* Compact desktop/tablet widths stay on one header row. Only phone widths
   move the catalog search to a second row. */
@media(max-width:900px) {
  html[data-app-area="client"] body.app-client .app-topbar-primary { gap:8px; padding-inline:14px; }
  html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot { flex:0 1 auto; max-width:170px; }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name { max-width:150px; }
  html[data-app-area="client"] body.app-client .app-topbar .public-header-search { flex:1 1 240px; min-width:140px; }
  html[data-app-area="client"] body.app-client .app-topbar-actions>.app-notification-menu,
  body.public-site .public-customer-notifications,
  html body:is(.app-client,.public-site) .customer-header-navigation { display:none; }
  html body:is(.app-client,.public-site) :is(.app-profile-popover,.customer-account-popover) [role="menuitem"].customer-menu-mobile-only { display:flex; }
  html body:is(.app-client,.public-site) :is(.app-profile-popover,.customer-account-popover) [role="menuitem"].customer-menu-desktop-only { display:none; }
}

@media(max-width:680px) {
  html[data-app-area="client"] { --theme-topbar-height:98px; scrollbar-gutter:auto; }
  html[data-app-area="client"] body.app-client .app-topbar { position:relative; top:auto; height:auto; min-height:98px; }
  html[data-app-area="client"] body.app-client .app-topbar-primary {
    display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 8px; height:auto; min-height:98px; padding:8px 12px;
  }
  html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot { grid-column:1; grid-row:1; min-width:0; max-width:none; overflow:hidden; }
  html[data-app-area="client"] body.app-client .app-topbar-brand { max-width:100%; }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name { max-width:min(34vw,130px); }
  html[data-app-area="client"] body.app-client .app-topbar-actions { grid-column:2; grid-row:1; justify-self:end; gap:4px; }
  html[data-app-area="client"] body.app-client .app-topbar .public-header-search { grid-column:1/-1; grid-row:2; width:100%; min-width:0; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger { max-width:104px; padding-inline:7px; gap:5px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong { max-width:70px; font-size:11px; }
}

@media(max-width:420px) {
  html[data-app-area="client"] body.app-client .app-topbar-primary { column-gap:6px; padding-inline:10px; }
  html[data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership { max-width:124px; padding-inline-end:7px; gap:6px; }
  html[data-app-area="client"] body.app-client .app-profile-trigger-membership { max-width:82px; font-size:11.5px; }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name { max-width:min(28vw,100px); font-size:13px; }
  html[data-app-area="client"] body.app-client .app-topbar-actions { gap:3px; }
  html[data-app-area="client"] body.app-client .app-topbar :is(.app-theme-button,.app-language-button,.app-profile-button,.app-menu-button) { width:32px; min-width:32px; height:32px; min-height:32px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger { height:32px; max-width:92px; padding-inline:6px; gap:4px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong { max-width:60px; font-size:10.5px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon { width:16px; height:16px; flex-basis:16px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon svg { width:16px; height:16px; }
}

@media(max-width:350px) {
  html[data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership { max-width:104px; }
  html[data-app-area="client"] body.app-client .app-profile-trigger-membership { max-width:64px; font-size:11px; }
}

/* A document overlay does not take width from the header/footer. Native fallback
   remains in use without JavaScript or in forced-colors mode. */
html.gv-page-scrollbar-enhanced { scrollbar-width:none; scrollbar-gutter:auto; }
html.gv-page-scrollbar-enhanced::-webkit-scrollbar { width:0; height:0; }
.gv-page-scrollbar { position:fixed; inset-block:0; inset-inline-end:0; z-index:4500; width:6px; background:transparent; touch-action:none; user-select:none; }
.gv-page-scrollbar-thumb { position:absolute; inset-inline:1px; inset-block-start:0; min-height:32px; border-radius:999px; background:var(--gv-text-muted,#777); opacity:.36; }
.gv-page-scrollbar:hover .gv-page-scrollbar-thumb, .gv-page-scrollbar:focus-visible .gv-page-scrollbar-thumb { opacity:.72; }
.gv-page-scrollbar:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
html:is(.gv-popup-lock,.gv-auth-modal-open) .gv-page-scrollbar { visibility:hidden; pointer-events:none; }
@media(pointer:coarse) { .gv-page-scrollbar { pointer-events:none; width:4px; } .gv-page-scrollbar-thumb { inset-inline:1px; opacity:.32; } }
@media(forced-colors:active) { html.gv-page-scrollbar-enhanced { scrollbar-width:auto; } html.gv-page-scrollbar-enhanced::-webkit-scrollbar { width:auto; } .gv-page-scrollbar { display:none; } }

/* Authenticated mobile navigation: fixed to the viewport edge with one sliding active indicator. */
.mobile-primary-dock { display:none; }
@media(max-width:900px) {
  body:is(.public-site,.app-client) .mobile-primary-dock {
    --mobile-dock-surface:var(--gv-surface);
    --mobile-dock-active:color-mix(in srgb,var(--gv-primary) 8%,var(--gv-surface-muted));
    box-sizing:border-box;
    position:fixed;
    inset-inline:0;
    inset-block-end:0;
    z-index:3900;
    display:grid;
    grid-template-columns:repeat(var(--mobile-dock-columns,5),minmax(0,1fr));
    gap:0;
    width:100%;
    max-width:none;
    min-height:68px;
    margin:0;
    padding:6px max(8px,env(safe-area-inset-right,0px)) max(6px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
    overflow:hidden;
    border:0;
    border-top:1px solid var(--gv-border);
    border-radius:0;
    background:var(--mobile-dock-surface);
    background:color-mix(in srgb,var(--mobile-dock-surface) 94%,transparent);
    color:var(--gv-text);
    box-shadow:none;
    -webkit-backdrop-filter:blur(20px) saturate(1.2);
    backdrop-filter:blur(20px) saturate(1.2);
    isolation:isolate;
    scrollbar-width:none;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock[data-item-count="5"] { --mobile-dock-columns:5; }
  body:is(.public-site,.app-client) .mobile-primary-dock[data-item-count="4"] { --mobile-dock-columns:4; }
  body:is(.public-site,.app-client) .mobile-primary-dock-indicator {
    position:absolute;
    inset-block-start:0;
    inset-inline-start:0;
    z-index:0;
    width:0;
    height:0;
    border:0;
    border-radius:18px;
    background:var(--mobile-dock-active);
    box-shadow:none;
    opacity:0;
    pointer-events:none;
    transform:translate3d(0,0,0);
    transition:transform .34s cubic-bezier(.22,.8,.2,1),width .34s cubic-bezier(.22,.8,.2,1),height .34s cubic-bezier(.22,.8,.2,1),opacity .16s ease;
    will-change:transform,width,height;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock.is-indicator-ready .mobile-primary-dock-indicator { opacity:1; }
  body:is(.public-site,.app-client) .mobile-primary-dock-indicator.is-instant { transition:none; }
  body:is(.public-site,.app-client) .mobile-primary-dock-item {
    position:relative;
    z-index:1;
    display:flex;
    min-width:0;
    min-height:56px;
    padding:6px 3px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    border:0;
    border-radius:18px;
    background:transparent;
    color:var(--gv-text-muted);
    text-decoration:none;
    font:500 11px/1.15 var(--gv-font-sans);
    text-align:center;
    -webkit-tap-highlight-color:transparent;
    transition:color .18s ease,transform .16s ease;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-item:is(:hover,:focus-visible) {
    color:var(--gv-text);
    text-decoration:none;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-item:focus-visible {
    outline:2px solid var(--gv-primary);
    outline-offset:-3px;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-item:active { transform:scale(.97); }
  body:is(.public-site,.app-client) .mobile-primary-dock-item.is-active { color:var(--gv-text); }
  body:is(.public-site,.app-client) .mobile-primary-dock-icon {
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    flex:none;
    transition:transform .22s cubic-bezier(.22,.8,.2,1);
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-icon svg { width:21px; height:21px; }
  body:is(.public-site,.app-client) .mobile-primary-dock-item.is-active .mobile-primary-dock-icon { transform:translateY(-1px); }
  body:is(.public-site,.app-client) .mobile-primary-dock-label {
    display:block;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  body.public-site:has(.mobile-primary-dock) .public-site-scroll-region { padding-bottom:calc(88px + env(safe-area-inset-bottom,0px)); }
}
@media(max-width:360px) {
  body:is(.public-site,.app-client) .mobile-primary-dock-item { min-height:54px; padding-inline:2px; font-size:10px; border-radius:16px; }
  body:is(.public-site,.app-client) .mobile-primary-dock-icon svg { width:20px; height:20px; }
}
@media(prefers-reduced-motion:reduce) {
  body:is(.public-site,.app-client) .mobile-primary-dock-indicator,
  body:is(.public-site,.app-client) .mobile-primary-dock-item,
  body:is(.public-site,.app-client) .mobile-primary-dock-icon { transition:none; }
}
