/* =========================================================
   NOVAEL — PRODUCT CARD
========================================================= */

.novael-shop-shell li.product {
    position: relative;
    min-width: 0;
}

.novael-shop-shell li.product a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   IMAGE
========================================================= */

.novael-shop-shell li.product .woocommerce-LoopProduct-link {
    position: relative;

    display: block;

    overflow: hidden;
}

.novael-shop-shell li.product img {
    display: block;

    width: 100% !important;
    height: auto;

    aspect-ratio: 3 / 4;

    margin: 0 0 14px !important;

    object-fit: cover;

    background: #e9e5dd;

    transition:
        transform .55s cubic-bezier(.22,1,.36,1),
        opacity .3s ease;
}

.novael-shop-shell li.product:hover img {
    transform: scale(1.018);
}


/* =========================================================
   TITLE
========================================================= */

.novael-shop-shell
li.product
.woocommerce-loop-product__title {
    max-width: 92%;

    margin: 0 0 7px !important;
    padding: 0 !important;

    color: var(--text);

    font-size: 10px !important;
    font-weight: 700 !important;

    line-height: 1.3;
    letter-spacing: .005em;
}


/* =========================================================
   PRICE
========================================================= */

.novael-shop-shell li.product .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;

    gap: 6px;

    margin: 0 !important;

    color: var(--text) !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    line-height: 1.25;
}

.novael-shop-shell li.product .price del {
    order: 1;

    margin: 0;

    color: rgba(17,17,15,.38);

    font-size: 8px;
    font-weight: 500;

    opacity: 1;
}

.novael-shop-shell li.product .price ins {
    order: 2;

    color: #9f2f27;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.novael-shop-shell li.product .price ins .woocommerce-Price-amount {
    color: #9f2f27;
}


/* =========================================================
   SALE BADGE
========================================================= */

.novael-shop-shell li.product .onsale.novael-sale-badge {
    position: absolute !important;
    z-index: 8;

    top: 9px !important;
    left: 9px !important;
    right: 9px !important;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    line-height: 1 !important;

    pointer-events: none;
}

.novael-sale-badge__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 22px;

    padding: 0 7px;

    background: #b3261e;
    color: #fff;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: .1em;
}

.novael-sale-badge__percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 22px;

    padding: 0 7px;

    background: #fff;
    color: #b3261e;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .03em;
}


/* =========================================================
   OUT OF STOCK
========================================================= */

.novael-stock-badge {
    position: absolute;

    z-index: 9;

    top: 50%;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 11px 10px;

    transform: translateY(-50%);

    background: rgba(17,17,15,.88);
    color: #fff;

    font-size: 8px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: .16em;

    text-align: center;
    text-transform: uppercase;

    pointer-events: none;
}


/* Slightly mute unavailable product image */

.novael-shop-shell li.product.outofstock img {
    opacity: .68;
}


/* Hide default Woo grid elements */

.novael-shop-shell li.product .button,
.novael-shop-shell li.product .star-rating {
    display: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .novael-shop-shell li.product img {
        margin-bottom: 10px !important;
    }

    .novael-shop-shell
    li.product
    .woocommerce-loop-product__title {
        max-width: 100%;

        margin-bottom: 6px !important;

        font-size: 10px !important;
        font-weight: 700 !important;

        line-height: 1.25;
    }

    .novael-shop-shell li.product .price {
        gap: 5px;

        font-size: 10px !important;
    }

    .novael-shop-shell li.product .price del {
        font-size: 7px;
    }

    .novael-shop-shell li.product .price ins {
        font-size: 10px;
    }

    .novael-shop-shell li.product .onsale.novael-sale-badge {
        top: 6px !important;
        left: 6px !important;
        right: 6px !important;
    }

    .novael-sale-badge__label,
    .novael-sale-badge__percent {
        min-height: 19px;

        padding:
            0
            5px;
    }

    .novael-sale-badge__label {
        font-size: 5px;
    }

    .novael-sale-badge__percent {
        font-size: 6px;
    }

    .novael-stock-badge {
        top: 50%;
        left: 0;
        right: 0;

        width: 100%;

        padding: 9px 6px;

        transform: translateY(-50%);

        font-size: 7px;
        font-weight: 700;

        letter-spacing: .13em;
    }

}
