/* Global: bottom floating cart (linked from main layout; works on all pages w/ #floatingCart) */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    background: #0c831f;
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 16px rgba(12, 131, 31, 0.3);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1002;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
}

.floating-cart:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(12, 131, 31, 0.4);
    background: #0a701b;
}

.floating-cart.show {
    display: flex;
    animation: fc-slideInUp 0.3s ease;
}

@keyframes fc-slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.floating-cart .cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-cart .cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.floating-cart .cart-items-count {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.2;
}

.floating-cart .cart-total {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.floating-cart .cart-arrow {
    display: flex;
    align-items: center;
    opacity: 0.8;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .floating-cart {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 1rem;
        max-width: none;
    }
}
