/*body {
      font-family: tahoma;
      background: #f5f5f5;
    }*/

/* فلش */
.Arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: 0.35s ease;
}

.open > .MenuHeader .Arrow,
.open > .nav-link .Arrow {
  transform: rotate(45deg);
}

/* آیکن */
.MenuIcon {
  width: 22px;
  height: 22px;
}

/* دپارتمان */
#BtnDep {
  cursor: pointer;
  user-select: none;
}

/* مگا منو */
.MegaWrapper {
  position: relative;
}

.MegaMenu {
  position: absolute;
  right: 0;
  top: 100%;
  width: 920px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 999;
}

.MegaMenu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* دسکتاپ */
@media (min-width: 992px) {
  .MegaMenu {
    display: flex;
  }

  .MegaRight {
    width: 280px;
    padding: 15px;
    border-left: 1px solid #eee;
  }

  .SubMenu {
    position: absolute;
    right: 280px;
    top: 0;
    width: 640px;
    padding: 20px;
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
    transition: 0.35s ease;
  }

  .MenuItem.open > .SubMenu {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

/* موبایل */
@media (max-width: 991px) {
  .MegaMenu {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .SubMenu {
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.4s ease;
    background: #fafafa;
  }

  .MenuItem.open > .SubMenu {
    max-height: 600px;
    opacity: 1;
  }

  .MenuHeader {
    font-size: 14px;
  }

  .SubMenu a {
    font-size: 13px;
  }
}

/* آیتم */
.MenuHeader {
  background: #f1f1f1;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
  transition: 0.25s;
}

.menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.MenuItem.open > .MenuHeader,
.MenuHeader:hover {
  background: #d62828;
  color: #fff;
}

/* زیرمنو */
.SubMenu ul {
  columns: 2;
  padding: 0;
  margin: 0;
}

@media (max-width: 991px) {
  .SubMenu ul {
    columns: 1;
  }
}

.SubMenu li {
  list-style: none;
  margin-bottom: 10px;
}

.SubMenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
}

.SubMenu a:hover {
  color: #d62828;
}
