/* =========================
   FORCE WOOCOMMERCE TABLE → MOBILE CARDS
   ========================= */

@media (max-width: 767px) {

    /* Break table layout completely */
    .woocommerce table.shop_table,
    .woocommerce table.shop_table tbody,
    .woocommerce table.shop_table tr,
    .woocommerce table.shop_table td {
        display: block !important;
        width: 100% !important;
    }

    /* Each cart item becomes a card */
    .woocommerce table.shop_table.cart tr.cart_item {
        display: grid !important;
        grid-template-columns: 90px 1fr !important;
        gap: 12px !important;

        background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.5));
        border-radius: 14px;
        padding: 12px !important;
        margin-bottom: 15px !important;

        position: relative;
    }

    /* Remove all default borders */
    .woocommerce table.shop_table.cart tr,
    .woocommerce table.shop_table.cart td {
        border: none !important;
        padding: 0 !important;
    }

    /* Hide table headers (they break mobile layout) */
    .woocommerce table.shop_table.cart thead {
        display: none !important;
    }

    /* Image */
    .woocommerce .product-thumbnail {
        grid-row: span 4;
    }

    .woocommerce .product-thumbnail img {
        width: 100%;
        border-radius: 10px;
    }

    /* Name */
    .woocommerce .product-name {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }

    /* Price */
    .woocommerce .product-price {
        font-size: 13px;
        opacity: 0.85;
        margin-top: 4px;
    }

    /* Quantity */
    .woocommerce .product-quantity {
        margin-top: 6px;
    }

    .woocommerce .product-quantity input {
        width: 55px !important;
        height: 32px;
        border-radius: 8px;
        text-align: center;
    }

    /* Subtotal */
    .woocommerce .product-subtotal {
        font-weight: 600;
        margin-top: 6px;
    }

    /* Remove button */
    .woocommerce .product-remove {
        position: absolute !important;
        top: 8px;
        right: 10px;
        font-size: 18px;
        z-index: 10;
    }
}