﻿.c-readmore-content {
    width: 100%;
    background-color: var(--background-grey);
}

.c-readmore-container {
    max-width: var(--normal);
    margin: 0 auto;
    display: flex;
    padding: 1em var(--padding-big-sides-desktop) 1em var(--padding-big-sides-desktop);
}

.c-readmore {
    width: 100%;
}

.more-products-title h2 {
    font-size: var(--font-title-desktop);
    color: var(--main-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.products-cards {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    grid-gap: 1em;
    margin-top: 1em;
}

.products-prod-card-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.products-prod-card-image {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(1,1);
    transition: all 300ms ease-in;
}

.products-prod-card-text {
    padding: 2em 0 3em 0;
    position: relative;
}

.products-prod-card-type {
    font-size: var(--font-text-desktop);
    color: var(--grey);
}

.products-prod-card-title {
    font-size: 1.25rem;
    line-height: 1.7rem;
    min-height: 3.4rem;
    font-weight: 600;
    color: var(--dark-grey);
    flex: 1;
    overflow: hidden !important;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.products-prod-card-readmore {
    font-size: var(--font-text-desktop);
    color: var(--main-blue);
    text-decoration: underline;
    position: absolute;
    bottom: 0.5em;
    cursor: pointer;
}

.products-prod-card:hover .products-prod-card-image {
    transform: scale(1.2,1.2)
}

.products-prod-card:hover .products-prod-card-title {
    color: var(--main-blue);
}

@media only screen and (max-width: 70em) {
    .c-readmore-container {
        padding: 0.5em var(--padding-sides-tablet);
    }

        .c-readmore-container .more-products-title h2 {
            font-size: var(--font-title-tablet);
        }

        .c-readmore-container .products-prod-card-title {
            font-size: var(--font-small-title-tablet);
        }

        .c-readmore-container .products-prod-card-type {
            font-size: var(--font-text-tablet);
        }

        .c-readmore-container .products-prod-card-readmore {
            font-size: var(--font-text-tablet);
        }

        .c-readmore-container .products-cards {
            grid-template-columns: repeat(3,1fr);
        }
}

@media only screen and (max-width: 50em) {

    .c-readmore-container {
        padding: 0.5em var(--padding-sides-mobile);
        margin-top: 1em;
    }

        .c-readmore-container .more-products-title h2 {
            font-size: var(--font-title-mobile);
        }

        .c-readmore-container .products-prod-card-title {
            font-size: var(--font-small-title-mobile);
        }

        .c-readmore-container .products-prod-card-type {
            font-size: var(--font-text-mobile);
        }

        .c-readmore-container .products-prod-card-readmore {
            font-size: var(--font-text-mobile);
        }

        .c-readmore-container .products-cards {
            grid-template-columns: repeat(2,1fr);
        }
}
