/* PadelScout header-clean v151
   Single source of truth for the desktop header across public, app and live pages.
   Loaded last, after styles.css and live-clean.css, to avoid route-specific header drift. */
@media (min-width: 921px) {
  body:not(.embedded-editor) .site-header.shop-header {
    display: grid !important;
    grid-template-columns: 210px 476px 210px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    width: calc(100vw - 47px) !important;
    max-width: calc(100vw - 47px) !important;
    height: 74px !important;
    min-height: 74px !important;
    margin: 14px 16px 0 !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  body:not(.embedded-editor) .site-header.shop-header .brand-logo {
    grid-column: 1 !important;
    justify-self: start !important;
    height: 48px !important;
    overflow: visible !important;
  }

  body:not(.embedded-editor) .site-header.shop-header .brand-logo img {
    display: block !important;
    width: 190px !important;
    max-width: 190px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body:not(.embedded-editor) .site-header.shop-header .desktop-nav,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav {
    grid-column: 2 !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 476px !important;
    min-width: 476px !important;
    max-width: 476px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 4px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  body:not(.embedded-editor) .site-header.shop-header .mega-nav > a,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a {
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  body:not(.embedded-editor) .site-header.shop-header .mega-nav > a,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }

  body:not(.embedded-editor) .site-header.shop-header .header-account {
    grid-column: 3 !important;
    justify-self: end !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }
}
/* header nav pill-shape refinement v432 */
@media (min-width: 921px) {
  body:not(.embedded-editor) .site-header.shop-header {
    border-radius: 22px !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .desktop-nav,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav {
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 999px !important;
    overflow: visible !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .mega-nav > a,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a {
    width: calc((476px - 16px) / 3) !important;
    min-width: calc((476px - 16px) / 3) !important;
    max-width: calc((476px - 16px) / 3) !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .header-account,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav > a,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a {
    border-radius: 999px !important;
  }
}
@media (max-width: 920px) {
  body:not(.embedded-editor) .site-header.shop-header,
  body:not(.embedded-editor) .site-header.shop-header .header-account,
  body:not(.embedded-editor) .site-header.shop-header .mobile-subnav,
  body:not(.embedded-editor) .site-header.shop-header .mobile-subnav a {
    border-radius: 14px !important;
  }
}

/* v416: mobile app/live header breathing room after compact details polish */
@media (max-width: 700px) {
  body:not(.embedded-editor).app-page .site-header.shop-header {
    margin-top: 18px !important;
    top: auto !important;
  }
  body:not(.embedded-editor).app-page .app-shell {
    padding-top: 22px !important;
  }
  body:not(.embedded-editor).app-page .live-shell {
    padding-top: 24px !important;
  }
  body:not(.embedded-editor).app-page .live-top-tabs {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }
}
@media (max-width: 420px) {
  body:not(.embedded-editor).app-page .site-header.shop-header {
    margin-top: 16px !important;
  }
  body:not(.embedded-editor).app-page .app-shell,
  body:not(.embedded-editor).app-page .live-shell {
    padding-top: 20px !important;
  }
}

/* v433: phone landscape header — keep logo/nav/account in one aligned row */
@media (min-width: 701px) and (max-width: 1100px) and (max-height: 520px) {
  body:not(.embedded-editor) .site-header.shop-header,
  body:not(.embedded-editor) .premium-landing-header {
    display: grid !important;
    grid-template-columns: 176px minmax(330px, 1fr) 112px !important;
    grid-template-areas: "brand nav account" !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 10px !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    min-height: 66px !important;
    height: 66px !important;
    margin: 10px 14px 0 !important;
    padding: 9px 12px !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .brand,
  body:not(.embedded-editor) .site-header.shop-header .brand-logo,
  body:not(.embedded-editor) .premium-landing-header .brand,
  body:not(.embedded-editor) .premium-landing-header .brand-logo {
    grid-area: brand !important;
    grid-column: auto !important;
    justify-self: start !important;
    width: 176px !important;
    max-width: 176px !important;
    height: 44px !important;
    min-height: 44px !important;
    overflow: hidden !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .brand img,
  body:not(.embedded-editor) .site-header.shop-header .brand-logo img,
  body:not(.embedded-editor) .premium-landing-header .brand img,
  body:not(.embedded-editor) .premium-landing-header .brand-logo img {
    width: 176px !important;
    max-width: 176px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .desktop-nav,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav,
  body:not(.embedded-editor) .premium-landing-header .desktop-nav,
  body:not(.embedded-editor) .premium-landing-header .mega-nav {
    grid-area: nav !important;
    grid-column: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-content: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 4px !important;
    gap: 4px !important;
    border-radius: 999px !important;
    background: rgba(23,61,43,.09) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .mega-nav > a,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a,
  body:not(.embedded-editor) .premium-landing-header .mega-nav > a,
  body:not(.embedded-editor) .premium-landing-header .mega-nav .nav-item,
  body:not(.embedded-editor) .premium-landing-header .mega-nav .nav-item > a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a span,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a:after,
  body:not(.embedded-editor) .premium-landing-header .mega-nav .nav-item > a span,
  body:not(.embedded-editor) .premium-landing-header .mega-nav .nav-item > a:after {
    display: none !important;
    content: none !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .header-account,
  body:not(.embedded-editor) .premium-landing-header .header-account {
    grid-area: account !important;
    grid-column: auto !important;
    justify-self: end !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 701px) and (max-width: 820px) and (max-height: 520px) {
  body:not(.embedded-editor) .site-header.shop-header,
  body:not(.embedded-editor) .premium-landing-header {
    grid-template-columns: 150px minmax(300px, 1fr) 96px !important;
    gap: 8px !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .brand,
  body:not(.embedded-editor) .site-header.shop-header .brand-logo,
  body:not(.embedded-editor) .site-header.shop-header .brand img,
  body:not(.embedded-editor) .site-header.shop-header .brand-logo img,
  body:not(.embedded-editor) .premium-landing-header .brand,
  body:not(.embedded-editor) .premium-landing-header .brand-logo,
  body:not(.embedded-editor) .premium-landing-header .brand img,
  body:not(.embedded-editor) .premium-landing-header .brand-logo img {
    width: 150px !important;
    max-width: 150px !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .header-account,
  body:not(.embedded-editor) .premium-landing-header .header-account {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    font-size: 12px !important;
  }
  body:not(.embedded-editor) .site-header.shop-header .mega-nav > a,
  body:not(.embedded-editor) .site-header.shop-header .mega-nav .nav-item > a,
  body:not(.embedded-editor) .premium-landing-header .mega-nav > a,
  body:not(.embedded-editor) .premium-landing-header .mega-nav .nav-item > a {
    font-size: 11.5px !important;
  }
}

/* v434: exact homepage phone-landscape header override */
@media (min-width:701px) and (max-width:1100px) and (max-height:520px){
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header{
    display:grid!important;
    grid-template-columns:150px minmax(300px,1fr) 96px!important;
    grid-template-areas:"brand nav account"!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:8px!important;
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
    height:68px!important;
    min-height:68px!important;
    max-height:68px!important;
    margin:10px 14px 0!important;
    padding:10px 12px!important;
    border-radius:28px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .brand,
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .brand-logo{
    grid-area:brand!important;
    grid-column:auto!important;
    grid-row:auto!important;
    justify-self:start!important;
    align-self:center!important;
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    height:44px!important;
    min-height:44px!important;
    overflow:hidden!important;
  }
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .brand img,
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .brand-logo img{
    width:150px!important;
    max-width:150px!important;
    height:auto!important;
    display:block!important;
    object-fit:contain!important;
  }
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header nav.desktop-nav.mega-nav,
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .desktop-nav,
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .mega-nav{
    grid-area:nav!important;
    grid-column:auto!important;
    grid-row:auto!important;
    justify-self:stretch!important;
    align-self:center!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    padding:4px!important;
    gap:4px!important;
    border-radius:999px!important;
    background:rgba(23,61,43,.09)!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .mega-nav>a,
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .mega-nav .nav-item,
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .mega-nav .nav-item>a{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 4px!important;
    font-size:11.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    border-radius:999px!important;
    box-sizing:border-box!important;
  }
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .mega-nav .nav-item>a span,
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header .mega-nav .nav-item>a:after{
    display:none!important;
    content:none!important;
  }
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header a.account-link.header-account{
    grid-area:account!important;
    grid-column:auto!important;
    grid-row:auto!important;
    justify-self:end!important;
    align-self:center!important;
    display:flex!important;
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    padding:0 10px!important;
    font-size:12px!important;
    border-radius:18px!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
  }
}

/* v435: phone landscape top safe-area fix — prevent header being clipped by Safari chrome */
@media (min-width:701px) and (max-width:1100px) and (max-height:520px){
  html body.landing-page.premium-landing-page header.site-header.shop-header.premium-landing-header,
  html body:not(.landing-page):not(.embedded-editor) header.site-header.shop-header{
    top:max(16px, env(safe-area-inset-top))!important;
    margin-top:max(24px, calc(env(safe-area-inset-top) + 18px))!important;
    transform:none!important;
  }
  html body.landing-page.premium-landing-page .premium-hero{
    padding-top:18px!important;
  }
}
