/* WPCode 71043 — CT Related Product Cards */
/* =========================================================
   CLASSIC TRANSFERS
   RELATED PRODUCTS – MATCH CATALOGUE CARDS
   ========================================================= */

/* Individual related product card */
.single-product
.wp-block-woocommerce-related-products
.products-block-post-template > li.wp-block-post {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    padding: 0 0 62px 0 !important;

    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}


/* Square image area */
.single-product
.wp-block-woocommerce-related-products
.wp-block-woocommerce-product-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* WooCommerce inner image container */
.single-product
.wp-block-woocommerce-related-products
.wc-block-components-product-image__inner-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* Image link */
.single-product
.wp-block-woocommerce-related-products
.wp-block-woocommerce-product-image a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Actual product image */
.single-product
.wp-block-woocommerce-related-products
.wp-block-woocommerce-product-image img,
.single-product
.wp-block-woocommerce-related-products
img.ct-protected-product-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
}


/* Product title + grey divider */
.single-product
.wp-block-woocommerce-related-products
.wp-block-post-title {
    width: 100% !important;

    color: #008457 !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 400 !important;

    border-top: 1px solid #e5e5e5 !important;

    margin: 0 !important;
    padding: 12px 14px 0 !important;
    box-sizing: border-box !important;
}


/* Price – bottom left, vertically centred */
.single-product
.wp-block-woocommerce-related-products
.wp-block-woocommerce-product-price {
    position: absolute !important;
    left: 14px !important;
    bottom: 24px !important;
    transform: translateY(50%) !important;

    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1 !important;
}


/* Add to Basket wrapper – bottom right, vertically centred */
.single-product
.wp-block-woocommerce-related-products
.wp-block-button {
    position: absolute !important;
    right: 14px !important;
    bottom: 24px !important;
    transform: translateY(50%) !important;

    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}


/* Add to Basket button – shallower */
.single-product
.wp-block-woocommerce-related-products
.wp-block-button__link {
    background: #008457 !important;
    color: #ffffff !important;

    width: auto !important;
    min-width: 0 !important;

    padding: 7px 11px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    font-size: 14px !important;

    border-radius: 5px !important;
    box-shadow: none !important;
}


/* No card hover shadow */
.single-product
.wp-block-woocommerce-related-products
.products-block-post-template > li.wp-block-post:hover {
    box-shadow: none !important;
}
