/* DCR.BY desktop header geometry: identical from the first paint on every public page.
   This stylesheet is loaded in <head>, not injected after the footer.
   The cart is rendered in the action group beside favorites. */
@media (min-width: 900px) {
  html { scrollbar-gutter: stable; }

  body:not([data-page="admin"]) > .header > .brand-home-zone,
  body:not([data-page="admin"]) > .header > .dcr-header-left {
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }
  body:not([data-page="admin"]) > .header > .brand-home-zone,
  body:not([data-page="admin"]) > .header > .dcr-header-left .brand-home-zone {
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
  }

  body:not([data-page="admin"]) > .header .desktop-main-nav {
    display: flex !important;
    gap: 0 !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    min-width: 0 !important;
    width: auto !important;
    height: 48px !important;
  }
  body:not([data-page="admin"]) > .header .desktop-main-nav > a {
    display: inline-flex !important;
    box-sizing: border-box !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-weight: 740 !important;
    font-size: 15px !important;
    letter-spacing: -.012em !important;
  }
  /* Keep Contacts visible on account and order pages. */
  body[data-page="cart"] > .header .desktop-main-nav > a[data-nav-page="contacts"],
  body[data-page="orders"] > .header .desktop-main-nav > a[data-nav-page="contacts"],
  body[data-page="account"] > .header .desktop-main-nav > a[data-nav-page="contacts"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  body:not([data-page="admin"]) > .header .desktop-main-nav > a::after {
    left: 10px !important;
    right: 10px !important;
  }
  body:not([data-page="admin"]) > .header .right-group {
    flex: 0 0 216px !important;
    width: 216px !important;
    min-width: 216px !important;
    max-width: 216px !important;
    justify-content: flex-end !important;
  }
}
@media (min-width: 900px) and (max-width: 1090px) {
  body:not([data-page="admin"]) > .header > .brand-home-zone,
  body:not([data-page="admin"]) > .header > .dcr-header-left {
    flex-basis: 132px !important;
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
  }
  body:not([data-page="admin"]) > .header .right-group {
    flex-basis: 204px !important;
    width: 204px !important;
    min-width: 204px !important;
    max-width: 204px !important;
  }
  body:not([data-page="admin"]) > .header .desktop-main-nav > a {
    font-size: 13px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Shared cart count sits beside the label, never floating over another menu item. */
.dcr-cart-badge{box-sizing:border-box;min-width:17px;height:17px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:#6726ab;color:#fff;font:700 10px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;white-space:nowrap;pointer-events:none}
.dcr-cart-badge[hidden]{display:none!important}
.desktop-main-nav .dcr-cart-link{gap:5px!important}
.desktop-main-nav .dcr-cart-badge{position:static!important;flex:0 0 auto}
.bottom-nav .icon-wrap,.home-bottom-nav .icon-wrap{position:relative}
.bottom-nav .dcr-cart-badge,.home-bottom-nav .dcr-cart-badge{position:absolute!important;top:-5px!important;right:-10px!important;left:auto!important;bottom:auto!important;width:auto!important;min-width:17px!important;height:17px!important;font-size:10px!important;transform:none!important}
.dcr-mobile-drawer-nav .dcr-cart-link{grid-template-columns:27px minmax(0,1fr) auto!important}
.dcr-mobile-drawer-nav .dcr-cart-badge{position:static!important}


/* These controls exist in initial HTML, not after network requests. */
.header .dcr-favorites-header{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:40px;color:#6726ab;border-radius:10px}
.header .dcr-favorites-header svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.header .dcr-favorites-header.is-active svg{fill:#eee6f7}.header .dcr-favorites-header:hover{background:#f5f0fa}
.header .dcr-favorites-header .dcr-favorites-count{position:absolute;top:0;right:-2px;min-width:17px;height:17px;line-height:17px;padding:0 4px;background:#6726ab;color:#fff;border-radius:10px;font-size:10px;font-weight:700;text-align:center;pointer-events:none}
.header .dcr-favorites-count[hidden]{display:none!important}.header .dcr-favorites-header:focus-visible{outline:2px solid #6726ab;outline-offset:2px}
.header .dcr-header-left{display:flex;align-items:center;gap:7px;min-width:0;flex:0 0 auto;overflow:visible}
.header .dcr-header-left .brand-home-zone{margin:0!important;padding:0!important;overflow:visible!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:0!important}
.header .dcr-global-menu-trigger{display:none;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:1px solid #e7e1e8;border-radius:12px;background:#fff;color:#4f474f;align-items:center;justify-content:center}
.header .dcr-global-menu-trigger svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round}
@media(max-width:899px){body:not([data-page="admin"])>.header{gap:8px!important}body:not([data-page="admin"])>.header .dcr-header-left{gap:5px}body:not([data-page="admin"])>.header .dcr-global-menu-trigger{display:flex}body:not([data-page="admin"])>.header .right-group{gap:5px!important}}
@media(max-width:430px){body:not([data-page="admin"])>.header .dcr-header-left{gap:3px}.header .dcr-favorites-header{flex-basis:32px;width:32px}}

@media(max-width:430px){body:not([data-page="admin"])>.header .brand-home-zone{overflow:visible!important;flex-basis:auto!important;width:auto!important;max-width:none!important}body:not([data-page="admin"])>.header .company-header-logo{width:auto!important;height:29px!important;max-height:29px!important;max-width:112px!important}body:not([data-page="admin"])>.header .currency-toggle{min-width:132px!important}body:not([data-page="admin"])>.header .currency-toggle button{padding-left:7px!important;padding-right:7px!important}}

/* The shared actions occupy their final boxes before authentication runs. */
.header .right-group :is(.dcr-cart-header,.dcr-favorites-header){
  box-sizing:border-box;position:relative;display:inline-grid;place-items:center;
  flex:0 0 var(--action-size,48px);width:var(--action-size,48px);height:var(--action-size,48px);
  padding:0;margin:0;border-radius:10px;color:#2b252e;text-decoration:none;
}
.header .right-group :is(.dcr-cart-header,.dcr-favorites-header):is(:hover,:focus-visible){background:#f5f0fa}
.header .right-group :is(.dcr-cart-header,.dcr-favorites-header):focus-visible{outline:2px solid #6726ab;outline-offset:1px}
.header .right-group :is(.dcr-cart-header,.dcr-favorites-header) svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.header .right-group :is(.dcr-cart-badge,.dcr-favorites-count){position:absolute;top:0;right:0;box-sizing:border-box;min-width:14px;height:14px;padding:0 3px;font:700 9px/14px Arial,sans-serif}
@media(min-width:900px){
  body:not([data-page="admin"])>.header .desktop-main-nav{gap:6px!important}
  body:not([data-page="admin"])>.header .desktop-main-nav>a{height:48px!important;border-radius:10px!important}
  body:not([data-page="admin"])>.header .right-group{gap:6px!important;width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important}
}
@media(max-width:899px){.header .right-group{--action-size:40px}}
@media(max-width:380px){
  body:not([data-page="admin"])>.header{padding-inline:10px!important;gap:4px!important}
  body:not([data-page="admin"])>.header .right-group{--action-size:36px;gap:3px!important}
  body:not([data-page="admin"])>.header .currency-toggle{min-width:0!important;width:100px!important;flex:0 0 100px!important}
  body:not([data-page="admin"])>.header .currency-toggle button{min-width:0!important;padding-inline:3px!important}
  body:not([data-page="admin"])>.header .currency-toggle .currency-flag{display:none}
  body:not([data-page="admin"])>.header .company-header-logo{max-width:65px!important}
}

html[data-account-nav][data-storefront-ui]:not([data-opt-access="yes"]) body > .header :is(.dcr-cart-header, [data-nav-page="orders"]) { display: none !important; }
html[data-account-nav][data-storefront-ui]:not([data-opt-access="yes"]) [data-pd-add-related] { visibility: hidden; }
body > .header .right-group :is(.dcr-cart-header,.dcr-favorites-header) :is(.dcr-cart-badge,.dcr-favorites-count) {
  top: 3px; right: 1px;
}

/* Guest navigation exposes the same destinations in the header, mobile bar and menu. */
html[data-account-nav][data-storefront-ui]:not([data-opt-access="yes"]) :is(.bottom-nav,.home-bottom-nav,.dcr-mobile-drawer-nav) :is(#cartNavBtn,#ordersNavBtn,[data-nav-page="cart"],[data-nav-page="orders"],[href="/cart"],[href="/orders"]) {
  display: none !important;
}
@media (max-width:899px) {
  html[data-account-nav][data-storefront-ui]:not([data-opt-access="yes"]) body:not([data-page="admin"]) > nav.bottom-nav.bottom-nav-4,
  html[data-account-nav][data-storefront-ui]:not([data-opt-access="yes"]) body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
