/* Shopping Cart Styles for 360 Degree Hotel */

/* Cart Button Styles */
.cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f39c12;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Header */
.cart-header {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cart Body */
.cart-body {
    flex: 1;
    max-height: 45vh;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f1f1f1;
}

/* Custom Scrollbar */
.cart-body::-webkit-scrollbar {
    width: 8px;
}

.cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cart-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 4px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
}
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.cart-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cart-item:hover {
    background: #e9ecef;
    border-color: #e74c3c;
}

.cart-item-icon {
    font-size: 1.8rem;
    width: 45px;
    text-align: center;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 500;
    font-size: 0.85rem;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 2px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 6px;
    padding: 4px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.quantity-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.quantity-display {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #fee;
    transform: scale(1.1);
}

/* Cart Footer */
.cart-footer {
    border-top: 1px solid #e0e6ed;
    padding: 15px 20px;
    background: #f8f9fa;
    flex-shrink: 0;
}

/* Customer Details Form */
.customer-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.customer-details:focus-within {
    border-color: #e74c3c;
    background: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.customer-details h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.customer-form input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.customer-form input:focus {
    outline: none;
    border-color: #e74c3c;
    background: white;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.customer-form input::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.8rem;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e74c3c;
}

.cart-total-amount {
    color: #e74c3c;
    font-size: 1.3rem;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.cart-clear {
    flex: 1;
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cart-clear:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.cart-checkout {
    flex: 2;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
}

.cart-checkout:hover {
    background: linear-gradient(45deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.cart-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Add to Cart Button Styles */
.dual-button-container {
    display: flex;
    gap: 8px;
    width: 100%;
}

.order-now-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 58px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.order-now-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.add-to-cart-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 58px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-btn.adding {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    transform: scale(0.98);
    padding: 18px 32px;
    font-size: 0.85rem;
}

.add-to-cart-btn.success {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    transform: scale(1.02);
    padding: 18px 32px;
    font-size: 0.85rem;
}

.add-to-cart-btn.success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: success-shine 0.6s ease;
}

@keyframes success-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loading Spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification i {
    font-size: 1.2rem;
}

/* Service Type Icons */
.service-icon-room { color: #3498db; }
.service-icon-food { color: #f39c12; }
.service-icon-sports { color: #27ae60; }
.service-icon-service { color: #9b59b6; }
.service-icon-nightclub { color: #e91e63; }
.service-icon-pool { color: #00bcd4; }
.service-icon-gateTicket { color: #ff9800; }

/* Responsive Design */
@media (max-width: 768px) {
    .cart-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    .cart-content {
        margin: 10px;
        max-height: 90vh;
    }

    .cart-header {
        padding: 15px;
    }

    .cart-title {
        font-size: 1.1rem;
    }

    .cart-body {
        padding: 15px;
        max-height: 40vh;
    }

    .cart-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .cart-item-icon {
        font-size: 1.4rem;
        width: 35px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .customer-form {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .customer-details {
        padding: 10px 12px;
    }
    
    .customer-details h4 {
        font-size: 0.85rem;
    }
    
    .customer-form input {
        padding: 7px 9px;
        font-size: 0.8rem;
    }
    
    .add-to-cart-btn,
    .order-now-btn {
        padding: 16px 22px;
        font-size: 0.85rem;
        min-height: 52px;
    }
    
    .add-to-cart-btn.adding,
    .add-to-cart-btn.success {
        padding: 16px 26px;
        font-size: 0.8rem;
    }
    .cart-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        min-width: auto;
    }

    .cart-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .cart-content {
        margin: 5px;
        border-radius: 15px;
    }

    .cart-header {
        padding: 12px;
    }

    .cart-body {
        padding: 12px;
        max-height: 250px;
    }

    .cart-item {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .cart-item-details {
        order: 1;
    }

    .quantity-controls {
        order: 2;
        justify-content: center;
    }

    .remove-item {
        order: 3;
    }

    .cart-footer {
        padding: 15px;
    }
}

/* Smooth Scrollbar */
.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-body::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 3px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Animation for cart items */
.cart-item {
    animation: slideInCart 0.3s ease;
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Checkout loading state */
.cart-checkout.loading {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
}

.cart-checkout.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}