.product-card-mdl {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card-mdl div:has( > .btn-card-entry-trigger) {
    flex-wrap: wrap;
}

.product-card-mdl .btn-card-entry-trigger {
    background: #000 !important;
    color: #fff !important;
    margin: 5px 0;
}

.product-card-mdl .color-buttons-container {
    flex-wrap: wrap;
}

@media (min-width: 767px) {
    .product-card-mdl.card-374 {
        display: flex;
        flex-direction: row;
    }

    .product-card-mdl.card-374 .card__inner {
        max-width: 300px;
        flex: 0 0 300px;
    }

    .product-card-mdl.card-374 .card__content {
        flex: 1 1 auto;
        padding-left: 20px;
    }
}

.product-card-mdl img {
    max-width: 100%;
}

.product-card-mdl .card__inner,
.product-card-mdl .custom-slider-1
/* , */
/* .product-card-mdl .slides-container  */
{
    /* Reserve space before images load to reduce CLS */
    aspect-ratio: 3 / 4;
    width: 100%;
}

.product-card-mdl .slides-container,
.product-card-mdl .slides-container .slide,
.product-card-mdl .slides-container .slide img {
    width: 100%;
    height: 100%;
}

.product-card-mdl .slides-container .slide img {
    object-fit: cover;
    object-position: center;
}

.product-card-mdl .card__entry .card-size-button {
    color: #000;
}

.product-card-mdl .card__entry {
    position: absolute;
    transform: translateY(100%);
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .9);
    transition: transform .4s;
    z-index: 2;
    padding: 8px 0 0 0;
}

.product-card-mdl .card__entry.is-active.is-showing {
    transform: translateY(-5px);
}

.product-card-mdl .card__entry button {
    transition: background .4s;
    font-size: 12px;
}

.product-card-mdl .card__entry h6 {
    font-size: .8rem;
}

.product-card-mdl .card__entry button span {
    font-size: 12px;
}

.product-card-mdl .card__entry button small {
    border-radius: 50%;
    background: red;
    height: 4px;
    width: 4px;
}

.product-card-mdl .card__entry button:hover {
    background: #bbb !important;
}

.product-card-mdl .card__entry button span {
    position: absolute;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .25);
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
    background: #fff;
    padding: 5px;
    opacity: 0;
    transition: opacity .4s;
    color: #000;
    white-space: normal;
    font-size: 14px;
}

.product-card-mdl .card__entry button:hover span {
    opacity: 1;
    pointer-events: all;
}


.product-card-mdl .card__favourites {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 24px;
    transition: background .4s;
    background-image: url('/assets/template_files/images/heart.svg');
    background-size: 85%;
    background-repeat: no-repeat;
    background-position: center center;
}

.product-card-mdl .card__favourites.active {
    background-image: url('/assets/template_files/images/heart_full.svg');
}

@media (min-width: 992px) {
    .product-card-mdl .card__favourites:hover {
        background-image: url('/assets/template_files/images/heart_full.svg');
    }
}

/* favoutires svgs as content of the button */

.product-card-mdl .card__favourites.card__favourites--svgs {
    width: auto;
    height: auto;
    background-image: none !important;
    padding: 0;
}

.product-card-mdl .card__favourites.card__favourites--svgs svg {
    max-width: 100%;
    transition: .3s all;
}

.product-card-mdl .card__favourites.card__favourites--svgs svg:first-child {
    opacity: 1;
}

.product-card-mdl .card__favourites.card__favourites--svgs svg:last-child {
    opacity: 0;
    position: absolute;
    left: 0;
    width: 100%;
}

.product-card-mdl .card__favourites.card__favourites--svgs.active svg:last-child {
    opacity: 1;
}

@media (min-width: 991.92px) {
    
    .product-card-mdl .card__favourites.card__favourites--svgs:hover svg:first-child {
        opacity: 0;
    }
    
    .product-card-mdl .card__favourites.card__favourites--svgs:hover svg:last-child {
        opacity: 1;
    }
}


.product-card-mdl em {
    font-style: normal;
}

.product-card-mdl a:hover,
.product-card-mdl a:focus {
    color: #8e6e34;
}

@media (min-width: 576px) {
    
    .product-card-mdl .card__content {
        min-height: 71px;
    }
}

/*  card-large  */

.card-large .product-card-mdl .slides-container {
    height: 100%;
}

.card-large .product-card-mdl .slides-container .slide img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-large .product-card-mdl, 
.card-large .product-card-mdl .card__inner,
.card-large .product-card-mdl .custom-slider-1,
.card-large .product-card-mdl .slider-wrapper {
    height: 100%;
}

.product-card-mdl .card__entry button small {
    border-radius: 50%;
    background: red;
    height: 4px;
    width: 4px;
}

.product-card-mdl .card__color {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid #d8d8d8;
    padding: 0;
}

.product-card-mdl .card__color.is-active {
    border: 2px solid #deb062;
}

/* card-color--alt */

.product-card-mdl.card__color--alt .card__color {
    border: 2px solid var(--color-1);
}

.product-card-mdl.card__color--alt .card__color.is-active {
    border: 2px solid var(--color-3);
}

.product-card-mdl .card__content {
    flex: 1 1 auto;
}

.product-card-mdl .card__content .card__footer {
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

@media (min-width: 992px) {
 
    .product-card-mdl .card__content .card__footer {
        min-height: 56px;
    }   
}

/* card--short */

.product-card-mdl.card-374.card--short .card__content h5 {
    font-size: 1rem;
}

.product-card-mdl.card-374.card--short .card__remove {
    text-align: left !important;
}


@media (min-width: 767px) {
    .product-card-md .card__entry h6 {
        font-size: 1rem;
    }

    .product-card-md .card__entry li button {
        font-size: 14px;
    }
    
    .product-card-mdl .card__entry button span {
        font-size: 14px;
    }
}

@media (min-width: 767px) {

    .product-card-mdl.card-374.card--short .card__inner {
        max-width: 200px;
        flex: 0 0 200px;
    }
}

@media (min-width: 992px) {
    .product-card-mdl .card__inner:hover .card__entry.is-active {
        transform: translateY(0);
    }
    .product-card-mdl .card__entry {
        
        padding: 16px;
    }
}

.product-card-mdl .card__entry .card-size-button.card__unavailable {
    color: #ccc;
}
