
/* ----------------------------------------
   MOBILE RESPONSIVE (Roly-style cards)
---------------------------------------- */

/* Prevent price, subtotal, and reference from wrapping */
.table td.item-price,
.table td.item-total,
.table td:nth-child(3) { /* Reference column */
    white-space: nowrap;
}

/* Allow item name to wrap */
.table td:nth-child(2) {
    white-space: normal;
    word-break: break-word; /* if name is very long */
}

/* Optional: adjust image and alignment */
.table td img {
    max-width: 80px;
    height: auto;
}

@media (max-width: 1200px) {
    table.table thead {
        display: none;
    }

    table.table tbody {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    table.table tbody tr {
        display: block;
        padding: 20px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border: 1px solid #e5e5e5;
        position: relative;
    }


    table.table tbody tr td:last-child {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 0;
        margin: 0;
    }

    table.table tbody tr td:last-child button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    table.table tbody tr td,
    table.table tbody tr th {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
    }

    table.table tbody tr th[scope="row"] {
        justify-content: center;
        margin-bottom: 12px;
    }

    table.table tbody tr th[scope="row"] img {
        width: 110px !important;
        height: 110px !important;
        border-radius: 10px;
    }

    table.table tbody tr td:nth-child(2)::before { content: "Naam"; font-weight: 600; color: #777; }
    table.table tbody tr td:nth-child(3)::before { content: "Referentie"; font-weight: 600; color: #777; }
    table.table tbody tr td:nth-child(4)::before { content: "Prijs"; font-weight: 600; color: #777; }
    table.table tbody tr td:nth-child(5)::before { content: "Hoeveelheid"; font-weight: 600; color: #777; }
    table.table tbody tr td:nth-child(6)::before { content: "Subtotaal"; font-weight: 600; color: #777; }

    .align-middle{
        border-bottom: unset !important;
    }
    /* Empty cart row */
    table.table tbody tr.empty-text td {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100px;
        background: #f9f9f9;
        border-radius: 14px;
        position: static;
    }

    table.table tbody tr.empty-text td .mobile-empty-cart {
        margin-bottom: 12px;
        color: #bbb;
        display: block !important;
    }


}


