.dealers-shop-stage {
    position: relative;
}

.dealers-shop-stage.is-loading {
    overflow: visible;
}

.dealers-shop-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: start center;
    padding-top: 4.5rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    border-radius: var(--radius-lg, 10px);
    background: rgba(12, 12, 12, 0.38);
    -webkit-backdrop-filter: blur(10px) saturate(0.55) brightness(0.72);
    backdrop-filter: blur(10px) saturate(0.55) brightness(0.72);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.dealers-shop-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 38%,
        rgba(232, 92, 36, 0.16) 50%,
        transparent 62%,
        transparent 100%
    );
    background-size: 220% 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.dealers-shop-stage.is-loading .dealers-shop-loading {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dealers-shop-stage.is-loading .dealers-shop-loading::after {
    opacity: 1;
    animation: dealers-shop-scan 1.35s ease-in-out infinite;
}

.dealers-shop-loading-chip {
    position: sticky;
    top: 6.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: max-content;
    margin: 0 auto;
    padding: 0.6rem 1.05rem;
    border: 1px solid rgba(232, 92, 36, 0.5);
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.86);
    box-shadow:
        0 0 0 1px rgba(232, 92, 36, 0.12),
        0 14px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(232, 92, 36, 0.22);
    color: #f4f1ec;
    animation: dealers-shop-pulse 1.6s ease-in-out infinite;
}

.dealers-shop-loading-chip p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.dealers-shop-loading-mark {
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(244, 241, 236, 0.22);
    border-top-color: var(--accent, #e85c24);
    border-radius: 50%;
    animation: dealers-shop-spin 0.7s linear infinite;
}

.dealers-shop-stage.is-ready .shop-card {
    animation: dealers-shop-card-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dealers-shop-stage.is-ready .shop-card:nth-child(1) { animation-delay: 0.03s; }
.dealers-shop-stage.is-ready .shop-card:nth-child(2) { animation-delay: 0.07s; }
.dealers-shop-stage.is-ready .shop-card:nth-child(3) { animation-delay: 0.11s; }
.dealers-shop-stage.is-ready .shop-card:nth-child(4) { animation-delay: 0.15s; }
.dealers-shop-stage.is-ready .shop-card:nth-child(5) { animation-delay: 0.19s; }
.dealers-shop-stage.is-ready .shop-card:nth-child(6) { animation-delay: 0.23s; }
.dealers-shop-stage.is-ready .shop-card:nth-child(7) { animation-delay: 0.27s; }
.dealers-shop-stage.is-ready .shop-card:nth-child(8) { animation-delay: 0.31s; }

@keyframes dealers-shop-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes dealers-shop-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dealers-shop-scan {
    from {
        background-position: 120% 0;
    }
    to {
        background-position: -120% 0;
    }
}

@keyframes dealers-shop-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(232, 92, 36, 0.12),
            0 14px 40px rgba(0, 0, 0, 0.45),
            0 0 22px rgba(232, 92, 36, 0.16);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(232, 92, 36, 0.28),
            0 14px 40px rgba(0, 0, 0, 0.45),
            0 0 36px rgba(232, 92, 36, 0.38);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dealers-shop-loading,
    .dealers-shop-loading::after,
    .dealers-shop-loading-chip,
    .dealers-shop-loading-mark,
    .dealers-shop-stage.is-ready .shop-card {
        animation: none;
        transition: none;
    }

    .dealers-shop-loading {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(12, 12, 12, 0.58);
    }
}
