﻿.food-shop-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #78e2b1 0%, #efd1d9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.loading-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 450px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* انیمیشن سبد خرید */
.food-animation {
    position: relative;
    height: 120px;
    margin-bottom: 2rem;
}

.shopping-cart {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: cartMove 4s infinite ease-in-out;
}

.cart-body {
    width: 120px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 15px 15px 5px 5px;
    position: relative;
}

    .cart-body::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 10px;
        width: 40px;
        height: 20px;
        background: #ff6b6b;
        border-radius: 10px 10px 0 0;
    }

.cart-wheel {
    position: absolute;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: #333;
    border-radius: 50%;
    animation: wheelSpin 1s infinite linear;
}

    .cart-wheel.left {
        left: 15px;
    }

    .cart-wheel.right {
        right: 15px;
    }

/* آیتم‌های غذایی */
.food-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.food-item {
    position: absolute;
    font-size: 1.8rem;
    animation: foodFall 3s infinite ease-in-out;
    opacity: 0;
}

.apple {
    left: 20%;
    animation-delay: 0s;
}

.bread {
    left: 35%;
    animation-delay: 0.3s;
}

.vegetable {
    left: 50%;
    animation-delay: 0.6s;
}

.meat {
    left: 65%;
    animation-delay: 0.9s;
}

.drink {
    left: 80%;
    animation-delay: 1.2s;
}

/* انیمیشن‌ها */
@keyframes cartMove {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes foodFall {
    0% {
        opacity: 0;
        transform: translateY(-50px) rotate(0deg);
    }

    10% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    20% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    30% {
        opacity: 0;
        transform: translateY(50px) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: translateY(50px) rotate(180deg);
    }
}

/* محتوای لودینگ */
.loading-content {
    margin-top: 1rem;
}

.loading-title {
    color: #2d3436;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* نوار پیشرفت */
.progress-section {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shimmer 2s infinite;
    }

.progress-text {
    font-size: 1rem;
    color: #ff6b6b;
    font-weight: bold;
}

/* آیکون‌های غذایی */
.food-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.icon {
    font-size: 2rem;
    animation: iconBounce 2s infinite ease-in-out;
}

    .icon:nth-child(1) {
        animation-delay: 0s;
    }

    .icon:nth-child(2) {
        animation-delay: 0.2s;
    }

    .icon:nth-child(3) {
        animation-delay: 0.4s;
    }

    .icon:nth-child(4) {
        animation-delay: 0.6s;
    }

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}
