/* Skeleton loading animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.popular-products-wrapper .skeleton-img,
.popular-products-wrapper .skeleton-text,
.popular-products-wrapper .skeleton-badge {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.06) 25%,
            rgba(0, 0, 0, 0.12) 50%,
            rgba(0, 0, 0, 0.06) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 6px;
}

:is(.dark .popular-products-wrapper) .skeleton-img,
:is(.dark .popular-products-wrapper) .skeleton-text,
:is(.dark .popular-products-wrapper) .skeleton-badge {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
}

.popular-products-wrapper .skeleton-img {
    min-height: 48px;
    min-width: 48px;
}

.popular-products-wrapper .skeleton-text {
    min-height: 20px;
    min-width: 100px;
}

.popular-products-wrapper .skeleton-badge {
    min-height: 24px;
    min-width: 45px;
    color: transparent !important;
}

/* Override badge styles during skeleton loading */
/* Override badge styles during skeleton loading */
.popular-products-wrapper .badge.skeleton-badge {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.06) 25%,
            rgba(0, 0, 0, 0.12) 50%,
            rgba(0, 0, 0, 0.06) 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.2s ease-in-out infinite !important;
    border-color: transparent !important;
}

:is(.dark .popular-products-wrapper) .badge.skeleton-badge {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 75%) !important;
    background-size: 200% 100% !important;
}