.card-container { container-name: cardContainer; container-type: inline-size; }

.wpb-card { --border-radius: .8rem; --padding: 1.4rem;
    border-radius: var(--border-radius); background-color: #fff; display: flex; flex-direction: column; position: relative; text-decoration: none; z-index: 1;
    
    a { text-decoration: none; }

    .card-text { --mt: .75em;
        > * + * { margin-top: var(--mt); }
    }

    .card-date { display: inline-flex; align-items: center; column-gap: .5rem; font-size: 1.2rem; font-weight: 600; 
        i { font-size: 1.1rem; opacity: .5; }
    }

    > *:first-child { border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius);
        img { border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } 
    }
    > *:last-child { border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); }

    .wpb-card__header { display: flex; overflow: hidden; 
        img { width: 100%; height: auto; }

        &.wpb-card__header--ratio { --ratio: 75%; position: relative; overflow: hidden; z-index: 1;
            &::before { content: ''; display: block; width: 100%; padding-top: var(--ratio); }
            > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
        }
        &.wpb-card__header--scale { overflow: hidden;
            img { transition: transform var(--ts-35) ease; }
        }

        &.wpb-card__header--absolute { --linear-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 85%); position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: -1; border-radius: var(--border-radius); overflow: hidden;
            img { width: 100%; height: 100%; object-fit: cover; }
            &::after { background: var(--linear-gradient); content: ''; display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
        }
    }

    .wpb-card__spacing { --ratio: 75%; display: block; width: 100%;
        &.wpb-card__spacing--16x9 { --ratio: 56.25%; }
        &.wpb-card__spacing--4x3 { --ratio: 75%; }
        &.wpb-card__spacing--1x1 { --ratio: 100%; }
        &.wpb-card__spacing--3x4 { --ratio: 133.33%; }
        &.wpb-card__spacing--9x16 { --ratio: 177.78%; }
        &::before { content: ''; display: block; width: 100%; padding-top: var(--ratio); }
    }

    .wpb-card__body { padding: var(--padding); flex-grow: 1; }

    .wpb-card__footer { padding: 0 var(--padding) var(--padding) var(--padding); }

    &:hover .wpb-card__header--scale {  
        img { transform: scale(1.1); }
    }

    &:has(.wpb-card__header--absolute) { z-index: 1; color: #fff; border: none; justify-content: space-between;
        .wpb-card__body { flex-grow: 0; }
        .card-title { color: #fff; }
    }

    /* Card variations */
    &.wpb-card--cta { border: 1px solid var(--clr-border); justify-content: center;
        .wpb-card__body { flex-grow: 0; }
    }
    
    &.wpb-card--category {
        .wpb-card__header { padding: 1.4rem 1rem 0; overflow: inherit;        
            figure img { height: 8rem; object-fit: contain; max-width: 20rem; padding-right: 1rem; } 
        }
        .wpb-card__body > p {display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
        .wpb-card__footer .btn { gap: 1rem; }
    }

    @media (min-width: 768px) {
        --padding: 2rem;

        &.wpb-card--category { font-size: 1.6rem; 
            .wpb-card__header { padding: 2rem 2.4rem 0; 
                figure img { height: 11rem;} 
            }
            .wpb-card__body { padding: 2.1rem 2.4rem 1.8rem 2.4rem; }
            .wpb-card__footer { padding: 0 2.4rem 2.4rem 2.4rem; }
        }
    }
}

.wpb-card .wpb-card__header.is-bg-image { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: var(--border-radius); }
.wpb-card .wpb-card__header.is-bg-image::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: var(--border-radius); background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%); }
.wpb-card .wpb-card__header.is-bg-image img { object-fit: cover; border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); }

.wpb-card.wpb-card--category-color { background-color: var(--clr-light); }
.wpb-card.wpb-card--category-color .wpb-card__header { padding: 1.6rem 2rem; column-gap: 2rem; display: flex; justify-content: space-between; overflow: inherit; }
.wpb-card.wpb-card--category-color .wpb-card__header h3 { font-size: 1.8rem; display: flex; align-items: center; column-gap: .8rem; }
.wpb-card.wpb-card--category-color .wpb-card__header h3 .wpb-icon { background: rgba(63, 76, 88, .4); --width: 1.3rem; --height: 1.3rem; min-width: 1.3rem; }
.wpb-card.wpb-card--category-color .wpb-card__header .wpb-icon-wrapper { border: 1px solid var(--clr-blue); }
.wpb-card.wpb-card--category-color .wpb-card__header .wpb-icon-wrapper .wpb-icon { --color: var(--clr-blue); }
.wpb-card.wpb-card--category-color .wpb-card__header .wpb-icon-wrapper::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; }
.wpb-card.wpb-card--category-color:hover .wpb-card__header .wpb-icon-wrapper { background-color: var(--clr-blue); border-color: var(--clr-blue); }
.wpb-card.wpb-card--category-color:hover .wpb-card__header .wpb-icon-wrapper .wpb-icon { background: #fff!important; }
.wpb-card.wpb-card--category-color .wpb-card__body { padding: .8rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.wpb-card.wpb-card--category-color .wpb-card__footer { padding: .8rem 2rem; }
.wpb-card.wpb-card--category-color .colors { display: inline-flex; align-items: center; }
.wpb-card.wpb-card--category-color .color { --size: 2rem; border: 2px solid var(--clr-light); border-radius: 50%; width: var(--size); height: var(--size); min-width: var(--size); background-color: var(--c); }
.wpb-card.wpb-card--category-color .color + .color { margin-left: -.85rem; }
.wpb-card.wpb-card--category-color > * + * { border-top: 1px solid #DBDFE2; }
.wpb-card.wpb-card--category-color * { color: #3F4C58; }
.wpb-card.wpb-card--category-color small { font-size: 1.3rem; }
.wpb-card.wpb-card--category-color .heights { display: flex; flex-wrap: wrap; column-gap: .5rem }
.wpb-card.wpb-card--category-color .heights,
.wpb-card.wpb-card--category-color .heights * { font-size: 1.3rem; }
.wpb-card.wpb-card--category-color .height + .height::before { content: ', '; font-size: 1.3rem; display: inline-block; margin-right: .5rem; margin-left: -.5rem; }

.wpb-card.wpb-card--sector { aspect-ratio: 9 / 5; }
.wpb-card.wpb-card--sector .wpb-card__header { overflow: hidden; border-radius: var(--border-radius); }
.wpb-card.wpb-card--sector .wpb-card__header img { transition: transform var(--ts-35) ease; width: 100%; height: 100%; object-fit: cover; border-radius: var(--border-radius); }
.wpb-card.wpb-card--sector .wpb-card__body { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-grow: 0; }
.wpb-card.wpb-card--sector .wpb-card__body h3 { --fs: clamp(1.4rem, 2.5vw, 2rem); }
.wpb-card.wpb-card--sector .wpb-card__body .wpb-icon-wrapper i { --color: #ffffff; }
.wpb-card.wpb-card--sector:hover .wpb-card__header img { transform: scale(1.1); }

.wpb-card.wpb-card--article { min-height: 20rem; }
.wpb-card.wpb-card--article .excerpt { --excerpt-line-clamp: 2; display: -webkit-box; -webkit-line-clamp: var(--excerpt-line-clamp); -webkit-box-orient: vertical; overflow: hidden; }
.wpb-card.wpb-card--article .card-title { --fs: clamp(1.6rem, 2.5vw, 2rem); }
.wpb-card.wpb-card--article .wpb-card__header { overflow: hidden; border-radius: var(--border-radius); }
.wpb-card.wpb-card--article .wpb-card__header img { transition: transform var(--ts-35) ease; width: 100%; height: 100%; object-fit: cover; border-radius: var(--border-radius); min-height: 20rem; }
.wpb-card.wpb-card--article .wpb-card__body { display: flex; flex-direction: column; align-items: start; justify-content: flex-end; }
.wpb-card.wpb-card--article .wpb-card__body a::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.wpb-card.wpb-card--article summary p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wpb-card.wpb-card--article .badge-group .badge { --border: 1px solid rgba(255,255,255,.3); } 
.wpb-card.wpb-card--article:hover .wpb-card__header img { transform: scale(1.1); }

.wpb-card.wpb-card--article-secondary { display: grid; grid-template-columns: 1fr 2.2rem; align-items: center; column-gap: 2rem; border-radius: 0; background: transparent; }
.wpb-card.wpb-card--article-secondary .card-title { --fs: 1.8rem; font-weight: 600; }
.wpb-card.wpb-card--article-secondary .wpb-card__body { padding: 0; }
.wpb-card.wpb-card--article-secondary .wpb-card__body .badge-group { margin-top: 1.2rem; }
.wpb-card.wpb-card--article-secondary .wpb-card__body summary { font-size: 1.3rem; color: rgba(var(--clr-text-rgb), .8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wpb-card.wpb-card--article-secondary .wpb-card__body summary * { font: inherit; color: inherit; margin-top: .4rem; }
.wpb-card.wpb-card--article-secondary .wpb-icon-wrapper { border-radius: 50%; width: 2.2rem; height: 2.2rem; }
.wpb-card.wpb-card--article-secondary:hover .wpb-icon-wrapper { background-color: var(--clr-blue); border-color: var(--clr-blue); }
.wpb-card.wpb-card--article-secondary:hover .wpb-icon-wrapper .wpb-icon { --color: #ffffff; }

.wpb-card.wpb-card--article-tertiary { border-radius: 0; background-color: transparent; gap: 2.4rem; }
.wpb-card.wpb-card--article-tertiary .wpb-card__body { padding: 0; }
.wpb-card.wpb-card--article-tertiary .wpb-card__body .badge-group { margin-top: 1.2rem; }
.wpb-card.wpb-card--article-tertiary .wpb-card__header { display: flex; border-radius: var(--border-radius); }
.wpb-card.wpb-card--article-tertiary .wpb-card__header img { object-fit: cover; transition: transform var(--ts-35) ease; }
.wpb-card.wpb-card--article-tertiary:hover .wpb-card__header img { transform: scale(1.1); }

.wpb-card.wpb-card--newsletter .wpb-card__body h3 { --fs: clamp(1.4rem, 2.5vw, 2rem); padding-bottom: .7rem; }
.wpb-card.wpb-card--newsletter .wpb-card__body .newsletter { margin-top: 1.8rem; }
.wpb-card.wpb-card--newsletter.wpb-bg-pattern--dark .newsletter .form-control { background-color: #3F557B; border-color: #3F557B; }

.wpb-card.wpb-card--article-small { background-color: transparent; border-radius: 0; }
.wpb-card.wpb-card--article-small .card-title { font-size: 1.8rem; font-weight: 600; margin-bottom: .5rem; }
.wpb-card.wpb-card--article-small .btn { margin-top: 1rem; }
.wpb-card.wpb-card--article-small summary p { font-size: 1.3rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wpb-card.wpb-card--article-small .wpb-card__body { padding: 0; }
.wpb-card.wpb-card--article-small .badge { --padding: .45rem .9rem; }
.wpb-card.wpb-card--article-small .wpb-card__footer { display: flex; justify-content: space-between; padding: .9rem 0 0 0; }
.wpb-card.wpb-card--article-small .wpb-card__footer .wpb-icon-wrapper { width: 2.2rem; height: 2.2rem; }
.wpb-card.wpb-card--article-small:hover .wpb-icon-wrapper { background-color: var(--clr-blue); border-color: var(--clr-blue); }
.wpb-card.wpb-card--article-small:hover .wpb-icon-wrapper .wpb-icon { --color: #ffffff; }

.wpb-card.wpb-card--wishlist-product { border: .1rem solid var(--clr-border); }
.wpb-card.wpb-card--wishlist-product .wpb-card__header { height: 20rem }
.wpb-card.wpb-card--wishlist-product .wpb-card__header img { object-fit: contain; }
.wpb-card.wpb-card--wishlist-product .wpb-card__body .product-sku { display: inline-block; color: var(--clr-text); font-size: 1.2rem; font-weight: 500; background-color: var(--clr-light); border-radius: 0.3rem; padding: 0 0.25rem; margin-bottom: .5rem; }
.wpb-card.wpb-card--wishlist-product .wpb-card__body h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wpb-card.wpb-card--wishlist-product .wpb-card__body + .wpb-card__body { border-top: 1px solid var(--clr-border); }
.wpb-card.wpb-card--wishlist-product .price { color: var(--clr-headings); }
.wpb-card.wpb-card--wishlist-product .price > strong { display: block; font-size: 2rem; line-height: 1.2rem; } 
.wpb-card.wpb-card--wishlist-product .price > strong small { display: none; } 
.wpb-card.wpb-card--wishlist-product .price > small { font-size: 1.2rem; line-height: 1.2rem; color: var(--clr-text); }
.wpb-card.wpb-card--wishlist-product .price > small * { font-size: 1.2rem; line-height: 1.2rem; color: var(--clr-text); }
.wpb-card.wpb-card--wishlist-product .btn.btn--outline { --padding: 0 1.4rem; --color: var(--clr-headings); --bg-color: transparent; --border: .1rem solid var(--clr-border); }
.wpb-card.wpb-card--wishlist-product .wpb-card__footer .btn {width: 100%; justify-content: center;}

/* .wpb-card.wpb-card--product { display: -ms-grid; display: grid; grid-template-columns: minmax(0, 1fr); }
.wpb-card.wpb-card--product .wpb-card__header { grid-row: span 2; border-top-right-radius: 0px; border-bottom-right-radius: 0px; aspect-ratio: 4/3; position: relative; }
.wpb-card.wpb-card--product .wpb-card__header .is-featured { position: absolute; top: 1rem; left: 1rem; }
.wpb-card.wpb-card--product .wpb-card__header img { width: 100%; height: auto; object-fit: cover }
.wpb-card.wpb-card--product .wpb-card__body .prd-title { font-size: 2rem; }
.wpb-card.wpb-card--product .wpb-card__body a { text-decoration: none; }
.wpb-card.wpb-card--product .wpb-card__body .prd-category a { font-size: 1.4rem; color: var(--clr-primary); } 
.wpb-card.wpb-card--product .wpb-card__body .prd-price { margin-top: auto; padding-top: 1.6rem; }
.wpb-card.wpb-card--product .wpb-card__body .prd-price small { display: block; color: rgba(var(--clr-dark-rgb), .55); font-size: 1.6rem; line-height: 1; }
.wpb-card.wpb-card--product .wpb-card__body .prd-price .prd-price__old { text-decoration: line-through; margin-right: .5rem; opacity: .5; }
.wpb-card.wpb-card--product .wpb-card__body .prd-price .prd-tax { font-size: 1.4rem; font-weight: 400; }
.wpb-card.wpb-card--product .wpb-card__footer { display: -webkit-box; display: -ms-flexbox; display: flex; }
.wpb-card.wpb-card--product .wpb-card__footer > * { flex-grow: 1; }
.wpb-card.wpb-card--product .wpb-card__footer .btn.btn--link:before { display: none; } 
.wpb-card.wpb-card--product .wpb-card__footer .added_to_cart { display: none; } */

@media (min-width: 768px) {
    .wpb-card.wpb-card--article { min-height: 30rem; }

    .wpb-card.wpb-card--article .wpb-card__header img { min-height: 30rem; }

    .wpb-card.wpb-card--article-tertiary {gap: 2.7rem; }
    .wpb-card.wpb-card--article-tertiary .wpb-card__body .badge-group { margin-top: 2rem; }
}