/*
Theme Name: Enc Child
Template: ascent
Description: Child theme for Enc (Ascent). Holds all site-specific template changes so parent theme updates don't overwrite them.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ascent-child
*/

/* = Products page grid
-------------------------------------------------------------- */

/* Flex grid so tiles with different-length excerpts don't snag the floats. */
.enc-product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.enc-product-grid > .all_product_list {
    float: none;
    display: flex;
    flex-direction: column;
}

/* Stretch the last card block so every tile in a row is the same height. */
.enc-product-grid > .all_product_list > :last-child {
    flex: 1 1 auto;
}

.enc-product-grid .product_excerpt {
    padding: 0 15px 15px;
    background-color: #f2f4f5; /* matches .img_title_bottom */
    color: #333333;
    font-size: 15px;
    line-height: 1.4;
}

.enc-product-grid .product_excerpt p:last-child {
    margin-bottom: 0;
}

/* = Products page closing content
-------------------------------------------------------------- */

.enc-products-closing {
    margin-top: 60px; /* .row_products has a -40px bottom margin */
    margin-bottom: 40px;
    text-align: center;
}

.enc-products-closing__inner {
    max-width: 800px;
    margin: 0 auto;
}

/* The parent sets p { text-align: left } globally. */
.enc-products-closing p {
    text-align: center;
}

.enc-products-closing__cta {
    margin-top: 20px;
}

/* Extra specificity: WPBakery's stylesheet loads after this one. */
.enc-products-closing a.vc_btn3.enc-btn,
.enc-products-closing a.vc_btn3.enc-btn:focus {
    background-color: #4cadc9;
    background-image: none;
    border-color: #4cadc9;
    color: #ffffff;
}

.enc-products-closing a.vc_btn3.enc-btn:hover {
    background-color: #39a0bd;
    border-color: #39a0bd;
    color: #f7f7f7;
}
