/* Cart Icon in Header */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper i {
    font-size: 1.4rem;
    color: #333;
    transition: color 0.3s ease;
}

.cart-icon-wrapper:hover i {
    color: #027faa;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background-color: #027faa;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background-color: white;
    z-index: 2001;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: #027faa;
    color: white;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.cart-close-btn:hover {
    opacity: 0.7;
}

/* Cart Body */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.cart-empty p {
    font-size: 1.1rem;
}

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

.cart-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-event {
    font-size: 0.85rem;
    color: #027faa;
    font-weight: 600;
}

.cart-item-type {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    border-radius: 5px;
    padding: 0.25rem;
    border: 1px solid #ddd;
}

.qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: #eee;
}

.qty-btn i {
    font-size: 0.7rem;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
}

.cart-item-subtotal {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.remove-btn {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
}

.remove-btn:hover {
    opacity: 0.7;
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cart-total-amount {
    font-weight: 700;
    font-size: 1.5rem;
    color: #027faa;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #027faa;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cart-checkout-btn:hover {
    background-color: #025f7a;
    transform: translateY(-2px);
}

/* Cart Notification Toast */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #027faa;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

/* Ticket Card Enhancements */
.ticket-quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ticket-quantity-wrapper label {
    font-weight: 600;
    color: #333;
}

.ticket-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 0.25rem;
}

.ticket-qty-btn {
    background-color: #027faa;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.ticket-qty-btn:hover {
    background-color: #025f7a;
}

.ticket-qty-btn i {
    font-size: 0.8rem;
}

.ticket-qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Add to Cart Button */
.add-to-cart-button {
    background-color: #027faa;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-button:hover {
    background-color: #025f7a;
    transform: translateY(-2px);
}

.add-to-cart-button i {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .cart-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
    }

    .cart-item-actions {
        flex-wrap: wrap;
    }
}

