/* ============================================
     MODERN GAMING HEADER & NAVBAR
     Professional Gaming Store Theme - Version 2.0
     ============================================ */
  
  :root {
    /* Primary Colors - Gaming Brand Colors */
    --ps-blue: #006fcd;
    --ps-blue-dark: #0056b3;
    --ps-blue-light: #3a8fd9;
    --ps-blue-glow: rgba(0, 111, 205, 0.4);
    --xbox-green: #107C10;
    --xbox-green-dark: #0a5c0a;
    --xbox-green-light: #2e9c2e;
    --nintendo-red: #E70012;
    --nintendo-red-dark: #c4000f;
    
    /* Background Colors */
    --dark-bg-primary: #0a0a14;
    --dark-bg-secondary: #11111f;
    --dark-bg-tertiary: #16162a;
    --dark-bg-elevated: #1c1c32;
    
    /* Glass Effects */
    --glass-bg-light: rgba(255, 255, 255, 0.03);
    --glass-bg-medium: rgba(255, 255, 255, 0.05);
    --glass-bg-heavy: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.08);
    --glass-border-medium: rgba(255, 255, 255, 0.12);
    --glass-border-heavy: rgba(255, 255, 255, 0.15);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--ps-blue-glow);
    --shadow-glow-green: 0 0 30px rgba(16, 124, 16, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
  
  /* Base Body Styles */
  body {
    background: var(--dark-bg-primary);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Animated Background Pattern */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 30%, rgba(0, 111, 205, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(16, 124, 16, 0.05) 0%, transparent 50%),
      repeating-linear-gradient(45deg, 
        rgba(0, 111, 205, 0.02) 0px, 
        rgba(0, 111, 205, 0.02) 1px, 
        transparent 1px, 
        transparent 8px);
    pointer-events: none;
    z-index: -2;
    animation: backgroundPulse 15s ease-in-out infinite;
  }
  
  @keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
    border-radius: var(--radius-full);
  }
  
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ps-blue), var(--ps-blue-dark));
    border-radius: var(--radius-full);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--ps-blue-light), var(--ps-blue));
  }
  
  /* Selection Styling */
  ::selection {
    background: var(--ps-blue);
    color: white;
  }
  
  /* ============================================
     TOP BAR - Modern Gaming Header
     ============================================ */
  
  .top-bar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border-light);
    padding: 0.75rem 0;
    position: relative;
    z-index: 1060;
  }
  
  .top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* User Dropdown */
  #userDropdown {
    background: var(--glass-bg-medium);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  #userDropdown:hover {
    border-color: var(--ps-blue);
    background: rgba(0, 111, 205, 0.1);
    transform: translateY(-2px);
  }
  
  /* Cart Icon */
  .cart-icon {
    background: var(--glass-bg-medium);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-full);
    padding: 0.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    position: relative;
  }
  
  .cart-icon:hover {
    border-color: var(--ps-blue);
    background: rgba(0, 111, 205, 0.1);
    transform: translateY(-2px);
  }
  
  #cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--ps-blue), #ff4757);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    animation: cartPulse 2s infinite;
    box-shadow: var(--shadow-xs);
  }
  
  @keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  
  /* Login Button */
  .btn-loginn {
    background: linear-gradient(135deg, var(--ps-blue), var(--ps-blue-dark));
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    color: white;
    font-weight: 600;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
  }
  
  .btn-loginn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
  }
  
  /* Logo */
  .logo img {
    max-height: 55px;
    transition: var(--transition-base);
    filter: brightness(1.1);
  }
  
  .logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
  
  /* ============================================
     MAIN NAVBAR - Gaming Navigation
     ============================================ */
  
  .navbar-main {
    background: rgba(17, 17, 31, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--glass-border-light) !important;
    padding: 0.75rem 0;
    transition: var(--transition-base);
    position: sticky;
    top: 0;
    z-index: 1050;
  }
  
  .navbar-main.scrolled {
    background: rgba(10, 10, 20, 0.98) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
  }
  
  /* Navigation Items */
  .nav-item {
    margin: 0 0.25rem;
    position: relative;
  }
  
  .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem !important;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-link i {
    font-size: 1rem;
    transition: var(--transition-fast);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ps-blue), var(--xbox-green));
    transition: var(--transition-base);
    border-radius: var(--radius-full);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 70%;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background: rgba(0, 111, 205, 0.1);
    color: white !important;
  }
  
  .nav-link:hover i {
    transform: translateY(-2px);
    color: var(--ps-blue);
  }
  
  /* Dropdown Menus */
  .dropdown-menu {
    background: rgba(22, 22, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-medium);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    margin-top: 0.5rem !important;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    animation: dropdownFadeIn 0.2s ease-out;
  }
  
  @keyframes dropdownFadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--ps-blue);
    font-size: 1rem;
  }
  
  .dropdown-item:hover {
    background: rgba(0, 111, 205, 0.15);
    color: white;
    transform: translateX(5px);
  }
  
  .dropdown-divider {
    background: var(--glass-border-light);
    margin: 0.5rem 0;
  }
  
  /* ============================================
     SEARCH BAR - Enhanced Gaming Search
     ============================================ */
  
  .search-container {
    position: relative;
    margin: 0 1rem;
  }
  
  #search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-full);
    padding: 0.7rem 1.25rem;
    color: white;
    width: 280px;
    transition: var(--transition-base);
    font-size: 0.9rem;
  }
  
  #search:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ps-blue);
    box-shadow: 0 0 0 3px rgba(0, 111, 205, 0.2);
    outline: none;
  }
  
  #search::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
  }
  
  /* Search Results Dropdown */
  .search-results-dropdown {
    background: rgba(22, 22, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    margin-top: 8px;
    display: none;
  }
  
  .search-results-dropdown.show {
    display: block;
    animation: fadeInUp 0.2s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .search-result-item {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border-light);
    transition: var(--transition-fast);
    cursor: pointer;
  }
  
  .search-result-item:last-child {
    border-bottom: none;
  }
  
  .search-result-item:hover {
    background: rgba(0, 111, 205, 0.1);
  }
  
  .search-result-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
  }
  
  .search-result-image {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
  }
  
  .search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
  }
  
  .search-result-info {
    flex: 1;
  }
  
  .search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .search-result-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ps-blue);
  }
  
  .search-result-category {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
  }
  
  /* Autocomplete Items */
  .autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border-light);
  }
  
  .autocomplete-item:hover {
    background: rgba(0, 111, 205, 0.1);
  }
  
  .autocomplete-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
  }
  
  .autocomplete-action {
    color: var(--ps-blue);
  }
  
  /* Recent Searches */
  .recent-searches {
    padding: 15px;
  }
  
  .recent-searches h6 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
  }
  
  /* Search Loading */
  .search-loading {
    text-align: center;
    padding: 30px;
  }
  
  .search-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--ps-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .search-loading p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
  }
  
  /* No Results */
  .no-results {
    text-align: center;
    padding: 40px 20px;
  }
  
  
  .search-result-variant{
    font-size:.82rem;
    color:#94a3b8;
    margin-top:4px;
}

.search-result-image img{
    width:72px;
    height:72px;
    object-fit:cover;
    border-radius:12px;
}
  
  .no-results i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    display: block;
  }
  
  .no-results h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 5px;
  }
  
  .no-results p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
  }
  
  /* Selected State for Keyboard Navigation */
  .selected {
    background: rgba(0, 111, 205, 0.2) !important;
    border-left: 3px solid var(--ps-blue);
  }
  
  /* Highlight Match */
  .highlight-match {
    background-color: rgba(255, 235, 59, 0.3);
    color: #ffd700;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 3px;
  }
  
  /* ============================================
     MOBILE RESPONSIVE STYLES
     ============================================ */
  
  @media (max-width: 991.98px) {
    .navbar-collapse {
      background: rgba(22, 22, 42, 0.98);
      backdrop-filter: blur(20px);
      border: 1px solid var(--glass-border-medium);
      border-radius: var(--radius-xl);
      padding: 1.25rem;
      margin-top: 1rem;
      max-height: calc(100vh - 80px);
      overflow-y: auto;
    }
    
    .nav-link {
      padding: 0.75rem 1rem !important;
      justify-content: center;
    }
    
    .search-container {
      margin: 1rem 0;
    }
    
    #search {
      width: 100%;
    }
    
    .top-bar {
      display: none;
    }
    
    .navbar-main {
      padding: 0.5rem 0;
    }
    
    .dropdown-menu {
      background: rgba(30, 30, 50, 0.98);
      border: none;
      box-shadow: none;
      padding-left: 1rem;
    }
    
    .dropdown-item {
      padding: 0.6rem 1rem;
    }
  }
  
  @media (max-width: 576px) {
    .logo img {
      max-height: 40px;
    }
    
    .btn-loginn {
      padding: 0.5rem 1.25rem;
      font-size: 0.85rem;
    }
    
    .cart-icon {
      width: 40px;
      height: 40px;
    }
    
    .search-results-dropdown {
      max-height: 400px;
    }
    
    .search-result-image {
      width: 45px;
      height: 45px;
    }
    
    .search-result-title {
      font-size: 0.85rem;
    }
  }
  
  /* ============================================
     UTILITY CLASSES
     ============================================ */
  
  /* Text Gradients */
  .text-gradient {
    background: linear-gradient(135deg, #ffffff, var(--ps-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* Glass Effect */
  .glass-effect {
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-light);
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-fade-in {
    animation: fadeIn 0.3s ease-out;
  }
  
  .animate-slide-down {
    animation: slideInDown 0.3s ease-out;
  }