/* Custom overrides for Hy Store - minimalist mega menu */

/* Vertical navigation container */
.subheader .navigation-wrapper .navigation {
  padding: 0;
  margin: 0;
}

/* Main menu item */
.subheader .navigation-wrapper .menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 14px;
  font-weight: 500;
}

/* Submenu panel (mega) */
.subheader .navigation-wrapper .submenu {
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
}

/* Submenu title (level 2 main items) */
.subheader .navigation-wrapper .submenu__item--main .link {
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 6px;
}

/* Submenu list as responsive grid */
.subheader .navigation-wrapper .submenu__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  column-gap: 24px;
  row-gap: 8px;
}

/* Column container */
.subheader .navigation-wrapper .submenu__col {
  list-style: none;
}

/* Child items */
.subheader .navigation-wrapper .submenu__item .link {
  font-size: 13px;
  font-weight: 400;
  color: #444;
}

/* Hover states */
.subheader .navigation-wrapper .submenu__item .link:hover {
  text-decoration: none;
  color: #111;
}

/* Small arrow icon alignment */
.subheader .navigation-wrapper .menu-item__link svg {
  opacity: 0.4;
}

/* Hide base64 icon if not needed in minimal style */
.subheader .navigation-wrapper .menu-item__link img {
  max-width: 18px;
  max-height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  object-fit: cover;
}

/* Make whole row feel airy */
.subheader .navigation-wrapper .menu-item__link span {
  flex: 1;
}

/* Slight background on hover main item */
.subheader .navigation-wrapper .menu-item:hover {
  background: rgba(0,0,0,0.02);
}

/* Mobile tweaks: keep things simple */
@media (max-width: 767.98px) {
  .subheader .navigation-wrapper .submenu {
    box-shadow: none;
    border-radius: 0;
    padding: 8px 16px 16px;
  }
  .subheader .navigation-wrapper .submenu__list {
    grid-template-columns: 1fr;
  }
}

/* ==== SPEED MAX OVERRIDES FOR MOBILE ==== */
@media (max-width: 767.98px) {
  /* Tắt animation & transition để tăng hiệu năng trên mobile */
  * {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
  }

  /* Giảm shadow để trình duyệt render nhanh hơn */
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}
