/* Basic header layout */
.header {
  background: #fff;
}
.header .container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 4px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .logo {
  width: 250px;
}
.header .logo img {
  width: 100%;
}
/* Nav menu desktop */
.menu > ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  align-items: center;
  display: flex;
}

.menu > ul > li {
  position: relative;
}

.menu > ul > li > a {
  color: #9770b0;
  text-decoration: none;
  padding-bottom: 6px;
  display: inline-block;
}

.menu > ul > li > a:hover,
.menu > ul > li.active > a,
ul.submenu > li.active > a {
  color: #f05c68;
  transform: scale(1.05);
}

.btn-login {
  display: block;
  background-color: #41087e;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.btn-login:hover{
  background-color: #fd5c37;
}

/* Submenu desktop */
.menu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #341c77;
  border-radius: 6px;
  min-width: 200px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  list-style: none;
  flex-wrap: wrap;
  z-index: 9;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: font-weight 0.2s ease;
  font-weight: 400;
}

.submenu li a:hover {
  color: #fc5b11;
}

.menu > ul > li:hover > .submenu,
.menu > ul > li.submenu-open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hamburger - hidden desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 12000;
}

.hamburger span {
  height: 3px;
  background: #41087e;
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff8f2;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  z-index: 11000;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-menu-close {
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
  color: #41087e;
}


/* Mobile nav */
.mobile-nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-menu li a {
  font-weight: 600;
  font-size: 18px;
  color: #41087e;
  text-decoration: none;
  position: relative;
  padding-right: 25px;
  /* space for arrow */
}

/* Arrow for submenu toggle */
.mobile-nav-menu li.has-submenu>a::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #41087e;
  user-select: none;
}

/* Rotate arrow when open */
.mobile-nav-menu li.submenu-open>a::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Mobile submenu hidden by default */
.mobile-nav-menu .submenu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
  margin-top: 8px;
  gap: 15px;
}

/* Mobile submenu shown when open */
.mobile-nav-menu li.submenu-open>.submenu {
  display: flex;
}

.mobile-nav-menu .submenu li a {
  font-weight: 400;
  font-size: 16px;
  color: #5a4b8a;
}

#account_btn_sec i{
  font-size: 28px;
}

#cart_btn_sec i{
  font-size: 28px;
}

.mobile-logo{
  width: 300px;
  height: auto;
}

/* Responsive: show hamburger, hide desktop menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
  }
}