
        /* 1. El modal empieza FUERA de la pantalla */
        #cartModal.fade .modal-dialog {
            transform: translateX(100%);
            transition: transform 0.3s ease-out;
        }

        /* 2. Cuando se abre, entra a la pantalla */
        #cartModal.show .modal-dialog {
            transform: translateX(0);
        }

        /* 3. Posicionar a la DERECHA */
        #cartModal .modal-dialog {
            position: fixed;
            margin: 0;
            width: 450px;
            height: 100%;
            right: 0;
            top: 0;
            max-width: 100%;
        }

        /* 4. Quitar bordes redondeados */
        #cartModal .modal-content {
            height: 100%;
            border: 0;
            border-radius: 0;
        }

        /* 5. Responsive */
        @media (max-width: 768px) {
            #cartModal .modal-dialog {
                width: 100%;
            }
        }

/* ============================================
           Estilos de ejemplo (puedes cambiarlos)
           ============================================ */
        
        #cartModal .modal-header {
            background: #007BFF;
            color: white;
             border-radius: 0 !important;
        }

        #cartModal .modal-body {
            background: #2B2B2B;
            color: white;
            overflow-y: auto;
            height: 60vh; /* Ocupa el 60% de la pantalla */
        }

        /* Scroll solo para #cartModal .modal-body */
#cartModal .modal-body::-webkit-scrollbar {
    width: 10px; /* Ancho de la barra */
}

#cartModal .modal-body::-webkit-scrollbar-track {
    background: #1a1a1a; /* Color del fondo */
    border-radius: 10px;
}

#cartModal .modal-body::-webkit-scrollbar-thumb {
    background: #007BFF; /* Color de la barra */
    border-radius: 10px;
}

#cartModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #0056b3; /* Color cuando pasas el mouse */
}

        #cartModal .modal-footer {
            background: #2B2B2B;
            border-top: 2px solid #007BFF;
            border-radius: 0 !important;
        }

.cart-item {
    display: flex;
    align-items: center; /* Centra todo verticalmente */
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.cart-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(-3px);
}

/* Imagen del producto */
.product-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0; /* No se encoge */
}

/* Detalles del producto */
.product-details {
    flex: 1; /* Ocupa el espacio disponible */
}

.product-name {
    color: white;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-price {
    color: #007BFF;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

/* Acciones (cantidad + eliminar) */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* Caja de cantidad */
.quantity-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px 8px;
}

.btn-qty {
    background: #007BFF;
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-qty:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.qty {
    color: white;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Botón eliminar */
.btn-delete {
    background: rgba(255, 59, 48, 0.2);
    border: none;
    color: #ff3b30;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: #ff3b30;
    color: white;
    transform: rotate(90deg);
}