/* ===============================
   MOBILE MENU — CLEAN & OPTIMIZED
   =============================== */

/* ===== HEADER MOBILE ===== */
.mobile-menu-container {
  background: #c7e2ff;
  width: 100%;
  height: 55px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Nút mở menu */
.mobile-menu-btn {
  font-size: 28px;
  color: #f59118;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform .2s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

/* ===== SIDEBAR MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #c7e2ff;
  padding-top: 60px;
  transition: left .35s ease;
  z-index: 9999;
  overflow-y: auto;
}

.mobile-menu.open {
  left: 0;
}

/* Nút đóng */
.mobile-menu .close-menu {
  position: absolute;
  top: 20px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #5ca545;
  cursor: pointer;
  transition: transform .3s ease;
}

.mobile-menu .close-menu:hover {
  transform: rotate(90deg);
}

/* DANH SÁCH MENU */
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 15px;
  color: #000;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: color .25s ease;
}

.mobile-menu a:hover {
  color: #f59219;
}

/* ===== DROPDOWN MENU ===== */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mũi tên */
.menu-item-has-children .arrow {
  font-size: 12px;
  margin-left: 8px;
  transition: transform .3s ease;
  display: inline-block;
}

/* Xoay mũi tên khi mở */
.menu-item-has-children.open .arrow {
  transform: rotate(180deg);
}

/* SUBMENU */
.submenu {
  display: none;
  padding-left: 20px;
}

.menu-item-has-children.open .submenu {
  display: block;
}

.submenu a {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: normal;
  color: #333;
}

.submenu a:hover {
  color: #f59219;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 576px) {
  .mobile-menu,
  .mobile-menu-container {
    display: none !important;
  }
}

/* Autofill Fix */
input:-webkit-autofill {
  background: white !important;
  box-shadow: 0 0 0 1000px white inset !important;
}

/* ===== SEARCH BOX ===== */
.header-search-menu {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 5px 10px;
  border: 1px solid #ddd;
}

.search-input {
  border: none;
  outline: none;
  width: 180px;
  padding: 5px 10px;
}

.search-btn {
  background: none;
  border: none;
  color: #ff385c;
  font-size: 16px;
  cursor: pointer;
}

/* Icon dropdown nằm bên phải */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children .arrow {
    position: absolute;
    right: 12px;                 /* Đẩy icon sát phải */
    top: 50%;
    transform: translateY(-50%); /* Canh giữa theo chiều dọc */
    background: #fff;            /* giống nền icon bạn đang dùng */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 12px;
    pointer-events: none;        /* để click không bị lệch */
    z-index: 10;
    transition: transform .3s ease;
}

/* Khi mở → icon xoay xuống */
.menu-item-has-children.open .arrow {
    transform: translateY(-50%) rotate(180deg);
}
/* Giữ nguyên cấu trúc cha để icon không bị đẩy */
.menu-item-has-children {
    position: relative;
}

/* Cố định icon bên phải */
.menu-item-has-children .arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg) !important;
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
    transition: transform .25s ease;
}

/* Khi mở submenu → chỉ xoay icon, không đổi vị trí */
.menu-item-has-children.open .arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}


/* ===============================
   CLEANED – REMOVED UNUSED CODE
   =============================== */
