.cpv-widget {
    width: 100%;
}

.cpv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    align-items: stretch;
}

.cpv-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}


/*
|--------------------------------------------------------------------------
| IMAGE
|--------------------------------------------------------------------------
*/

.cpv-image {
    position: relative;
    width: 100%;
    height: 331px;
    overflow: hidden;
    background: #f1f1f1;
    flex-shrink: 0;
}

.cpv-image img,
.cpv-image .cpv-variation-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*
|--------------------------------------------------------------------------
| DISCOUNT
|--------------------------------------------------------------------------
*/

.cpv-discount {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 46px;
    padding: 0 20px;
    background: #28a9d0;
    color: #fff;
    border-radius: 0 0 20px 0;
    font-family: Heebo;
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
}


/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/

.cpv-content {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 15px;
    padding: 20px 15px 20px;
    text-align: right;
}


/*
|--------------------------------------------------------------------------
| VARIATION NAME
|--------------------------------------------------------------------------
*/

.cpv-name {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 14px;
    color: #000;
    font-family: Heebo;
    font-weight: 600;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
}


/*
|--------------------------------------------------------------------------
| DESCRIPTION
|--------------------------------------------------------------------------
*/

.cpv-description {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 auto;
    color: #444;
    font-family: Heebo;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    width: 100%;
    margin-bottom: 15px;
}

.cpv-description p {
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| MAIN PRODUCT NAME
|--------------------------------------------------------------------------
*/

.cpv-product-name {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
    color: #444;
    font-family: Heebo;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
}


/*
|--------------------------------------------------------------------------
| SKU
|--------------------------------------------------------------------------
*/

.cpv-sku {
    grid-column: 1 / -1;
    grid-row: 4;

    align-self: end;

    margin-top: 4px;

    color: #333;

    font-size: 14px;
    line-height: 1.4;

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| BOTTOM ROW
|--------------------------------------------------------------------------
*/

.cpv-add-to-cart-wrap {
    grid-column: 2;
    grid-row: 5;

    align-self: end;

    width: auto;
    margin: 20px 0 0;

    text-align: left;
}

.cpv-cart-form {
    width: auto;
    margin: 0;
    padding: 0;
}


/*
|--------------------------------------------------------------------------
| ADD TO CART BUTTON
|--------------------------------------------------------------------------
*/

.cpv-add-to-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 123px;
    min-height: 52px;
    padding: 10px 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #404040 !important;
    color: #fff !important;
    transition: background-color 0.3s ease,
        color 0.3s ease,
        opacity 0.3s ease;
    font-family: Heebo;
    font-weight: 700;
    font-style: Bold;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.cpv-add-to-cart:hover {
    background: #222;
    color: #fff;
}

.cpv-add-to-cart:focus {
    outline: none;
}

.cpv-add-to-cart:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cpv-button-text {
    position: relative;
    z-index: 2;
}


/*
|--------------------------------------------------------------------------
| PRICE
|--------------------------------------------------------------------------
*/

.cpv-price {
    grid-column: 1;
    grid-row: 5;
    align-self: end;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    margin: 0px 0 14px;
    direction: ltr;
    white-space: nowrap;
    text-align: right;
}

.cpv-price del {
    color: #8B8B8B;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    text-decoration: line-through;
}

.cpv-price ins {
    color: #050505;
    text-decoration: none;
    font-family: Heebo;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
}

/*
|--------------------------------------------------------------------------
| LOADING
|--------------------------------------------------------------------------
*/

.cpv-add-to-cart.cpv-loading {
    pointer-events: none;
    opacity: 0.7;
}

.cpv-button-loader {
    display: none;

    width: 16px;
    height: 16px;

    margin-left: 8px;

    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;

    border-radius: 50%;

    animation: cpv-spin 0.7s linear infinite;
}

.cpv-add-to-cart.cpv-loading .cpv-button-loader {
    display: block;
}

@keyframes cpv-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/*
|--------------------------------------------------------------------------
| ADDED
|--------------------------------------------------------------------------
*/

.cpv-add-to-cart.cpv-added {
    background: #2e7d32;
    color: #fff;
}


/*
|--------------------------------------------------------------------------
| OUT OF STOCK
|--------------------------------------------------------------------------
*/

.cpv-add-to-cart.cpv-disabled {
    background: #999;
    color: #fff;
    cursor: not-allowed;
}


/*
|--------------------------------------------------------------------------
| ELEMENTOR NOTICE
|--------------------------------------------------------------------------
*/

.cpv-notice {
    padding: 15px;

    background: #f5f5f5;
    border: 1px solid #ddd;

    color: #555;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {

    .cpv-grid {
        gap: 20px;
    }

    .cpv-image {
        height: 330px;
    }

    .cpv-name {
        font-size: 23px;
    }

    .cpv-add-to-cart {
        min-width: 125px;
        min-height: 54px;
        padding: 10px 16px;
        font-size: 16px;
    }

    .cpv-price ins {
        font-size: 22px;
    }

    .cpv-price del {
        font-size: 14px;
    }

}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .cpv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .cpv-image {
        height: 360px;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .cpv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .cpv-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .cpv-content {
        padding: 18px 12px 18px;
        column-gap: 10px;
    }

    .cpv-name {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .cpv-description {
        min-height: 40px;
        font-size: 13px;
    }

    .cpv-product-name {
        font-size: 13px;
    }

    .cpv-sku {
        font-size: 12px;
    }

    .cpv-discount {
        min-width: 75px;
        height: 38px;

        padding: 0 10px;

        border-radius: 0 0 14px 0;

        font-size: 14px;
    }

    .cpv-add-to-cart {
        min-width: 100px;
        min-height: 44px;

        padding: 8px 10px;

        border-radius: 8px;

        font-size: 13px;
    }

    .cpv-price {
        gap: 4px;
    }

    .cpv-price del {
        font-size: 11px;
    }

    .cpv-price ins {
        font-size: 17px;
    }

}


/*
|--------------------------------------------------------------------------
| SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    .cpv-grid {
        grid-template-columns: 1fr;
    }

    .cpv-image {
        aspect-ratio: 1 / 1;
    }

    .cpv-name {
        font-size: 21px;
    }

    .cpv-description {
        font-size: 14px;
    }

    .cpv-add-to-cart {
        min-width: 120px;
        font-size: 15px;
    }

    .cpv-price ins {
        font-size: 20px;
    }

}