
/* =========================================================
   NEWERA RELATED PRODUCTS V1.0
   Desktop / Tablet / Mobile
========================================================= */

body.single-product .related.products,
body.single-product .related-products-wrapper{
    --rp-green:#03270E;
    --rp-gold:#D8B86E;
    --rp-border:#E8E0D0;
    --rp-muted:#687168;
    --rp-text:#263229;

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

    background:transparent!important;
}

/* =========================================================
   SECTION HEADING
========================================================= */

body.single-product .related.products > h2,
body.single-product .related-products-wrapper > h3,
body.single-product .related-products-wrapper > h2,
body.single-product .related-products-wrapper .product-section-title{
    margin:0 0 20px!important;
    padding:0 0 12px!important;

    color:#03270E!important;
    font-size:22px!important;
    font-weight:700!important;
    line-height:1.4!important;

    letter-spacing:0!important;
    text-transform:none!important;

    border-bottom:1px solid #E8E0D0!important;
}

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

body.single-product .related.products .row,
body.single-product .related-products-wrapper .row{
    margin-left:-8px!important;
    margin-right:-8px!important;
}

body.single-product .related.products .product-small.col,
body.single-product .related-products-wrapper .product-small.col{
    padding:0 8px 16px!important;

    display:flex!important;
    align-items:stretch!important;
}

body.single-product .related.products .product-small.col > .col-inner,
body.single-product .related-products-wrapper .product-small.col > .col-inner{
    width:100%!important;
    height:100%!important;

    display:flex!important;
    flex-direction:column!important;

    background:#fff!important;
    border:1px solid #E8E0D0!important;
    border-radius:14px!important;

    overflow:hidden!important;

    box-shadow:0 3px 12px rgba(3,39,14,.035)!important;

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

/* PRODUCT BOX */

body.single-product .related.products .product-small.box,
body.single-product .related-products-wrapper .product-small.box{
    display:flex!important;
    flex-direction:column!important;

    width:100%!important;
    height:100%!important;

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

    background:#fff!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}

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

body.single-product .related.products .box-image,
body.single-product .related-products-wrapper .box-image{
    width:100%!important;
    margin:0!important;
    padding:10px!important;

    background:#fff!important;

    box-sizing:border-box!important;
}

body.single-product .related.products .box-image .image-fade_in_back,
body.single-product .related-products-wrapper .box-image .image-fade_in_back{
    aspect-ratio:1/1!important;

    padding:0!important;
    background:#fff!important;

    overflow:hidden!important;
}

body.single-product .related.products .box-image img,
body.single-product .related-products-wrapper .box-image img{
    width:100%!important;
    height:100%!important;

    aspect-ratio:1/1!important;

    object-fit:contain!important;
    object-position:center!important;

    display:block!important;
}

/* =========================================================
   PRODUCT CONTENT
========================================================= */

body.single-product .related.products .box-text,
body.single-product .related-products-wrapper .box-text{
    display:flex!important;
    flex-direction:column!important;
    flex:1!important;

    padding:12px!important;

    text-align:left!important;
    background:#fff!important;

    box-sizing:border-box!important;
}

body.single-product .related.products .title-wrapper,
body.single-product .related-products-wrapper .title-wrapper{
    margin:0!important;
    padding:0!important;
}

/* PRODUCT CATEGORY */

body.single-product .related.products .category,
body.single-product .related-products-wrapper .category{
    margin:0 0 5px!important;
    padding:0!important;

    color:#687168!important;
    font-size:11px!important;
    font-weight:400!important;

    line-height:1.4!important;
    letter-spacing:0!important;

    opacity:1!important;
    text-transform:none!important;
}

/* PRODUCT TITLE */

body.single-product .related.products .product-title,
body.single-product .related-products-wrapper .product-title{
    min-height:44px!important;

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

    color:#03270E!important;
    font-size:15px!important;
    font-weight:600!important;
    line-height:1.45!important;
    letter-spacing:0!important;
}

body.single-product .related.products .product-title a,
body.single-product .related-products-wrapper .product-title a,
body.single-product .related.products a.woocommerce-LoopProduct-link,
body.single-product .related-products-wrapper a.woocommerce-LoopProduct-link{
    display:-webkit-box!important;

    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;

    overflow:hidden!important;

    color:#03270E!important;

    font-size:15px!important;
    font-weight:600!important;
    line-height:1.45!important;

    letter-spacing:0!important;
    text-transform:none!important;

    overflow-wrap:anywhere!important;
}

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

body.single-product .related.products .price-wrapper,
body.single-product .related-products-wrapper .price-wrapper{
    margin-top:auto!important;
    padding-top:5px!important;
}

body.single-product .related.products .price,
body.single-product .related-products-wrapper .price{
    display:block!important;

    color:#03270E!important;
    font-size:16px!important;
    font-weight:700!important;

    line-height:1.5!important;
}

body.single-product .related.products .price .amount,
body.single-product .related-products-wrapper .price .amount{
    color:#03270E!important;
    font-size:16px!important;
    font-weight:700!important;
}

body.single-product .related.products .price del .amount,
body.single-product .related-products-wrapper .price del .amount{
    color:#929A93!important;

    font-size:12px!important;
    font-weight:400!important;
}

body.single-product .related.products .price ins,
body.single-product .related-products-wrapper .price ins{
    text-decoration:none!important;
}

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

body.single-product .related.products .badge-inner,
body.single-product .related-products-wrapper .badge-inner{
    background:#03270E!important;
    color:#D8B86E!important;

    font-size:11px!important;
    font-weight:600!important;
}

/* =========================================================
   DESKTOP
========================================================= */

@media(min-width:850px){

    body.single-product .related.products .product-small.col,
    body.single-product .related-products-wrapper .product-small.col{
        flex-basis:25%!important;
        max-width:25%!important;
    }

}

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

@media(min-width:550px) and (max-width:849px){

    body.single-product .related.products .product-small.col,
    body.single-product .related-products-wrapper .product-small.col{
        flex-basis:33.333333%!important;
        max-width:33.333333%!important;
    }

}

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

@media(max-width:549px){

    body.single-product .related.products,
    body.single-product .related-products-wrapper{
        margin-top:16px!important;
        padding:16px 0!important;
    }

    body.single-product .related.products > h2,
    body.single-product .related-products-wrapper > h3,
    body.single-product .related-products-wrapper .product-section-title{
        font-size:17px!important;
        margin-bottom:12px!important;
    }

    body.single-product .related.products .product-small.col,
    body.single-product .related-products-wrapper .product-small.col{
        flex-basis:50%!important;
        max-width:50%!important;
        padding:0 5px 10px!important;
    }

    body.single-product .related.products .row,
    body.single-product .related-products-wrapper .row{
        margin-left:-5px!important;
        margin-right:-5px!important;
    }

    body.single-product .related.products .box-image,
    body.single-product .related-products-wrapper .box-image{
        padding:6px!important;
    }

    body.single-product .related.products .box-text,
    body.single-product .related-products-wrapper .box-text{
        padding:10px!important;
    }

    body.single-product .related.products .product-title,
    body.single-product .related-products-wrapper .product-title{
        min-height:38px!important;
        font-size:13px!important;
    }

    body.single-product .related.products .product-title a,
    body.single-product .related-products-wrapper .product-title a,
    body.single-product .related.products a.woocommerce-LoopProduct-link,
    body.single-product .related-products-wrapper a.woocommerce-LoopProduct-link{
        font-size:13px!important;
        line-height:1.45!important;
    }

    body.single-product .related.products .price .amount,
    body.single-product .related-products-wrapper .price .amount{
        font-size:14px!important;
    }

}

