.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Each card takes up equal space in the row */
.card {
    flex: 1 1 calc(33.333% - 20px); /* Adjust percentage for the number of cards per row */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    /* height: 100%; */
    border: 1px solid #ddd; /* Optional: a light border */
    border-radius: 0; /* No border radius for a modern flat look */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Image takes up the top half */
.card-image {
    flex: 0 0 50%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card content styling */
.card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.card-price {
    margin-bottom: 10px;
}

.card-description {
    flex-grow: 1;
}

/* Media Query: On medium screens and below, stack cards vertically */
@media screen and (max-width: 991px) {
    .card {
        flex: 1 1 100%;
    }
}

.finish-img{
    width: 150px;
    height: 150px;
}
.finishes-modal{
    @media(min-width: 768px){
        width: 400px;
    }
}