.header1 {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 40px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.829);
  border-bottom: 1px solid black;
  color: black;
  flex-wrap: wrap; /* responsive */
  z-index: 1000;
}

.header1 .contact,
.header1 .account {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap; /* responsive */
}

.header1 .contact {
  margin-left: 60px;
}

.header1 .account {
  margin-left: auto;
  margin-right: 60px;
}

.header1 .account .login,
.header1 .account .register {
  white-space: nowrap; /* không xuống dòng */
  font-size: 14px;
}

/* LOGIN BUTTON */
.header1 .account .login {
  background: linear-gradient(270deg, #cce4ff, #80b8ff, #cce4ff);
  background-size: 400% 100%;
  border-radius: 30px;
  padding: 5px 10px;
  border: none;
  color: #007bff;
  font-weight: 900;
  transition: color 0.3s ease;
  cursor: pointer;
}

.header1 .account .login:hover {
  animation: slide-bg 3s linear infinite;
  color: #003d99;
}

/* REGISTER BUTTON */
.header1 .account .register {
  background: linear-gradient(270deg, #4a32a8, #1ba0e2, #007bff);
  background-size: 400% 100%;
  border-radius: 30px;
  padding: 5px 16px;
  border: none;
  color: white;
  font-weight: 900;
  transition: color 0.3s ease;
  cursor: pointer;
}

.header1 .account .register:hover {
  animation: slide-bg 3s linear infinite;
  color: #d0cfff;
}

@keyframes slide-bg {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* TEXT LINKS */
.header1 a {
  color: black;
  text-decoration: none;
}

.header1 .account .login a {
  color: #007bff;
  text-decoration: none;
}

.header1 .account .register a {
  color: white;
  text-decoration: none;
}

.header1 a:hover {
  color: #4361ee;
}

/* PHONE BORDER */
.header1 .contact .phone {
  border-right: 1px solid white;
  padding-right: 30px;
}

/* MENU */
.header-menu,
.header-menu.fixed-clone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  top: 40px;
  z-index: 10;
  box-sizing: border-box;
}

.header-menu {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
}

.header-menu.fixed-clone {
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.573);
}

.header-menu.fixed-clone.show {
  opacity: 1;
  pointer-events: auto;
}

.header-menu ul,
.header-menu.fixed-clone ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu ul li,
.header-menu.fixed-clone ul li {
  font-weight: bold;
  font-size: 15px;
  text-transform: uppercase;
}

.header-menu ul li a,
.header-menu.fixed-clone ul li a {
  position: relative;
  display: inline-block;
  color: black;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.header-menu ul li a::after,
.header-menu.fixed-clone ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: #4361ee;
  transition: width 0.4s ease;
  transform: translateX(-50%);
}

.header-menu ul li a:hover,
.header-menu.fixed-clone ul li a:hover {
  transform: scale(1.1);
  color: #4361ee;
}

.header-menu ul li a:hover::after,
.header-menu.fixed-clone ul li a:hover::after {
  width: 100%;
}

.header-menu .menu-link.active,
.header-menu.fixed-clone .menu-link.active {
  color: black;
  border-bottom: 2px solid #4361ee;
  transform: scale(1.1);
}

/* RESPONSIVE MEDIA QUERY */
@media (max-width: 768px) {
  .header1 {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .header1 .contact {
    margin-left: 0;
    margin-bottom: 10px;
    gap: 15px;
  }

  .header1 .account {
    margin: 0 auto;
    gap: 15px;
    justify-content: center;
  }

  .header1 .account .login,
  .header1 .account .register {
    font-size: 13px;
    padding: 5px 10px;
  }
}
@media (max-width: 768px) {
  .header-menu {
    padding: 10px 10px;
    justify-content: center;
    overflow-x: auto; /* Cho phép cuộn ngang nếu không đủ chỗ */
  }

  .header-menu ul,
  .header-menu.fixed-clone ul {
    flex-direction: row; /* GIỮ NGUYÊN NGANG */
    flex-wrap: nowrap; /* Không xuống dòng */
    gap: 30px;
    white-space: nowrap;
  }

  .header-menu ul li,
  .header-menu.fixed-clone ul li {
    font-size: 13px;
  }
}
.header-menu {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}
.header-menu::-webkit-scrollbar {
  height: 6px;
}
.header-menu::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
