.v2-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--v2-border, #e9e4e6);
  backdrop-filter: blur(14px);
}

.v2-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.v2-header__brand img {
  display: block;
  max-height: 42px;
  width: auto;
}

.v2-desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.v2-desktop-nav a,
.v2-header__account {
  color: var(--v2-text, #1f1b1d);
  text-decoration: none;
  font-weight: 600;
}

.v2-desktop-nav a:hover,
.v2-desktop-nav a:focus-visible,
.v2-header__account:hover,
.v2-header__account:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.v2-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.v2-header__list-free {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: #652c8f;
}

.v2-header__list-free:hover,
.v2-header__list-free:focus-visible {
  filter: brightness(.95);
}

.v2-mobile-nav {
  display: none;
}

@media (max-width: 840px) {
  body.tajheez-v2 {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .v2-header__inner {
    min-height: 62px;
    width: min(100% - 22px, 1180px);
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .v2-desktop-nav,
  .v2-header__account {
    display: none;
  }

  .v2-header__list-free {
    min-height: 40px;
    padding-inline: 14px;
    font-size: .92rem;
  }

  .v2-mobile-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1100;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--v2-border, #e9e4e6);
    box-shadow: 0 -8px 24px rgba(31,27,29,.08);
    backdrop-filter: blur(14px);
  }

  .v2-mobile-nav__item {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #6f666a;
    text-decoration: none;
    font-size: .71rem;
    font-weight: 600;
  }

  .v2-mobile-nav__item.is-active {
    color: #652c8f;
  }

  .v2-mobile-nav__item--primary {
    color: #652c8f;
    font-weight: 800;
  }

  .v2-mobile-nav__plus {
    width: 42px;
    height: 42px;
    margin-top: -21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #652c8f;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(101,44,143,.28);
  }
}

[dir="rtl"] .v2-header__inner,
[dir="rtl"] .v2-mobile-nav {
  direction: rtl;
}
