/* =========================================================
   MOBILE ONLY — ULTRA GOLD DARK (FINAL CLEAN)
   max-width: 991px
   No duplicates | No hacks | No desktop bleed
========================================================= */

@media (max-width: 991px) {

  /* ===============================
     Color Tokens
  =============================== */
  :root {
    --gold: #d4af37;
    --gold-soft: #e6c76a;
    --bg-main: #0b0b0b;
    --bg-soft: #141414;
    --border-gold: rgba(212,175,55,.35);
    --text-main: #f5f5f5;
  }

  /* ===============================
     FORCE KILL DESKTOP UI
  =============================== */
  header,
  header.site-header,
  .site-header,
  .top-bar,
  .header-top,
  .navbar,
  nav.navbar,
  .navbar-ultra,
  .navbar-glass,
  footer,
  #site-footer,
  .desktop-header,
  .desktop-nav {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* ===============================
     Body & Background
  =============================== */
  html,
  body {
    background: var(--bg-main);
    color: var(--text-main);
  }

  .home-hero,
  .hero,
  .hero-section {
    background-size: cover;
    background-position: center;
  }

  /* ===============================
     MOBILE HEADER
  =============================== */
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, var(--bg-main), var(--bg-soft));
    border-bottom: 1px solid var(--border-gold);
  }

  .mobile-top {
    position: relative;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }

  .mobile-menu-btn,
  .mobile-cart {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
  }

  .mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    text-decoration: none;
  }

  .mobile-search {
    padding: 8px 12px 10px;
    background: var(--bg-main);
  }

  .mobile-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border-gold);
    background: #111;
    color: #fff;
    font-size: 13px;
  }

  /* ===============================
     CONTENT OFFSET
  =============================== */
  main,
  .main-content,
  .container.main-content {
    padding-top: 104px !important; /* header + search */
    padding-bottom: 84px !important; /* bottom nav */
  }

  /* ===============================
     BOTTOM NAVIGATION
  =============================== */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(135deg, var(--bg-main), var(--bg-soft));
    border-top: 1px solid var(--border-gold);
    z-index: 10000;
  }

  .mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--gold);
    text-decoration: none;
    opacity: 0.85;
  }
  .mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
}


  .mobile-bottom-nav a.active {
    opacity: 1;
  }

  /* ----- Center Home Button ----- */
  .mobile-bottom-nav .home-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at top, #1c1c1c, #000);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(212,175,55,.4);
  }

  .mobile-bottom-nav .home-btn i {
    font-size: 20px;
    color: var(--gold);
  }

}
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
}

.mobile-bottom-nav a {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gold);
}

.mobile-bottom-nav a.home {
  flex: 0;
}

.mobile-bottom-nav .home-btn {
  position: absolute;
  top: -22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
@media (max-width: 991px) {

  /* FORCE SHOW MOBILE BOTTOM NAV */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, #0b0b0b, #141414);
    border-top: 1px solid rgba(212,175,55,.35);
    z-index: 99999;
  }

  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #d4af37 !important;
  }

  .mobile-bottom-nav .home-btn {
    position: relative;
    top: -18px;
    margin: 0;
  }
}
@media (max-width: 991px) {

  body {
    padding-bottom: 72px;
  }

}
@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 9999;
  }
}
@media (max-width: 991px) {

  footer,
  #site-footer {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 200px;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: 1;
  }

}
@media (max-width: 991px) {

  html, body {
    height: auto !important;
    overflow-y: auto !important;
  }

  main,
  .main-content,
  .container.main-content {
    min-height: auto !important;
  }

  footer,
  #site-footer {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }

}
@media (max-width: 991px) {

  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  main,
  .main-content {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

}
@media (max-width: 991px) {

  .container,
  .container-fluid {
    height: auto !important;
    overflow: visible !important;
  }

}
@media (max-width: 991px) {

  /* === FORCE GOLD HEADER === */
  .mobile-header {
    background: linear-gradient(
      135deg,
      #0f0f0f,
      #1a1a1a,
      #c9a24d
    ) !important;
    color: #f5d98b !important;
  }

  /* === FORCE GOLD FOOTER === */
  #site-footer {
    background: linear-gradient(
      180deg,
      #0b0b0b,
      #121212
    ) !important;
    color: #d4af37 !important;
  }

  #site-footer * {
    color: #d4af37 !important;
  }

}
header, footer {
  background-color: var(--bs-body-bg);
}
@media (max-width: 991px) {

  header,
  footer {
    background: transparent !important;
  }

}
@media (max-width: 991px) {

  /* === MOBILE HEADER FIX === */
  .mobile-header {
    display: flex !important;
    align-items: center;
    min-height: 64px !important;
    padding: 0 16px !important;
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a, #c9a24d) !important;
    z-index: 9999 !important;
  }

  .mobile-header * {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* === FOOTER FIX === */
  #site-footer {
    display: block !important;
    min-height: 120px !important;
    padding: 24px 0 !important;
    background: #0b0b0b !important;
    color: #d4af37 !important;
    border-top: 1px solid rgba(212,175,55,.35);
  }

  #site-footer > *,
  #site-footer .container,
  #site-footer .row {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

}
#site-footer {
  position: relative;
  background: #0b0b0b;
  color: #d4af37;
  overflow: hidden;
}


@media (max-width: 991px) {

  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 96px;
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a, #c9a24d);
    z-index: 9999;
  }

  main {
    padding-top: 104px;
  }

  #site-footer {
    min-height: 200px;
    display: block;
  }

}
/* ===== MOBILE FOOTER FIX ===== */
@media (max-width: 991px) {
    #site-footer {
        display: block !important;
        min-height: 120px !important;
        background: linear-gradient(135deg, #3e4ea1 0%, #2a3770 100%) !important;
        color: #F0F8FF !important;
        position: relative;
        z-index: 100;
    }
    
    #site-footer .footer-overlay {
        background: rgba(30, 45, 120, 0.88) !important;
    }
    
    #site-footer .footer-content {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    #site-footer .footer-links a {
        color: #F0F8FF !important;
        opacity: 0.85 !important;
    }
    
    #site-footer .footer-links a:hover {
        color: #d4af37 !important;
    }
    
    /* ===== MOBILE HEADER GOLD THEME ===== */
    .mobile-header {
        background: linear-gradient(135deg, #1a2550 0%, #0b1220 100%) !important;
        color: #f5d98b !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
        position: sticky;
        top: 0;
        z-index: 2000;
    }
    
    .mobile-header .mobile-logo {
        color: #d4af37 !important;
        font-weight: bold;
    }
    
    .mobile-header .mobile-cart {
        color: #f5d98b !important;
    }
    
    .mobile-header .mobile-search input {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        color: #ffffff !important;
    }
    
    /* ===== PADDING FOR BOTTOM NAV ===== */
    body {
        padding-bottom: 72px !important;
    }
    
    .mobile-bottom-nav {
        background: linear-gradient(135deg, #1a2550 0%, #0b1220 100%) !important;
        border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
    }
    
    .mobile-bottom-nav .nav-item {
        color: #f5d98b !important;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: #d4af37 !important;
    }
}
@media (max-width: 991px) {
  .top-bar {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
@media (max-width: 991px) {
  .mobile-header {
    border: none !important;
    box-shadow: none !important;
  }
}
@media (max-width: 991px) {
  body,
  html {
    margin: 0 !important;
    padding-top: 0 !important;
  }

  #theme-root {
    margin-top: 0 !important;
  }
}
@media (max-width: 991px) {
  .mobile-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
  }
}
@media (max-width: 991px) {

  /* ☠️ نابودی کامل top-bar */
  .top-bar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  /* اگر theme چیزی بهش چسبونده */
  .top-bar::before,
  .top-bar::after {
    display: none !important;
    content: none !important;
  }
}
@media (max-width: 991px) {

  /* ☠️ حذف هر چیزی که قبل از هدر موبایل است */
  body > div,
  body > header,
  body > .top-bar,
  .top-bar,
  .py-1.top-bar {
    background: transparent !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* فقط هدر موبایل اجازه نمایش دارد */
  body > div:has(+ header.mobile-header) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* خود top-bar را بکش */
  .top-bar,
  .top-bar * {
    display: none !important;
  }

  /* قفل مطلق بالای صفحه */
  html, body {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .mobile-header {
    top: 0 !important;
    margin-top: 0 !important;
  }
}
@media (max-width: 991px) {

  /* ☠️ هرچیزی بالای mobile-header کلیک‌خور نباشد */
  .top-bar,
  .site-header,
  .navbar,
  .py-1,
  body > div:not(#theme-root),
  #theme-root > div:not(.mobile-header):not(main):not(footer) {
    pointer-events: none !important;
  }

  /* خود هدر موبایل باید کلیک‌خور باشد */
  .mobile-header,
  .mobile-header * {
    pointer-events: auto !important;
  }

  /* اگر چیزی هنوز ارتفاع دارد */
  .top-bar,
  .site-header {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* هدر موبایل بالاتر از همه */
  .mobile-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }
}
@media (max-width: 991px) {

  

  /* ☠️ FINAL KILL — Ultra Fixed Overlay */
@media (max-width: 991px) {

  html, body {
    position: relative !important;
  }

  body::before,
  body::after {
    content: none !important;
    display: none !important;
    position: static !important;
    height: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  /* اگر wrapper تم چیزی ساخته */
  #theme-root::before,
  #theme-root::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
  }

  /* تضمین کلیک‌پذیری */
  .mobile-header {
    position: relative !important;   /* ✅ این مهمه */
    z-index: 20 !important;
  }
}
:before,
  body::after,
  header::before,
  header::after,
  .page-wrapper::before,
  .page-wrapper::after,
  .site-wrapper::before,
  .site-wrapper::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
  }

  /* هر div خالی بالای هدر */
  body > div:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    pointer-events: none !important;
  }

  /* تضمین کلیک‌خور بودن هدر */
  .mobile-header,
  .mobile-header * {
    pointer-events: auto !important;
    z-index: 9999 !important;
  }
}
@media (max-width: 991px) {

  /* top-bar تم Ultra – حذف کامل */
  #theme-root > .top-bar,
  #theme-root > .py-1.top-bar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  /* اگر wrapper بالادستی هنوز overlay دارد */
  #theme-root {
    padding-top: 0 !important;
  }

  /* تضمین کلیک‌خور بودن هدر موبایل */
  .mobile-header,
  .mobile-header * {
    pointer-events: auto !important;
    z-index: 10000 !important;
  }
}
@media (max-width: 991px) {

  /* ===== Mobile Header Wrapper ===== */
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: linear-gradient(
      145deg,
      rgba(10,10,10,0.95),
      rgba(20,20,20,0.95)
    );
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212,175,55,0.25);
  }

  /* ===== Top Bar ===== */
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 14px;
  }

  /* Menu Button */
  .mobile-menu-btn {
    width: 36px;
    height: 28px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mobile-menu-btn span {
    display: block;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
  }

  /* Logo */
  .mobile-logo {
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #d4af37;
    letter-spacing: 0.6px;
  }

  /* Cart */
  .mobile-cart {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
  }

  /* ===== Search ===== */
  .mobile-search {
    padding: 8px 14px 12px;
  }

  .mobile-search input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    padding: 0 14px;
    color: #fff;
  }

  .mobile-search input::placeholder {
    color: rgba(255,255,255,0.5);
  }

  .mobile-search input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255,255,255,0.08);
  }

  /* ===== Prevent Desktop Navbar ===== */
  .site-header,
  .navbar,
  .top-bar {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
  }
}
@media (max-width: 991px) {

  /* ☠️ کشتن pseudo-element ها (دلیل اصلی نوار مشکی) */
  html::before,
  html::after,
  body::before,
  body::after,
  #theme-root::before,
  #theme-root::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    height: 0 !important;
    pointer-events: none !important;
  }

  /* اگر تم Ultra روی wrapper بالا overlay دارد */
  html,
  body,
  #theme-root {
    background: #000 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    overflow-x: hidden;
  }



  /* هدر موبایل باید سلطان z-index باشد */
  .mobile-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2147483647 !important;
  }
}
@media (max-width: 991px) {
  body::before,
  body::after {
    display: none !important;
  }
}
@media (max-width: 991px) {

  /* خاموش کردن بک‌گراند مشکی بالای صفحه */
  html,
  body {
    background-color: #fff !important;
    background-image: none !important;
  }

  /* بک‌گراند تم که به شکل overlay میاد */
  body::before,
  body::after {
    background: transparent !important;
    display: none !important;
  }

  /* اگر تم Ultra چیزی به body چسبونده */
  #theme-root {
    background: transparent !important;
  }

  /* تضمین کلیک‌پذیری */
  .mobile-header {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
    background: #0f0f0f !important;
  }
}
@media (max-width: 991px) {
  body * {
    pointer-events: auto !important;
  }
}
@media (max-width: 991px) {

  /* ✅ overlay تیره تم (مشکل دیده نشدن سرچ) */
  .search-overlay,
  .mobile-overlay,
  .overlay,
  .modal-backdrop,
  body::after {
    background: transparent !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  /* ✅ خود سرچ باید بالاتر باشد */
  .mobile-search,
  .mobile-search *,
  .mobile-header {
    position: relative;
    z-index: 10001 !important;
    opacity: 1 !important;
  }

  /* ✅ جلوگیری از تیرگی روی hero */
  main,
  section {
    filter: none !important;
  }
}
@media (max-width: 991px) {
  body { filter: none !important; }
}
@media (max-width: 991px) {

  /* ✅ بک‌دراپ تیره تم (مقصر اصلی) */
  .modal-backdrop,
  .offcanvas-backdrop,
  .search-backdrop,
  .overlay,
  .mobile-overlay {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ✅ اگر بک‌دراپ از pseudo-element اومده */
  body::before,
  body::after {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
  }

  /* ✅ خود سرچ باید روی همه‌چی باشه */
  .mobile-search,
  .mobile-search *,
  .mobile-header {
    z-index: 10050 !important;
    opacity: 1 !important;
    filter: none !important;
  }

  /* ✅ جلوگیری از شدن کل صفحه */
  body,
  main,
  section {
    filter: none !important;
  }
}
@media (max-width: 991px) {

  .mobile-header,
  .mobile-top-bar {
    position: relative;
    height: 56px; /* ارتفاع ثابت هدر */
    padding: 0 56px; /* 🚑 فضای امن برای cart و menu */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ✅ سبد خرید – چپ امن */
  .mobile-cart {
    position: absolute !important;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  /* ✅ منو – راست امن */
  .mobile-menu-btn {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  /* ✅ لوگو – وسط واقعی */
  .mobile-logo {
    position: relative;
    z-index: 5;
    margin: 0 auto !important;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 991px) {

  /* هدر */
  .mobile-header {
    position: relative;
    height: 58px;
    padding: 0 56px; /* فضا برای لوگو */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
  }

  /* 🛒 سبد خرید — چسبیده به لبه چپ صفحه */
  .mobile-cart {
    position: fixed !important;
    top: 30px;
    left: -80px;
    z-index: 9999;
  }

  /* ☰ منو — چسبیده به لبه راست صفحه */
  .mobile-menu-btn {
    position: fixed !important;
    top: 30px;
    right: -65px;
    z-index: 9999;
  }

  
}
@media (max-width: 991px) {

  /* ✨ آیکن‌های گوشه – افکت طلایی ملایم */
  .mobile-cart,
  .mobile-menu-btn {
    color: #f5c86a;
    transition: all .25s ease;
  }

  .mobile-cart:active,
  .mobile-menu-btn:active {
    transform: translateY(-50%) scale(1.08);
  }

  .mobile-cart:hover {
    filter: drop-shadow(0 0 6px rgba(245,200,106,.6));
  }

  /* 🛒 Badge تعداد سبد خرید */
  .mobile-cart::after {
    content: attr(data-count);
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c86a, #c89b3c);
    color: #111;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 6px rgba(245,200,106,.6);
    display: none;
  }

  /* اگر تعداد > 0 بود */
  .mobile-cart[data-count]:not([data-count="0"])::after {
    display: block;
  }
}
@media (max-width: 991px) {

  .mobile-header,
  .mobile-top-bar {
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    background: linear-gradient(
      180deg,
      rgba(20,20,20,.75),
      rgba(8,8,8,.55)
    );
    border-bottom: 1px solid rgba(245,200,106,.2);
    box-shadow: 0 6px 24px rgba(0,0,0,.6);
  }
}
@media (max-width: 991px) {

  .mobile-cart,
  .mobile-menu-btn {
    color: #f5c86a;
    filter: drop-shadow(0 0 12px rgba(245,200,106,.7));
    transition: all .25s ease;
  }

  .mobile-cart:active,
  .mobile-menu-btn:active {
    transform: translateY(-50%) scale(1.15);
    filter: drop-shadow(0 0 22px rgba(245,200,106,1));
  }
}
@media (max-width: 991px) {

  .mobile-cart::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd976, #c98b1d);
    color: #1a1205;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    box-shadow:
      0 0 0 2px #000,
      0 4px 10px rgba(245,200,106,.9);
  }
}
@media (max-width: 991px) {

  /* فیکس سفید شدن بک‌گراند سرچ */
  .mobile-search,
  .mobile-search a,
  .mobile-search button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* خود آیکن سرچ */
  .mobile-search i,
  .mobile-search svg {
    color: #f5c86a !important;
    background: transparent !important;
  }
}

.mobile-search {
  appearance: none;
  -webkit-appearance: none;
}
@media (max-width: 991px) {

  /* 🔍 سرچ — کنار سبد خرید */
  .mobile-search {
    position: fixed;
    top: 8px;
    left: -50px; /* فاصله از سبد خرید */
    color: #f5c86a;
    font-size: 18px;
    z-index: 9999;
    transition: all .25s ease;
  }

  .mobile-search:active {
    transform: scale(1.15);
  }

  .mobile-search:hover {
    filter: drop-shadow(0 0 8px rgba(245,200,106,.8));
  }
}

@media (max-width: 991px) {
  .mobile-search::before,
  .mobile-search::after {
    display: none !important;
    content: none !important;
  }
}
@media (max-width: 991px) {
  .header-search button,
  .header-search form {
    background: transparent !important;
    padding: 0 !important;
  }
}
.mobile-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c86a;
  font-size: 18px;
}
@media (max-width: 991px) {
  .mobile-search-icon {
    position: fixed;
    top: 12px;
    left: -40px; /* وسط بین لوگو و منو */
    z-index: 10000;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #f5c86a !important;
    font-size: 18px;
    background: transparent !important;

    pointer-events: auto !important;
  }

.mobile-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.mobile-search-modal.active {
  display: flex;
}

/* خنثی‌سازی کامل CSS قالب */
.mobile-search-modal,
.mobile-search-modal * {
  position: static !important;
}

.mobile-search-form {
  width: 85%;
  max-width: 320px;
}

.mobile-search-form input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
}

@media (max-width: 991px) {
  .header-search,
  .search-box,
  .header-search-form {
    display: none !important;
  }
}
/* 🔒 Ultra Theme – Disable Mobile Header Search COMPLETELY */
@media (max-width: 991px) {
  header form,
  header .search,
  header .search-box,
  header .header-search,
  header .header-search-form,
  header .top-search,
  header input[type="search"],
  header input[name="search"] {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
.mobile-search-icon {
  position: relative;
  z-index: 100000;
  pointer-events: auto !important;
}
/* 🔍 Mobile Search Icon – CLICK FIX */
.mobile-search-icon {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 100000;
  cursor: pointer;
  pointer-events: auto !important;
  background: transparent !important;
}

/* 🔒 Disable Ultra mobile header search */
@media (max-width: 991px) {
  header form,
  header input[type="search"],
  header .header-search,
  header .search-box {
    display: none !important;
  }
}

/* 🔮 Modal */
.mobile-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 999999;
  display: none;
}

.mobile-search-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-box {
  background: #111;
  border-radius: 14px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
}

.mobile-search-form input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
}
@media (max-width: 991px) {
  .mobile-search-box {
    width: 90%;
    margin: 10px auto 6px;
  }

  .mobile-search-box input {
    width: 100%;
    height: 38px;          /* باریک */
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(6px);
  }

  .mobile-search-box input::placeholder {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
  }
}
@media (max-width: 991px) {
  /* حذف آیکن سرچ قدیمی (اگر دوباره ظاهر شده) */
  .mobile-search-icon {
    display: none !important; 
  }
  
  /* استایل باکس جستجوی ساده و باریک */
  .mobile-search-box {
    width: 90%;
    margin: 10px auto 6px; /* فاصله از بالا و پایین */
  }

  .mobile-search-box input {
    width: 100%;
    height: 38px;          /* ارتفاع کم (نه کلفت) */
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15); /* حاشیه نازک و کم‌رنگ */
    background: rgba(255,255,255,0.06); /* پس‌زمینه بسیار کم‌رنگ */
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    outline: none;
    backdrop-filter: blur(6px); /* کمی بلور برای هماهنگی با تم تیره */
  }



@media (max-width: 991px) {

  .mobile-search-box {
    flex: 1;
    margin: 0 12px;
  }

  .mobile-search-box form {
    margin: 0;
  }

  .mobile-search-box input {
    width: 100%;
    height: 34px;              /* ✅ نازک */
    border-radius: 18px;
    border: none;
    padding: 0 14px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
  }

  .mobile-search-box input::placeholder {
    color: #999;
    font-size: 12px;
  }

}
.mobile-header {
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .mobile-search-box input {
    height: 34px !important;
    border-radius: 18px !important;
    border: none !important;
    background: #fff !important;
  }
}
@media (max-width: 991px) {

  .mobile-top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-search-box {
    flex: 1;
  }

  .mobile-search-box form {
    margin: 0;
  }

  .mobile-search-box input {
    width: 80%;
    height: 10px;            /* ✅ نازک */
    border-radius: 18px;
    border: none;
    padding: 0 14px;
    font-size: 13px;
    background: #fff;
    outline: none;
  }

  .mobile-search-box input::placeholder {
    color: #999;
    font-size: 12px;
  }

}
@media (max-width: 991px) {
  .header-search,
  .mobile-header-search,
  .search-form,
  .mobile-search,
  .search-modal,
  .search-overlay {
    display: none !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 991px) {

  .mobile-search-box {
    flex: 1 !important;
    margin: 0 10px !important;
  }

  .mobile-search-box input {
    width: 100% !important;
    height: 32px !important;     /* ✅ کوچیک شد */
    min-height: 32px !important;
    border-radius: 16px !important;
    border: none !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    background: #fff !important;
    box-sizing: border-box;
  }

}
@media (max-width: 991px) {

  /* 1️⃣ هر چی لایه مزاحمه از Ultra */
  .mobile-header *,
  .mobile-top-bar * {
    pointer-events: auto !important;
  }

  .mobile-header::before,
  .mobile-header::after,
  .mobile-top-bar::before,
  .mobile-top-bar::after {
    display: none !important;
    content: none !important;
  }

  /* 2️⃣ خود سرچ */
  .mobile-search-box {
    position: relative !important;
    z-index: 99999 !important;
  }

  .mobile-search-box input {
    position: relative !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    height: 32px !important;
    min-height: 32px !important;
    line-height: 32px !important;
  }

}

@media (max-width: 991px) {

  .mobile-search-fixed {
    position: sticky;
    top: 56px; /* ارتفاع هدر */
    z-index: 9999;
    background: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
  }

  .mobile-search-fixed form {
    margin: 0;
  }

  .mobile-search-fixed input {
    width: 100%;
    height: 34px;              /* ✅ نازک */
    border-radius: 18px;
    border: 1px solid #ddd;
    padding: 0 14px;
    font-size: 13px;
    background: #fff;
    outline: none;
  }

  .mobile-search-fixed input::placeholder {
    color: #999;
    font-size: 12px;
  }

}
@media (max-width: 991px) {

  .mobile-search-wrap {
    position: sticky;
    top: 56px; /* ارتفاع هدر Ultra */
    z-index: 9999;
    background: #0c0c0c;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(218,165,32,.3);
  }

  .mobile-search-form {
    position: relative;
  }

  .mobile-search-form input {
    width: 100%;
    height: 36px;
    padding: 0 14px 0 38px;
    border-radius: 20px;
    border: 1px solid #d4af37; /* طلایی */
    background: #fff;
    font-size: 13px;
    outline: none;
  }

  .mobile-search-form input:focus {
    border-color: #f1c40f;
  }

 

  /* autocomplete box */
  .search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    max-height: 260px;
    overflow-y: auto;
    z-index: 99999;
  }

  .search-suggestions div {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
  }

  .search-suggestions div:last-child {
    border-bottom: none;
  }

  .search-suggestions div:hover {
    background: #f9f6ea;
  }
}
@media (max-width: 991px) {
  .mobile-search-wrap.scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
  }
}




}
@media (max-width: 991px) {

  /* استیکی زیر هدر */
  .dk-mobile-search {
    position: sticky;
    top: 56px; /* ارتفاع هدر موبایل */
    z-index: 999;
    background: #f5f5f5;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
  }

  .dk-search-form {
    position: relative;
  }

  .dk-search-form input {
    width: 100%;
    height: 40px;
    border-radius: 12px;        /* شبیه دیجی‌کالا */
    border: none;
    background: #fff;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: #333;
    outline: none;

    box-shadow: 0 1px 4px rgba(0,0,0,.08);

    /* حیاتی برای تایپ */
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
  }

  .dk-search-form input::placeholder {
    color: #9e9e9e;
    font-size: 13px;
  }
}
@media (max-width: 991px) {
  .dk-mobile-search {
    position: sticky;
    top: 76px;              /* ارتفاع واقعی هدر */
    z-index: 1100;
    background: #f5f5f5;
    padding: 6px 10px;
    border-bottom: 1px solid #e5e5e5;
  }

  .dk-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 4px 10px;
  }

  .dk-search-form input {
    border: none;
    outline: none;
    width: 100%;
    height: 32px;
    font-size: 14px;
    background: transparent;
  }

  .dk-search-icon {
    font-size: 14px;
    opacity: 0.6;
  }
}
@media (max-width: 991px) {
  .mobile-cart {
    position: relative;
    display: inline-block;
  }
  .cart-count-badge {
    position: absolute;
    top: -2px;
    right: -7px;
    background: #FCCC31;
    color: #212121;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 12px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #fff;
    font-weight: bold;
    box-shadow: 0 1px 6px rgba(0,0,0,0.13);
    pointer-events: none;
    z-index: 1;
    padding: 0 4px;  /* اگه دو رقمی شد */
    white-space: nowrap;
  }
}
/* ✅ اصلاح دکمه‌های پرداخت در موبایل */
@media (max-width: 576px) {

  .payment-box .actions a {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  .payment-box .actions a + a {
    margin-top: 12px;
  }
}
.payment-box .actions a:first-child {
  font-weight: 600;
}
/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 998;
}

/* Menu Container */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #0f0f23;
  color: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

/* Active state */
.mobile-menu.active {
  right: 0;
}
.mobile-menu-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-title {
  font-weight: 600;
  color: #e7c15b;
}

.mobile-menu-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Navigation */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.mobile-menu-nav a {
  padding: 0.9rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.mobile-menu-nav a:hover {
  background: rgba(231, 193, 91, 0.12);
  color: #e7c15b;
}
/* ================= MOBILE FINAL OVERRIDE ================= */
@media (max-width:768px){

  /* ------- Base ------- */
  body{
    padding:10px;
  }

  .profile-box{
    max-width:100%;
    padding:16px 14px;
    border-radius:18px;
  }

  /* ------- Header ------- */
  .header{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:10px;
    padding-bottom:16px;
  }

  .avatar-text,
  .header img{
    width:64px;
    height:64px;
    font-size:26px;
  }

  .header h2{
    font-size:17px;
    margin:4px 0 0;
  }

  .header p{
    font-size:13px;
    opacity:.8;
  }

  /* ------- Action Buttons ------- */
  .btn-home,
  .btn-logout{
    width:100%;
    padding:12px;
    font-size:14px;
    margin:6px 0;
    border-radius:14px;
  }

  /* ------- Orders Box ------- */
  .orders-box{
    padding:14px;
    margin-top:20px;
  }

  .orders-box h3{
    font-size:15px;
    margin-bottom:10px;
  }

  /* ------- Order Card ------- */
  .order-item{
    padding:14px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    box-shadow:0 6px 18px rgba(0,0,0,.3);
    margin-bottom:12px;
    border:none;
    font-size:13px;
    line-height:1.8;
  }

  .order-status{
    display:inline-block;
    margin:6px 0;
    font-size:12px;
  }

  /* CTA links */
  .order-item a{
    display:inline-block;
    margin-top:8px;
    padding:8px 14px;
    border-radius:10px;
    background:rgba(231,193,91,.15);
    color:var(--gold);
    font-weight:700;
    text-decoration:none;
    font-size:12px;
  }

  .order-item a + a{
    margin-right:6px;
    background:rgba(46,204,113,.15);
    color:#7CFFB2;
  }

.mobile-menu {
  position: fixed;
  top: 0; /* 👈 مطمئن شو این مقدار صفره */
  right: -280px;
  width: 280px;
  
  /* 👈 مهمترین تغییر: ارتفاع 100% viewport */
  height: 100vh; 
  
  background: #fff;
  z-index: 9999; /* 👈 باید بالاترین باشه */
  transition: right 0.3s ease;
  overflow-y: auto; /* برای اینکه اگر محتوا زیاد شد، قابل اسکرول باشه */
}

.mobile-menu.active {
  right: 0;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: 0; /* 👈 حتماً 0 باشه */
  left: 0; /* 👈 حتماً 0 باشه */
  width: 100%;
  height: 100vh; /* 👈 ارتفاع کامل */
  background: rgba(0,0,0,0.45);
  /* ... بقیه استایل‌ها */
  z-index: 9998; /* یک واحد کمتر از منو */
}
/* برای رفع نشت در دسکتاپ (اگر هنوز هست) */
@media (min-width: 992px) {
    #mobileMenu,
    #mobileMenuOverlay {
        display: none !important;
    }
}

/* استایل‌های پایه منوی موبایل */
.mobile-menu {
  position: fixed;
  /* top و height توسط JS تنظیم می‌شوند، پس اینجا حذف شدند */
  right: -280px;
  width: 280px; 
  background: #fff;
  z-index: 9999; 
  transition: right 0.3s ease;
  overflow-y: auto; 
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* mobileMenu# */
.mobile-menu {
    /* ... استایل‌های قبلی مثل position: fixed; width: 280px; transition: 0.3s; */
    
    /* 👈 اینها را برای شیک‌تر شدن اضافه/تغییر بده */
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); /* کمی سایه برای عمق */
    
    /* گوشه‌های گرد: فقط بالا و راست (به دلیل راست‌چین بودن) */
    /* اگر منو از راست باز می‌شود: */
    border-top-right-radius: 12px; /* گوشه بالا-راست */
    border-top-left-radius: 12px;  /* گوشه بالا-چپ (در این حالت دیده می‌شود) */
    
    /* اگر منو از راست باز می‌شود، این دو گوشه باید تیز باشند */
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0; 
    
    /* اگر منو از چپ باز می‌شود:
    border-top-left-radius: 12px; 
    border-bottom-left-radius: 0; */
}
.mobile-menu-overlay {
    /* ... استایل‌های قبلی */
    background: rgba(0,0,0,0.6); /* 60% مشکی، برای تیرگی استاندارد */
    /* یا اگر تاریک‌تر می‌خواهی: */
    /* background: rgba(0,0,0,0.75); */
}
#closeMobileMenu {
    /* استایل‌های خودت را اینجا بنویس */
    font-size: 24px;
    cursor: pointer;
    padding: 15px; /* برای کلیک راحت‌تر */
    text-align: left; /* برای اینکه دکمه سمت چپ قرار گیرد */
    color: #333;
    font-weight: bold;
}
/* استایل کلی محتوای منو برای اطمینان از رنگ متن */
.mobile-menu a {
    color: #333 !important; /* رنگ متن: مشکی تیره */
    text-decoration: none;
    display: block;
    padding: 10px 15px; /* فاصله داخلی برای خوانایی بهتر */
}

/* استایل Hover یا Active برای آیتم‌های منو (اگر وجود دارد) */
.mobile-menu a:hover,
.mobile-menu a.active-link {
    background-color: #f7f7f7; /* پس‌زمینه خاکستری خیلی روشن هنگام هاور */
    color: #000 !important;
}

/* استایل آیتم‌هایی که مشکل رنگ دارند (اگر می‌خواهیم پس‌زمینه آنها را کنترل کنیم) */
.mobile-menu ul li {
    background-color: transparent !important; /* برای جلوگیری از نشت رنگ زرد/نارنجی */
}
.mobile-menu {
  /* ... بقیه استایل‌ها */
  background: #ffffff !important; /* باید سفید خالص باشد */
  z-index: 9999; 
  /* مطمئن شو هیچ opacity روی این المان یا والدش نیست */
  opacity: 1 !important; 
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee; /* یک خط جداکننده نازک */
}

.close-btn {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    order: 1; /* دکمه بستن سمت راست قرار می‌گیرد (در زبان فارسی) */
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}
.mobile-menu {
  position: fixed;
  top: 0; /* بعداً با جاوااسکریپت تنظیم می‌شود */
  right: 0;
  height: 100vh; /* بعداً با جاوااسکریپت تنظیم می‌شود */
  width: 280px; /* یا هر عرض دیگری که ترجیح می‌دهی */
  max-width: 80%;
  background-color: #ffffff; /* پس‌زمینه سفید خالص */
  z-index: 10000;
  transform: translateX(100%); /* منو در حالت بسته پنهان باشد */
  transition: transform 0.3s ease-out;
  
  /* اعمال گوشه‌های گرد به کل پنل */
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px; /* بهتر است پایین هم گرد باشد */
  /* برای زبان فارسی، چون منو از راست می‌آید، گوشه‌های چپ را گرد می‌کنیم. */
  
  /* برای رفع نشت محتوای داخلی */
  overflow-y: auto; 
}

.mobile-menu.is-active {
  transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between; /* "منو" و "✕" را از هم جدا می‌کند */
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee; /* یک خط جداکننده زیبا */
    background-color: transparent; /* اطمینان از عدم داشتن پس‌زمینه جداگانه */
}

.mobile-menu-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333; /* رنگ تیره برای عنوان */
    order: 2; /* در طرح فارسی، عنوان سمت راست قرار می‌گیرد */
}

/* استایل دکمه بستن (✕) */
#closeMobileMenu {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333; /* رنگ تیره */
    order: 1; /* دکمه بستن سمت چپ قرار می‌گیرد */
}
.mobile-menu-nav a {
    display: block; /* برای اینکه کل عرض را بگیرند */
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    color: #333; /* رنگ متن تیره برای کنتراست */
    transition: background-color 0.2s;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
    background-color: #f7f7f7;
    color: #000;
}

/* آیکون‌ها (که ظاهراً با یونیکد فرستاده‌ای) */
.mobile-menu-nav a i {
    margin-left: 10px; /* فاصله از متن */
    /* اگر می‌خواهی آیکون‌ها طلایی باشند، این استایل لازم است */
    /* color: #ffd700; */
}
/* استایل‌های مربوط به سربرگ منو */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* فضای داخلی برای متن و دکمه */
    
    /* ***** این خطوط برای حذف کادر اضافی حیاتی هستند ***** */
    background-color: transparent !important; /* هیچ پس‌زمینه رنگی نداشته باشد */
    border: none !important; /* هیچ حاشیه‌ای نداشته باشد */
    box-shadow: none !important; /* هیچ سایه‌ای نداشته باشد */
    border-radius: 0 !important; /* گوشه‌های گرد اضافی نداشته باشد */
    /* ****************************************************** */
    
    /* یک خط افقی برای جداسازی هدر از محتوا (اختیاری) */
    border-bottom: 1px solid #eee; 
}

/* استایل‌های مربوط به پنل اصلی منو */
.mobile-menu {
    /* ... استایل‌های قبلی مثل position: fixed و z-index ... */
    background-color: #ffffff; /* پس‌زمینه سفید برای کل منو */
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow-y: auto; 
    /* ... سایر استایل‌ها ... */
}
#closeMobileMenu {
    /* ... استایل‌های قبلی ... */
    background: none !important;
    border: none !important;
}
button:disabled {
  background: #b5b5b5 !important;
  color: #555 !important;
  opacity: 1 !important;
  cursor: not-allowed;
}
.btn-submit {
    width: 100%;
    margin-top: 15px;
    background-color: #000;
    color: #fff !important;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #222;
    color: #fff;
}
          button.btn-submit,
button.btn-submit:focus,
button.btn-submit:hover,
button.btn-submit:active {
    width: 100%;
    margin-top: 15px;
    background-color: #000 !important;
    color: #fff !important;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
}
.login-box-light {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
}

.login-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.light-input {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
}

.light-input::placeholder {
    color: #999;
}
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 64px;
    background: rgba(6, 23, 43, 0.98);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 9999;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    color: #f1f5f9;
    font-size: 12px;
    text-decoration: none;
}

.mobile-bottom-nav .nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: #e7c15b;
}
.mobile-category-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(6, 23, 43, 0.98);
    z-index: 10000;
    transition: right 0.3s ease;
}

.mobile-category-drawer.open {
    right: 0;
}

.drawer-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #e7c15b;
    font-size: 16px;
    border-bottom: 1px solid rgba(212,175,55,.3);
}

.drawer-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
}

.drawer-content {
    padding: 16px;
}

.drawer-item {
    display: block;
    padding: 14px 0;
    color: #f1f5f9;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}

.drawer-item:hover {
    color: #e7c15b;
}
.drawer-level {
    position: absolute;
    inset: 0;
    background: rgba(6,23,43,.98);
    transform: translateX(100%);
    transition: transform .3s ease;
}

.drawer-level.active {
    transform: translateX(0);
}

.drawer-level.prev {
    transform: translateX(-100%);
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    color: #f1f5f9;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.drawer-link i {
    width: 26px;
    color: #e7c15b;
}

.drawer-link .count {
    background: rgba(231,193,91,.15);
    color: #e7c15b;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.drawer-level {
    border: 2px solid red;
}
.mobile-category-drawer {
    position: fixed;
    inset: 0;
    background: #06172b;
    z-index: 9999;
    overflow: hidden; /* فقط اینجا */
}
.drawer-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6,23,43,.98);
    transform: translateX(100%);
    transition: transform .3s ease;
}
.drawer-level.active {
    transform: translateX(0);
}
.drawer-level.prev {
    transform: translateX(-100%);
}
.drawer-content {
    padding-top: 16px;
    overflow-y: auto;
}
.mobile-category-drawer {
    position: fixed;
    inset: 0;
    background: #06172b;
    z-index: 99999;
    overflow: hidden; /* فقط اینجا */
}
.drawer-level {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #06172b;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1;
}

.drawer-level.active {
    transform: translateX(0);
    z-index: 2;
}
.drawer-content {
    height: calc(100vh - 56px); /* ارتفاع هدر */
    overflow-y: auto;
}
.mobile-category-drawer {
    position: fixed;
    inset: 0;
    background: #06172b;
    z-index: 99999;

    /* نکته‌ی حیاتی */
    transform: translateX(100%);
    transition: transform .35s ease;
}
.mobile-category-drawer.open {
    transform: translateX(0);
}
.drawer-level {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    transition: transform .3s ease;
}
.drawer-level.active {
    transform: translateX(0);
}

