body {
    font-family: 'Vazir', sans-serif;
}
body.admin-bar #wpadminbar {
  position: fixed;
  top: 0;
  z-index: 9999;
}

body.admin-bar header {
  position: fixed;
  top: 32px !important;
  z-index: 999;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px !important;
  }
}
.desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu li {
    position: relative;
}

.desktop-menu > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.desktop-menu > li > a:hover {
    color: #4f46e5;
}

/* زیرمنو */
.sub-menu {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    min-width: 12rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 0.25rem 0;
}

/* نمایش وقتی روی والد یا خود زیرمنو بری */
.desktop-menu li:hover > .sub-menu,
.desktop-menu li .sub-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* جلوگیری از بسته شدن بین فاصله */
.sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    width: 100%;
    height: 10px;
}

/* آیتم‌های زیرمنو */
.sub-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.sub-menu li a:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

/* انیمیشن ورود */
.sub-menu {
    transform: translateY(10px);
    transition: all 0.2s ease;
}

* {
      font-family: Vazir, sans-serif;
    }
    
    /* Live Search Styles */
    #live-search-results {
      max-height: 400px;
      overflow-y: auto;
    }
    
    #live-search-results::-webkit-scrollbar {
      width: 6px;
    }
    
    #live-search-results::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }
    
    #live-search-results::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 10px;
    }
    
    #live-search-results::-webkit-scrollbar-thumb:hover {
      background: #555;
    }