.topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  border-bottom: 0;
  background: #F5F7F8;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
}

.topbar .nav {
  width: min(100% - 48px, 1360px);
  height: 76px;
  display: grid !important;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  text-decoration: none;
}

.topbar .brand img {
  width: 132px;
  height: 48px;
  object-fit: contain;
  box-shadow: none;
  filter: none;
  text-shadow: none;
  mix-blend-mode: normal;
  backdrop-filter: none;
}

.topbar .nav-links {
  display: flex !important;
  align-items: center;
  justify-self: center;
  gap: 32px;
  color: rgba(11, 13, 15, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.topbar .nav-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.topbar .nav-links a:hover {
  color: #1A1D21;
}

.topbar .mobile-menu-cta,
.topbar .mobile-menu-secondary {
  display: none;
}

.topbar .nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.topbar .language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(26, 29, 33, 0.14);
  border-radius: 999px;
  background: rgba(245, 247, 248, 0.72);
}

.topbar .language-switch button {
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(26, 29, 33, 0.56);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.topbar .language-switch button.is-active {
  background: #1A1D21;
  color: #F5F7F8;
}

.topbar .cart-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(26, 29, 33, 0.16);
  border-radius: 50%;
  background: rgba(245, 247, 248, 0.62);
  color: #1A1D21;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topbar .cart-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 174, 53, 0.46);
  background: rgba(143, 174, 53, 0.1);
}

.topbar .cart-nav svg {
  width: 23px;
  height: 23px;
}

.topbar .cart-count {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #1A1D21;
  color: #F5F7F8;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.topbar .btn,
.topbar .cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 0;
  border-radius: 8px;
  background: #1A1D21;
  color: #F5F7F8;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(26, 29, 33, 0.18);
}

.topbar .btn:hover,
.topbar .cta:hover {
  transform: translateY(-1px);
  background: #0B0D0F;
}

.topbar .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  position: relative;
  border: 1px solid rgba(26, 29, 33, 0.16);
  border-radius: 50%;
  background: rgba(245, 247, 248, 0.58);
  color: #1A1D21;
  cursor: pointer;
}

.topbar .menu-toggle span,
.topbar .menu-toggle::before,
.topbar .menu-toggle::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar .menu-toggle::before {
  transform: translateY(-6px);
}

.topbar .menu-toggle::after {
  transform: translateY(6px);
}

body.menu-open .topbar .menu-toggle span {
  opacity: 0;
}

body.menu-open .topbar .menu-toggle::before {
  transform: rotate(45deg);
}

body.menu-open .topbar .menu-toggle::after {
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  body.menu-open {
    overflow: hidden;
  }

  .topbar {
    border-bottom: 0;
    min-height: 86px;
    border-radius: 0;
    background: #F5F7F8;
  }

  .topbar .nav {
    width: min(100% - 28px, 1360px);
    height: 86px;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .topbar .menu-toggle {
    display: grid;
    grid-column: 4;
    order: 3;
    width: 52px;
    height: 52px;
    border: 0;
    background: #1A1D21;
    color: #F5F7F8;
    z-index: 320;
  }

  .topbar .nav-actions {
    grid-column: 3;
    justify-self: end;
    gap: 8px;
  }

  .topbar .language-switch {
    transform: scale(0.94);
    transform-origin: right center;
  }

  .topbar .nav-links {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(122px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: #1A1D21;
    box-shadow: 0 24px 70px rgba(26, 29, 33, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    overflow: auto;
    overscroll-behavior: contain;
  }

  body.menu-open .topbar .nav-links {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open .topbar {
    background: transparent;
    box-shadow: none;
  }

  body.menu-open .topbar .brand {
    visibility: hidden;
  }

  body.menu-open .topbar .nav-actions {
    position: fixed;
    top: calc(22px + env(safe-area-inset-top));
    right: 104px;
    z-index: 320;
  }

  body.menu-open .topbar .cart-nav {
    background: #F5F7F8;
    border-color: rgba(245, 247, 248, 0.88);
    box-shadow: 0 12px 30px rgba(11, 13, 15, 0.18);
    opacity: 1;
    mix-blend-mode: normal;
  }

  body.menu-open .topbar .language-switch {
    background: #F5F7F8;
    border-color: rgba(245, 247, 248, 0.88);
    box-shadow: 0 12px 30px rgba(11, 13, 15, 0.18);
  }

  body.menu-open .topbar .menu-toggle {
    position: fixed;
    top: calc(22px + env(safe-area-inset-top));
    right: 24px;
    background: #F5F7F8;
    color: #1A1D21;
    box-shadow: 0 12px 30px rgba(11, 13, 15, 0.18);
  }

  .topbar .nav-menu {
    width: 100%;
  }

  .topbar .mega-menu {
    display: none !important;
  }

  .topbar .nav-links a,
  .topbar .nav-links .nav-trigger {
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 7px 0;
    color: #F5F7F8;
    font-size: clamp(30px, 8.6vw, 42px);
    font-weight: 950;
    line-height: 1.03;
  }

  .topbar .cart-nav {
    width: 52px;
    height: 52px;
    background: #F5F7F8;
    opacity: 1;
    mix-blend-mode: normal;
  }

  .topbar .btn,
  .topbar .cta {
    display: none;
  }

  .topbar .mobile-menu-cta {
    width: 100%;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 1px solid rgba(245, 247, 248, 0.7);
    border-radius: 999px;
    background: transparent;
    color: #F5F7F8;
    font: inherit;
    font-size: 19px;
    font-weight: 950;
  }

  .topbar .mobile-menu-secondary {
    width: 100%;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border-radius: 999px;
    background: #F5F7F8;
    color: #1A1D21;
    font-size: 19px;
    font-weight: 950;
    text-decoration: none;
  }

  .topbar .nav-links a.mobile-menu-secondary,
  .topbar .mobile-menu-secondary {
    color: #1A1D21;
  }
}

@media (max-width: 520px) {
  .topbar .brand img {
    width: 104px;
  }

  .topbar .btn,
  .topbar .cta {
    max-width: 150px;
    padding: 0 12px;
  }
}
