.btn-carrito {
    color: var(--second-color);
    background: #ffffff00;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.5s;
    padding: 11px 5.5px 7px 6.5px;
    font-size: 22px;
}

.btn-carrito:hover {
    color: #ffffff;
    background: var(--second-color);
}

.btn-carrito span.cart-count {
    position: absolute;
    top: 0px;
    right: -2px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

.bandeja {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.bandeja.open {
    right: 0;
}

.bandeja-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bandeja-header h2 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.bandeja-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    gap: 12px;
    display: flex;
    flex-direction: column;
}


.bandeja-footer {
    padding: 12px 24px;
    border-top: 1px solid #e0e0e0;
}

.bandeja-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.empty-bandeja {
    text-align: center;
    padding: 40px 20px;
    color: #111;
    background-color: #DDD;
    border-radius: 8px;
}

.empty-bandeja i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-bandeja p {
    font-size: 20px;
}

/* Overlay */
.bandeja-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 998;
}

.bandeja-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bandeja-footer .btn-checkout {
    display: inline-block;
    width: 100%;
    padding: 1.2rem;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    justify-content: center;
    text-align: center;
}

.bandeja-footer .btn-checkout:hover {
    background: var(--second-color);
    transform: translateY(-1px);
}

.bandeja-item {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
    max-height: 200px;
    transition: all 0.3s ease-out;
    transform-origin: right center;
}

.bandeja-item.removing {
    animation: slideOut 0.3s ease-in forwards;
    max-height: 0;
    margin-bottom: -12px;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

@keyframes slideIn {
    from {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }

    to {
        max-height: 200px;
        padding-top: 16px;
        padding-bottom: 16px;
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 76px;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
        max-height: 0;
    }
}

.item-info {
    flex: 1;
    text-align: left;   
    font-weight: 500;
}

.item-ticket {
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
    text-align: center;
}

.item-price {
    color: #666;
    font-size: 14px;
}

.remove-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: transform 0.2s;
}

.remove-btn:hover {
    transform: scale(1.2);
}


@media screen and (max-width: 480px) {
    .bandeja.open {
        right: 0;
        width: 100%;
    }
}
