﻿/* Floating Cart Bar */
#floatingCartBar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    background: #27ae60;
    color: #fff;
    padding: 14px 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    z-index: 99999 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease forwards;
}

    /* Active state */
    #floatingCartBar.active {
        display: flex !important;
    }

/* Slide animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Mobile specific */
@media (max-width: 768px) {
    #floatingCartBar {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ---------- CART ITEMS ---------- */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-info {
    flex: 1;
}

.cart-name {
    font-weight: 600;
    font-size: 15px;
}

.cart-portion {
    font-size: 13px;
    color: #777;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cart-price {
    font-weight: 600;
    white-space: nowrap;
}
