.product .loader-animation {
    height: 375px;
}


.favorite-btn {
    position: absolute;
    outline: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: 40px;
    width: 40px;
    display: flex;
    top: 0px;
    right: 0px;
    z-index: 1;
    justify-content: center;
    align-items: center;
}

.favorite-btn:hover {
    cursor: pointer;
}

.favorite-btn:hover .icon-heart svg {
    fill: #dd1552;
}

.favorite-btn.active .icon-heart-filled {
    animation: fill-heart 0.25s ease-out;
    animation-fill-mode: forwards;
    opacity: 1;
    display: block;
}

.favorite-btn.active .icon-heart {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}

.favorite-btn.active .icon-heart svg {
    transition: all 0.5s ease-out;
    fill: rgba(255, 255, 255, 0);
}

.favorite-btn .icon-heart, .favorite-btn .icon-heart-filled {
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

.favorite-btn .icon-heart-filled {
    animation: drop-heart 0.25s ease-out;
    animation-fill-mode: forward;
    transition: all 0.25s ease-out;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    display: none;
}


.favorite-btn .icon-heart {
    transition: all 0.25s ease-out;
}


@keyframes fill-heart {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
    }
    80% {
        transform: translate(-50%, -50%) scale(1.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes drop-heart {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }
}


@media screen and (max-width: 1024px) {
    .product .loader-animation {
        height: 411px;
    }
}

@media screen and (max-width: 769px) {
    .product .loader-animation {
        height: 459px;
    }
}

@media screen and (max-width: 481px) {
    .product .loader-animation {
        height: 453px;
    }
}

@media screen and (max-width: 426px) {
    .product .loader-animation {
        height: 598px;
    }
}

@media screen and (max-width: 376px) {
    .product .loader-animation {
        height: 558px;
    }
}

@media screen and (max-width: 320px) {
    .product .loader-animation {
        height: 520px;
    }
}