/* Hide the dead PhotoSwipe HTML to prevent the blank gap at the footer */
.pswp {
    display: none !important;
}
.page .entry-title {display: none; display: none;}
span.onsale {
    display: none !important;
}

/* Apply changes ONLY to mobile devices (768px and below) */
@media (max-width: 768px) {

    /* 1. Force a uniform height for the image area */
    .shoptimizer-plp-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 180px !important; /* Adjust this number to make the images taller or shorter */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #fff !important;
        overflow: hidden !important;
    }

    .shoptimizer-plp-image-wrapper img {
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        padding: 5px;
    }

    /* 2. Force the product tiles to align vertically */
    ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        margin-bottom: 20px !important;
    }

    /* 3. Align the text area and push buttons to the bottom */
    .woocommerce-card__header {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        padding: 10px !important;
    }

    /* 4. Force titles to be exactly 2 lines high to keep grid straight */
    .woocommerce-loop-product__title {
        min-height: 40px !important;
        max-height: 40px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 5px !important;
    }

    /* 5. Keep price and button at the bottom of the card */
    .price {
        margin-top: auto !important;
        margin-bottom: 10px !important;
    }

    .button.add_to_cart_button {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Hide the Webpushr Subscription Bell */
#webpushr-bell-optin, #webpushr-prompt-wrapper {
    display: none !important;
}

/* Fallback: Hide all WooCommerce info boxes on the checkout page */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout form.checkout_coupon {
    display: none !important;
}

