.atc-fade-in {
    animation: atcfadeInAnimation 200ms ease-in-out forwards;
}

.atc-fade-out {
    animation: atcfadeOutAnimation 200ms ease-in-out forwards;
}

@keyframes atcfadeInAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes atcfadeOutAnimation {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@-webkit-keyframes rotate-loading {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes rotate-loading {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

:root {
    --animation-duration: 1000;
}

.add-product-to-cart-btn {
    position: absolute;
    width: 100%;
    height: 60px;
    color: #111111;
    background-color: #d4af34;
    border: 1px solid #111111;
    border-radius: 0;
    font-family: "Yekan Bakh FaNum";
    font-size: 24px;
    font-weight: 600;
    transition: all 0.1s ease-in-out;
}

.add-product-to-cart-btn::after {
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    opacity: 0;
    -webkit-transition: opacity .2s ease;
    transition: opacity .2s ease;
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-left-color: currentColor;
    border-radius: 50%;
    vertical-align: middle;
}

.add-product-to-cart-btn.loading::after {
    opacity: 1;
    -webkit-animation: rotate-loading 450ms infinite linear;
    animation: rotate-loading 450ms infinite linear;
}

.add-product-to-cart-btn:hover {
    color: #f6f6f6;
    background-color: #111111;
    cursor: pointer;
}

.add-product-to-cart-btn:active {
    color: #d4af34;
    background: #111111;
    transition: none;
}

.add-product-to-cart-btn:disabled {
    color: #858585;
    background-color: #D9D9D9;
}

.success-message {
    font-size: 24px;
    color: #125512;
    /* or any color you prefer */
}

.error-message {
    font-size: 24px;
    color: #551212;
    /* or any color you prefer */
}