body.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

body.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0;
    padding: 14px;
    overflow: hidden;
    border: 2px solid #061b8c;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(6, 27, 140, 0.16);
}

body.woocommerce ul.products li.product > a:first-child {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: #061b8c;
    text-decoration: none;
}

body.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 16px;
    object-fit: contain;
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.8em;
    margin: 0 0 18px;
    color: #061b8c;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

body.woocommerce ul.products li.product .price {
    display: none;
}

/* WooCommerce's own external-product button would duplicate our enquiry action. */
body.woocommerce ul.products li.product a.product_type_external {
    display: none;
}

body.woocommerce .e88-catalog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

body.woocommerce .e88-catalog-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    border: 2px solid #061b8c;
    border-radius: 9px;
    background: #061b8c;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

body.woocommerce .e88-catalog-actions .button:hover,
body.woocommerce .e88-catalog-actions .button:focus-visible {
    border-color: #0b36c7;
    background: #0b36c7;
    color: #ffffff;
}

body.woocommerce .e88-catalog-actions .button:focus-visible {
    outline: 3px solid #f0c142;
    outline-offset: 2px;
}

@media (max-width: 921px) {
    body.woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 544px) {
    body.woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.woocommerce ul.products li.product {
        padding: 12px;
    }
}
