/* Reseller Hat — precision header: one logo, equal icon geometry, compact mobile */
#header .rhat-production-header{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 58%,#fffaf2 100%)!important;
  background-image:linear-gradient(180deg,#ffffff 0%,#f7fbff 58%,#fffaf2 100%)!important;
  border-bottom:1px solid rgba(239,114,0,.22)!important;
  box-shadow:0 3px 18px rgba(0,47,91,.09), inset 0 1px 0 rgba(255,255,255,.95)!important;
  position:relative;
  z-index:1000;
}
#header .rhat-header-inner{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center!important;
  min-height:68px!important;
  height:68px!important;
  gap:16px!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
#header .rhat-header-menu{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important}
#header .rhat-desktop-primary-nav{display:flex!important;align-items:center!important;gap:2px!important;margin:0!important;padding:0!important;list-style:none!important}
#header .rhat-desktop-primary-nav>li>a{min-height:46px!important;padding:0 12px!important;display:flex!important;align-items:center!important;font-weight:750!important;color:#173a5e!important}
#header .rhat-desktop-primary-nav>li>a:hover{color:#ef7200!important}
#header .rhat-header-logo{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;line-height:0!important}
#header .rhat-logo-link{display:flex!important;align-items:center!important;justify-content:center!important;line-height:0!important;text-decoration:none!important}
#header .rhat-header-logo-image{display:block!important;width:180px!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;background:transparent!important;margin:0!important;padding:0!important;flex:0 0 auto!important;display:block!important}
#header .rhat-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important}
#header .rhat-header-search-trigger,
#header .rhat-mobile-menu-trigger{
  width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;margin:0!important;
  display:grid!important;place-items:center!important;border:0!important;border-radius:12px!important;
  background:transparent!important;color:#173a5e!important;box-shadow:none!important;line-height:1!important;
}
#header .rhat-header-search-trigger:hover,
#header .rhat-mobile-menu-trigger:hover{background:rgba(239,114,0,.09)!important;color:#ef7200!important}
#header .rhat-header-svg{width:28px!important;height:28px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#header .rhat-header-cart{display:flex!important;align-items:center!important;justify-content:center!important;height:44px!important;min-width:44px!important}
#header .rhat-header-cart .cart-item{margin:0!important;min-width:44px!important;height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important}
#header .rhat-header-cart .header-button{margin:0!important;padding:0!important;height:44px!important;display:flex!important;align-items:center!important}
#header .rhat-header-cart .header-cart-link{height:44px!important;min-width:44px!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#173a5e!important;text-decoration:none!important;line-height:1!important;position:relative!important}
#header .rhat-header-cart .header-cart-title{display:none!important}
#header .rhat-header-cart .rhat-cart-svg{width:28px!important;height:28px!important;position:relative!important;display:block!important;line-height:0!important;color:currentColor!important}
#header .rhat-header-cart .rhat-cart-svg svg{width:28px!important;height:28px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#header .rhat-header-cart .rhat-cart-count{position:absolute!important;top:-5px!important;right:-7px!important;min-width:17px!important;height:17px!important;padding:0 4px!important;border-radius:999px!important;background:#ef7200!important;color:#fff!important;font:700 10px/17px Arial,sans-serif!important;text-align:center!important;box-shadow:0 1px 5px rgba(0,0,0,.16)!important}
#header .rhat-header-cart .cart-icon{width:28px!important;height:28px!important;margin:0!important}
#header .rhat-header-cart .cart-icon strong{font-size:10px!important}
#header .rhat-header-cart .image-icon{margin:0!important}
#header .rhat-header-cart .header-cart-link:hover{color:#ef7200!important}
/* Remove every legacy logo layer/alternate and any generated separator dot in the production header. */
#header .rhat-production-header .header-logo-sticky,
#header .rhat-production-header .header-logo-dark,
#header .rhat-production-header .header-logo{display:none!important}
#header .rhat-production-header .rhat-header-logo .rhat-header-logo-image{display:block!important}
#header .rhat-production-header .rhat-header-actions:before,
#header .rhat-production-header .rhat-header-actions:after,
#header .rhat-production-header .rhat-header-cart:before,
#header .rhat-production-header .rhat-header-cart:after{content:none!important;display:none!important}
#header .rhat-production-header .nav-dropdown{display:none!important}


/* Final visibility guard: only the custom production logo is rendered. */
#header .rhat-production-header #logo.rhat-header-logo,
#header .rhat-production-header #logo.rhat-header-logo .rhat-logo-link,
#header .rhat-production-header #logo.rhat-header-logo .rhat-header-logo-image{visibility:visible!important;opacity:1!important}
#header .rhat-production-header .rhat-header-menu,
#header .rhat-production-header .rhat-header-actions{visibility:visible!important;opacity:1!important}

@media(max-width:849px){
  #header .rhat-production-header{height:58px!important;min-height:58px!important}
  #header .rhat-header-inner{grid-template-columns:42px minmax(0,1fr) 90px!important;min-height:58px!important;height:58px!important;gap:0!important;padding:0 7px!important}
  #header .rhat-header-menu{width:42px!important;height:42px!important}
  #header .rhat-header-logo{height:58px!important;overflow:visible!important}
  #header .rhat-header-logo-image{width:145px!important;max-width:calc(100vw - 135px)!important;max-height:none!important;height:auto!important}
  #header .rhat-header-actions{width:90px!important;height:58px!important;gap:4px!important;justify-content:flex-end!important}
  #header .rhat-header-search-trigger,#header .rhat-mobile-menu-trigger{width:42px!important;height:42px!important;min-width:42px!important;border-radius:10px!important}
  #header .rhat-header-svg{width:27px!important;height:27px!important;stroke-width:1.95!important}
  #header .rhat-header-cart,#header .rhat-header-cart .cart-item,#header .rhat-header-cart .header-button,#header .rhat-header-cart .header-cart-link{width:42px!important;min-width:42px!important;height:42px!important}
  #header .rhat-header-cart .rhat-cart-svg,#header .rhat-header-cart .rhat-cart-svg svg{width:27px!important;height:27px!important}
  #header .rhat-header-cart .rhat-cart-count{top:-4px!important;right:-5px!important}
  #header .header-main .container{padding-left:0!important;padding-right:0!important}
  /* Keep the production header's own inner container visible; hide only the optional divider container. */
  #header .rhat-production-header>.container.rhat-header-inner{display:grid!important}
  #header .rhat-production-header>.container:not(.rhat-header-inner){display:none!important}
  #header .rhat-mobile-menu-trigger{display:grid!important;visibility:visible!important;opacity:1!important}
  #header .rhat-production-header + .header-bottom{display:none!important}
  #header .rhat-production-header .rhat-header-svg{color:#123b63!important;stroke:currentColor!important}
  #header .rhat-production-header .rhat-header-search-trigger,
  #header .rhat-production-header .rhat-header-cart .header-cart-link{color:#123b63!important;visibility:visible!important;opacity:1!important}
}
@media(max-width:380px){
  #header .rhat-header-inner{grid-template-columns:40px minmax(0,1fr) 84px!important;padding:0 5px!important}
  #header .rhat-header-logo-image{width:125px!important;max-width:calc(100vw - 128px)!important;max-height:none!important;height:auto!important}
  #header .rhat-header-actions{width:84px!important}
  #header .rhat-header-search-trigger,#header .rhat-mobile-menu-trigger,#header .rhat-header-cart,#header .rhat-header-cart .cart-item,#header .rhat-header-cart .header-button,#header .rhat-header-cart .header-cart-link{width:40px!important;min-width:40px!important;height:40px!important}
}

/* Mobile header isolation: never allow the desktop/main navigation to enter the mobile header or overlap the logo. */
@media(max-width:849px){
  #header .rhat-production-header .rhat-desktop-primary-nav,
  #header .rhat-production-header .rhat-desktop-primary-nav > li,
  #header .rhat-production-header .rhat-desktop-primary-nav .nav-dropdown,
  #header .rhat-production-header .header-nav-main,
  #header .rhat-production-header .header-bottom-nav{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
  }
  #header .rhat-production-header .rhat-header-menu{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:42px!important;
    min-width:42px!important;
    overflow:visible!important;
  }
  #header .rhat-production-header .rhat-header-logo{
    position:relative!important;
    z-index:2!important;
    min-width:0!important;
    overflow:visible!important;
  }
  #header .rhat-production-header .rhat-logo-link{
    position:relative!important;
    z-index:2!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  #header .rhat-production-header .rhat-header-logo-image{
    position:relative!important;
    z-index:2!important;
    margin:0 auto!important;
  }
}

/* V8 logo visibility repair: preserve the complete Reseller Hat artwork on every viewport. */
#header .rhat-production-header .rhat-header-logo,
#header .rhat-production-header .rhat-logo-link,
#header .rhat-production-header .rhat-header-logo-image{
  overflow:visible!important;
  box-sizing:content-box!important;
}
#header .rhat-production-header .rhat-logo-link{
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%!important;
}
@media(max-width:849px){
  #header .rhat-production-header .rhat-header-logo{overflow:visible!important;}
  #header .rhat-production-header .rhat-header-logo-image{
    width:145px!important;
    height:auto!important;
    max-width:calc(100vw - 135px)!important;
    max-height:none!important;
    object-fit:contain!important;
  }
}
@media(max-width:380px){
  #header .rhat-production-header .rhat-header-logo-image{
    width:125px!important;
    max-width:calc(100vw - 128px)!important;
  }
}
