/* ======================================================
   PRODUCT GRID
====================================================== */

ul.products {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 24px;

    margin: 0;
    padding: 0;

    list-style: none;
}

ul.products::before,
ul.products::after {
    display: none;
}


/* ======================================================
   PRODUCT CARD
====================================================== */

ul.products li.product {
    position: relative;

    float: none;
    width: auto;
    min-width: 0;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--jade-border-soft);
    border-radius: var(--jade-radius-md);

    background: var(--jade-white);

    box-shadow:
        0 6px 20px rgba(34, 26, 21, .065);

    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease;
}

ul.products li.product:hover {
    transform: translateY(-6px);

    border-color: #d5c1ae;

    box-shadow:
        0 18px 42px rgba(34, 26, 21, .13);
}


/* ======================================================
   MAIN PRODUCT LINK
====================================================== */

ul.products li.product
a.woocommerce-LoopProduct-link {
    position: relative;

    display: grid;
    grid-template-rows: 300px auto;

    flex: 1;

    color: var(--jade-dark);

    text-decoration: none;
}

ul.products li.product a {
    text-decoration: none;
}


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

ul.products li.product
a.woocommerce-LoopProduct-link img {
    width: 100%;
    height: 100%;

    margin: 0 0 19px;
    padding: 0;

    object-fit: cover;

    background: #f8f5f2;

    border-bottom: 1px solid #f0ebe6;

    transition:
        transform .35s ease;
}

ul.products li.product:hover
a.woocommerce-LoopProduct-link img {
    transform: scale(1.035);
}


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

ul.products li.product
.woocommerce-loop-product__title {
    min-height: 52px;

    margin: 0;
    padding: 0 18px;

    overflow: hidden;

    color: var(--jade-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.38;

    text-decoration: none;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


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

ul.products li.product .price {
    display: block;

    margin: 11px 0 0;
    padding: 0 18px;

    color: var(--jade-accent-dark);

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

ul.products li.product .price del {
    margin-right: 5px;

    color: #988f89;

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

    opacity: .85;
}

ul.products li.product .price ins {
    color: var(--jade-accent-dark);

    text-decoration: none;
}


/* ======================================================
   BUTTON
====================================================== */

ul.products li.product > .button,
ul.products li.product
a.button {
    width: calc(100% - 36px);

    min-height: 43px;

    margin: 17px 18px 18px;

    display: inline-flex;

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

    padding: 9px 14px;

    border: 1px solid var(--jade-dark);
    border-radius: var(--jade-radius-sm);

    background: var(--jade-dark);
    color: #fff;

    box-shadow:
        0 5px 14px rgba(29, 25, 23, .12);

    text-align: center;
    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

ul.products li.product > .button:hover,
ul.products li.product
a.button:hover {
    transform: translateY(-2px);

    border-color: var(--jade-accent-dark);

    background: var(--jade-accent-dark);

    box-shadow:
        0 9px 20px rgba(74, 52, 37, .18);
}


/* ======================================================
   AJAX / ADDED
====================================================== */

ul.products li.product
.added_to_cart {
    margin:
        -8px
        18px
        18px;

    color: var(--jade-accent-dark);

    text-align: center;
    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
}


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

ul.products li.product .onsale,
.woocommerce span.onsale {
    position: absolute;

    z-index: 3;

    top: 12px;
    left: 12px;

    min-width: auto;
    min-height: auto;

    margin: 0;
    padding: 6px 10px;

    border-radius: 999px;

    background: var(--jade-dark);
    color: #fff;

    box-shadow:
        0 5px 15px rgba(20, 16, 13, .14);

    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;

    letter-spacing: .04em;
}


/* ======================================================
   VARIABLE PRODUCTS
====================================================== */

ul.products li.product
.product_type_variable {
    background: #fff;
    color: var(--jade-dark);
}

ul.products li.product
.product_type_variable:hover {
    background: var(--jade-dark);
    color: #fff;

    border-color: var(--jade-dark);
}


/* ======================================================
   SHOP PAGE
====================================================== */

.jade-shop-page {
    min-height: 650px;

    padding: 70px 0 100px;

    background:
        linear-gradient(
            180deg,
            #fbfaf8 0,
            #fff 340px
        );
}

.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 25px;

    color: var(--jade-muted);

    font-size: 12px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--jade-accent-dark);

    text-decoration: none;
}

.woocommerce-products-header {
    margin-bottom: 42px;
}

.woocommerce-products-header__title {
    margin: 0;

    font-size: clamp(38px, 5vw, 58px);

    letter-spacing: -.025em;
}

.woocommerce .woocommerce-result-count {
    color: var(--jade-muted);

    font-size: 13px;
}

.woocommerce .woocommerce-ordering select {
    min-height: 42px;

    padding: 7px 38px 7px 12px;

    border: 1px solid var(--jade-border);
    border-radius: var(--jade-radius-sm);

    background: #fff;
    color: var(--jade-dark);

    box-shadow: var(--jade-shadow-sm);
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1050px) {

    ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px;
    }
}


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

@media (max-width: 700px) {

    ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    ul.products li.product {
        border-radius: 10px;

        box-shadow:
            0 5px 14px rgba(34, 26, 21, .07);
    }

    ul.products li.product:hover {
        transform: none;
    }

    ul.products li.product
    a.woocommerce-LoopProduct-link {
        grid-template-rows: 220px auto;
    }

    ul.products li.product
    a.woocommerce-LoopProduct-link img {
        margin-bottom: 14px;
        padding: 0;
    }

    ul.products li.product
    .woocommerce-loop-product__title {
        min-height: 60px;

        padding: 0 12px;

        font-size: 15px;
        line-height: 1.32;
    }

    ul.products li.product .price {
        margin-top: 8px;
        padding: 0 12px;

        font-size: 14px;
    }

    ul.products li.product > .button,
    ul.products li.product
    a.button {
        width: calc(100% - 24px);

        min-height: 40px;

        margin:
            13px
            12px
            12px;

        padding: 7px 8px;

        font-size: 11px;
    }
}


/* ======================================================
   VERY SMALL
====================================================== */

@media (max-width: 390px) {

    ul.products {
        gap: 9px;
    }

    ul.products li.product
    .woocommerce-loop-product__title {
        padding-inline: 10px;

        font-size: 14px;
    }

    ul.products li.product .price {
        padding-inline: 10px;
    }

    ul.products li.product > .button,
    ul.products li.product
    a.button {
        width: calc(100% - 20px);

        margin-left: 10px;
        margin-right: 10px;
    }
}
