/* Bottom Navigation Bar for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
    z-index: 2100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.bottom-nav.active {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
}

.bottom-nav-item--cart {
    position: relative;
}

.bottom-nav-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.bottom-nav-cart-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;
    background: #dc3545;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    z-index: 2;
}

body.dark-mode .bottom-nav-cart-badge {
    border-color: #1a1a1a;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #01a5e6;
}

.bottom-nav-item.active i {
    color: #01a5e6;
}

/* Show bottom nav on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    /* Add padding to main content to prevent overlap */
    .main-content {
        padding-bottom: 70px;
    }
}

/* Dark mode */
body.dark-mode .bottom-nav {
    background: #1a1a1a;
    border-top-color: #333;
}

body.dark-mode .bottom-nav-item {
    color: #999;
}

body.dark-mode .bottom-nav-item.active,
body.dark-mode .bottom-nav-item:hover {
    color: #01a5e6;
}

