/* ============================================================
   HEADER — Main wrapper
   ============================================================ */
.HeaderMain {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  margin-top: 10px;
}

/* ============================================================
   HEADER — Hamburger / phone menu
   ============================================================ */
.HeaderMain .phoneMenu {
  width: 70px;
  height: 70px;
  display: none;
  align-items: center;
  justify-content: center;
}

.stable {
  display: none;
  width: 70px;
  height: 70px;
}

.HeaderMain .phoneMenu .PhoneIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.HeaderMain .phoneMenu .PhoneIcon span {
  display: block;
  width: 30px;
  height: 2.3px;
  border-radius: 100px;
  background-color: #fff;
}

/* ============================================================
   HEADER — Center container & nav columns
   ============================================================ */
.HeaderMain .CenterContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.HeaderMain .CenterContainer .MainManu {
  display: flex;
  align-items: center;
  width: 420px;
}

.HeaderMain .CenterContainer .MainManu:nth-child(1) {
  justify-content: end;
}
.HeaderMain .CenterContainer .MainManu:nth-child(2) {
  justify-content: start;
}

/* ============================================================
   HEADER — Divider line between nav items
   ============================================================ */
.HeaderMain .CenterContainer .MainManu .Line {
  width: 2.7px;
  height: 7px;
  border-radius: 100px;
  background-color: var(--ThemeColor-);
  margin: 0 14px;
}

/* ============================================================
   HEADER — Nav link hover animation
   ============================================================ */
.HeaderMain .CenterContainer .MainManu a {
  background-image: url(/img/default/icon/hoveraffect.svg);
  background-size: 200%;
  background-position: center center;
  background-clip: text;
  color: transparent;

  font-size: 0.8rem;
  font-weight: 700;
  transition: 0.5s ease-in-out;
  animation: 0.4s ease-in-out alternate forwards HoverMenuAniBack;
}

.HeaderMain .CenterContainer .MainManu a:hover {
  animation: 0.4s ease-in-out alternate forwards HoverMenuAni;
}

@keyframes HoverMenuAni {
  from {
    background-position: 100% center;
  }
  to {
    background-position: 200% center;
  }
}

@keyframes HoverMenuAniBack {
  from {
    background-position: 200% center;
  }
  to {
    background-position: 300% center;
  }
}

/* ============================================================
   HEADER — Distributor button
   ============================================================ */
.HeaderMain .CenterContainer .MainManu .Distributor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  padding: 7.5px 12.5px;
  border-radius: 10px;
  border: 2.5px solid var(--ThemeColor-);
  background-color: transparent;
  cursor: pointer;

  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--ThemeColor-);
  margin-top: 1vh;

  position: relative;
  transition: 0.3s ease;
}

.HeaderMain .CenterContainer .MainManu .Distributor .becomeOurText {
  font-size: 7px;
  margin-bottom: 2px;
}

/* Arrow icon — hidden by default, revealed on hover */
.HeaderMain .CenterContainer .MainManu .Distributor::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translate(-50%, -50%);

  width: 12.5px;
  height: 12.5px;
  background-image: url(/img/default/icon/right-arrow.webp);
  background-size: cover;
  background-position: center;

  opacity: 0;
  transition: 0.3s ease;
}

.HeaderMain .CenterContainer .MainManu .Distributor:hover {
  padding: 7.5px 24px 7.5px 7px;
}

.HeaderMain .CenterContainer .MainManu .Distributor:hover::after {
  opacity: 1;
}

/* ============================================================
   HEADER — Dropdown menu wrappers
   ============================================================ */
.HeaderMain .CenterContainer .MainManu .OurManagmentMenu {
  width: 131px;
  height: 16px;
  position: relative;
}

.HeaderMain .CenterContainer .MainManu .OurRangeMenu {
  width: 80px;
  height: 16px;
  position: relative;
}

.HeaderMain .CenterContainer .MainManu .OurRangeMenu .Control {
  left: -35px;
  transition: 0.8s ease-in-out;
}

.HeaderMain .CenterContainer .MainManu .OurRangeMenu .Control .DropDown {
  height: 340px;
}

/* ============================================================
   HEADER — Dropdown control (overflow container)
   ============================================================ */
.HeaderMain .CenterContainer .MainManu .Control {
  position: absolute;
  top: 0;
  left: -10px;

  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;

  height: 15px;
  padding-top: 3px;
  overflow: hidden;
  transition: 0.4s ease-in-out;
}

.HeaderMain .CenterContainer .MainManu .OurManagmentMenu .Control:hover {
  height: 130px;
}
.HeaderMain .CenterContainer .MainManu .OurRangeMenu .Control:hover {
  height: 400px;
}

/* Force main link to highlight when dropdown is open */
.HeaderMain .CenterContainer .MainManu .Control:hover a.main-link {
  animation: 0.4s ease-in-out alternate forwards HoverMenuAni !important;
}

/* ============================================================
   HEADER — Dropdown panel
   ============================================================ */
.HeaderMain .CenterContainer .MainManu .Control .DropDown {
  width: 150px;
  height: 120px;
  border-radius: 12px;
  margin-top: 10px;
  padding-top: 10px;

  background-color: rgba(22, 22, 22, 0.7);
  backdrop-filter: blur(1vh);

  opacity: 0;
  transition: 0.4s ease-in-out;
}

.HeaderMain .CenterContainer .MainManu .Control:hover .DropDown {
  opacity: 1;
}

/* ============================================================
   HEADER — Dropdown items
   ============================================================ */
.HeaderMain .CenterContainer .MainManu .Control .DropDown .DropeItems {
  width: 100%;
  height: 20px;
  padding: 2px 2px 2px 22px;
  opacity: 0;
}

.HeaderMain .CenterContainer .MainManu .Control:hover .DropDown .DropeItems {
  padding-left: 15px;
  opacity: 1;
}

/* Staggered entrance delays */
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(1) {
  transition: 0.4s ease-in-out 0.05s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(2) {
  transition: 0.4s ease-in-out 0.1s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(3) {
  transition: 0.4s ease-in-out 0.15s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(4) {
  transition: 0.4s ease-in-out 0.2s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(5) {
  transition: 0.4s ease-in-out 0.25s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(6) {
  transition: 0.4s ease-in-out 0.3s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(7) {
  transition: 0.4s ease-in-out 0.35s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(8) {
  transition: 0.4s ease-in-out 0.4s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(9) {
  transition: 0.4s ease-in-out 0.45s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(10) {
  transition: 0.4s ease-in-out 0.5s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(11) {
  transition: 0.4s ease-in-out 0.55s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(12) {
  transition: 0.4s ease-in-out 0.6s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(13) {
  transition: 0.4s ease-in-out 0.65s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(14) {
  transition: 0.4s ease-in-out 0.7s;
}
.HeaderMain .CenterContainer .MainManu .DropDown .DropeItems:nth-child(15) {
  transition: 0.4s ease-in-out 0.75s;
}

/* ============================================================
   HEADER — Arrow indicator
   ============================================================ */
.HeaderMain .CenterContainer .MainManu .arrowDown {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;

  width: 12px;
  height: 12px;
  background-image: url(/img/default/icon/arrowdown.webp);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.4s ease-in-out;
}

/* Arrow moves down and flips when Management dropdown opens */
.HeaderMain .CenterContainer .MainManu .Control:hover ~ .arrowDown {
  top: 140px;
  transform: rotate(180deg);
  background-image: url(/img/default/icon/arrowdownyellow.webp);
}

/* Arrow moves further down for the larger Range dropdown */
.HeaderMain
  .CenterContainer
  .MainManu
  .OurRangeMenu
  .Control:hover
  ~ .arrowDown {
  top: 385px;
  transform: rotate(180deg);
  background-image: url(/img/default/icon/arrowdownyellow.webp);
}
