/* =========================================================
   Main navigation — single-line desktop, responsive mobile
   ========================================================= */

.nav-beauty .nav-menu {
  position: relative;
  border-top: 1px solid rgba(27, 27, 31, 0.08);
  background: #fff;
}

.nav-beauty .menu-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.nav-beauty .menu-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0;
  -webkit-overflow-scrolling: touch;
}

.nav-beauty .menu-links::-webkit-scrollbar {
  display: none;
}

.nav-beauty .menu-link {
  flex-shrink: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(27, 27, 31, 0.72);
  white-space: nowrap;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  line-height: 1.2;
}

.nav-beauty .menu-link:hover,
.nav-beauty .menu-link.active {
  color: var(--accent);
  background: rgba(238, 0, 136, 0.07);
  transform: none;
}

.nav-beauty .menu-link.highlight {
  color: var(--accent);
  background: rgba(238, 0, 136, 0.06);
}

.nav-beauty .menu-link-cat {
  font-weight: 600;
  color: rgba(27, 27, 31, 0.82);
}

.nav-beauty .menu-sep {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: rgba(27, 27, 31, 0.12);
  margin: 0 4px;
}

.nav-beauty .brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-beauty .mega-panel {
  left: auto;
  right: 0;
}

/* Mobile menu */
@media (max-width: 980px) {
  .nav-beauty .nav-menu.open {
    box-shadow: 0 12px 40px rgba(20, 10, 12, 0.1);
  }

  .nav-beauty .menu-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .nav-beauty .menu-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    flex-wrap: wrap;
    padding: 8px 12px 12px;
    gap: 2px;
    max-height: min(75vh, 520px);
    overflow-y: auto;
  }

  .nav-beauty .nav-menu.open .menu-links {
    display: flex;
  }

  .nav-beauty .menu-link {
    width: 100%;
    text-align: left;
    padding: 13px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  .nav-beauty .menu-sep {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }

  .nav-beauty .menu-group-label {
    display: block;
    padding: 10px 14px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(27, 27, 31, 0.45);
  }

  .nav-beauty .mega {
    width: 100%;
  }

  .nav-beauty .mega-btn {
    width: 100%;
    text-align: left;
    justify-content: space-between;
    display: flex;
    align-items: center;
  }

  .nav-beauty .mega-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid rgba(27, 27, 31, 0.08);
    margin-top: 4px;
    display: none;
    border-radius: 12px;
  }

  .nav-beauty .mega.open .mega-panel {
    display: block;
  }

  .nav-beauty .menu-shop-cta {
    padding: 0 12px 12px;
    width: 100%;
  }

  .nav-beauty .menu-shop-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 981px) {
  .nav-beauty .menu-group-label {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .nav-beauty .menu-link {
    padding: 10px 9px;
    font-size: 12px;
  }
}
