#recently_viewed > div {
    display: flex;
    flex-direction: column;
}

.category-product-container {
    display: flex;
    flex-wrap: wrap;
}

.recently-viewed-category-product {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: initial!important;
    width: calc(50% - 21px);
    box-shadow: 0 1px 6px 0 hsla(0, 0%, 0%, .2);
    padding: 0;
    border-radius: 5px;
    margin: 20px 10px;
    padding-top: 10px;
}


@media screen and (min-width: 768px) {
    .recently-viewed-category-product {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        height: initial!important;
        width: calc(33.333% - 20px);
        box-shadow: 0 1px 6px 0 hsla(0, 0%, 0%, .2);
        padding: 0;
        border-radius: 5px;
        margin: 20px 10px;
        padding-top: 10px;
    }   
}

@media screen and (min-width: 960px) {
    .recently-viewed-category-product {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        height: initial!important;
        width: calc(20% - 20px);
        box-shadow: 0 1px 6px 0 hsla(0, 0%, 0%, .2);
        padding: 0;
        border-radius: 5px;
        margin: 20px 10px;
        padding-top: 10px;
    }   
}

.recently-viewed-category-product-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
}

p.recently-viewed-category-product-name {
    margin-bottom: .75rem;
    color: #383f48;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    margin-top: 5px;
    flex: 1 1 auto;
    width: 100%;
}

.recently-viewed-category-product-price {
    font-weight: 700;
}