/* SmileToko 104C
   Related Products — exact individual card enclosure/bottom extension.
   Loaded after storefront-commerce-v104.css to win the active cascade. */

.ref-related-card .ref-related-product{
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0 0 14px !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c9c9c9 !important;
    border-radius: 11px !important;
    box-shadow: 0 4px 10px rgba(32, 24, 18, .16) !important;
}

/* Keep the picture clipped to the same rounded card outline. */
.ref-related-card .ref-related-product .ref-related-image{
    border-radius: 10px 10px 0 0 !important;
}

/* Ensure name/price area fills naturally and button remains above bottom edge. */
.ref-related-card .ref-related-product .ref-related-name{
    flex: 0 0 auto;
}
.ref-related-card .ref-related-product .ref-related-price{
    flex: 0 0 auto;
}

/* Existing form had only left/right margin. Preserve that but keep a clear
   14px card edge below the orange button. */
.ref-related-card .ref-related-product > form{
    margin: 0 7px !important;
    flex: 0 0 auto;
}
.ref-related-card .ref-related-product > form button{
    margin: 0 !important;
}

/* Mobile/tablet: keep the same visible bottom enclosure. */
@media (max-width: 991.98px){
    .ref-related-card .ref-related-product{
        padding-bottom: 14px !important;
    }
}
