.card-product {
    width: 100%;
    height: 100%;
    box-shadow: var(--small-shadow);
    overflow: hidden;
    border-radius: 12px;
    display: flex;
}

.card-product figure {
    width: 100%;
    height: 340px;
}

.card-product figure img {
    width: 100%;
    height: 340px;
}

.card-product article {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-product article p {
    margin-top: 20px;
}

.card-product article a {
    margin-top: 20px;
    align-self: self-end;
}

.card-testimoni {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-shadow: var(--smallest-shadow);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-testimoni .testimonier {
    margin-top: 20px;
}

.card-testimoni .testimonier p {
    margin-top: 10px;
}

.card-article {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--small-shadow);
}

.card-article figure {
    width: 100%;
    height: 100%;
}

.card-article figure img {
    width: 100%;
    height: 100%;
    transition: all 1s;
}

.card-article figure img:hover {
    scale: 1.2;
}

.card-article h3 {
    position: absolute;
    bottom: 0;
    color: white;
    padding: 20px;
}

.card-gallery {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--small-shadow);
}

.card-gallery img {
    width: 100%;
    height: 300px;
    transition: all 1s;
}

.card-gallery figure img:hover {
    scale: 1.2;
}

@media screen and (max-width:960px) {
    .card-product {
        flex-direction: column;
    }
}