/* Floating Cart Styles */
.floating-cart {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
}

.floating-cart.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.floating-cart.animate-zoom {
    animation: cart-zoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cart-zoom {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.15);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.floating-cart:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.5);
}

.cart-icon {
    font-size: 24px;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #2563eb;
}

.cart-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-items-count {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.cart-total-price {
    font-size: 18px;
    font-weight: 700;
}

.cart-book-btn {
    background: white;
    color: #2563eb;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-book-btn:hover {
    background: #f0f9ff;
    transform: scale(1.05);
}

.cart-book-btn:active {
    transform: scale(0.95);
}

/* Expanded Cart Styles */
.floating-cart.expanded {
    border-radius: 20px;
    padding: 20px;
    max-width: 400px;
    width: 90vw;
    flex-direction: column;
    align-items: stretch;
    bottom: 80px;
}

.floating-cart.expanded:hover {
    transform: translateX(-50%) scale(1);
}

.cart-items-expanded {
    width: 100%;
    margin-top: 16px;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-items-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.cart-clear-btn {
    background: rgba(239, 68, 68, 0.2);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.cart-clear-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 12px;
    opacity: 0.9;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-display {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cart-empty-msg {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

.cart-expanded-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
}

.btn-proceed-booking {
    width: 100%;
    background: white;
    color: #2563eb;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-proceed-booking:hover {
    background: #f0f9ff;
    transform: scale(1.02);
}

.btn-proceed-booking:active {
    transform: scale(0.98);
}

/* Hide view cart button when expanded */
.floating-cart.expanded .cart-icon,
.floating-cart.expanded .cart-details {
    display: none;
}

/* Media Queries */
@media (max-width: 640px) {
    .floating-cart {
        bottom: 70px;
        padding: 12px 20px;
        border-radius: 40px;
    }

    .cart-icon {
        font-size: 20px;
    }

    .cart-total-price {
        font-size: 16px;
    }

    .cart-book-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}