/* Premium Header Additions */
.mobile-user-section {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1 !important;
  transform: none !important;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-transform: none !important;
}

.view-profile {
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.logout-link {
  color: #ff3366 !important;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 10px;
  padding-top: 15px !important;
}

/* Toggle Animation */
.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Nav Actions Fix */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px; /* Increased for premium feel */
    margin-top: 0;
}

@media (max-width: 1024px) {
    .nav-actions .login-btn {
        display: none !important;
    }
    .auth-icon-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 15px; /* Better gap on mobile */
    }
    .icon-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .logo {
        font-size: 1.3rem;
    }
    .logo img {
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 12px; 
    }
    .icon-link {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo span {
        display: inline !important; 
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    .nav-actions {
        gap: 8px;
    }
    .logo {
        margin-right: auto;
        font-size: 1.1rem;
    }
    .logo img {
        height: 24px !important;
        width: auto;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 10px; /* Increased gap for better spacing */
        display: flex !important;
        margin-top: 0;
        margin-bottom: 10px;
    }
    .icon-link {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .logo {
        font-size: 1rem; /* Slightly smaller font to fit full name */
    }
    .logo span {
        display: inline !important; /* Ensure full name is visible */
    }
/* Mobile Menu Base */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: #0b0f24;
    z-index: 1070;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 12px;
    transition: 0.3s;
    text-decoration: none;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background: rgba(255,255,255,0.05);
    color: var(--accent-blue);
}

.mobile-menu-header .logo img {
    height: 28px !important;
    width: auto;
}

#close-menu:hover {
    color: var(--accent-blue) !important;
}

.mobile-nav-links li a i {
    width: 25px;
    text-align: center;
    color: var(--accent-blue);
}

/* Nav Actions Fixes */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--main-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0b0f24;
}

.icon-link {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: 0.3s;
    text-decoration: none;
}

.icon-link:hover {
    background: var(--main-gradient);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .nav-actions {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 10px;
    }
    .icon-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.topbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    overflow: hidden;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--accent-blue);
    display: flex;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.topbar-content {
    display: inline-flex;
    white-space: nowrap;
    animation: topbarMarquee 25s linear infinite;
    align-items: center;
}

.topbar-content:hover {
    animation-play-state: paused;
}

.offer-item {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-right: 50vw;
}

.offer-timer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 12px;
    border-radius: 4px;
    border: 1px solid var(--accent-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--accent-blue);
    font-size: 14px;
    letter-spacing: 2px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}

.btn-offer {
    background: var(--main-gradient);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 10px var(--accent-blue);
    transition: 0.3s;
}

.btn-offer:hover {
    background: #fff;
    color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue);
}

.navbar.with-topbar {
    top: var(--top-bar-height) !important;
}

/* Navbar Dropdown (Sub-menu) Styling */
.nav-links .nav-item-has-children {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(15px) !important;
    background: rgba(10, 15, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    padding: 10px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    min-width: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5) !important;
    z-index: 9999 !important;
}

.nav-links .nav-item-has-children:hover .sub-menu,
.nav-links .sub-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.nav-links .sub-menu li {
    width: 100% !important;
    white-space: nowrap !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links .sub-menu li a {
    padding: 12px 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.95rem !important;
    color: rgba(255,255,255,0.8) !important;
    transition: 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.nav-links .sub-menu li a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #ff3333 !important; /* Match active link color */
    padding-left: 30px !important;
}

.nav-links .sub-menu li a::after { display: none !important; }

/* Active & Hover States */
.nav-links a.active, .nav-links a:hover {
    color: var(--accent-blue) !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a.active::after, .nav-links a:hover::after {
    width: 100%;
}
/* Profile Page Header Fixes */
.desktop-only-nav {
    display: flex !important;
}

@media (max-width: 1024px) {
    .desktop-only-nav {
        display: none !important;
    }
    .mobile-toggle {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .mobile-toggle {
        display: none !important;
    }
}

/* --- CUSTOM HEADER OVERRIDES TO MATCH IMAGE --- */

/* Active Link (Red text & underline) */
.nav-links li a.active {
    color: #ff3333 !important;
    position: relative;
}
.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff3333;
    border-radius: 2px;
}

/* Hover effect for all links to match the red style */
.nav-links li a:hover {
    color: #ff3333 !important;
}

/* Hide Theme Toggle from header as per image */
#theme-toggle {
    display: none !important;
}

/* Cart Icon styling (Dark circle background, white cart, orange badge) */
.nav-cart-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    position: relative;
    transition: 0.3s;
}

.nav-cart-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

.cart-badge {
    background: #ff6b00 !important; /* Orange badge */
    color: #fff !important;
    top: -2px !important;
    right: -2px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    border-radius: 50% !important;
}

/* Login Button styling (Orange/Yellow gradient, Pill shape) */
.login-btn {
    background: linear-gradient(90deg, #ff4500, #ff8c00, #9acd32) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 30px !important; /* Pill shape */
    padding: 10px 25px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.login-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5) !important;
}

/* Adjust logo text colors based on image */
.logo span {
    background: linear-gradient(90deg, #ff4500, #ff8c00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
}