.header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.header .container {
  margin: 0 auto;
  padding: 18px 15px;
}
.header--scrolled .nav {
  padding: 10px 0;
}
.header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  transition: padding 0.3s ease;
}
.header .nav .logo-and-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60%;
  gap: 42px;
}
.header .nav .logo-and-menu li {
  display: flex;
  align-items: center;
}
.header .nav .logo-and-menu li:has(.vertical-layout) {
  align-items: unset;
}
.header .nav__logo img {
  height: 50px;
  transition: height 0.3s ease;
  margin-bottom: 12px;
}
.header .nav__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #ffb703;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.header .nav__mobile-toggle i {
  font-size: 18px;
}
.header .nav__mobile-toggle--active i::before {
  content: "\f00d";
}
.header .nav__menu {
  display: flex;
  list-style: none;
  gap: 42px;
  margin: 0;
  padding: 0;
}
.header .nav__menu > li {
  padding: 15px 0;
}
.header .nav__menu > li:hover > .sub-menu-container-fluid {
  display: block;
  opacity: 1;
}
.header .nav__menu-link {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 16.67px;
  background: transparent;
  border: none;
  padding: 0;
}
.header .nav__menu-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #1877f2;
  transition: all 0.3s ease;
}
.header .nav__menu-link:hover {
  color: #1877f2;
}
.header .nav__menu-link:hover::after {
  width: 100%;
}
.header .nav__menu-link.nav__menu-item--active {
  color: #007bff;
}
.header .nav__menu-link.nav__menu-item--active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: #007bff;
}
.header .nav__menu-link--mobile {
  display: none;
}
.header .nav__menu-link-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.header .nav__menu-icon, .header .nav__menu-font-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  -o-object-fit: contain;
     object-fit: contain;
}
.header .nav__menu-link-arrow {
  font-size: 12px;
  color: #8d939d;
}
.header .nav .sub-menu-container-fluid {
  position: absolute;
  left: 0;
  top: 70px;
  width: 100%;
  background: #ffffff;
  z-index: 1001;
  display: none;
  opacity: 0;
}
.header .nav .sub-menu-container-fluid .sub-menu-container {
  padding: 40px 0 60px;
}
.header .nav .sub-menu-container-fluid .sub-menu-container:has(.nav-featured-list) {
  display: flex;
  gap: 42px;
}
.header .nav__submenu-mobile-header {
  display: none;
}
.header .nav__submenu {
  padding-left: 0;
  background: #ffffff;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -moz-column-gap: 24px;
       column-gap: 24px;
  row-gap: 12px;
}
.header .nav__submenu:has(.vertical-layout) {
  grid-template-columns: repeat(5, 1fr);
}
.header .nav__submenu:has(.vertical-layout) li a {
  gap: 12px;
}
.header .nav__submenu li {
  width: 100%;
}
.header .nav__submenu li a {
  width: 100%;
  padding: 15px;
  color: #000;
  text-decoration: none;
  display: flex;
  gap: 18px;
}
.header .nav__submenu li a img {
  width: 100px;
  height: auto;
}
.header .nav__submenu li a:hover {
  background-color: #d8f3fa;
}
.header .nav__submenu li a .text-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.header .nav__submenu li a .text-desc p {
  color: #000;
  font-size: 18px;
  margin: 0;
  font-weight: 500;
}
.header .nav__submenu li a .text-desc span {
  font-size: 12px;
  color: #8a8685;
}
.header .nav__submenu li a.vertical-layout {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 0;
}
.header .nav__submenu li a.vertical-layout img {
  width: 100px;
  height: auto;
  min-height: 75px;
}
.header .nav__submenu li a.horizontal-layout {
  flex-direction: row;
  align-items: center;
  text-align: left;
}
.header .nav__submenu li a.horizontal-layout img {
  width: 100px;
  height: auto;
}
.header .nav__submenu li a.horizontal-layout .text-desc {
  padding-right: 30px;
}
.header .nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header .nav .search {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 5px 12px;
  position: relative;
}
.header .nav .search img {
  width: 18px;
  height: 18px;
}
.header .nav .search input {
  border: none;
  outline: none;
  background-color: inherit;
  font-size: 14px;
}
.header .nav .search .dropdown_suggestions {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  width: 125%;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
}
.header .nav .search .suggestion-item {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header .nav .search .suggestion-item .suggestion-image {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header .nav .search .suggestion-item .suggestion-image img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
}
.header .nav .search .suggestion-item .suggestion-name {
  font-size: 14px;
}
.header .nav .search .suggestion-item:hover {
  background: #f5f5f5;
}
.header .nav .search .suggestion-item.loading {
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
  color: #666;
  cursor: default;
  pointer-events: none;
}
.header .nav .search .suggestion-item.loading:hover {
  background: white;
}
.header .nav .search .suggestion-item.loading span {
  font-size: 14px;
}
.header .nav .search .suggestion-item.no-results, .header .nav .search .suggestion-item.error {
  justify-content: center;
  color: #666;
  cursor: default;
  pointer-events: none;
}
.header .nav .search .loading-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.header .nav .btn_login {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}
.header .nav .btn_login img {
  width: 25px;
  height: 25px;
}
.header .nav .language {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.header .nav .language img {
  width: 25px;
  height: auto;
}
.header .nav .language .arrow-down {
  width: 16px;
  height: auto;
}
.header .nav .language .language__dropdown {
  display: none;
  position: absolute;
  width: 200px;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.header .nav .language .language__dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.header .nav .language .language__dropdown a:hover {
  background-color: #f0f0f0;
}
.header .nav .language .language__dropdown a img {
  width: 25px;
  height: auto;
}
.header .nav .btn--primary {
  color: #ffffff;
  border: none;
  padding: 0;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.header .nav .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media screen and (max-width: 1280px) {
  .header .container .nav .logo-and-menu {
    gap: 30px;
  }
}
@media screen and (max-width: 768px) {
  body.nav-mobile-open {
    overflow: hidden;
  }
  .header {
    --header-mobile-height: 62px;
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.16);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
  .header .container {
    padding: 12px 16px;
  }
  .header .nav {
    gap: 12px;
    align-items: center;
  }
  .header .nav .logo-and-menu {
    width: auto;
    flex: 1;
    justify-content: flex-start;
    gap: 0;
  }
  .header .nav__menu-link-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header .nav__mobile-toggle {
    display: inline-flex;
  }
  .header .nav__logo img {
    height: 38px;
    margin-bottom: 0;
  }
  .header .nav__menu {
    position: fixed;
    inset: var(--header-mobile-height) 0 0;
    z-index: 999;
    background: #fff;
    display: block;
    overflow-y: auto;
    padding: 8px 0 24px;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: none;
    gap: 0;
  }
  .header .nav__menu--active {
    transform: translateX(0);
    overflow-x: hidden;
  }
  .header .nav__menu > li {
    padding: 0;
    border-bottom: 1px solid #eceef2;
  }
  .header .nav__menu-link--desktop {
    display: none;
  }
  .header .nav__menu-link--mobile {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    color: #2b2f36;
    border-radius: 0;
  }
  .header .nav__menu-link--mobile::after {
    display: none;
  }
  .header .nav__menu-link-main span:last-child {
    line-height: 1.35;
  }
  .header .nav__menu-icon, .header .nav__menu-font-icon {
    width: 20px;
    height: 20px;
    color: #4a4f57;
  }
  .header .nav .sub-menu-container-fluid {
    position: fixed;
    inset: var(--header-mobile-height) 0 0;
    z-index: 1000;
    display: block;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    background: #fff;
  }
  .header .nav .sub-menu-container-fluid.is-mobile-open {
    transform: translateX(0);
  }
  .header .nav .sub-menu-container-fluid .sub-menu-container {
    padding: 0 0 24px;
    display: block !important;
    height: 100%;
    overflow-y: auto;
  }
  .header .nav__submenu-mobile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgb(217, 217, 217);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }
  .header .nav__submenu-mobile-header span {
    font-size: 18px;
    font-weight: 600;
    color: #1e2126;
  }
  .header .nav__submenu-back {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #1e2126;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .header .nav__submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 0;
  }
  .header .nav__submenu:has(.vertical-layout) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    -moz-column-gap: 12px;
         column-gap: 12px;
    row-gap: 0;
    padding: 14px 0;
    align-items: start;
  }
  .header .nav__submenu li {
    width: 100%;
  }
  .header .nav__submenu li a {
    padding: 16px 20px;
    gap: 12px;
  }
  .header .nav__submenu li a:hover {
    background: transparent;
  }
  .header .nav__submenu li a img {
    width: 68px;
  }
  .header .nav__submenu li a .text-desc p {
    font-size: 14px;
    font-weight: 500;
  }
  .header .nav__submenu li a .text-desc span {
    font-size: 12px;
    line-height: 1.5;
  }
  .header .nav__submenu li a.vertical-layout {
    align-items: center;
    text-align: center;
    padding: 12px 8px 18px;
  }
  .header .nav__submenu li a.vertical-layout img {
    width: 86px;
    min-height: 64px;
  }
  .header .nav__submenu li a.vertical-layout .text-desc {
    gap: 8px;
  }
  .header .nav__submenu li a.vertical-layout .text-desc p {
    font-size: 14px;
    line-height: 1.4;
  }
  .header .nav__submenu li a.horizontal-layout {
    padding: 14px 0;
    border-bottom: 1px solid #eceef2;
    align-items: flex-start;
  }
  .header .nav__submenu li a.horizontal-layout img {
    width: 68px;
    flex-shrink: 0;
  }
  .header .nav__submenu li a.horizontal-layout .text-desc {
    padding-right: 0;
  }
  .header .nav__submenu li a.horizontal-layout .text-desc p {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
  }
  .header .nav .nav-featured-list {
    border-top: 1px solid #eceef2;
    border-left: none;
    overflow-x: auto;
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 12px 0px;
    margin: 0;
  }
  .header .nav .nav-featured-list .featured-item {
    min-width: 150px;
  }
  .header .nav .mobile-search-item {
    display: block !important;
    padding: 16px;
    border-bottom: none;
  }
  .header .nav .mobile-search-item .search {
    width: 100%;
    border-radius: 10px;
    background: #f4f5f7;
    padding: 12px 14px;
  }
  .header .nav .mobile-search-item .search input {
    width: 100%;
    font-size: 15px;
  }
  .header .nav__actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .header .nav__actions .desktop-search {
    display: none;
  }
  .header .nav__actions .btn_login {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e4e7ec;
  }
  .header .nav__actions .btn_login img {
    width: 18px;
    height: 18px;
  }
  .header .nav__actions .language {
    gap: 6px;
  }
  .header .nav__actions .language > img:first-child {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e4e7ec;
    padding: 2px;
  }
  .header .nav__actions .language .arrow-down {
    width: 10px;
  }
  .header .nav__actions .language .language__dropdown {
    right: 0;
    top: calc(100% + 8px);
  }
}
