@import url('../bootstrap/bootstrap.min.css');
@import url('../bootstrap/icons/font/bootstrap-icons.min.css');

/* Load Screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #344955;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que o loading fique por cima de todo o conteúdo */
}

.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* End Load Screen */

.navbar {
    min-height: 4rem;
}

.bg-custom {
    background-color: transparent;
}

.bg-default {
    background-color: #344955;
}

.navbar-scrolled {
    background-color: #344955;
    transition: background-color 0.3s;
}

.btn-cart {
    border-radius: 100%;
    font-size: 18px;
    background-color: #389144;
    color: #fff;
}

.badge-cart {
    position: absolute;
    top: 10px;
    right: 5px;
    background-color: red;
    color: white;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner {
    background-size: cover;
    background-position: center;
    background-color: #212529;
    height: 200px;
    display: flex;
}

.card-infos {
    width: 90%;
    margin: -2rem auto;
    border-radius: 1rem;
}

.card-infos .stars {
    text-align: center;
    color: #f8d100;
}

.card-infos p {
    margin-bottom: 0.5rem;
}

.logo {
    width: 5rem;
    height: 5rem;
    border-radius: 100%;
    border: solid 2px #4aa556;
    overflow: hidden;
    align-items: center;
    margin: -2rem auto;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-item {
    padding: 0.4rem;
}

.card-item {
    height: 100%;
    padding: 0rem;
    margin-bottom: 20px;
    border-radius: 8px;
}

.card-item img {
    width: 100%;
    height: 5rem;
    object-fit: cover;
    border-radius: 8px;
}

.card-item .item-price {
    margin: 0.4rem;
    font-weight: 500;
    font-size: 16px;
    color: green;
}

.card-item .item-title {
    margin: 0.4rem;
    font-size: 16px;
}

.category-link {
    text-decoration: none;
    color: #212529;
}

.category-link:hover {
    text-decoration: none;
    color: #212529;
}

.footer {
    background-color: #344955;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    bottom: 0;
    width: 100%;
    margin-top: 2rem;
    font-size: 14px;
}

.footer p {
    margin-bottom: 0;
}

.powered-by {
    width: 100%;
    color: #fff;
    background: #212529;
    padding: 2ex 0ex;
}

.btn-back {
    background-color: #344955;
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 16px;
    margin-top: 1rem;
}

.btn-default {
    background-color: #344955;
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 16px;
}

.card-details {
    min-height: 30rem;
    padding: 0rem;
    margin-bottom: 20px;
    border-radius: 8px;
}

.card-details img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-radius: 8px;
}

.card-item-added {
    border-radius: 5px;
}

/* Animated Check Icon */

.success-checkmark {
    width: 80px;
    height: 115px;
    margin: 0 auto;

    .check-icon {
        width: 80px;
        height: 80px;
        position: relative;
        border-radius: 50%;
        box-sizing: content-box;
        border: 4px solid #4CAF50;

        &::before {
            top: 3px;
            left: -2px;
            width: 30px;
            transform-origin: 100% 50%;
            border-radius: 100px 0 0 100px;
        }

        &::after {
            top: 0;
            left: 30px;
            width: 60px;
            transform-origin: 0 50%;
            border-radius: 0 100px 100px 0;
            animation: rotate-circle 4.25s ease-in;
        }

        &::before, &::after {
            content: '';
            height: 100px;
            position: absolute;
            background: #FFFFFF;
            transform: rotate(-45deg);
        }

        .icon-line {
            height: 5px;
            background-color: #4CAF50;
            display: block;
            border-radius: 2px;
            position: absolute;
            z-index: 10;

            &.line-tip {
                top: 46px;
                left: 14px;
                width: 25px;
                transform: rotate(45deg);
                animation: icon-line-tip 0.75s;
            }

            &.line-long {
                top: 38px;
                right: 8px;
                width: 47px;
                transform: rotate(-45deg);
                animation: icon-line-long 0.75s;
            }
        }

        .icon-circle {
            top: -4px;
            left: -4px;
            z-index: 10;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            position: absolute;
            box-sizing: content-box;
            border: 4px solid rgba(76, 175, 80, .5);
        }

        .icon-fix {
            top: 8px;
            width: 5px;
            left: 26px;
            z-index: 1;
            height: 85px;
            position: absolute;
            transform: rotate(-45deg);
            background-color: #FFFFFF;
        }
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

/* End Animated Check Icon */