/* ========================================
   Sticky Header Menu
   ======================================== */

.sticky-header {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #1d458b 0%, #0f2d52 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: top 0.35s ease;
    font-family: 'Quicksand', sans-serif;
}

.sticky-header.visible {
    top: 0;
}

.sticky-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Sticky Menu Navigation */
.sticky-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.sticky-nav-item {
    position: relative;
}

.sticky-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sticky-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sticky-nav-link .dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sticky-nav-item:hover .dropdown-arrow {
    opacity: 1;
}

/* Sticky Dropdown Menu */
.sticky-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100000;
    overflow: hidden;
}

.sticky-nav-item:hover .sticky-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sticky-dropdown-inner {
    padding: 6px 0;
}

.sticky-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sticky-dropdown-item:hover {
    background: linear-gradient(90deg, #f0f7ff 0%, #fff 100%);
    color: #1d458b;
    border-left-color: #1d458b;
}

.sticky-dropdown-item i {
    width: 20px;
    font-size: 14px;
    color: #1d458b;
    opacity: 0.7;
}

.sticky-dropdown-item:hover i {
    opacity: 1;
}

/* Sticky Right Actions */
.sticky-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sticky-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.sticky-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #1d458b;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sticky-login-btn:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
}

.sticky-login-btn i {
    font-size: 14px;
}

/* Sticky User Menu (Logged In) */
.sticky-user-dropdown {
    position: relative;
}

.sticky-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sticky-user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sticky-user-avatar {
    width: 30px;
    height: 30px;
    background: #fff;
    color: #1d458b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.sticky-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100001;
    overflow: hidden;
}

.sticky-user-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.sticky-user-dropdown:hover .sticky-user-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sticky-user-menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sticky-user-menu a:last-child {
    border-bottom: none;
}

.sticky-user-menu a:hover {
    background: #f5f7fa;
}

.sticky-user-menu a i {
    width: 18px;
    margin-right: 10px;
    color: #1d458b;
}

.sticky-user-menu .logout-link {
    color: #dc3545;
}

.sticky-user-menu .logout-link i {
    color: #dc3545;
}

.sticky-user-menu .logout-link:hover {
    background: #fff5f5;
}

/* Responsive */
@media (max-width: 1200px) {
    .sticky-nav-link {
        padding: 18px 12px;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .sticky-header {
        display: none !important;
    }
}

