/* Header Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Smooth transitions */
header, .user-menu, .mobile-menu {
    transition: all 0.3s ease;
}

/* Dropdown shadow */
.user-menu {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

/* Cart badge animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.cart-badge {
    animation: bounce 1s ease;
}

/* Search input focus effects */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Header scroll effect */
.header-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Notification badge */
.notification-badge {
    font-size: 0.7rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

/* User avatar fallback */
.avatar-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
}

/* Ensure header is always visible */
header {
    position: relative;
    width: 100%;
}

/* Fix for mobile menu visibility */
#mobileMenu.open {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#mobileSearch.open {
    display: block !important;
}

#userMenu.open {
    display: block !important;
}


/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Line clamp utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover effects */
.hover-scale-105 {
    transition: transform 0.3s ease;
}

.hover-scale-105:hover {
    transform: scale(1.05);
}

/* Gradient backgrounds */
.gradient-purple-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
}