.related-and-upsells .products {
    gap: 26px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    place-content: center;
    justify-items: center;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr)[4];
    grid-template-columns: repeat(4, 1fr);
    padding: 0 15px;
    align-items: unset !important;
}

.related-and-upsells .products .wd-add-btn .add-to-cart-loop span {
    padding: 0 !important;
    font-size: 16px!important;
    height: auto;
    line-height: 1;
    display: block;
    min-height: 0;
    text-transform: capitalize;
}

.product__grid::-webkit-scrollbar {
    display: none
}

.related-and-upsells .short_description,
.related-and-upsells .wd-star-rating {
    display: none
}

.related-and-upsells .product-grid-item {
    background-color: #f7f7f7;
    border-radius: 20px;
    padding: 15px 13px;
    max-width: 270px;
    width: 100%;
    min-width: 0;
}


.related-and-upsells .product-grid-item .product-wrapper{
    gap: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.related-and-upsells .product-grid-item .hover-img>a,
.related-and-upsells .product-grid-item .product-image-link {
    display: block;
    padding-bottom: 95%
}

.related-and-upsells .product-grid-item .hover-img img,
.related-and-upsells .product-grid-item .product-image-link img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    -o-object-fit: contain;
    object-fit: contain;
    mix-blend-mode: multiply
}

.related-and-upsells .product-grid-item .product-element-top {
    margin-bottom: 17px !important;
}

.related-and-upsells .product-grid-item .wd-entities-title {
    margin-bottom: 24px !important;
    font-weight: 300;
    color: #143109;
    text-align: left;
    flex: 1 1 auto;
}

.related-and-upsells .product-grid-item .wd-entities-title a {
    font-size: 16px !important;
    line-height: 1.2
}

.related-and-upsells .product-grid-item .price {
    text-align: left;
    margin-bottom: 12px
}

.related-and-upsells .product-grid-item .price .amount {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    color: #143109
}

.related-and-upsells .product-grid-item .wd-add-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

.related-and-upsells .product-grid-item .wd-add-btn>a {
    padding: 15px 6px;
    background: #456039;
    border-radius: 100px;
    text-transform: none;
    margin: 0 9px 0 0 !important;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto
}

.related-and-upsells .product-grid-item .add-to-cart-loop span {
    padding: 0;
    line-height: 1.2;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.related-and-upsells .product-grid-item .wd-add-btn-replace .add-to-cart-loop:before {
    position: static !important;
    margin-right: 8px;
    width: 18px;
    height: 18px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 18px;
    flex: 0 0 18px;
    background-image: url(/wp-content/themes/woodmart-child/img/svg/cart-fff.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: "";
    -webkit-transform: translate(0, 0) !important;
    -ms-transform: translate(0, 0) !important;
    transform: translate(0, 0) !important
}

.related-and-upsells .product-grid-item .add-to-cart-loop:hover span {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important
}

.related-and-upsells .product-grid-item .quantity input[type=button] {
    padding: 0;
    min-width: 14px;
    border: none;
    background: 0 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    color: #143109;
    height: 48px !important
}

.related-and-upsells .product-grid-item .quantity input[type=number] {
    width: 48px;
    height: 48px !important;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 48px;
    flex: 0 0 48px;
    border: 1px solid #e1e1e1 !important;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    color: #456039;
    margin-left: 3px;
    margin-right: 3px;
    margin-inline: 3px
}

.related-and-upsells .product-grid-item .quantity {
    margin: 0 !important
}

.related-and-upsells .product-grid-item .hover-img {
    background-color: rgba(255, 255, 255, 0)
}

.related-and-upsells .product-grid-item .product-label.featured {
    background-color: #143109
}

.related-and-upsells .product-grid-item .product-labels {
    top: 0;
    left: 0
}

.related-and-upsells .product-grid-item .product-label {
    padding: 11px 15px;
    min-width: 0;
    font-size: 14px;
    border-radius: 100px;
    line-height: 1
}

.related-and-upsells .product-grid-item .wd-buttons {
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 0;
    background: 0 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    top: 0;
    right: 0
}

.related-and-upsells .product-grid-item .wd-buttons .wd-action-btn>a {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%
}

.related-and-upsells .product-grid-item .product-compare-button {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    margin: 10px 0
}

.related-and-upsells .product-grid-item .woodmart-wishlist-btn {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1
}

.related-and-upsells .product-grid-item .wd-quick-view-icon {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3
}

.related-and-upsells .product-grid-item .product-compare-button a,
.related-and-upsells .product-grid-item .wd-quick-view-icon a {
    opacity: 0
}

.product__grid-title.max-width900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto
}

.product__grid-title.max-width640 {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto
}

.related-and-upsells .slider-title{
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto;
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    padding-bottom: 0;
}

.related-and-upsells .slider-title:before{
    display: none;
}

.related-and-upsells .product-grid-item{
    margin-bottom: 0;
}

.related-and-upsells>div:not(:last-child){
    margin-bottom: 120px !important;
}

@media (max-width:1200px){
    .related-and-upsells .products .wd-add-btn .add-to-cart-loop span {
        font-size: 14px !important
    }
}

@media (max-width:1024px) {
    .related-and-upsells .slider-title {
        font-size: 34px;
    }

    .related-and-upsells .products {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        gap: 0;
        padding: 0 15px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        margin-inline: 0
    }

    .related-and-upsells .product-grid-item {
        width: 100%;
        min-width: 221px !important;
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        padding: 15px 11px
    }

    .related-and-upsells .products>:not(:last-child) {
        margin-right: 25px
    }

    .related-and-upsells .products{
        overflow-x: auto;
        margin-left: -15px;
        width: 100vw
    }

    .related-and-upsells .products::-webkit-scrollbar {
        display: none
    }

    .related-and-upsells .product-grid-item .quantity input[type=button] {
        height: 40px !important
    }

    .related-and-upsells .product-grid-item .quantity input[type=number] {
        width: 40px;
        height: 40px !important;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 40px;
        flex: 0 0 40px;
        font-size: 14px
    }

    .related-and-upsells .product-grid-item .wd-add-btn>a {
        padding: 11px 6px
    }

    .related-and-upsells .product-grid-item .quantity input[type=button] {
        min-width: 10px
    }
}

@media (max-width:768.98px) {
    .related-and-upsells>div:not(:last-child) {
        margin-bottom: 80px!important;
    }

    .related-and-upsells .slider-title {
        font-size: 24px;
        margin-bottom: 26px;
    }

    .product__grid-title {
        font-size: 24px !important
    }

    .related-and-upsells .products {
        -ms-grid-columns: (minmax(230px, 1fr))[4];
        grid-template-columns: repeat(4, minmax(230px, 1fr))
    }

    .related-and-upsells .products .wd-add-btn .add-to-cart-loop span {
        font-size: 13px !important
    }

    .related-and-upsells .product-grid-item {
        border-radius: 16px;
        padding: 11px
    }

    .related-and-upsells .product-grid-item .wd-entities-title {
        margin-bottom: 20px !important
    }

    .related-and-upsells .product-grid-item .wd-entities-title a {
        font-size: 14px !important
    }

    .related-and-upsells .product-grid-item .price {
        margin-bottom: 10px
    }

    .related-and-upsells .product-grid-item .price .amount {
        font-size: 16px
    }

    .related-and-upsells .product-grid-item .wd-add-btn>a {
        padding: 12.5px 6px;
        margin: 0 10px 0 0 !important
    }

    .related-and-upsells .product-grid-item .add-to-cart-loop span {
        font-size: 14px
    }

    .related-and-upsells .product-grid-item .wd-add-btn-replace .add-to-cart-loop:before {
        width: 15px;
        height: 15px;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 15px;
        flex: 0 0 15px
    }

    .related-and-upsells .product-grid-item .product-label {
        padding: 7px 12px;
        min-width: 0;
        font-size: 12px
    }

    .related-and-upsells .product-grid-item .wd-buttons .wd-action-btn>a {
        width: 35px;
        height: 35px
    }

    .related-and-upsells .product-grid-item .product-compare-button {
        margin: 5px 0
    }
}

@media (any-hover:hover) {
    .related-and-upsells .product-grid-item .wd-buttons:hover a {
        opacity: 1
    }
}

@media (any-hover:none) {
    .related-and-upsells .product-grid-item .wd-buttons a {
        opacity: 1
    }

    .related-and-upsells .product-grid-item .wd-buttons{
        top: 25px;
    }
}


