/* Related products only: preserve all other product grids and purchase controls. */
body.single-product .related.products > ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
}
body.single-product .related.products > ul.products > li.product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}
body.single-product .related.products li.product figure {
    position: relative;
    width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 0;
}
body.single-product .related.products li.product figure .ct-media-container {
    display: block;
    aspect-ratio: 1;
    border-radius: 0;
}
body.single-product .related.products li.product figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}
body.single-product .related.products .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    margin: 14px 0 8px;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
    max-height: none;
}
body.single-product .related.products .woocommerce-loop-product__title a { color: #171717; }
body.single-product .related.products li.product .price {
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #171717;
    text-align: center;
    margin: auto 0 0;
    white-space: normal;
}
body.single-product .related.products .price del { color: #565656; opacity: 1; font-size: .9em; }
body.single-product .related.products .price ins { background: none; text-decoration: none; font-weight: 400; }
body.single-product .related.products li.product .onsale {
    position: absolute;
    inset: auto auto 12px 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    padding: 5px 16px;
    border: 0;
    border-radius: 999px;
    background: #e875a4;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    transform: none;
}
@media (max-width: 999px) {
    body.single-product .related.products > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 599px) {
    body.single-product .related.products > ul.products { gap: 24px 16px; }
    body.single-product .related.products .woocommerce-loop-product__title { font-size: 15px; margin-top: 12px; }
    body.single-product .related.products li.product .price { font-size: 17px; }
    body.single-product .related.products li.product .onsale { inset: auto auto 8px 8px; padding: 4px 12px; font-size: 12px; }
}
@media (max-width: 359px) {
    body.single-product .related.products > ul.products { grid-template-columns: minmax(0, 1fr); }
}
