/* Bottom Navigation Bar for Mobile - Floating Pill Design */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 10px; /* Reduced elevation */
    left: 50%;
    transform: translateX(-50%);
    width: 94%; /* Slightly wider for better spacing */
    max-width: 440px;
    z-index: 1030;
    background: var(--header-nav-bg, #1a2b3c);
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: none;
    font-family: 'Inter', sans-serif;
    padding: 3px; /* More compact */
}

@media (max-width: 768px) {
    .bottom-nav-wrapper {
        display: block;
    }

    /* Compact overlap fix */
    /* body {
        padding-bottom: 80px !important;
    } */
    
    /* Action buttons elevated above the compact nav */
    .sticky-add-to-cart {
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 55px !important;
        left: 0;
        right: 0;
        z-index: 1040;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        margin: 0 !important;
        box-shadow: none;
        border: none;
        pointer-events: none;
    }

    .sticky-cart-btn {
        pointer-events: auto;
        font-size: 0.85rem !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        padding: 0.6rem 1.75rem !important;
        width: auto !important;
        /* max-width: 90%; */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        transition: all 0.2s ease;
    }

    .sticky-cart-btn:active {
        transform: scale(0.98);
    }

    .sticky-cart-btn:hover:not(:disabled) {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
        color: white !important;
    }

    .sticky-cart-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    height: 44px; /* Reduced height */
}

.bottom-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: transparent;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

/* Label hidden for inactive items */
.bottom-nav-item .bottom-nav-label {
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

/* Active State - Capsule Style */
.bottom-nav-item.active {
    background: #ffffff; /* White background capsule */
    color: var(--header-nav-bg, #1a2b3c); /* Contrast text */
    padding: 0 20px;
}

.bottom-nav-item.active .bottom-nav-label {
    display: inline-block;
}

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

/* Cart Badge Styling Adjustment */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--accent-orange, #ff6b35);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--header-nav-bg, #1a2b3c);
}

/* Tooltip (kept but subtle) */
.bottom-nav-tooltip {
    display: none !important; /* Disabling as labels now appear inside capsules */
}