/* ==================== CART BOTTOM BAR - FIXED POSITIONING ==================== */

.cart-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem;
    background-color: #09914f; 
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 101; /* ← FIXED: Higher than MobileBottomNav (z-index: 100) */
    box-sizing: border-box;
}

.cart-bottom-text {
    font-family: 'PlusJakartaSans', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
}

.cart-bottom-button button {
    font-family: 'PlusJakartaSans', -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px;
    cursor: pointer;
    background-color: transparent;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    padding: 0px;
    gap: 0.5rem;
}

/* Make the arrow icon white */
.cart-bottom-button button img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

.cart-bottom-button:hover {
    text-decoration: underline;
}

/* ==================== MOBILE (max-width: 1020px) - SHIFT ABOVE NAV ==================== */

@media (max-width: 1020px) {
    .cart-bottom-bar {
        bottom: 64px; /* ← FIXED: Position above MobileBottomNav (64px height) */
        z-index: 101; /* ← Above mobile nav */
    }
}

/* ==================== TABLET (max-width: 768px) ==================== */

@media (max-width: 768px) {
    .cart-bottom-bar {
        bottom: 60px; /* ← Position above MobileBottomNav (60px height on tablet) */
        padding: 0.875rem 1rem;
    }
    
    .cart-bottom-text {
        font-size: 14px;
    }
    
    .cart-bottom-button button {
        font-size: 14px;
        gap: 0.3rem;
    }
    
    .cart-bottom-button button img {
        width: 14px;
        height: 14px;
    }
}

/* ==================== SMALL MOBILE (max-width: 480px) ==================== */

@media (max-width: 480px) {
    .cart-bottom-bar {
        bottom: 56px; /* ← Position above MobileBottomNav (56px height on small mobile) */
        padding: 1.9rem 0.875rem;
    }
    
    .cart-bottom-text {
        font-size: 13px;
    }
    
    .cart-bottom-button button {
        font-size: 13px;
        gap: 0.25rem;
    }
    
    .cart-bottom-button button img {
        width: 12px;
        height: 12px;
    }
}
