﻿#ProgressBar_SM {
    display: none;
    height: 5px;
    background: linear-gradient(45deg,var(--secondary-color) 0,var(--primary-color) 100%);
    background-repeat: repeat-x;
    width: 0%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: width 0.3s ease-in-out;
}

.progress-bar2, .progress-bar-alert2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background-color: #fff;
    opacity: 0.7;
}

.loadingAjax {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* توسيط دقيق */
    z-index: 9999;
    /* إخفاء أولي بدون ظهور لحظة التحميل */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

    .loadingAjax.show {
        visibility: visible;
        opacity: 1;
    }


.mobile-bottom-nav .cart {
    position: relative;
}

    .mobile-bottom-nav .cart .badge {
        position: absolute;
        top: -5px;
        right: 20px;
        background: #e91e2d;
        color: #fff;
        font-size: 11px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,.2);
    }

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

    .mobile-bottom-nav .nav-item {
        flex: 1;
        text-align: center;
        color: #444;
        font-size: 12px;
        text-decoration: none;
    }

        .mobile-bottom-nav .nav-item i {
            display: block;
            font-size: 20px;
            margin-bottom: 3px;
            color: #444;
        }

        .mobile-bottom-nav .nav-item.active i,
        .mobile-bottom-nav .nav-item.active span {
            color: #e91e63; /* لون مميز عند التفعيل */
        }

@media (min-width: 768px) {
    .mobile-bottom-nav {
        /*display: none;*/
        margin-bottom: -150px;
    }
}

.mobile-bottom-nav .nav-item:active {
    background: #f7f7f7;
}

/* تطبيق الحركة على العداد */
.mobile-bottom-nav .cart .badge.animate-shake {
    animation: shake 0.4s ease;
}

.mobile-bottom-nav .cart .badge.animate-bounce {
    animation: bounce 0.4s ease;
}

.shake-anim {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}
