/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    //background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
   border-top: 2px solid #2c5530;
    //padding: 12px 0 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(44, 85, 48, 0.15);
    backdrop-filter: blur(10px);
}

/* Desktop - Hide bottom navigation */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 8px 4px;
    min-width: 60px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.bottom-nav-item:hover {
    color: #2c5530;
    background: rgba(44, 85, 48, 0.1);
    transform: translateY(-2px);
}

.bottom-nav-item.active {
    color: #2c5530;
    background: rgba(44, 85, 48, 0.15);
    font-weight: 600;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
}

.bottom-nav-item:hover i {
    transform: scale(1.1);
}

.bottom-nav-item:hover span {
    font-weight: 600;
}

/* Cart count badge for bottom navigation */
.bottom-nav-badge {
    position: absolute;
    top: 0px;
    right: 4px;
    background: #e74c3c;
    color: white !important;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 22px;
    min-height: 22px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    border: 2px solid white;
    line-height: 1;
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.bottom-nav-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.6);
}

.bottom-nav-badge.pulse {
    animation: cartPulse 0.6s ease-in-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Ensure mobile cart count text is always visible and centered */
.bottom-nav-badge:not([style*="display: none"]) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bottom-nav-badge span,
.bottom-nav-badge::before,
.bottom-nav-badge::after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


/* Mobile - Show bottom navigation */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 80px;
    }
    
    /* Move footer bottom text up in mobile view */
    .footer-bottom {
        margin-bottom: 80px !important;
        padding-bottom: 20px !important;
    }
    
    .footer-bottom-content {
        margin-bottom: 20px !important;
    }
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .bottom-nav-item {
        padding: 6px 8px;
        min-width: 50px;
        max-width: 70px;
    }
    
    .bottom-nav-item i {
        font-size: 1.1rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.65rem;
    }
    
    .bottom-nav-badge {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
        min-width: 20px;
        min-height: 20px;
    }
}

@media (max-width: 360px) {
    .bottom-nav-item {
        padding: 5px 6px;
        min-width: 45px;
        max-width: 65px;
    }
    
    .bottom-nav-item i {
        font-size: 1rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.6rem;
    }
    
    .bottom-nav-badge {
        width: 18px;
        height: 18px;
        font-size: 0.5rem;
        min-width: 18px;
        min-height: 18px;
    }
}
