<div class="row border rounded p-2 mb-1 producto" id="producto'<?php echo $p['id']; ?>">
  <div class="col-10 col-sm-6">
    <h5 class="mb-0"><span class="nombre"><?php echo $p['nombre']; ?></span></h5>
  </div>
  <div class="col-2 col-sm-2"><span class="badge badge-dark float-right"><?php echo $p['stock']; ?></span></div>
  <div class="col-8 col-sm-4"><span class="badge badge-primary float-right"><?php echo clp($p['precio']); ?></span></div>
</div>