#mb-whatsapp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mb-product-card {
    border: 1px solid #ccc;
    padding: 10px;
    width: 220px;
    text-align: center;
    border-radius: 5px;
    background: #f9f9f9;
}

.mb-product-card img {
    max-width: 100%;
    height: auto;
    width: 100%;
    height: 220px!important;
    object-fit: contain;
    object-position: center;
}
.mb-product-card h4 {
    height: 50px;
}
.quantity-control button {
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
}

.finish-order {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
   /* position: fixed;
    top: 195px;
    z-index: 998;
    right: 0;*/
}
/* Estilos existentes de la grid... */
#mb-whatsapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.mb-product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
/* ... otros estilos de botones ... */

/* --- NUEVO: ESTILOS DE LA BARRA FLOTANTE --- */
#mb-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    z-index: 9999; /* Para que quede por encima de todo */
    padding: 15px;
    box-sizing: border-box;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    max-height: 50vh; /* Ocupa máximo la mitad de la pantalla */
    display: flex;
    flex-direction: column;
}

#mb-sticky-footer .sticky-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#order-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    overflow-y: auto; /* Permite scroll si hay muchos productos */
    flex-grow: 1;
}

#order-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.finish-order {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
}

.finish-order:hover {
    background-color: #128C7E;
}
