/* ============================================
   Mobile Header & Nav Styles
   ============================================ */

/* Mobile Header - Fixed top bar */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1001;
}

.mobile-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
}

.mobile-header__logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mobile-header__logo img {
  height: 32px;
  width: auto;
}

.mobile-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text-main);
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text-main);
  text-decoration: none;
}

/* Full-screen Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #fff;
  z-index: 10000;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  transform: translateX(0);
}

/* Mobile Nav Header */
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.mobile-nav__logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mobile-nav__logo img {
  height: 32px;
  width: auto;
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text-main);
  cursor: pointer;
  background: none;
  border: none;
}

/* Mobile Header Language Toggle */
.mobile-header__lang-toggle {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-header__lang-option {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.mobile-header__lang-option.active {
  background: var(--primary-color, #c9151e);
  color: #fff;
}

.mobile-header__lang-option:not(.active):hover {
  background: #e8e8e8;
}

/* Mobile Nav List */
.mobile-nav__list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Mobile Nav Items - reuse existing header.css mobile-menu styles */
/* .mobile-nav uses the same class names as .mobile-menu for style reuse */
/* We only override layout-specific properties here */

.mobile-nav .mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 54px;
  padding: 0 0 0 20px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
}

.mobile-nav .mobile-menu-item-link {
  /* flex: 1; */
  color: var(--text-main);
  text-decoration: none;
}

.mobile-nav .mobile-menu-item-link.active {
  color: var(--primary);
}

.mobile-nav .mobile-menu-sub {
  display: none;
  flex-direction: column;
  padding-left: 0;
  margin-top: 8px;
  /* border-left: 2px solid var(--border-light); */
  margin-left: 16px;
}

.mobile-nav .mobile-menu-sub.show {
  display: flex;
}

.mobile-nav .mobile-menu-sub-item {
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.mobile-nav .mobile-menu-toggle {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Active states */
.mobile-nav .mobile-menu-item.active,
.mobile-nav .mobile-menu-sub-item.active {
  color: var(--primary);
}

.mobile-nav .mobile-menu-item:last-child {
  border-bottom: none;
}

/* Overlay backdrop */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.mobile-nav-overlay.show {
  display: block;
}