/* --- 1. PRODUCT PAGE AUTO-SCROLL FIX --- */
#tab-reviews { scroll-margin-top: 1000px !important; }
:target { scroll-margin-top: 100vh !important; }

/* --- 2. GLOBAL ZOOM & LINE PROTECTION --- */
.line {
    width: 90vw !important;
    max-width: 1300px !important;
    height: 1px !important;
    margin: 10px auto !important;
    display: block !important;
    clear: both !important;
    background-color: #233F7C !important;
}

/* --- 3. UNIFIED MOBILE GRID (GAP KILLER VERSION) --- */
@media (max-width: 767px) {
    /* Force the main list to stop adding extra height */
    .woocommerce ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: stretch !important; /* Ensures rows stay even */
        height: auto !important;
        padding: 5px !important;
    }

    /* Target the product box AND any internal wrappers */
    .woocommerce ul.products li.product,
    .woocommerce ul.products li.product .product-inner,
    .woocommerce ul.products li.product .cms-product-inner {
        width: 48% !important; 
        display: flex !important;
        flex-direction: column !important;
        min-height: 1px !important; /* Resets any theme-forced height */
        height: auto !important;
        margin-bottom: 20px !important;
        padding-bottom: 5px !important;
        background: #fff;
    }

    /* Force the link and images to stay tight */
    .woocommerce-loop-product__link,
    .woocommerce-loop-product__link img {
        display: block !important;
        height: 170px !important; /* Slightly smaller to save space */
        width: 100% !important;
        object-fit: contain !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Tighten Title & Price Spacing */
    .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.1 !important;
        min-height: 1px !important; /* Allows title to take only space it needs */
        margin: 8px 0 2px 0 !important;
        padding: 0 5px !important;
        text-align: center !important;
    }

    .price {
        display: block !important;
        text-align: center !important;
        margin: 0 0 10px 0 !important;
        font-size: 14px !important;
        height: auto !important;
    }

    /* Push the button to the bottom of whatever height remains */
    .button, .added_to_cart {
        margin-top: auto !important;
        display: block !important;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 11px !important;
        padding: 8px 2px !important;
    }
}

html, body { overflow-x: hidden !important; }




