/* Scoped to the verified HTW provider. Existing scripts retain menu, search and cart behavior. */
.htw-site-header{display:flex;flex-direction:column;background:#fff;color:#151515;font-family:Arial,sans-serif}
.htw-site-header::before{content:"";display:block;order:0;height:42px;background:#f5f5f5}
.htw-site-header__utility{order:0;background:#f5f5f5}
.htw-site-header__main{order:1;min-height:80px;padding:0 30px;gap:22px;grid-template-columns:150px minmax(0,1fr) minmax(245px, 480px)}
.htw-site-header__announcement{order:2;min-height:42px;display:flex;align-items:center;justify-content:center;padding:8px 16px;background:#171717;color:#fff;font-size:14px;line-height:1.2}
.htw-site-header__logo{width:150px;max-width:100%}
.htw-site-header__logo a,.htw-site-header__logo img{width:100%}
.htw-site-header__primary-list{justify-content:flex-start;gap:16px}
.htw-site-header__primary-list>li>a{font-size:12px;font-weight:700;letter-spacing:.015em;text-transform:uppercase}
.htw-site-header__actions{gap:18px}
.htw-site-header__actions .htw-site-header__search-toggle{order:0;display:inline-flex;flex:1 1 220px;max-width:450px;min-height:46px;justify-content:flex-start;gap:14px;border-radius:28px;background:#f4f4f4;padding:0 18px;font-size:13px;font-weight:600}
.htw-site-header__search-toggle .htw-site-header__icon{order:-1;width:19px;height:19px}
.htw-site-header__actions .htw-site-header__cart{order:1}
.htw-site-header__actions .htw-site-header__account{order:2}
.htw-site-header__account-label,.htw-site-header.is-ready .htw-site-header__cart-link{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.htw-site-header__account-icon{display:block}
.htw-site-header__icon{width:23px;height:23px;flex-shrink:0}
.htw-site-header__panel,.htw-site-header__mobile-nav{order:3}
.htw-site-header__search,.htw-site-header__mini-cart{z-index:205}
@media(max-width:1350px) and (min-width:1101px){
 .htw-site-header__main{gap:12px;padding-inline:20px;grid-template-columns:150px minmax(0,1fr) minmax(170px,300px)}
 .htw-site-header__primary-list{gap:9px}.htw-site-header__primary-list>li>a{font-size:11px}.htw-site-header__actions{gap:10px}
}
@media(max-width:1100px){
 .htw-site-header::before{display:none}
 .htw-site-header__main{display:grid;grid-template-columns:minmax(0,1fr) 40px 40px 40px;min-height:60px;gap:4px;padding:0 12px 0 18px}
 .htw-site-header__logo{grid-column:1;grid-row:1;justify-self:start;width:160px;max-width:100%}
 .htw-site-header__mobile-toggle{grid-column:3;grid-row:1;min-width:40px;min-height:44px;z-index:1}
 .htw-site-header__actions{display:contents}
 .htw-site-header__actions .htw-site-header__search-toggle{grid-column:2;grid-row:1;min-height:44px;min-width:40px;padding:0;justify-content:center;border-radius:0;background:transparent;max-width:none}
 .htw-site-header__actions .htw-site-header__cart{grid-column:4;grid-row:1;justify-content:center}
 .htw-site-header__actions .htw-site-header__account{display:none}
 .htw-site-header__search-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .htw-site-header__announcement{min-height:36px;font-size:12px}
 .htw-site-header__mobile-nav{order:3}
}
@media(max-width:360px){.htw-site-header__logo{width:140px}.htw-site-header__main{padding-left:12px;gap:0}}

/* vivo-mobile-logo-repair */
@media(max-width:1100px){.htw-site-header__logo{width:145px}}
@media(max-width:360px){.htw-site-header__logo{width:140px}}

/* Source desktop mega menu: keep the existing menu, links and JS, but group
   columns at the left as observed at 1440px. Unverified promo tiles omitted. */
@media (min-width: 1101px) {
  .htw-site-header__desktop-nav .htw-site-header__mega-root > .sub-menu:not([hidden]) {
    grid-template-columns: repeat(4, minmax(0, 120px));
    gap: 0 35px;
    align-content: start;
    padding: 22px max(32px, calc((100vw - 1240px) / 2)) 56px;
    background: #fff;
    color: #111;
    box-shadow: none;
  }
  .htw-site-header__desktop-nav .htw-site-header__mega-root > .sub-menu > li > a {
    min-height: 38px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .htw-site-header__desktop-nav .htw-site-header__mega-root > .sub-menu > li > .sub-menu > li > a {
    min-height: 37px;
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
  }
}

/* Give the existing Main Menu adequate room near the desktop breakpoint.
   The search control retains its accessible label and opens the same panel. */
@media (min-width: 1101px) and (max-width: 1250px) {
  .htw-site-header__main { grid-template-columns: 150px minmax(0, 1fr) 126px; }
  .htw-site-header__actions .htw-site-header__search-toggle {
    flex: 0 0 40px;
    min-width: 40px;
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .htw-site-header__search-toggle > span:not(.htw-site-header__icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
