.navbar {
  background-color: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color-current);
}
.navbar-container {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-profile-action {
  order: 1;
}

.navbar-logo {
  order: 2;
}

.navbar-links {
  order: 3;
  flex: 1;
  justify-content: center;
}

.navbar-cart-fav {
  order: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
}

.dropdown-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  color: var(--text-primary-current);
}

[data-theme="light"] .dropdown-toggle-btn {
  color: #000000;
}

[data-theme="dark"] .dropdown-toggle-btn {
  color: #ffffff;
}
.dropdown-toggle-btn:hover {
  background: var(--hover-overlay);
}
.dropdown-arrow {
  transition: transform 0.3s ease;
}
.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border-color-current);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  flex-direction: column;
  overflow: hidden;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: flex;
}

.dropdown-welcome {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary-current);
  margin-bottom: 4px;
}
.dropdown-divider {
  height: 1px;
  background: var(--border-color-current);
  margin: 12px 0;
}
.dropdown-theme-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  width: 100%;
  box-sizing: border-box;
}
.dropdown-theme-label {
  font-size: 15px;
  color: var(--text-primary-current);
}

.switch-btn {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-color-current);
}

.switch-option {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary-current);
  cursor: pointer;
  transition: all 0.2s ease;
}

.switch-option.active {
  background: var(--primary-color);
  color: white;
}

.switch-option:hover:not(.active) {
  color: var(--text-secondary-current);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}

.navbar-logo .logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}
.navbar-links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.navbar-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary-current);
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.navbar-link:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}
.navbar-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.navbar-link:hover::after {
  width: 100%;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-secondary-current);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.icon-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
}

.google-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: white;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
}

.google-play-btn:hover {
  background: var(--primary-darker);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.45);
}

.google-play-btn .google-play-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .google-play-btn span {
    display: none;
  }
  .google-play-btn {
    padding: 10px;
  }
}

/* Dropdown menu */
.dropdown {
  position: relative;
}
.dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color-current);
  background: var(--hover-overlay);
}
.dropdown-username {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary-current);
  margin-bottom: 4px;
}
.dropdown-email {
  font-size: 13px;
  color: var(--text-tertiary-current);
}
.dropdown-item {
  padding: 14px 20px;
  text-align: right;
  color: var(--text-primary-current);
  background: transparent;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dropdown-item:hover {
  background: var(--bg);
}
.dropdown-item.logout {
  border-top: 1px solid var(--border-color-current);
  color: var(--error);
  margin-top: auto;
}
.dropdown-item.logout:hover {
  background: rgba(220, 53, 69, 0.08);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-primary-current);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 38%;
  max-width: 300px;
  min-width: 220px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding-top: 80px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.mobile-menu-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary-current);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color-current);
  transition: color 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--primary-color);
}

@media (max-width: 1100px) {
  .navbar-links { display: none; }
  .hamburger-menu { display: flex; }
  .mobile-menu { display: block; }
  .mobile-menu-overlay { display: none; }
}

@media (max-width: 768px) {
  .navbar-container { gap: 12px; }
  .navbar-logo .logo-text { display: none; }
  .navbar-cart-fav { gap: 8px; }
  .mobile-menu { width: 40%; min-width: 180px; }
}
