.related-product-card {
    height: 410px;
    min-height: 410px;
    max-height: 410px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s cubic-bezier(.4,2,.6,1);
}
.related-product-card:hover, .related-product-card:focus {
    transform: scale(1.03);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.15), 0 0.5rem 1rem rgba(0,0,0,.10);
    z-index: 2;
}
.related-product-card .card-img-top {
    height: 180px;
    object-fit: cover;
    width: 100%;
    background: #f8f9fa;
}
.related-product-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.related-product-card .card-title {
    color: #212529;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.related-product-card .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 60px;
    min-height: unset;
    color: #555;
    margin-bottom: 0.5rem;
}
.related-product-card .add-to-cart-btn {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 1rem;
    border-radius: 2rem;
    background: #1a237e;
    color: #fff !important;
    border: none;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.08);
}
.related-product-card .add-to-cart-btn:hover, .related-product-card .add-to-cart-btn:focus {
    background: #0d1333;
    color: #fff !important;
    text-decoration: none;
}

.related-product-card a.card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}
.related-product-card a.card-link:focus, .related-product-card a.card-link:hover {
    text-decoration: none;
}
