/* Bottom Navigation Bar - Fixed App-Style Menu */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: rgba(72, 13, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(198, 229, 219, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    /* Prevent overscroll bounce from revealing content underneath */
    overscroll-behavior: none;
}

/* Nav Items */
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'mCream', Arial, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    outline: none;
}

.bottom-nav .nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav .nav-item.active {
    color: var(--mcream-mint-green);
}

.bottom-nav .nav-item.active svg {
    stroke: var(--mcream-mint-green);
    transform: scale(1.1);
}

/* Nav Icons */
.bottom-nav .nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item:hover svg {
    transform: scale(1.1);
}

/* Cart Badge */
.bottom-nav .cart-badge {
    position: absolute;
    top: 6px;
    right: 50%;
    transform: translateX(16px);
    background: #E11D48;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.bottom-nav .cart-badge.hidden {
    display: none;
}

/* Active indicator */
.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--mcream-mint-green);
    border-radius: 0 0 3px 3px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .bottom-nav {
        height: 80px;
    }
    
    .bottom-nav .nav-item {
        font-size: 0.75rem;
        gap: 6px;
        padding: 10px 8px;
    }
    
    .bottom-nav .nav-item svg {
        width: 26px;
        height: 26px;
    }
    
    .bottom-nav .cart-badge {
        font-size: 0.7rem;
        padding: 3px 7px;
        min-width: 20px;
        height: 20px;
        transform: translateX(18px);
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        height: 85px;
    }
    
    .bottom-nav .nav-item {
        font-size: 0.8rem;
        gap: 8px;
        padding: 12px 10px;
    }
    
    .bottom-nav .nav-item svg {
        width: 28px;
        height: 28px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .bottom-nav .nav-item {
        -webkit-tap-highlight-color: rgba(198, 229, 219, 0.1);
    }
    
    .bottom-nav .nav-item:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }
}

/* Accessibility */
.bottom-nav .nav-item:focus-visible {
    outline: 2px solid var(--mcream-mint-green);
    outline-offset: -2px;
}

/* Animation for page load */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bottom-nav {
    animation: slideUp 0.3s ease-out;
}

