/* 1) Make the product-image box a fixed ratio (match your chosen thumb size/ratio) */
.wc-block-components-product-image,
.wc-block-grid__product-image,
.wp-block-woocommerce-product-image {
    aspect-ratio: 509 / 690;         /* use your target ratio */
    overflow: hidden;                 /* keeps things tidy */
}

/* 2) Ensure the anchor fills the box so the image can size against it */
.wc-block-components-product-image > a,
.wc-block-grid__product-image > a,
.wp-block-woocommerce-product-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 3) Contain the image (override inline object-fit:cover) */
.wc-block-components-product-image img,
.wc-block-grid__product-image img,
.wp-block-woocommerce-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;   /* beats inline cover */
    object-position: center;
    display: block;
}

/* 4) (Optional) normalise placeholders too */
.wc-block-components-product-image img.woocommerce-placeholder {
    object-fit: contain !important;
}

.wc-block-components-product-image,
.wc-block-grid__product-image,
.wp-block-woocommerce-product-image {
    aspect-ratio: 509 / 690 !important;
}

ul li.wc-block-product a{
    color: #000 !important;
}

ul li.wc-block-product a:hover{
    color: #7A0C0C !important;
}

ul li.wc-block-product span.woocommerce-Price-amount bdi{
    font-size: 18px;
}

ul li.wc-block-product button.wp-block-button__link{
    display: none !important;
}

ul.wp-block-categories{
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

ul.wp-block-categories li{
    border-bottom: 1px dashed #000;
}

ul.wp-block-categories li a{
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 7px 0;
    display: block;
}

ul.wp-block-categories li a:hover{
    color: #7A0C0C;
    text-decoration: none;
}

ul.wp-block-categories li.current-cat a{
    color: #7A0C0C;
}

p.reset-filters a{
    color: #000;
    text-decoration: none;
}

p.reset-filters a:hover{
    color: #7A0C0C;
    text-decoration: none;
}

.taxonomy-product_cat a{
    color: #000;
    text-decoration: none;
}

.taxonomy-product_cat a:hover{
    color: #7A0C0C;
    text-decoration: none;
}

nav.wp-block-query-pagination{
    margin: 50px 0;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span{
    color: #000;
    text-decoration: none;
    font-size: 20px;
}

.wp-block-query-pagination a:hover{
    color: #7A0C0C;
    text-decoration: none;
}