/**
 * WooCommerce Cart Page Styles
 *
 * Styles scoped to the WooCommerce cart page (`body.woocommerce-cart`).
 * Currently targets the empty-cart block to clean up its default layout:
 * removes duplicate headings, the decorative horizontal rule, and the
 * "new products" upsell block that are shown when the cart is empty.
 *
 * @package dmc-bridge-child
 */

/* Cart page — only applied when the WooCommerce cart body class is present */
body.woocommerce-cart {

    /* Empty cart block — shown when the user has no items in their cart */
    .wp-block-woocommerce-empty-cart-block {

        /* WooCommerce renders multiple h2 headings in the empty cart block;
         * hide all but the first one to avoid duplicate messaging */
        h2.wc-block-cart__empty-cart__title ~ h2 {
            display: none;
        }

        /* Hide the decorative rule between sections */
        hr {
            display: none;
        }

        /* Hide the "new products" upsell block on the empty cart page */
        .wp-block-woocommerce-product-new {
            display: none;
        }
    }
}
