/* Bottom Navigation Bar - Mobile */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    min-width: 60px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
}

.bottom-nav-item:hover {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.05);
}

.bottom-nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Badge for cart count */
.bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--error-color);
    color: var(--text-light);
    font-size: 8px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transform: scale(0);
    transition: transform var(--transition-fast);
}

.bottom-nav-badge.show {
    transform: scale(1);
}

/* SVG icons inherit currentColor; remove emoji-based ::before content */

/* Show bottom navigation on mobile */
@media (max-width: 768px) {
    .bottom-navigation {
        display: block;
    }
    
    /* Hide regular navbar on mobile when bottom nav is active */
    .navbar {
        display: none;
    }
    
    /* Adjust main header for mobile */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: rgba(248, 249, 250, 0.95);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .bottom-navigation {
        display: none;
    }
}

/* Safe area adjustments for devices with notches */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-navigation {
        padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Dark mode support for bottom nav */
@media (prefers-color-scheme: dark) {
    .bottom-navigation {
        background: rgba(0, 0, 0, 0.95);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .bottom-nav-item {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .bottom-nav-item.active {
        color: var(--primary-color);
        background: rgba(26, 115, 232, 0.2);
    }
    
    .bottom-nav-item:hover {
        color: var(--primary-color);
        background: rgba(26, 115, 232, 0.1);
    }
}

/* Animation for bottom nav items */
.bottom-nav-item {
    animation: slideUpNav 0.3s ease-out;
}

.bottom-nav-item:nth-child(1) { animation-delay: 0.1s; }
.bottom-nav-item:nth-child(2) { animation-delay: 0.15s; }
.bottom-nav-item:nth-child(3) { animation-delay: 0.2s; }
.bottom-nav-item:nth-child(4) { animation-delay: 0.25s; }
.bottom-nav-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideUpNav {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple effect for bottom nav items */
.bottom-nav-item {
    position: relative;
    overflow: hidden;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.bottom-nav-item:active::before {
    width: 60px;
    height: 60px;
}