.tc-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  box-shadow: inset 0px -1px #e0e0e0;
  background-color: #ffffff;
  z-index: 99;
}

.tc-header .tc-header__nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 100%;
}

.tc-header__logo {
  width: auto;
  height: 36px;
  flex-shrink: 0;
}

.tc-header__nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tc-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.tc-header__nav-item {
  height: 100%;
  white-space: nowrap;
  position: relative;
  transition: background-color 0.25s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.tc-header__nav-item a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  font-weight: 600;
  color: var(--clr-gray-500);
  line-height: 1em;
  position: relative;
  font-size: 14px;
  padding: 0 6px;
}

.tc-header__nav-item::before {
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 6px;
  background-color: var(--clr-red-700);
  top: auto;
  bottom: 0;
  left: 0;
  transition: width 0.2s ease-in-out;
}

.tc-header__nav-item:hover::before {
  width: 100%;
}

.tc-header__nav-search {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--clr-gray-500);
  cursor: pointer;
}

.tc-header__nav-search svg {
  width: 14px;
  height: 14px;
}

.tc-header__language-dropdown {
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--clr-gray-500);
  font-size: 14px;
  position: relative;
}

.tc-header__language-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: none;
  padding: 0 0 0 6px;
}

.tc-header__language-dropdown-toggle .arrow-down-icon {
  height: 1rem;
  margin-left: 4px;
  transition: transform 0.2s ease-in-out;
}

.tc-header__language-dropdown-toggle .globe-icon {
  height: 1.2rem;
  display: none;
}

.tc-header__language-dropdown-menu {
  position: absolute;
  top: 80%;
  right: 0;
  width: fit-content;
  background-color: #ffffff;
  border: 1px solid var(--clr-gray-300);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
}

.tc-header__language-dropdown-toggle[aria-expanded='true'] .arrow-down-icon {
  transform: rotate(180deg);
}

.tc-header__language-dropdown-toggle[aria-expanded='true']
  + .tc-header__language-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.tc-header__language-dropdown-item:hover {
  background-color: var(--clr-red-700);
}

.tc-header__language-dropdown-item a {
  color: var(--clr-gray-500);
  padding: 0.5rem;
  white-space: nowrap;
  font-size: 14px;
  display: block;
  margin: 0;
}

.tc-header__language-dropdown-item:hover a {
  color: #ffffff;
  text-decoration: none;
}

.tc-header__mobile {
  display: none;
}

.tc-header__mobile-toggle {
  color: var(--clr-gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  background-color: transparent;
  padding: 0;
}

.tc-header__mobile-toggle svg {
  height: 1.5rem;
  width: 1.5rem;
}

.tc-header__mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background-color: white;
  z-index: 101;
  will-change: transform;
  transition: transform 0.4s ease;
  transform: translate3d(100%, 0, 0);
  min-width: 300px;
}

.tc-header__mobile-menu.active {
  transform: translate3d(0, 0, 0);
}

.tc-header__background,
.tc-header__search-background {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: rgba(31, 45, 61, 0.5);
  transition: all ease-in-out 0.2s;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
}

.tc-header__search-background {
  position: absolute;
  top: 100%;
  z-index: 98;
}

.tc-header__mobile-menu.active + .tc-header__background,
.tc-header__search-menu.active + .tc-header__search-background {
  opacity: 1;
  visibility: visible;
}

.tc-header__mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  height: 75px;
  border-bottom: 1px solid var(--clr-gray-200);
  background-color: var(--clr-neutral-100);
}

.tc-header__mobile-close {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background-color: transparent;
  border: none;
  transform: rotate(90deg);
  color: var(--clr-gray-500);
  transition: color 0.2s ease-in-out;
}

.tc-header__user-signin {
  color: var(--clr-gray-500);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.tc-header__mobile-close:hover,
.tc-header__mobile-close:focus,
.tc-header__user-signin:hover,
.tc-header__user-signin:focus {
  color: var(--clr-red-700);
  text-decoration: none;
}

.tc-header__mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tc-header__mobile-nav-item {
  display: flex;
  white-space: nowrap;
  align-items: center;
  position: relative;
  transition: background-color 0.2s ease-in-out;
}

.tc-header__mobile-nav-item a {
  padding: 1.5rem 2rem;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--clr-gray-500);
  line-height: 1em;
  width: 100%;
  margin: 0;
  transition: all 0.2s ease-in-out;
}

.tc-header__mobile-nav-item:hover a {
  transform: translate3d(10px, 0, 0);
  color: var(--clr-red-700);
}

.tc-header__search-menu {
  background-color: #ffffff;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -30px, 0);
  transition: all 0.2s ease;
  z-index: 101;
}

.tc-header__search-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.tc-header__search-menu .form-search {
  width: 100%;
  max-width: 800px;
}

@media (max-width: 880px) {
  .tc-header__logo {
    height: 28px;
  }

  .tc-header__nav-item {
    display: none;
  }

  .tc-header__mobile {
    display: flex;
  }

  .tc-header__language-dropdown-toggle span,
  .tc-header__language-dropdown-toggle .arrow-down-icon {
    display: none;
  }

  .tc-header__language-dropdown-toggle .globe-icon {
    display: inline-flex;
  }
}
