.category-products {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}
.category-product {
    display: flex;
    width: 25%;
    position: relative;
}
.cp-image {
    height: 100%;
    position: relative;
}
.cp-image img {
    display: block;
    max-width: 100% !important;
    object-fit: cover;
    min-height: 100%;
}
.cp-image picture {
    height: 100%;
}
.cp-info {
    display: flex;
    padding: 0 1rem 0;
    line-height: var(--line-height-lg);
    -moz-box-pack: center;
    justify-content: center;
    flex-direction: column;
    margin: auto 0 0;
    min-height: 6rem;
}
.cp-price {
    letter-spacing: 0.5px;
}
.cp-image-hover {
    display: none;
}
.cp-image:hover .cp-image-hover {
    display: block;
}
.cp-image:hover .cp-image-main {
    display: none;
}
.category-product-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.cp-tag {
    margin: 3rem 0 0;
    width: 3rem;
    height: 1.4rem;
    left: 1rem;
    position: absolute;
}
.cp-tag:first-child {
    margin: 0;
}
.cp-new-tag {
    top: 1.2rem;
    background: url(/images/icons/new.svg) center/cover no-repeat transparent;
}
.cp-sale-tag {
    top: 0;
    background: url(/images/icons/sale.svg) center/cover no-repeat transparent;
}

#category-products-empty {
    padding: 4rem 2rem;
}
#category-products-empty .alert {
    font-size: 1rem;
    padding: 2rem;
}

#category-products-cont {
    position: relative;
    width: 100%;
}

#category-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}
.category-page #cat-image {
    height: 50vw;
    max-height: 40vw;
}
#cat-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#cat-name {
    width: 100%;
    padding: 0 1rem 1rem;
}
#cat-name h3 {
    font-size: var(--font-size-3xl);
    font-family: var(--font-family-lg);
}
#cat-description {
    line-height: 1.5rem;
    max-height: 4.6rem;
    height: auto;
    text-align: center;
    max-width: 70%;
    overflow: hidden;
    font-size: var(--font-size-xl);
    font-family: var(--font-family-sm);
}
#cat-image {
    line-height: 0;
    flex: 1;
    max-height: 50vw;
    overflow: hidden;
}
#cat-image.half-width {
    flex: 1 1 50%;
}
#cat-image img,
#cat-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media only screen and (max-width: 767px) {
    .category-product {
        width: 50%;
    }
    .cp-info span {
        font-size: 1.1rem;
    }
    #cat-name {
        border-bottom: 1px solid rgb(216, 216, 216);
        padding: 0 1rem 1rem;
    }
    #cat-description {
        max-width: 80%;
    }
    #cat-image {
        max-height: inherit;
    }
    .category-page #cat-image {
        max-height: 100%;
        height: 100%;
    }
    .category-page #cat-image.half-width {
        max-height: 80vw;
        height: 100vw;
    }
}

@media only screen and (max-width: 576px) {
    .cp-tag {
        margin: 2.8rem 0 0;
    }
}

@media only screen and (max-width: 360px) {
    .cp-tag {
        margin: 2.4rem 0 0;
        left: 0.2rem;
    }
    #cat-text {
        padding: 0;
    }
}