:root {
  --tg-primary: #ef4444;
  --tg-primary-dark: #0938cc;
  --tg-coral: #ff4d4f;
  --tg-text: #0f172a;
  --tg-muted: #64748b;
  --tg-border: #e8edf5;
  --tg-soft: #f5f6f8;
  --tg-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

body.site {
  background: #f7f9fc;
}

.tg-header {
  width: 100%;
  padding: 0px;
  background: transparent;
  z-index: 1030;
}

.tg-topbar,
.tg-below-top,
.tg-header-inner,
.tg-mobile-panel {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.tg-topbar,
.tg-below-top {
  margin-bottom: 10px;
}

.tg-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 26px;
  background: #ffffff;
  border-bottom: 1px solid rgba(232, 237, 245, 0.92);
  box-shadow: var(--tg-shadow);
}

.tg-header-left {
  flex: 0 0 auto;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--tg-text);
}

.tg-logo img,
.tg-logo .logo {
  display: block;
  max-height: 32px;
  width: auto;
}

.tg-logo span {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: var(--tg-text);
}

.tg-header-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.tg-header-center .mod-menu,
.tg-mobile-panel .mod-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tg-header-center .mod-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.tg-header-center .mod-menu > li {
  position: relative;
}

.tg-header-center .mod-menu > li > a,
.tg-header-center .mod-menu > li > span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 0;
  color: var(--tg-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
}

.tg-header-center .mod-menu > li.active > a,
.tg-header-center .mod-menu > li.current > a,
.tg-header-center .mod-menu > li > a:hover,
.tg-header-center .mod-menu > li > a:focus {
  color: #2b3850 !important;
}

.tg-header-center .mod-menu > li.active > a::after,
.tg-header-center .mod-menu > li.current > a::after,
.tg-header-center .mod-menu > li > a:hover::after,
.tg-header-center .mod-menu > li > a:focus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #ff4d4f;
  border-radius: 999px;
}

.tg-header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 160px;
}

.tg-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-header-tools form,
.tg-mobile-tools form {
  margin: 0;
}

.tg-search-wrap .mod-finder,
.tg-search-wrap .search,
.tg-search-wrap .finder {
  display: flex;
  align-items: center;
}

.tg-search-wrap input[type="search"],
.tg-search-wrap input[type="text"] {
  width: 160px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--tg-border);
  background: #ffffff;
  color: var(--tg-text);
  font-size: 13px;
  padding: 0 14px;
  box-shadow: none;
}

.tg-search-wrap button,
.tg-header-tools .btn,
.tg-mobile-tools .btn {
  min-height: 40px;
  border-radius: 999px;
}

.tg-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tg-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tg-text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tg-icon-btn:hover,
.tg-icon-btn:focus {
  color: var(--tg-primary);
  border-color: rgba(13, 71, 255, 0.24);
  transform: translateY(-1px);
}

.tg-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tg-coral);
  color: #ffffff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 800;
  text-align: center;
}

.tg-signin-btn,
.tg-signin-btn a,
.tg-header-tools .mod-login a,
.tg-header-tools .login-greeting + a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px 15px 3px 15px;
  border-radius: 22px;
  background: #0938cb;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  border: 0;
  box-shadow: 0 10px 22px rgba(13, 71, 255, 0.18);
}

.tg-signin-btn:hover,
.tg-signin-btn a:hover,
.tg-header-tools .mod-login a:hover,
.tg-header-tools .login-greeting + a:hover {
  background-color: #0938cb !important;
  color: #ffffff;
}

.tg-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tg-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.tg-menu-toggle span {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--tg-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tg-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tg-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.tg-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tg-mobile-panel {
  display: none;
  margin-top: 12px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(232, 237, 245, 0.92);
  border-radius: 18px;
  box-shadow: var(--tg-shadow);
}

.tg-mobile-panel.is-open {
  display: block;
}

.tg-mobile-panel .mod-menu {
  display: grid;
  gap: 4px;
}

.tg-mobile-panel .mod-menu > li > a,
.tg-mobile-panel .mod-menu > li > span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--tg-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.tg-mobile-panel .mod-menu > li.active > a,
.tg-mobile-panel .mod-menu > li.current > a,
.tg-mobile-panel .mod-menu > li > a:hover,
.tg-mobile-panel .mod-menu > li > a:focus {
  background: rgba(13, 71, 255, 0.08);
  color: var(--tg-primary);
}

.tg-mobile-tools {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tg-border);
}

.tg-mobile-tools input[type="search"],
.tg-mobile-tools input[type="text"] {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--tg-border);
  padding: 0 14px;
}

.container-header {
  background: transparent !important;
  background-image: none !important;
}

@media (max-width: 1199.98px) {
  .tg-header-inner {
    gap: 18px;
    padding: 15px 20px;
  }

  .tg-header-center .mod-menu {
    gap: 20px;
  }

  .tg-search-wrap input[type="search"],
  .tg-search-wrap input[type="text"] {
    width: 130px;
  }
}

@media (max-width: 991.98px) {
  .tg-header {
    padding: 14px 12px 10px;
  }

  .tg-header-inner {
    min-height: 66px;
    border-radius: 16px;
  }

  .tg-header-left {
    min-width: 0;
  }

  .tg-logo img,
  .tg-logo .logo {
    max-height: 38px;
  }

  .tg-header-center,
  .tg-header-tools {
    display: none;
  }

  .tg-header-right {
    min-width: 0;
  }

  .tg-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 575.98px) {
  .tg-header-inner {
    padding: 12px 14px;
  }

  .tg-logo img,
  .tg-logo .logo {
    max-width: 160px;
  }
}


.tg-header-center ul,
.tg-header-center ol,
.tg-header-center .mod-menu,
.tg-header-center .metismenu,
.tg-header-center .nav,
.tg-header-center .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 30px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tg-header-center li,
.tg-header-center .metismenu-item,
.tg-header-center .nav-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

.tg-header-center a,
.tg-header-center span,
.tg-header-center button,
.tg-header-center .mod-menu__heading,
.tg-header-center .mm-toggler {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tg-text) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.tg-header-center li.active > a,
.tg-header-center li.current > a,
.tg-header-center a:hover,
.tg-header-center a:focus,
.tg-header-center button:hover,
.tg-header-center button:focus {
  color: var(--tg-primary) !important;
}

.tg-header-center li.active > a::after,
.tg-header-center li.current > a::after,
.tg-header-center a:hover::after,
.tg-header-center a:focus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--tg-coral);
  border-radius: 999px;
}

.tg-header-center .mod-menu__sub,
.tg-header-center .mm-collapse,
.tg-header-center .dropdown-menu {
  position: absolute !important;
  top: calc(100% + 16px) !important;
  left: 0 !important;
  z-index: 2000 !important;
  display: none !important;
  min-width: 220px !important;
  padding: 10px !important;
  background: #ffffff !important;
  border: 1px solid rgba(232, 237, 245, 0.96) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
}

.tg-header-center li:hover > .mod-menu__sub,
.tg-header-center li:hover > .mm-collapse,
.tg-header-center li:hover > .dropdown-menu,
.tg-header-center li:focus-within > .mod-menu__sub,
.tg-header-center li:focus-within > .mm-collapse,
.tg-header-center li:focus-within > .dropdown-menu {
  display: grid !important;
  gap: 4px !important;
}

.tg-header-center .mod-menu__sub li,
.tg-header-center .mm-collapse li,
.tg-header-center .dropdown-menu li {
  display: block !important;
  width: 100% !important;
}

.tg-header-center .mod-menu__sub a,
.tg-header-center .mm-collapse a,
.tg-header-center .dropdown-menu a {
  width: 100% !important;
  justify-content: flex-start !important;
  min-height: 38px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
}

.tg-header-center .mod-menu__sub a:hover,
.tg-header-center .mm-collapse a:hover,
.tg-header-center .dropdown-menu a:hover {
  background: rgba(13, 71, 255, 0.08) !important;
}

.tg-header-inner {
  height: auto !important;
  min-height: 72px !important;
}

.tg-header-right .mod-languages,
.tg-header-tools .mod-languages,
.tg-header-right .mod-languages ul,
.tg-header-tools .mod-languages ul,
.tg-header-right .lang-inline,
.tg-header-tools .lang-inline {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tg-header-right .mod-languages li,
.tg-header-tools .mod-languages li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tg-header-right .mod-languages img,
.tg-header-tools .mod-languages img {
  display: block !important;
  width: 24px !important;
  height: auto !important;
}

.tg-header-center .metismenu-item.parent,
.tg-header-center .metismenu-item.deeper,
.tg-header-center li.parent,
.tg-header-center li.deeper {
  position: relative !important;
}

.tg-header-center .metismenu-item.parent::before,
.tg-header-center .metismenu-item.deeper::before,
.tg-header-center li.parent::before,
.tg-header-center li.deeper::before {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 100%;
  height: 22px;
  display: block;
  background: transparent;
  z-index: 1999;
}

.tg-header-center .mod-menu__sub,
.tg-header-center .mm-collapse,
.tg-header-center .dropdown-menu {
  top: 100% !important;
  margin-top: 10px !important;
  pointer-events: auto !important;
}

.tg-header-center .mod-menu__sub::before,
.tg-header-center .mm-collapse::before,
.tg-header-center .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}

.tg-mobile-panel ul,
.tg-mobile-panel ol,
.tg-mobile-panel .mod-menu,
.tg-mobile-panel .metismenu,
.tg-mobile-panel .nav,
.tg-mobile-panel .navbar-nav {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tg-mobile-panel li,
.tg-mobile-panel .metismenu-item,
.tg-mobile-panel .nav-item {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tg-mobile-panel .metismenu-item > a,
.tg-mobile-panel .metismenu-item > span,
.tg-mobile-panel .metismenu-item > button.mod-menu__heading,
.tg-mobile-panel .nav-item > a,
.tg-mobile-panel .nav-item > span,
.tg-mobile-panel li > a,
.tg-mobile-panel li > span {
  display: flex !important;
  align-items: center !important;
  min-height: 46px !important;
  width: 100% !important;
  padding: 11px 46px 11px 14px !important;
  border-radius: 12px !important;
  color: var(--tg-text) !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.tg-mobile-panel .metismenu-item > a:hover,
.tg-mobile-panel .metismenu-item > a:focus,
.tg-mobile-panel .metismenu-item.current > a,
.tg-mobile-panel .metismenu-item.active > a,
.tg-mobile-panel li.current > a,
.tg-mobile-panel li.active > a {
  background: rgba(13, 71, 255, 0.08) !important;
  color: var(--tg-primary) !important;
}

.tg-mobile-panel .mm-toggler,
.tg-mobile-panel .mm-toggler-link {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(13, 71, 255, 0.06) !important;
  color: var(--tg-text) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.tg-mobile-panel .mm-toggler::after,
.tg-mobile-panel .mm-toggler-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.tg-mobile-panel li.mobile-submenu-open > .mm-toggler::after,
.tg-mobile-panel li.mobile-submenu-open > .mm-toggler-link::after,
.tg-mobile-panel li.mm-active > .mm-toggler::after,
.tg-mobile-panel li.mm-active > .mm-toggler-link::after {
  transform: rotate(-135deg) translateY(-2px);
}

.tg-mobile-panel .mod-menu__sub,
.tg-mobile-panel .mm-collapse,
.tg-mobile-panel .dropdown-menu {
  display: none !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 3px 0 8px !important;
  padding: 6px 0 6px 14px !important;
  border: 0 !important;
  border-left: 2px solid rgba(13, 71, 255, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.tg-mobile-panel li.mobile-submenu-open > .mod-menu__sub,
.tg-mobile-panel li.mobile-submenu-open > .mm-collapse,
.tg-mobile-panel li.mobile-submenu-open > .dropdown-menu,
.tg-mobile-panel li.mm-active > .mod-menu__sub,
.tg-mobile-panel li.mm-active > .mm-collapse,
.tg-mobile-panel li.mm-active > .dropdown-menu {
  display: grid !important;
  gap: 4px !important;
}

.tg-mobile-panel .mod-menu__sub a,
.tg-mobile-panel .mm-collapse a,
.tg-mobile-panel .dropdown-menu a {
  min-height: 40px !important;
  padding: 9px 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--tg-muted) !important;
}

@media (hover: none) {
  .tg-header-center li:hover > .mod-menu__sub,
  .tg-header-center li:hover > .mm-collapse,
  .tg-header-center li:hover > .dropdown-menu {
    display: none !important;
  }
}

.tg-logo-desktop,
.tg-logo-mobile {
  display: inline-flex;
  align-items: center;
}

.tg-logo-mobile {
  display: none;
}

.tg-tool-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tg-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tg-text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.tg-tool-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tg-tool-btn:hover,
.tg-tool-btn:focus,
.tg-tool-dropdown.is-open > .tg-tool-btn {
  color: var(--tg-primary);
  border-color: rgba(13, 71, 255, 0.25);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.tg-tool-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tg-dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: min(240px, calc(100vw - 32px));
  min-width: 280px;
  display: none;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(232, 237, 245, 0.96);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  z-index: 2500;
}

.tg-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}

.tg-tool-dropdown.is-open > .tg-dropdown-panel,
.tg-tool-dropdown:hover > .tg-dropdown-panel {
  display: block;
}

.tg-cart-panel {
  min-height: 92px;
}

.tg-login-panel,
.tg-member-panel {
  min-width: 240px;
}
/* login */
.com-users-login {
  max-width: 450px;
  margin: 0 auto;
  margin-bottom: 50px;
}
.tg-empty-panel {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-muted);
  font-size: 14px;
  font-weight: 700;
}

.tg-member-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: 12px;
  background: #0938cb;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  border: 0;
  box-shadow: 0 10px 22px rgba(13, 71, 255, 0.18);
  cursor: pointer;
}

.tg-member-btn svg {
  width: 16px;
  height: 16px;
}

.tg-member-btn:hover,
.tg-member-btn:focus,
.tg-tool-dropdown.is-open > .tg-member-btn {
  background: var(--tg-primary-dark);
  color: #ffffff;
}

.tg-member-panel a,
.tg-login-panel a,
.tg-cart-panel a {
  color: var(--tg-text);
  text-decoration: none;
}

.tg-member-panel a:hover,
.tg-login-panel a:hover,
.tg-cart-panel a:hover {
  color: var(--tg-primary);
}

.tg-search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5000;
}

.tg-search-overlay.is-open {
  display: block;
}

.tg-search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.tg-search-overlay-box {
  position: relative;
  width: min(820px, calc(100vw - 32px));
  margin: 12vh auto 0;
  padding: 34px;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.tg-search-title {
  margin-bottom: 18px;
  color: var(--tg-text);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.tg-search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--tg-text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.tg-search-close:hover,
.tg-search-close:focus {
  background: #e8edf5;
}

.tg-search-overlay-content form,
.tg-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.tg-search-overlay-content input[type="search"],
.tg-search-overlay-content input[type="text"],
.tg-search-form input[type="text"] {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--tg-border);
  border-radius: 16px;
  padding: 0 18px;
  color: var(--tg-text);
  background: #ffffff;
  font-size: 16px;
  outline: none;
}

.tg-search-overlay-content input[type="search"]:focus,
.tg-search-overlay-content input[type="text"]:focus,
.tg-search-form input[type="text"]:focus {
  border-color: rgba(13, 71, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(13, 71, 255, 0.08);
}

.tg-search-overlay-content button[type="submit"],
.tg-search-form button[type="submit"] {
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  background: var(--tg-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.tg-search-overlay-content button[type="submit"]:hover,
.tg-search-form button[type="submit"]:hover {
  background: var(--tg-primary-dark);
}

.tg-mobile-search-button,
.tg-member-mobile-link {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tg-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--tg-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .tg-logo-mobile:not(:empty) {
    display: inline-flex;
  }

  .tg-logo-mobile:not(:empty) + * {
    display: none;
  }

  .tg-logo:has(.tg-logo-mobile:not(:empty)) .tg-logo-desktop {
    display: none;
  }

  .tg-search-overlay-box {
    margin-top: 8vh;
    padding: 26px 18px 20px;
    border-radius: 22px;
  }

  .tg-search-title {
    font-size: 22px;
  }

  .tg-search-overlay-content form,
  .tg-search-form {
    display: grid;
    gap: 10px;
  }
}

.tg-member-icon-btn {
  width: 58px;
  min-width: 58px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 16px;
  gap: 4px;
}

.tg-member-icon-btn .tg-member-icon {
  width: 21px;
  height: 21px;
}

.tg-member-icon-btn .tg-member-chevron {
  width: 14px;
  height: 14px;
}

.tg-member-mobile-link {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-member-mobile-link svg {
  width: 22px;
  height: 22px;
}
/* falang */
.bs-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 10050;
}

.bs-lang-switcher summary {
    list-style: none;
}

.bs-lang-switcher summary::-webkit-details-marker {
    display: none;
}

.bs-lang-toggle {
    height: 32px;
    min-width: 82px;
    padding: 0 14px;
    border: 1px solid #e6ebf2;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.bs-lang-toggle:hover {
    border-color: #d7dfea;
    background: #f8fbff;
    color: #ef4444;
}

.bs-lang-switcher[open] .bs-lang-toggle {
    border-color: #ef4444;
    background: #f3f7ff;
    color: #ef4444;
}

.bs-lang-current-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 24px;
}

.bs-lang-current-label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.bs-lang-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: transform 0.22s ease;
}

.bs-lang-switcher[open] .bs-lang-arrow {
    transform: rotate(180deg);
}

.bs-lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    z-index: 10060;
}

.bs-lang-dropdown-inner {
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
    padding: 10px;
    overflow: hidden;
}

.bs-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
}

.bs-lang-item:hover {
    background: #f5f8fc;
    color: #ef4444;
}

.bs-lang-item-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 24px;
}

.bs-lang-name {
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

.bs-lang-check {
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .bs-lang-toggle {
        height: 44px;
        min-width: 76px;
        padding: 0 12px;
    }

    .bs-lang-current-label {
        font-size: 14px;
    }

    .bs-lang-dropdown {
        right: 0;
        min-width: 170px;
    }

    .bs-lang-dropdown-inner {
        border-radius: 16px;
        padding: 8px;
    }

    .bs-lang-item {
        min-height: 42px;
        padding: 9px 10px;
    }

    .bs-lang-name {
        font-size: 14px;
    }
}
/* bottom menu */
.tg-mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    .tg-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(68px + env(safe-area-inset-bottom));
        padding: 6px 0 env(safe-area-inset-bottom);
        background: #ffffff;
        border-top: 1px solid #e8edf5;
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
        z-index: 99990;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch;
    }

    .tg-mobile-bottom-nav .tg-mobile-nav-item {
        width: 100%;
        min-width: 0;
        height: 62px;
        min-height: 62px;
        margin: 0;
        padding: 5px 0 4px;
        border: 0;
        background: transparent;
        color: #64748b;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        font: inherit;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }

    .tg-mobile-bottom-nav .tg-mobile-nav-item:hover,
    .tg-mobile-bottom-nav .tg-mobile-nav-item.is-active,
    .tg-mobile-bottom-nav .tg-mobile-lang-button[aria-expanded="true"] {
        color: #ef4444;
    }

    .tg-mobile-nav-icon {
        width: 28px;
        height: 28px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tg-mobile-nav-icon svg {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .tg-mobile-nav-label {
        font-size: 13px;
        line-height: 1.1;
        font-weight: 700;
        white-space: nowrap;
    }

    .tg-mobile-nav-badge {
        position: absolute;
        top: -7px;
        right: -9px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 999px;
        background: #ff4d4f;
        color: #ffffff;
        font-size: 12px;
        line-height: 20px;
        font-weight: 800;
        text-align: center;
        border: 2px solid #ffffff;
    }

    .tg-mobile-lang {
        position: relative;
        padding: 0;
    }

    .tg-mobile-lang-button {
        width: 100%;
        height: 62px;
        min-height: 62px;
        margin: 0;
        padding: 5px 0 4px;
        border: 0;
        background: transparent;
        color: inherit;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        font: inherit;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }

    .tg-mobile-lang-button:focus,
    .tg-mobile-lang-button:active {
        outline: none;
        box-shadow: none;
    }

    .tg-mobile-lang-panel {
        position: absolute;
        right: 8px;
        bottom: calc(100% + 12px);
        width: 188px;
        background: #ffffff;
        border: 1px solid #edf1f5;
        border-radius: 20px;
        padding: 10px;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
        z-index: 100000;
    }

    .tg-mobile-lang-panel::after {
        content: "";
        position: absolute;
        right: 30px;
        bottom: -7px;
        width: 14px;
        height: 14px;
        background: #ffffff;
        border-right: 1px solid #edf1f5;
        border-bottom: 1px solid #edf1f5;
        transform: rotate(45deg);
    }

    .tg-mobile-lang-option {
        min-height: 50px;
        padding: 9px 12px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #0f172a;
        text-decoration: none;
        font-size: 15px;
        font-weight: 700;
        position: relative;
        z-index: 2;
    }

    .tg-mobile-lang-option:hover,
    .tg-mobile-lang-option:focus {
        background: #eef4ff;
        color: #ef4444;
    }

    .tg-mobile-lang-mark {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #f1f5f9;
        color: #ef4444;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 800;
        flex: 0 0 34px;
        overflow: hidden;
    }

    .tg-mobile-lang-mark img {
        width: 24px;
        height: 16px;
        display: block;
        object-fit: cover;
        border-radius: 3px;
    }

    .tg-mobile-lang-option strong {
        font-weight: 800;
    }
}
/* footer */
.footer {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    margin-top: 40px !important;
    padding: 0 !important;
}

.footer .grid-child {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.tg-simple-footer {
    width: 100%;
    padding: 44px 36px 24px;
    background: #ffffff;
    border-top: 1px solid #e8edf5;
    color: #0f172a;
}

.tg-simple-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.1fr 1fr;
    gap: 72px;
    align-items: start;
}

.tg-footer-acc {
    display: block;
}

.tg-footer-acc-title {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    cursor: default;
    font-family: inherit;
}

.tg-footer-acc-body {
    display: block;
}

.tg-footer-acc-body a {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tg-footer-acc-body a:hover {
    color: #0d47ff;
}

.tg-simple-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.tg-simple-footer-contact-icon {
    width: 20px;
    text-align: center;
    color: #0f172a;
    flex: 0 0 20px;
}

.tg-simple-footer-bottom {
    max-width: 1180px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .footer {
        margin-top: 32px !important;
    }
    .tg-simple-footer-bottom {
	  margin: 0;
	  border-top: none;
	}
    .tg-simple-footer {
        padding: 18px 20px calc(15px + env(safe-area-inset-bottom));
    }

    .tg-simple-footer-inner {
        display: block;
        max-width: 100%;
    }

    .tg-footer-acc {
        border-bottom: 1px solid #e8edf5;
    }

    .tg-footer-acc-title {
        position: relative;
        min-height: 50px;
        margin: 0;
        padding: 15px 34px 15px 0;
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
    }

    .tg-footer-acc-title::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #f1f5f9;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    .tg-footer-acc.is-open .tg-footer-acc-title::after {
        content: "−";
        color: #0d47ff;
    }

    .tg-footer-acc-body {
        display: none;
        padding: 0 0 16px;
    }

    .tg-footer-acc.is-open .tg-footer-acc-body {
        display: block;
    }

    .tg-footer-acc-body a {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .tg-simple-footer-contact-item {
        margin-bottom: 10px;
        font-size: 14px;
    }
}