/* ===== MODERN MOBILE DRAWER MENU ===== */

/* Hide desktop navigation on mobile */
@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }

  /* Mobile Header */
  .header {
    height: 70px !important;
  }

  .header.solid {
    height: 70px !important;
  }

  .header__inner {
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 70px !important;
    height: 70px !important;
  }

  .header__left {
    flex: 0 0 auto !important;
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  .header__center {
    display: none !important;
  }

  .header__right {
    flex: 0 0 auto !important;
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-left: auto !important;
    height: 100% !important;
    min-height: 70px !important;
  }

  .header__right > * {
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .header__right .utils {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  .header__right .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .brand {
    display: block !important;
  }

  .brand img {
    height: 42px !important;
    width: auto !important;
  }

  /* Desktop language buttons - hide on mobile */
  .header__right .desktop-language {
    display: none !important;
    visibility: hidden !important;
  }

  /* Mobile language button in header - show on mobile (Single Toggle) */
  .header__right .utils.mobile-language,
  .header.transparent .header__right .utils.mobile-language,
  .header.solid .header__right .utils.mobile-language {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    align-self: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    width: auto !important;
    height: 40px !important;
  }

  .header__right .mobile-language #mobile-lang-toggle,
  .header__right #mobile-lang-toggle,
  .header.transparent .header__right #mobile-lang-toggle,
  .header.solid .header__right #mobile-lang-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-self: center !important;
  }

  #mobile-lang-toggle.mobile-header-lang-btn,
  .header.transparent #mobile-lang-toggle.mobile-header-lang-btn,
  .header.solid #mobile-lang-toggle.mobile-header-lang-btn {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    min-width: 44px !important;
    width: auto !important;
    height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    flex-shrink: 0 !important;
  }

  .header.solid #mobile-lang-toggle.mobile-header-lang-btn,
  .header.solid .mobile-header-lang-btn {
    background: rgba(31, 41, 55, 0.06) !important;
    border-color: rgba(31, 41, 55, 0.12) !important;
    color: #1f2937 !important;
  }

  .mobile-header-lang-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
  }

  .header.solid .mobile-header-lang-btn:hover {
    background: rgba(31, 41, 55, 0.1) !important;
    border-color: rgba(31, 41, 55, 0.2) !important;
  }

  .mobile-header-lang-btn:active {
    transform: scale(0.96) !important;
  }

  /* Mobile Menu Button */
  .header__right .mobile-menu-btn,
  .header.transparent .header__right .mobile-menu-btn,
  .header.solid .header__right .mobile-menu-btn,
  button.mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
  }

  .mobile-menu-btn i {
    font-size: 24px !important;
    line-height: 1 !important;
    transition: all 0.3s ease;
    display: block !important;
  }

  .header.transparent .mobile-menu-btn i {
    color: #ffffff !important;
  }

  .header.solid .mobile-menu-btn i {
    color: #1f2937 !important;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1250;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.30, 1);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  min-height: 70px;
}

.mobile-menu-logo img {
  height: 40px;
  width: auto;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #1f2937;
  transition: all 0.2s ease;
}

.mobile-menu-close i {
  font-size: 20px;
}

.mobile-menu-close:hover {
  color: #000000;
  background: #f3f4f6;
  border-radius: 6px;
}

/* Mobile Menu Content */
.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Navigation */
.mobile-nav {
  padding: 0;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  text-decoration: none;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: #f9fafb;
}

.mobile-nav-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.has-submenu.open .mobile-nav-arrow {
  transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.30, 1);
  background: #f9fafb;
}

.mobile-nav-item.has-submenu.open .mobile-submenu {
  grid-template-rows: 1fr;
}

.mobile-submenu-inner {
  overflow: hidden;
  padding: 0;
}

.mobile-nav-item.has-submenu.open .mobile-submenu-inner {
  padding: 16px 24px 24px;
}

.mobile-submenu-section {
  margin-bottom: 24px;
}

.mobile-submenu-section:last-child {
  margin-bottom: 0;
}

.mobile-submenu-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

/* Mobile Store List */
.mobile-store-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-store-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-store-list li:last-child {
  border-bottom: none;
}

.mobile-store-list a {
  display: block;
  color: #1f2937;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-store-list a:hover {
  color: #000000;
}

/* Mobile Category List */
.mobile-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-category-list a {
  display: inline-block;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  color: #1f2937;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-category-list a:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Mobile View All */
.mobile-view-all {
  display: inline-block;
  margin-top: 12px;
  color: #000000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.mobile-view-all:hover {
  opacity: 0.7;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  margin-top: auto;
}

.mobile-language-switch {
  display: flex;
  gap: 12px;
}

.mobile-lang-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-lang-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.mobile-lang-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.mobile-lang-btn i {
  font-size: 16px;
}

/* Body Lock when Menu Open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Skeleton Loaders */
.mobile-store-list .skeleton-item,
.mobile-category-list .skeleton-item {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.mobile-store-list.loaded .skeleton-item,
.mobile-category-list.loaded .skeleton-item {
  display: none;
}

/* Desktop - Hide Mobile Elements */
@media (min-width: 993px) {
  .mobile-menu-btn,
  .mobile-menu-overlay,
  .mobile-menu-drawer,
  .utils.mobile-language,
  #mobile-lang-toggle {
    display: none !important;
    visibility: hidden !important;
  }
}
