.mobile-menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  color: #334865;
  background: #f6f9ff;
  cursor: pointer;
  font-size: 19px;
}

.mobile-menu-toggle i { line-height: 1; }

.mobile-sidebar-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 28, 49, .38);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.mobile-sidebar {
  position: fixed;
  left: -244px;
  top: 0;
  bottom: 0;
  z-index: 90;
  width: 244px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 16px 0 34px rgba(15, 35, 66, .16);
  transition: left .22s ease;
}

body.sidebar-open .mobile-sidebar { left: 0 !important; }
body.sidebar-open .mobile-sidebar-mask { opacity: 1; visibility: visible; }

.mobile-sidebar-brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  border-bottom: 1px solid #eef1f5;
  font-size: 20px;
  font-weight: 800;
  color: #101827;
}

.mobile-sidebar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}

.mobile-sidebar-nav {
  padding: 18px 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  margin: 0 0 4px 14px;
  padding: 0 18px;
  border-radius: 5px 0 0 5px;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.mobile-sidebar-nav a:hover,
.mobile-sidebar-nav a.active {
  color: #1f63ff;
  background: #eaf1ff;
}

.mobile-sidebar-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: #1f63ff;
}

.mobile-sidebar-nav i,
.mobile-sidebar-footer i {
  width: 20px;
  color: currentColor;
  font-style: normal;
  text-align: center;
  font-size: 17px;
}

.menu i,
.nav-action i,
.mobile-sidebar-nav i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.nav-action i { margin-right: 5px; }
.menu i { margin-right: 1px; }

.mobile-sidebar-footer {
  padding: 18px 14px 22px;
  border-top: 1px solid #eef1f5;
}

.mobile-sidebar-footer button {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 5px;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
  padding: 0 18px;
  font-size: 14px;
}

.mobile-sidebar-footer button:hover {
  color: #1f63ff;
  background: #f6f9ff;
}

@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .mobile-menu-toggle { display: inline-grid; place-items: center; }
  .topbar { height: auto !important; }
  .nav {
    height: auto !important;
    min-height: 58px;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 8px 0;
  }
  .brand { min-width: auto !important; }
  .brand img { width: 88px !important; }
  .menu { display: none !important; }
  .nav-right {
    display: none !important;
  }
  .nav-action { min-height: 30px !important; padding: 0 6px !important; }
  .language-switcher { min-width: auto !important; }
  .language-switcher summary { min-height: 30px !important; padding: 0 6px !important; }
  .language-menu { left: auto !important; right: 0 !important; }
}

@media (max-width: 420px) {
  .nav-right .cart,
  .nav-right > .nav-action[href="#"] {
    display: none;
  }
}
