.star-rating span {
font-weight: 900;
}

/* Force standard WooCommerce shortcode products into 2 columns on mobile */
@media (max-width: 767px) {
    .woocommerce[class*="columns-"] ul.products,
    .woocommerce ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .woocommerce[class*="columns-"] ul.products li.product,
    .woocommerce ul.products li.product {
        width: 46% !important;
        float: left !important;
        clear: none !important; /* Prevents shortcode columns from forcing new lines */
        margin-right: 8% !important;
        margin-bottom: 20px !important;
    }
    
    /* Remove right margin on every second item to keep rows clean */
    .woocommerce[class*="columns-"] ul.products li.product:nth-of-type(2n),
    .woocommerce ul.products li.product:nth-of-type(2n) {
        margin-right: 0 !important;
    }
}

@media (max-width: 767px) {
    /* 1. Make the button a comfortable, touch-friendly size */
    .woocommerce ul.products li.product a.button.add_to_cart_button {
        padding: 12px 6px !important;
        font-size: 13px !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Highlight the button while it is processing the background AJAX call */
    .woocommerce ul.products li.product a.button.loading {
        opacity: 0.6 !important;
        background-color: #666 !important;
    }

    /* 3. Style the "View Cart" confirmation link that appears right after tapping */
    .woocommerce ul.products li.product a.added_to_cart {
        display: block !important;
        text-align: center !important;
        margin-top: 8px !important;
        font-size: 12px !important;
        color: #28a745 !important; /* Green text confirmation */
        font-weight: bold !important;
    }
}

@media (max-width: 767px) {
    /* Force the individual product wrappers to stretch equally */
    .woocommerce ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* Push the button seamlessly to the very bottom of the card */
    .woocommerce ul.products li.product a.button.add_to_cart_button {
        margin-top: auto !important;
    }
}