/* Header */

#header .menu-info ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
}

#header .section {
  padding-top: 0px;
  padding-bottom: 0px;
}

#header .menu-info ul li {
  margin: 0;
  position: relative;
}

#header .menu-info ul li:first-child {
  margin-right: 18px;
  padding-right: 18px;
}

#header .menu-info ul li:first-child:before {
  content: "";
  width: 0;
  height: 15px;
  border-left: 1px solid #b8b8b8;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

#header .menu-info {
  display: none;
}

#header .menu-info a {
  font-size: 14px;
  line-height: 17px;
  color: #3a3a3c;
  display: flex;
  align-items: center;
  gap: 11px;
}

#header .menu-info a:hover {
  text-decoration: underline;
}

#header .header-wrapper {
  box-shadow: 0px 6px 15px 0px rgba(224, 224, 224, 0.25);
}

.marquee-topbar {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  color: var(--color-primary);
}

#top-bar .khuyen-mai img {
  transition: transform 0.5s ease;
  animation: zoomInOut 3s infinite;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.top-bar-nav.nav-right .nav-top-link {
  font-size: 14px;
  color: #3a3a3c;
  padding: 10px 0;
  line-height: 18px;
  position: relative;
}

.top-bar-nav.nav-right .menu-item.active .nav-top-link {
  color: #3a3a3c;
}

.top-bar-nav.nav-right .menu-item.active .nav-top-link:before {
  content: "";
  border: 12px solid transparent;
  left: 50%;
  position: absolute;
  border-bottom: 8px solid var(--color-primary);
  transform: translateX(-50%);
  bottom: 0;
  display: block !important;
  opacity: 1;
}

.top-bar-nav.nav-right .nav-top-link:hover {
  color: var(--color-primary);
}

.top-bar-nav.nav-right .menu-item {
  margin: 0 18px;
}

.top-bar-nav.nav-right .menu-item img {
  margin-right: 8px;
  max-width: 16px;
  height: auto;
  object-fit: contain;
}

.top-bar-nav.nav-right .menu-item:first-child img {
  max-width: 18px;
}

#header #logo img {
  max-height: 40px !important;
}

.header-nav-main > .menu-item > a {
  color: #3a3a3c;
  padding: 22.5px 0;
  font-size: 16px;
  line-height: 24px;
  font-family: var(--medium);
  font-weight: normal;
}

.header-nav-main > .menu-item > a:hover {
  color: var(--color-primary);
}

.header-nav-main > .menu-item {
  margin: 0 16px;
}

.header-nav-main > .menu-item > a:before {
  content: "";
  position: absolute;
  background: var(--color-primary);
  width: 0;
  height: 3px;
  opacity: 0;
  bottom: 0;
  transition: all 0.5s;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.header-nav-main > .menu-item > a:hover:before,
.header-nav-main > .menu-item.active > a:before,
.header-nav-main > .menu-item.has-dropdown:hover > a:before {
  opacity: 1;
  width: 100%;
  transition: all 0.5s;
}

/* Header Auth Buttons */
.header-nav-main > .menu-item.irc-btn-login {
  margin-right: 0;
}

.header-nav-main > .menu-item.irc-btn-register {
  margin-left: 11px;
}

.header-nav-main > .menu-item.irc-btn-login a,
.group-banner-btn .btn1 {
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 1px solid var(--color-primary);
  font-size: 14px;
  font-family: var(--regular);
  color: var(--color-primary);
  padding: 0 24px;
}

.header-nav-main > .menu-item.irc-btn-login a:hover,
.group-banner-btn .btn1:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.header-nav-main > .menu-item.irc-btn-register a:hover {
  background-color: #fff;
  color: var(--color-primary);
}

.header-nav-main > .menu-item.irc-btn-login a:before,
.header-nav-main > .menu-item.irc-btn-register a:before {
  display: none;
}

.header-nav-main > .menu-item.irc-btn-register a {
  border-radius: 99px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 1px solid var(--color-primary);
  font-size: 14px;
  font-family: var(--regular);
  color: #fff;
  padding: 0 24px;
  background-color: var(--color-primary);
}

.nav-dropdown-has-arrow.nav-dropdown-has-border li.has-dropdown:before,
.nav-dropdown-has-arrow li.has-dropdown:after {
  display: none;
}

#header .header-nav-main .nav-dropdown {
  border: 0;
  box-shadow: none;
  background-color: transparent;
}

#header .menu-block {
  max-width: 1025px !important;
  border-radius: 0 0 10px 10px;
  background: #f5f6f8;
  box-shadow: 0px 0px 12px 0px rgba(158, 158, 158, 0.25);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #27abe085;
  border-top: 0;
}

/* Mega Menu - Column Layouts */
.menu-block .col-left .sub-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  grid-gap: 24px 30px;
}

/* 2 Column Layout */
.menu-block.cols-2 .col-left .sub-menu {
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px 60px;
}

/* 3 Column Layout (default) */
.menu-block.cols-3 .col-left .sub-menu {
  grid-template-columns: repeat(3, 1fr);
}

/* Adjust max-width for 2 columns */
#header .menu-block.cols-2 {
  max-width: 920px !important;
}

/* Adjust max-width for 3 columns */
#header .menu-block.cols-3 {
  max-width: 1025px !important;
}

#header .menu-block .col-left .sub-menu .menu-item {
  margin: 0 !important;
}

.menu-block .col-left {
  flex-basis: 100%;
  background-color: #fff;
  max-width: 100%;
  padding: 30px 40px 20px;
}

/* CTA Banner at bottom of dropdown */
.menu-block .menu-cta-banner {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border-radius: 8px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.menu-block .menu-cta-banner .cta-text {
  font-size: 14px;
  color: #3a3a3c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-block .menu-cta-banner .cta-text .highlight {
  font-family: var(--semi);
  font-style: italic;
  color: var(--color-primary);
}

.menu-block .menu-cta-banner .cta-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b4a 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--medium);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.menu-block .menu-cta-banner .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.menu-block .menu-cta-banner .cta-btn i {
  font-size: 12px;
}

/* Menu Item Box */
.menu-block .box-menu-2 {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.menu-block .box-menu-2:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.menu-block .box-menu-2 .box-image {
  border-radius: 8px;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.menu-block .box-menu-2 .box-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-block .box-menu-2 .box-text {
  padding: 0 0 0 10px;
  flex: 1;
}

.menu-block .box-menu-2 .title {
  font-size: 16px;
  color: #3a3a3c;
  font-family: var(--semi);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
  position: relative;
  margin-bottom: 3px;
  line-height: 1.3;
}

.menu-block .col-left a:hover .title {
  color: var(--color-primary);
}

.menu-block .box-menu-2 .desc {
  color: #5c5c5c;
  margin: 0 0 6px 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

/* Chỉ hiển thị border-bottom khi có badges */
.menu-block .box-menu-2 .box-text.has-badges .desc {
  padding-bottom: 6px;
  border-bottom: 1px dashed #c0c0c2;
}

/* Menu Item Footer - Badges + Progress Bar Row */
.menu-block .box-menu-2 .menu-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

/* Speed Progress Bar */
.menu-block .box-menu-2 .speed-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 140px;
}

.menu-block .box-menu-2 .speed-bar .speed-icon {
  font-size: 12px;
  color: #3b82f6;
}

.menu-block .box-menu-2 .speed-bar .progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.menu-block .box-menu-2 .speed-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Feature Badges */
.menu-block .box-menu-2 .feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.menu-block .box-menu-2 .feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
}

.menu-block .box-menu-2 .feature-badge i {
  font-size: 10px;
  color: #10b981;
}

.menu-block .box-menu-2 .feature-badge.highlight {
  background: #fef3c7;
  color: #b45309;
}

.menu-block .box-menu-2 .feature-badge.highlight i {
  color: #f59e0b;
}

/* Title Label */
.menu-block .box-menu-2 .label {
  display: inline-flex;
  font-style: normal;
  height: 18px;
  font-size: 10px;
  font-family: var(--medium);
  color: #fff;
  border-radius: 4px;
  margin-left: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  position: relative;
  left: auto;
  text-wrap: nowrap;
}

.menu-block .box-menu-2 .label.moi {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.menu-block .box-menu-2 .label.hot {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.menu-block .box-menu-2 .label.sale {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.menu-block .box-menu-2 .label.toi-uu {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.menu-block .box-noibat .image-cover {
  padding-top: 60%;
  border-radius: 6px;
}

.menu-block .box-noibat .box-text {
  padding: 13px 0 0;
  font-size: 14px;
  color: #3a3a3c;
  font-family: var(--medium);
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.menu-block .box-noibat img {
  transition: all 0.3s;
}

.menu-block .box-noibat .box-text:hover {
  color: var(--color-primary);
}

.menu-block .box-noibat .box-image:hover img {
  transform: scale(1.1);
}

#header .icon-angle-down {
  opacity: 1;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;
}

#header .icon-angle-down:before {
  content: "\f0d7";
  font-family: var(--fa6);
  font-weight: 900;
  color: var(--color-primary);
}

/* Rotate arrow up on hover */
#header .menu-item.has-dropdown:hover .icon-angle-down {
  transform: rotate(180deg);
}

.stuck #top-bar.hide-for-sticky {
  display: flex !important;
  visibility: hidden;
  position: absolute;
  z-index: -100;
  opacity: 0;
  transition: 0s !important;
  pointer-events: none;
}

@media screen and (min-width: 1600px) {
  #header #logo img {
    max-height: 50px !important;
  }
}

/* End Header */
