/* —— Overlay —— */
.idl-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}
.idl-menu-overlay.is-open {
  opacity: 1; visibility: visible;
}

/* —— Panel —— */
.idl-menu-panel {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 85vw;
  height: 100vh;
  background: #000; color: #fff;
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 1001;
  display: flex; flex-direction: column;
  font-family: "Geist", Sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
  text-transform: uppercase;
}

/* —— Header —— */
.idl-menu-header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 2px solid #1a1a1a;
}
.idl-menu-title { font-weight: 700; text-transform: capitalize; }
.idl-menu-close {
  background: none; border: 0;
  color: #fff; font-size: 22px;
  cursor: pointer;
}

/* —— Nav & List —— */
.idl-menu-nav { overflow-y: auto; flex: 1; }
.idl-menu-list { list-style: none; margin: 0; padding: 0; }

.idl-link,
.idl-parent {
  display:flex; align-items:center; justify-content:space-between;
  width: 100%;
  padding: 16px 18px;
  color: #fff; text-decoration: none;
  background:none; border:0;
  cursor:pointer;
}
.idl-link:hover,
.idl-parent:hover { background: #111; }

/* —— Caret —— */
.idl-caret { transition: transform .2s ease; opacity: .8; }
.idl-parent[aria-expanded="true"] .idl-caret { transform: rotate(180deg); }

/* —— Submenu —— */
.idl-submenu {
  list-style:none; margin:0; padding:0 0 8px;
}
.idl-link, .idl-parent{
  font-family: "Geist", Sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
  text-transform: uppercase;
}
.idl-submenu li a {
  display:block;
  padding: 10px 18px 10px 32px;
  color:#ddd;
  text-decoration:none;
}
.idl-submenu li a:hover { color:#fff; background:#111; }

/* —— Trigger button —— */
.idl-open-menu {
  border: none;
  cursor: pointer;
  background: none;
}

.idl-menu-panel.is-open { transform: translateX(0); }


/* —— Item with children —— */
/* Item có submenu: sắp xếp theo cột */
.idl-item.has-children {
  display: flex;
  flex-direction: column;
}

/* Row ngang cho link + toggle */
.idl-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 1rem;
}

/* Link parent */
.idl-parent-row .idl-link {
  flex: 1;
  color: #fff;
  text-decoration: none;
}

/* Toggle caret */
.idl-parent-row .idl-toggle {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding-left: 12px;
}

/* Submenu nằm dọc bên dưới */
.idl-submenu {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.idl-submenu li a {
  display: block;
  padding: 10px 18px 10px 32px;
  color: #ddd;
  font-weight: 600;
  text-decoration: none;
}
.idl-submenu li a:hover {
  color: #fff;
  background: #111;
}

.idl-submenu {
  display: none;
}
.idl-submenu.is-open {
  display: flex; /* hoặc block */
  flex-direction: column;
}

