/* Navbar premium: três áreas independentes (logo, navegação e ações). */
:root {
  --navbar-fixed-space: 112px;
}

html {
  scroll-padding-top: var(--navbar-fixed-space);
}

body {
  padding-top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  padding: 14px clamp(18px, 3vw, 42px);
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: padding .3s ease, transform .3s ease;
}

.site-header .header-inner {
  width: min(100%, 1500px);
  max-width: 1500px;
  min-height: 72px;
  height: auto;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  column-gap: clamp(28px, 3vw, 58px);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: min-height .3s ease, padding .3s ease, background .3s ease,
    border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease,
    border-radius .3s ease;
}

.site-header .logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.site-header .logo img {
  display: block;
  width: auto;
  max-width: 142px;
  max-height: 48px;
  object-fit: contain;
  transition: max-width .3s ease, max-height .3s ease;
}

.site-header .main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.site-header .nav-link {
  min-height: 42px;
  padding: 0 clamp(11px, 1vw, 18px);
  white-space: nowrap;
  transition: min-height .3s ease, padding .3s ease, font-size .3s ease;
}

.site-header .header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  margin: 0;
}

.mobile-nav-panel,
.mobile-nav-backdrop {
  display: none;
}

.site-header.is-scrolled {
  padding: 0 clamp(18px, 3vw, 42px) 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled .header-inner {
  min-height: 54px;
  padding: 4px 14px;
  background: rgba(10, 10, 13, .88);
  border-color: rgba(255, 255, 255, .14);
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}

.site-header.is-scrolled .logo img {
  max-width: 118px;
  max-height: 38px;
}

.site-header.is-scrolled .nav-link {
  min-height: 36px;
  padding-left: 11px;
  padding-right: 11px;
  font-size: 11px;
}

body > main,
body > section:first-of-type,
body > .page-wrapper:first-of-type {
  position: relative;
  z-index: 0;
}

@media (max-width: 1360px) {
  .site-header { padding-left: 18px; padding-right: 18px; }
  .site-header .header-inner { grid-template-columns: minmax(135px, .8fr) auto minmax(180px, .8fr); column-gap: 18px; padding-left: 14px; padding-right: 14px; }
  .site-header .logo img { max-width: 124px; }
  .site-header .main-nav { gap: 6px; }
  .site-header .nav-link { padding-left: 10px; padding-right: 10px; font-size: 11px; }
}

@media (max-width: 1050px) {
  :root { --navbar-fixed-space: 86px; }
  .site-header { padding: 10px 12px; }
  .site-header .header-inner { display:flex; justify-content:space-between; min-height:58px; padding:7px 12px; border-radius:26px; }
  .site-header.is-scrolled { padding:0 12px 5px; }
  .site-header.is-scrolled .header-inner { display:flex; justify-content:space-between; min-height:50px; padding:4px 10px; border-radius:0 0 20px 20px; }
  .site-header .main-nav { display:none; }
  .site-header .logo img { max-width:112px; max-height:42px; }
  .site-header.is-scrolled .logo img { max-width:96px; max-height:34px; }
}

@media (max-width: 640px) {
  :root { --navbar-fixed-space:80px; }
  .site-header { padding:8px; }
  .site-header .header-inner { min-height:56px; padding:6px 8px 6px 12px; border-radius:22px; gap:8px; }
  .site-header.is-scrolled { padding:0 8px 4px; }
  .site-header.is-scrolled .header-inner { min-height:48px; padding:3px 7px 3px 10px; border-radius:0 0 18px 18px; gap:6px; }
  .site-header .logo-vi { flex:0 0 auto; }
  .site-header .vi-mark { width:43px; height:auto; transition:width .3s ease; }
  .site-header.is-scrolled .vi-mark { width:36px; }
  .site-header .header-actions { gap:6px; min-width:0; }
  .site-header .btn-login,.site-header .icon-btn { width:40px; min-width:40px; height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; transition:width .3s ease,min-width .3s ease,height .3s ease; }
  .site-header.is-scrolled .btn-login,.site-header.is-scrolled .icon-btn { width:36px; min-width:36px; height:36px; }
  .site-header .btn-login .user-button-label { display:none; }
  .site-header .btn-login .icon { width:19px; height:19px; margin:0; }
  .site-header .header-search-form { position:static; }
  .site-header .header-search-input { position:absolute; top:calc(100% + 8px); left:8px; right:8px; width:auto; height:48px; padding:0 50px 0 16px; background:rgba(10,10,13,.98); border:1px solid rgba(255,255,255,.16); border-radius:16px; opacity:0; visibility:hidden; transform:translateY(-8px); transition:.2s ease; z-index:1003; }
  .site-header .header-search-form.active .header-search-input { opacity:1; visibility:visible; transform:translateY(0); }
  .site-header .search-results-box { position:absolute; top:calc(100% + 62px); left:8px; right:8px; width:auto; max-height:min(60vh,460px); overflow-y:auto; z-index:1004; }
  .site-header .menu-toggle { display:inline-flex; }
  .mobile-nav-backdrop { display:block; position:fixed; inset:0; background:rgba(0,0,0,.66); opacity:0; visibility:hidden; transition:.25s ease; z-index:1098; }
  .mobile-nav-panel { display:flex; position:fixed; top:0; right:0; bottom:0; width:min(84vw,340px); padding:22px 18px 30px; flex-direction:column; gap:4px; background:#0b0b0e; border-left:1px solid rgba(255,255,255,.12); box-shadow:-24px 0 60px rgba(0,0,0,.45); transform:translateX(105%); transition:transform .28s ease; z-index:1099; }
  .site-header.mobile-menu-open .mobile-nav-panel { transform:translateX(0); }
  .site-header.mobile-menu-open .mobile-nav-backdrop { opacity:1; visibility:visible; }
  .mobile-nav-head { min-height:54px; margin-bottom:12px; padding-bottom:14px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(255,255,255,.1); color:#fff; font-family:"Oswald",sans-serif; font-weight:800; letter-spacing:.12em; }
  .mobile-nav-close { width:40px; height:40px; border:0; border-radius:50%; background:rgba(255,255,255,.08); color:#fff; font-size:30px; line-height:1; cursor:pointer; }
  .mobile-nav-panel > a { padding:15px 14px; border-radius:12px; color:#fff; font-family:"Oswald",sans-serif; font-size:16px; font-weight:700; letter-spacing:.06em; text-decoration:none; }
  .mobile-nav-panel > a:hover,.mobile-nav-panel > a.active { background:rgba(255,255,255,.08); color:#ffbd00; }
  .mobile-nav-panel .mobile-store-link { margin-top:8px; background:#ffbd00; color:#111; text-align:center; }
  body.mobile-nav-locked { overflow:hidden; }
}
