.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-border);
  overflow: visible;
}

.top-bar {
  background: var(--color-secondary);
  color: #94a3b8;
  font-size: 12px;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-h);
  gap: 16px;
}

.top-bar a,
.top-bar__plain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e8eef3;
  white-space: nowrap;
}

.top-bar a:hover,
.top-bar a.is-active {
  color: #ffffff;
}

.top-bar__meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar__plain {
  color: #93a4b3;
}

.main-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  transition: min-height 160ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.1;
}

.brand__domain {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.desktop-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.desktop-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.desktop-nav__item {
  position: static;
  display: flex;
  align-items: center;
}

.desktop-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 999px;
  white-space: nowrap;
}

.desktop-nav__link:hover,
.desktop-nav__link.is-active,
.desktop-nav__item.is-open > .desktop-nav__link,
.desktop-nav__item:hover > .desktop-nav__link {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.desktop-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  margin-left: -4px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 6px;
}

.desktop-nav__toggle svg {
  display: block;
  transform: rotate(90deg);
}

.desktop-nav__item.is-open .desktop-nav__toggle svg,
.desktop-nav__item:hover .desktop-nav__toggle svg {
  transform: rotate(-90deg);
}

.main-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: #c7d2fe;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle {
  display: none;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  width: min(var(--header-max), calc(100% - 40px));
  transform: translateX(-50%);
  padding-top: 8px;
  z-index: 30;
}

.mega-menu[hidden] {
  display: none;
}

.mega-menu__panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-mega);
  padding: 22px 24px 18px;
}

.mega-menu__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 28px;
}

.mega-menu__grid--brands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mega-menu__grid--narrow {
  grid-template-columns: repeat(2, minmax(180px, 280px));
}

.mega-menu__heading {
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 720;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.mega-menu__heading:hover,
.mega-menu__heading.is-active {
  color: var(--color-primary);
}

.mega-menu__heading--plain {
  display: block;
}

.mega-menu__list {
  display: grid;
  gap: 6px;
}

.mega-menu__list a {
  display: block;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.35;
}

.mega-menu__list a:hover,
.mega-menu__list a.is-active {
  color: var(--color-primary);
}

.mega-menu__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.mega-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--color-primary);
}

.mega-menu__cta:hover {
  color: var(--color-primary-dark);
}

.site-header.is-compact {
  box-shadow: var(--shadow-sm);
}

.site-header.is-compact .top-bar {
  display: none;
}

.site-header.is-compact .main-header__inner {
  min-height: var(--header-h-compact);
}

.site-header.is-compact .brand__domain {
  display: none;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.42);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__dialog {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(18, 32, 43, 0.12);
}

.mobile-nav__head,
.mobile-nav__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__footer {
  border-bottom: 0;
  border-top: 1px solid var(--color-border);
  flex-direction: column;
}

.mobile-nav__head p {
  font-size: 15px;
  font-weight: 700;
}

.mobile-nav__body {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.mobile-panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 8px 8px 24px;
  background: #fff;
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-panel__back,
.mobile-row__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.mobile-panel__back {
  margin: 6px 8px 2px;
  padding: 8px;
  font-size: 13px;
  font-weight: 650;
}

.mobile-panel__title {
  display: block;
  padding: 8px 16px 14px;
  font-size: 15px;
  font-weight: 720;
}

.mobile-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.mobile-row__link {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 550;
}

.mobile-row__link.is-active,
.mobile-panel__title.is-active {
  color: var(--color-primary);
}

.mobile-row__more {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-cta-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  border-radius: 14px;
  background: var(--color-background);
  font-size: 11px;
  font-weight: 700;
}

.mobile-cta-bar a:nth-child(3) {
  background: var(--color-primary);
  color: #fff;
}

.breadcrumb {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.7);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 48px;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.breadcrumb__sep {
  display: inline-flex;
  color: #cbd5e1;
}

.page-shell {
  min-height: 70vh;
}

.mega-menu--brands .mega-menu__heading {
  font-size: 14px;
}

@media (max-width: 1280px) {
  .desktop-nav__toggle {
    display: none;
  }

  .desktop-nav__link {
    padding: 0 7px;
    font-size: 13px;
  }

  .header-cta--desktop .btn--ghost span {
    display: none;
  }
}

@media (max-width: 1099px) {
  .desktop-nav,
  .header-cta--desktop {
    display: none;
  }

  .mobile-nav-toggle,
  .mobile-cta-bar {
    display: grid;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .top-bar__meta li:first-child {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 62px;
    --header-pad: 16px;
  }

  .brand__domain {
    display: none;
  }

  .top-bar__inner {
    justify-content: space-between;
  }

  .top-bar__meta li:nth-child(2) span {
    display: none;
  }

  .mega-menu,
  .desktop-nav {
    display: none;
  }
}

@media (min-width: 1100px) and (max-width: 1280px) {
  .mega-menu__grid,
  .mega-menu__grid--brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
