:root{
    --primary-colour: #10218b;
}

.products-carousel .product{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 30px;
}

@media screen and (max-width: 767px) {
    .products-carousel .product{
        /* width: 75%; */
        margin-inline: auto;
    }
    .product-image {
        width: 50%;
        margin: auto;
    }
}
@media screen and (max-width: 991px) {
    .products-carousel .section-title{
        padding: 0 30px;
    }
    
}

.product-ctas{
    gap: 20px;
    min-height: 100px;
    justify-content: end;
}

.product-ctas .btn-add-to-trolley,
.product-ctas .btn-notify-me{
    width: 100%;
}

/* .products-carousel:not(:first-of-type){
    border-top: 1px solid rgb(202, 202, 202);
} */
.product-container h3,
.product-view-grid h3,
.product-name{
    font-size: 20px;
    font-weight: bold;
    margin: 8px 0;
}
.product-grid-row{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
}
.product-grid-row:not(:last-of-type){
    padding-bottom: 20px;
}
.product-grid-row:not(:first-of-type){
    padding-top: 20px;
}
.product-background {
    display: none;
}
.product-view-content,
.product-view-information{
    display: contents;
}
.product-view-grid{
    flex-wrap: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: normal;
    border: 1px solid #d9e3ec;
    padding: 20px;
    position: relative;
    row-gap: 15px;
    transition: box-shadow .3s ease-in-out;
    background-color: #fff;
}
.product-name a,
.consumable__product-name a{
    text-decoration: none;
    color: #212529;
    font-size: inherit;
}
.product-name a:hover,
.consumable__product-name a:hover{
    text-decoration: underline;
}
.product-read-more{
    padding-left: 15px;
    color: #10218b;
}
.product-read-more a{
    font-size: inherit;
    color: #10218b;
    text-decoration: none;
    font-weight: bold;
}
.product-read-more a:hover{
    color: #212529;
    text-decoration: underline;
}
.all-products i.bi{
    font-size: small;
}
.product-image a{
    text-align: center;
}
.product-image{
    justify-content: flex-end;
}

.product-copy{
    border-top: 1px solid #d9e3ec;
}

.price{
    font-weight: bold;
}
.is-in-stock span{
    padding: 3px 10px;
    color: #ffffff;
    font-size: 14px;
}
.in-stock{
    background-color: #2dac83;
}
.out-of-stock{
    background-color: #eb5c2a;
}
.last-stock{
    background-color: #f68f39;
}
.product-pricing h3{
    margin: 0;
}
.product-pricing{
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    min-height: 90px;
}
.product-highlights{
    line-height: 1.4;
    min-height: 100px;
}

@media screen and (min-width: 768px) {
    .product-image img {
        min-height: 305px;
        max-height: 305px;
        object-fit: contain;
    }
}

@media screen and (min-width: 1024px) {
    .product-view-information > *{
        padding: 0 20px;
    }
    
    .product-view-information .product-image{
        padding-top: 20px;
    }
    
    .product-view-information .product-ctas{
        padding-bottom: 20px;
    }
    .product-view-grid,
    .product-view-content,
    .product-view-information{
        display: contents;
    }
    .products-carousel .product{
        padding: 0;
    }
    .product-view-grid:first-child .product-background,
    .product-view-grid:first-child .product-image,
    .product-view-grid:first-child .product-description,
    .product-view-grid:first-child .product-pricing,
    .product-view-grid:first-child .product-ctas{
        grid-column: 1;
    }
    .product-view-grid:nth-child(2) .product-background,
    .product-view-grid:nth-child(2) .product-image,
    .product-view-grid:nth-child(2) .product-description,
    .product-view-grid:nth-child(2) .product-pricing,
    .product-view-grid:nth-child(2) .product-ctas{
        grid-column: 2;
    }
    .product-view-grid:nth-child(3) .product-background,
    .product-view-grid:nth-child(3) .product-image,
    .product-view-grid:nth-child(3) .product-description,
    .product-view-grid:nth-child(3) .product-pricing,
    .product-view-grid:nth-child(3) .product-ctas{
        grid-column: 3;
    }
    .product-view-grid:nth-child(4) .product-background,
    .product-view-grid:nth-child(4) .product-image,
    .product-view-grid:nth-child(4) .product-description,
    .product-view-grid:nth-child(4) .product-pricing,
    .product-view-grid:nth-child(4) .product-ctas{
        grid-column: 4;
    }
    .products-grid .product-image{
        grid-row: 1;
    }
    .products-grid .product-description{
        grid-row: 2;
    }
    .products-grid .product-pricing{
        grid-row: 3;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .products-grid .product-ctas{
        grid-row: 4;
    }
    .product-background {
        grid-row-start: 1;
        grid-row-end: 5;
        transition: box-shadow .3s ease-in-out;
    }
    .product-view-grid:hover,
    .product-view-grid:hover .product-background{
        box-shadow: 0 0 10px 0 rgba(16,33,139,.25);
    }
    .product-background {
        display: block;
        grid-row-start: 1;
        grid-row-end: 5;
        border: 1px solid #d9e3ec;
        transition: box-shadow .3s ease-in-out;
    }
    .product-grid-row{
        padding: 0;
    }
    /* .product-grid-row:not(:last-of-type){
        padding-bottom: 50px;
    }
    .product-grid-row:not(:first-of-type){
        padding-top: 50px;
    } */
}

@media screen and (min-width: 1200px) {
    .product{
        padding: 0;
    }
    .products-carousel .product-image{
        text-align: center;
        justify-content: end;
    }
    .product-image img{
        min-height: 200px;
        max-height: 200px;
        object-fit: contain;
    }
    .product-grid-row{
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, auto);
        column-gap: 50px;
    }
}

/* .adding-box:before {
    content: '';
    border-top: 14px transparent solid;
    border-left: 14px transparent solid;
    border-right: 14px #ffffff33 solid;
    border-bottom: 14px transparent solid;
    position: absolute;
    left: -29px;
    margin-left: 0;
    bottom: 0px;
    box-shadow: 0px 1px 8px 0px rgb(204 208 229 / 19%);
} */

.adding-box{
    position: absolute;
    right: -77px;
    bottom: 0;
    visibility: visible;
    position: absolute;
    background: #fff;
    /* box-shadow: 0px 1px 8px 0px rgb(204 208 229 / 19%); */
    padding: 10px 8px;
    /* font-weight: 600; */
    border-radius: 5px;
    box-shadow: 0px 1px 8px 0px rgb(204 208 229 / 60%);
    z-index: 1;
    text-align: left;
}

.products-carousel .adding-box{
    right: 0;
}

.product-details .product-summary .adding-box {
    right: 85px;
}

.adding-box,
.adding-box .loading,
.adding-box .loaded{
    display: none;
}

.adding-box .loading,
.adding-box .loaded{
    width: 150px;
}

.product .product-button{
    width: 100%;
}

@media screen and (min-width: 1200px) {
    /* .product-ctas,
    .wtb-compare-group{
        width: 70%;
        margin: auto;
    } */

    .product-container{
        border: 1px solid rgb(217 227 236 / 45%);
        padding: 20px;
    }
}

.product-container{
    cursor: default;
}

.product-price{
    font-size: 20px;
    font-weight: bold;
}
.product-price .muted{
    font-size: 13px;
    color: #90949c;
}

.products-grid__message {
    /* font-weight: bold; */
    background-color: #e4e4e4;
    padding: 15px;
    position: relative;
    font-size: 14px;
    /* display: flex; */
    align-items: center;
}

.products-grid__message:before {
    width: 5px;
    height: 100%;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
}

.products-grid__message.free-del:before {
    background-color: #2dac83;
}

.products-grid__message.exclusive:before {
    background: linear-gradient(180deg,#001080 10%, #da192e 90%) 0 0 no-repeat;
}

@media screen and (max-width: 991px) {
    .products-carousel{
        padding-top: 70px;
    }

}

@media screen and (max-width: 767px) {
    .products-carousel h2{
        font-size: 28px;
    }
}

