/* Mobile Footer Navigation Styles */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0 20px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.mobile-footer-nav.hide {
    transform: translateY(100%);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    padding: 0 16px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    min-width: 60px;
    padding: 8px 4px;
    border-radius: 12px;
}

.mobile-nav-item:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

.mobile-nav-item.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.mobile-nav-item.active .nav-icon {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transform: translate(50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile footer navigation - show only on mobile */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0 20px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.mobile-footer-nav.hide {
    transform: translateY(100%);
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-footer-nav {
        display: none !important;
    }
}

/* Ensure content doesn't get hidden behind the nav */
body {
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for page transitions */
.mobile-nav-item {
    animation: fadeInUp 0.3s ease forwards;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-footer-nav {
        background: rgba(17, 24, 39, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-item {
        color: #9ca3af;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: #60a5fa;
    }
    
    .mobile-nav-item.active {
        background: rgba(96, 165, 250, 0.1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-footer-nav {
        background: #ffffff;
        border-top: 2px solid #000000;
    }
    
    .mobile-nav-item {
        color: #000000;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: #0066cc;
    }
    
    .mobile-nav-item.active {
        background: #e6f3ff;
    }
} 