/* Cart Styles */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: #0BDA51;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(11, 218, 81, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.floating-cart:hover {
    background: #09b847;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(11, 218, 81, 0.4);
    color: white;
}

.cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
    display: none;
}

.cart-count.show {
    display: inline-block;
}

.order-now-btn {
    background: linear-gradient(45deg, #0BDA51, #09b847);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 218, 81, 0.3);
    margin-right: 10px;
}

/* Navbar Order Now Link Styling */
.navbar-nav .nav-link.order-now {
    background: var(--primary, #0BDA51) !important;
    color: white !important;
    border-radius: 25px;
    padding: 8px 20px !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
}

.navbar-nav .nav-link.order-now:hover {
    background: #09b847 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(11, 218, 81, 0.3);
    color: white !important;
}
}

.order-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 218, 81, 0.4);
    color: white;
}

.cart-modal .modal-dialog {
    max-width: 600px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    margin-left: 15px;
}

.cart-item-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #0BDA51;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #333;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    height: 35px;
    margin: 0;
}

.cart-total {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.add-to-cart-btn {
    background: #0BDA51;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #09b847;
    transform: scale(1.05);
}

.menu-item-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-cart {
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 20px;
    }
    
    .order-now-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cart-modal .modal-dialog {
        margin: 10px;
        max-width: none;
    }
}

/* Animation for cart count update */
.cart-count.updated {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Loading states */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
