.storefront-header { --header-ink:#193453; box-shadow:0 2px 12px #17335008; }
.storefront-header .large-container { max-width:1380px; padding:0 28px; margin:auto; }
.storefront-header .header-upper { background:linear-gradient(110deg,#102c50,#1b3b65); padding:23px 0; border:0; }
.storefront-header .upper-inner { display:grid; grid-template-columns:260px minmax(220px,1fr) auto; gap:42px; align-items:center; }
.storefront-header .header-upper .logo-box.bayi-logo { margin:0; width:260px; display:flex; flex-direction:column; align-items:flex-start; }
.storefront-header .bayi-logo-img { width:260px; height:43px; object-fit:contain; }
.storefront-header .bayi-sponsor-logos { display:flex; gap:7px; margin-top:8px; }
.storefront-header .bayi-sponsor-item { display:flex; align-items:center; justify-content:center; background:#fff; border-radius:4px; width:48px; height:21px; padding:3px 5px; }
.storefront-header .bayi-sponsor-item img { width:100%; height:100%; object-fit:contain; }
.storefront-header .header-upper .search-area { width:100%; max-width:none; margin:0; background:transparent; padding:0; border:0; }
.storefront-header .search-box .form-group { margin:0; width:100%; position:relative; }
.storefront-header .header-upper .search-box .form-group input[type=search] { width:100%; height:54px; border:1px solid #ffffff30; background:#fff; border-radius:12px; padding:0 66px 0 20px; color:#193453; font-size:14px; box-shadow:0 5px 16px #061a3220; }
.storefront-header .header-upper .search-box .form-group button[type=submit] { top:6px; right:6px; width:42px; height:42px; line-height:42px; border-radius:9px; background:#ff7900; color:#fff; }
.storefront-header .header-actions { gap:12px; }
.storefront-header .ha-link { height:50px; padding:0 14px; border-radius:11px; gap:10px; }
.storefront-header .ha-profile-link { background:#ffffff0b; border:1px solid #ffffff26; color:#fff; }
.storefront-header .ha-profile-link:hover { background:#ffffff18; }
.storefront-header .ha-profile-name,.storefront-header .ha-caret { color:#c6d4e7; }
.storefront-header .ha-profile-name { max-width:90px; overflow:hidden; text-overflow:ellipsis; margin-top:4px; }
.storefront-header .ha-profile-title,.storefront-header .ha-label { font-size:13px; font-weight:600; }
.storefront-header .ha-profile-ico { font-size:22px; }
.storefront-header .ha-cart .ha-link { background:#fff; border:1px solid #fff; color:var(--header-ink); }
.storefront-header .ha-badge { background:#ff7900; top:-7px; right:-6px; border:2px solid #fff; height:19px; min-width:19px; line-height:15px; }
.storefront-header .ha-dropdown { top:58px; border:1px solid #e6ebf1; padding:8px; border-radius:14px; box-shadow:0 16px 40px #102c5026; }
.storefront-header .ha-dropdown a { border-radius:7px; }
.storefront-header .header-lower { background:#fff; border-bottom:1px solid #e9edf3; }
.storefront-header .header-lower .outer-box { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:66px; padding:0; }
.storefront-header .menu-area { justify-content:flex-start; flex:1; }
.storefront-header .main-menu .navigation { display:flex; gap:30px; }
.storefront-header .main-menu .navigation>li { margin:0; float:none; }
.storefront-header .main-menu .navigation>li>a { padding:23px 0; font-size:14px; line-height:20px; font-weight:500; color:#31465f; }
.storefront-header .main-menu .navigation>li>a:hover { color:#f47700; }
.storefront-header .menu-right-content { margin:0; padding:0; }
.storefront-header .support-box { padding:0; gap:10px; display:flex; align-items:center; }
.storefront-header .support-box .icon-box { position:static; width:34px; height:34px; border-radius:50%; background:#fff3e6; display:flex; align-items:center; justify-content:center; font-size:20px; color:#f47700; }
.storefront-header .representatives { gap:22px; align-items:center; }
.storefront-header .representative-item { min-width:0; }
.storefront-header .support-box .support-text { display:flex; gap:6px; align-items:center; font-size:10px; line-height:15px; color:#7b8899; }
.storefront-header .support-text b { font-weight:400; }
.storefront-header .support-box .representative-name { margin:0; font-size:10px; line-height:15px; color:#5b6d83; }
.storefront-header .support-box .support-phone { margin:0; font-size:15px; line-height:21px; font-weight:600; color:#193453; letter-spacing:.3px; }
.storefront-header .support-box:not(:has(.representative-item)) { display:none; }
.storefront-header a:focus-visible,.storefront-header button:focus-visible,.storefront-header input:focus-visible { outline:3px solid #ffb15c; outline-offset:3px; }
@media(max-width:1100px) {
 .storefront-header .upper-inner { grid-template-columns:210px minmax(190px,1fr) auto; gap:22px; }
 .storefront-header .header-upper .logo-box.bayi-logo,.storefront-header .bayi-logo-img { width:210px; }
 .storefront-header .main-menu .navigation { gap:20px; }
 .storefront-header .support-text b { display:none; }
 .storefront-header .ha-profile-name { max-width:65px; }
}
@media(max-width:991px) {
 .storefront-header .header-upper .upper-inner { display:grid; grid-template-columns:1fr auto; gap:18px; flex-wrap:unset; }
 .storefront-header .header-upper .search-area { grid-column:1/-1; order:3; }
 .storefront-header .header-upper .header-actions { margin:0; }
 .storefront-header .header-upper .logo-box.bayi-logo { margin:0; }
 .storefront-header .header-lower .outer-box { flex-wrap:wrap; }
 .storefront-header .menu-right-content { display:block; }
 .storefront-header .main-menu { display:block; }
}
@media(max-width:767px) {
 .storefront-header .large-container { padding:0 18px; }
 .storefront-header .header-upper { padding:16px 0; }
 .storefront-header .header-upper .logo-box.bayi-logo,.storefront-header .bayi-logo-img { width:180px; }
 .storefront-header .bayi-logo-img { height:30px; }
 .storefront-header .bayi-sponsor-logos { margin-top:5px; }
 .storefront-header .bayi-sponsor-item { width:36px; height:17px; padding:2px 4px; }
 .storefront-header .header-actions { gap:7px; }
 .storefront-header .ha-link { width:40px; height:42px; padding:0; justify-content:center; }
 .storefront-header .ha-profile-text,.storefront-header .ha-caret,.storefront-header .ha-label { display:none; }
 .storefront-header .header-upper .search-box .form-group input[type=search] { height:48px; font-size:13px; padding-left:15px; }
 .storefront-header .header-upper .search-box .form-group button[type=submit] { width:36px; height:36px; line-height:36px; }
 .storefront-header .header-lower .outer-box { min-height:58px; gap:10px; position:relative; }
 .storefront-header .menu-area { flex:0; position:static; }
 .storefront-header .menu-area .mobile-nav-toggler { display:flex; align-items:center; margin:0; padding:10px; background:#f1f5f9; border-radius:8px; float:none; }
 .storefront-header .mobile-nav-toggler .icon-bar { width:20px; background:#193453; }
 .storefront-header .main-menu .navbar-collapse { position:absolute; left:0; right:0; top:100%; background:#fff; border:1px solid #e8edf4; border-radius:0 0 14px 14px; box-shadow:0 14px 24px #102c501a; z-index:100; padding:8px 18px; }
 .storefront-header .main-menu .navbar-collapse:not(.show) { display:none !important; }
 .storefront-header .main-menu .navbar-collapse.show { display:block !important; }
 .storefront-header .main-menu .navigation { display:block; }
 .storefront-header .main-menu .navigation>li>a { padding:13px 0; }
 .storefront-header .representatives { gap:12px; flex-direction:row; flex-wrap:wrap; }
 .storefront-header .support-box .support-phone { font-size:13px; }
 .storefront-header .support-box .icon-box { width:30px; height:30px; font-size:18px; }
 .storefront-header .menu-right-content { max-width:calc(100% - 54px); }
}
.storefront-header .logout-action { display:flex; align-items:center; gap:10px; width:100%; border:0; background:transparent; padding:10px 14px; font-size:13px; color:#333; text-align:left; border-radius:7px; cursor:pointer; }
.storefront-header .logout-action:hover { background:#f5f5f5; }
.b2c-catalog-page .header-top{display:none}
/* Compact storefront masthead and centered navigation. */
.storefront-header{box-shadow:none;background:#fff}
.storefront-header .header-upper{background:#153457;padding:18px 0}
.storefront-header .upper-inner{grid-template-columns:250px minmax(220px,1fr) auto;gap:48px}
.storefront-header .header-upper .logo-box.bayi-logo,.storefront-header .bayi-logo-img{width:250px}
.storefront-header .bayi-logo-img{height:36px}
.storefront-header .bayi-sponsor-logos{gap:6px;margin-top:7px;opacity:.85}
.storefront-header .bayi-sponsor-item{width:42px;height:18px;border-radius:3px}
.storefront-header .header-upper .search-box .form-group input[type=search]{height:48px;border-radius:9px;background:#f8fafc;border:1px solid #e7eef5;padding-left:18px;font-size:13px;box-shadow:none}
.storefront-header .header-upper .search-box .form-group input[type=search]::placeholder{color:#8393a7}
.storefront-header .header-upper .search-box .form-group button[type=submit]{height:36px;width:38px;line-height:36px;border-radius:6px;top:6px;right:6px;background:#ef8834;font-size:17px}
.storefront-header .header-actions{gap:10px}
.storefront-header .ha-link{height:46px;border-radius:8px;padding:0 13px}
.storefront-header .ha-profile-link{background:transparent;border-color:#ffffff26}
.storefront-header .ha-profile-ico{display:block;width:20px;height:20px;flex-shrink:0}
.storefront-header svg.ha-caret{width:12px;height:12px;flex-shrink:0}
.storefront-header .ha-profile-title,.storefront-header .ha-label{font-size:12px}
.storefront-header .ha-profile-name{font-size:11px;margin-top:3px}
.storefront-header .ha-cart .ha-link{background:#ffffff0b;border:1px solid #ffffff26;color:#fff}
.storefront-header .ha-badge{background:#ef8834;border-color:#153457}
.storefront-header .ha-cart .ha-ico-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;flex-shrink:0}
.storefront-header .ha-cart-icon{display:block;width:25px;height:25px;flex-shrink:0}
.storefront-header .header-lower{background:#fff;border-bottom:1px solid #e7edf3;box-shadow:0 3px 8px #17345304}
.storefront-header .header-lower .outer-box{min-height:52px;position:relative;justify-content:center;gap:0}
.storefront-header .menu-area{display:flex;flex:1;justify-content:center}
.storefront-header .main-menu .navigation{display:flex;align-items:center;justify-content:center;gap:12px}
.storefront-header .main-menu .navigation>li>a{position:relative;padding:17px 20px;line-height:18px;font-size:13px;font-weight:500;letter-spacing:.1px;color:#758398;transition:color .2s,background .2s}
.storefront-header .main-menu .navigation>li>a:before{display:none!important}
.storefront-header .main-menu .navigation>li>a:after{content:'';position:absolute;left:20px;right:20px;bottom:0;height:2px;border-radius:2px;background:transparent}
.storefront-header .main-menu .navigation>li>a:hover{background:#f8fafc;color:#193b62}
.storefront-header .main-menu .navigation>li>a.nav-current{color:#17385e;font-weight:600}
.storefront-header .main-menu .navigation>li>a.nav-current:after{background:#ef8834}
.storefront-header .menu-right-content:has(.representative-item){position:absolute;right:0}
@media(max-width:1100px){.storefront-header .upper-inner{grid-template-columns:210px minmax(190px,1fr) auto;gap:24px}.storefront-header .header-upper .logo-box.bayi-logo,.storefront-header .bayi-logo-img{width:210px}.storefront-header .menu-right-content:has(.representative-item){position:static;margin-left:20px}}
@media(max-width:991px){.storefront-header .header-upper .upper-inner{grid-template-columns:1fr auto;gap:14px}.storefront-header .header-upper{padding:16px 0}.storefront-header .header-upper .search-area{grid-column:1/-1}.storefront-header .header-lower .outer-box{flex-wrap:nowrap}.storefront-header .menu-area{flex:1}}
@media(max-width:767px){.storefront-header .large-container{padding:0 16px}.storefront-header .header-upper .logo-box.bayi-logo,.storefront-header .bayi-logo-img{width:175px}.storefront-header .bayi-logo-img{height:28px}.storefront-header .bayi-sponsor-item{width:32px;height:15px}.storefront-header .bayi-sponsor-logos{margin-top:4px}.storefront-header .ha-link{width:39px;height:39px;padding:0}.storefront-header .header-upper .search-box .form-group input[type=search]{height:44px;font-size:12px;padding-left:12px}.storefront-header .header-upper .search-box .form-group button[type=submit]{height:32px;width:34px;line-height:32px}.storefront-header .header-lower .large-container{padding:0 10px}.storefront-header .header-lower .outer-box{min-height:48px;display:block}.storefront-header .menu-area{display:block}.storefront-header .menu-area .mobile-nav-toggler{display:none!important}.storefront-header .main-menu{width:100%}.storefront-header .main-menu .navbar-collapse:not(.show),.storefront-header .main-menu .navbar-collapse.show{display:block!important;position:static;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}.storefront-header .main-menu .navigation{display:flex;flex-wrap:nowrap;gap:0;justify-content:center;width:100%}.storefront-header .main-menu .navigation>li{display:block;flex:1;float:none;text-align:center}.storefront-header .main-menu .navigation>li:nth-child(3){flex:2}.storefront-header .main-menu .navigation>li>a{display:block;font-size:10px;line-height:16px;letter-spacing:0;white-space:nowrap;padding:16px 4px}.storefront-header .main-menu .navigation>li>a:after{left:8px;right:8px}.storefront-header .menu-right-content:has(.representative-item){max-width:none;margin:0;padding:10px 0;border-top:1px solid #eef2f6}.storefront-header .main-menu .navbar-header{display:none}}
.storefront-header .main-menu .navigation>li>a{padding:17px 20px!important}
@media(max-width:767px){.storefront-header .main-menu .navigation>li>a{padding:16px 4px!important}}
@media(max-width:767px){
.storefront-header .menu-area{height:auto!important;width:100%!important}
.storefront-header .main-menu{float:none!important}
.storefront-header .main-menu .navigation{display:flex!important}
.storefront-header .main-menu .navigation>li{width:auto!important;border:0!important}
.storefront-header .main-menu .navbar-collapse{height:auto!important;width:100%!important;max-height:none!important;overflow:visible!important}
}
/* Customer account popover. */
.storefront-header .shop-nav{display:flex;width:100%;align-items:center;gap:24px;min-width:0;padding:0}
.shop-all{display:flex;align-items:center;gap:12px;flex-shrink:0;color:#173453;font-size:13px;font-weight:600;padding:18px 22px 18px 0;border-right:1px solid #e8edf3}
.shop-all i{color:#ed7d29;font-size:16px}.shop-all>.store-link-arrow{color:#647d91;margin-left:4px}
.shop-nav-categories{display:flex;align-items:center;gap:25px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.shop-nav-categories::-webkit-scrollbar{display:none}
.shop-nav-categories a{display:block;padding:18px 0;color:#41556e;font-size:12px;font-weight:500;border-bottom:2px solid transparent}
.shop-nav-categories a:hover{color:#e87824;border-bottom-color:#e87824}.shop-nav-categories .shop-nav-new{color:#d87427}.shop-nav-new span{margin-right:4px}
.store-link-arrow{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#edf3f7;color:inherit;vertical-align:middle}
.store-link-arrow svg{display:block;width:13px;height:13px;transition:transform .18s ease}
a:hover .store-link-arrow svg{transform:translateX(2px)}
.shop-nav-help{display:flex;gap:8px;align-items:center;flex-shrink:0;padding:3px 9px 3px 5px;border:1px solid #f1e4d8;border-radius:12px;background:linear-gradient(110deg,#fff8f0,#fffdfb);color:#24455e;white-space:nowrap;transition:border-color .18s,background .18s}
.shop-nav-help .shop-help-art{display:block;width:40px;height:40px;object-fit:contain;flex-shrink:0}
.shop-help-copy{display:flex;flex-direction:column;gap:2px}
.shop-help-copy strong{font-size:12px;line-height:16px;font-weight:600;color:inherit}
.shop-help-copy small{font-size:10px;line-height:14px;color:#8a7564}
.shop-nav-help .store-link-arrow{width:22px;height:22px;margin-left:4px;background:#f9ecdf;color:#b76627}
.shop-nav-help:hover{border-color:#ebc49f;background:#fff5e9;color:#193b53}
.shop-nav-help:focus-visible,.shop-all:focus-visible{outline:2px solid #e98739;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.store-link-arrow svg,.shop-nav-help{transition:none}a:hover .store-link-arrow svg{transform:none}}
.storefront-header .header-lower .outer-box{min-height:56px}
@media(max-width:1200px){.shop-nav-help{display:none}.shop-nav-categories{gap:20px}.storefront-header .shop-nav{gap:18px}.shop-all{padding-right:18px}}
@media(max-width:767px){.storefront-header .shop-nav{gap:14px}.shop-all{padding:15px 12px 15px 4px;font-size:11px;gap:7px}.shop-all>span{display:none}.shop-nav-categories{gap:18px}.shop-nav-categories a{font-size:11px;padding:16px 0}.storefront-header .header-lower .outer-box{min-height:48px}}
.storefront-header .ha-profile-wrapper{position:relative}
.storefront-header .customer-menu{width:310px;min-width:0;max-width:calc(100vw - 32px);left:auto;right:0;top:calc(100% + 12px);padding:8px;border:1px solid #e7edf3;border-radius:18px;box-shadow:0 18px 48px #0d284326;transform:translateY(-6px);overflow:hidden}
.storefront-header .ha-profile-wrapper.active .customer-menu{transform:translateY(0)}
.storefront-header .customer-menu-welcome{display:flex;align-items:center;gap:12px;padding:17px 12px 19px;margin-bottom:6px;border-bottom:1px solid #edf1f5}
.storefront-header .customer-menu-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:42px;background:#fff2e6;border:1px solid #ffe3c9;border-radius:50%}
.storefront-header .customer-menu-avatar i{color:#db741c;font-size:18px}
.storefront-header .customer-menu-welcome div{min-width:0}
.storefront-header .customer-menu-welcome small{display:block;color:#8491a2;font-size:11px;line-height:18px}
.storefront-header .customer-menu-welcome strong{display:block;color:#173453;font-size:14px;font-weight:600;line-height:22px;overflow-wrap:anywhere}
.storefront-header .customer-menu li>a{padding:13px 10px;gap:11px;border-radius:11px;color:#233d59;white-space:normal;transition:background .15s}
.storefront-header .customer-menu li>a:hover{background:#f5f8fb}
.storefront-header .customer-menu-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:36px;border:1px solid #e9eef4;background:#fff;border-radius:10px}
.storefront-header .customer-menu-icon i{font-size:14px;color:#52708d}
.storefront-header .customer-menu-copy{flex:1;min-width:0}
.storefront-header .customer-menu-copy strong{display:block;font-size:13px;font-weight:600;line-height:21px}
.storefront-header .customer-menu-copy small{display:block;color:#8a97a6;font-size:10px;line-height:18px}
.storefront-header .customer-menu .customer-menu-arrow{width:9px;font-size:9px;color:#a4b1bf}
.storefront-header .customer-menu-exit{margin-top:8px;padding-top:6px;border-top:1px solid #edf1f5}
.storefront-header .customer-menu .logout-action{padding:12px 20px;border-radius:10px;gap:12px;color:#7c8796;font-size:12px}
.storefront-header .customer-menu .logout-action i{color:inherit}
.storefront-header .customer-menu .logout-action:hover{background:#fff4f2;color:#bf5145}
@media(max-width:767px){.storefront-header .customer-menu{right:-49px}}
#address-title{scroll-margin-top:24px}
/* Sponsor brands centered beneath the main logo. */
.storefront-header .bayi-sponsor-logos{width:100%;justify-content:center;align-items:center;gap:10px;margin-top:10px;opacity:1}
.storefront-header .bayi-sponsor-item{width:66px;height:28px;padding:5px 8px;background:#fff;border:1px solid #ffffffb3;border-radius:5px;box-shadow:0 2px 5px #071c301a}
@media(max-width:767px){.storefront-header .bayi-sponsor-logos{gap:8px;margin-top:7px}.storefront-header .bayi-sponsor-item{width:50px;height:23px;padding:4px 6px}}

/* Keep the tall brand artwork from expanding the storefront masthead. */
.storefront-header .header-upper{padding:8px 0}
.storefront-header .bayi-main-logo{display:block;line-height:0}
.storefront-header .header-upper .bayi-logo-img{width:200px;height:auto;aspect-ratio:2/1}
@media(min-width:992px){
 .storefront-header .header-upper .logo-box.bayi-logo{align-items:flex-end}
}
@media(max-width:991px){
 .storefront-header .header-upper .upper-inner{gap:10px}
 .storefront-header .header-upper .bayi-logo-img{width:180px}
}
@media(max-width:767px){
 .storefront-header .header-upper{padding:8px 0 12px}
 .storefront-header .header-upper .bayi-logo-img{width:164px}
}
