/* Placeholder product cards shown while the catalog grid loads (Default.aspx: showProductSkeleton).
   Sites can tune the colors in their own CSS with --fc-sk-base, --fc-sk-shine and --fc-sk-ring. */

.fc-skeleton .fc-sk-card {
    margin-bottom: 30px;
    padding: 0 0 8px;
}

.fc-skeleton .fc-sk-media,
.fc-skeleton .fc-sk-line {
    border-radius: 0;
    background-color: var(--fc-sk-base, #ececea);
    background-image: linear-gradient(100deg,
        transparent 20%,
        var(--fc-sk-shine, rgba(255, 255, 255, .65)) 50%,
        transparent 80%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: 150% 0;
    animation: fc-sk-shine 1.4s ease-in-out infinite;
}

.fc-skeleton .fc-sk-media {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
}

/* Circular progress in the middle of each placeholder image. */
.fc-skeleton .fc-sk-media::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    box-sizing: border-box;
    border: 2px solid rgba(0, 0, 0, .08);
    border-top-color: var(--fc-sk-ring, #8a8a86);
    border-radius: 50%;
    animation: fc-sk-spin .8s linear infinite;
}

@keyframes fc-sk-spin {
    to { transform: rotate(360deg); }
}

.fc-skeleton .fc-sk-line {
    height: 12px;
    margin: 0 0 10px;
}

.fc-skeleton .fc-sk-short { width: 60%; }

.fc-skeleton .fc-sk-price {
    width: 35%;
    height: 16px;
    margin-top: 16px;
}

@keyframes fc-sk-shine {
    to { background-position: -50% 0; }
}

/* On phones the real cards are one per row: two placeholders are enough. */
@media (max-width: 575.98px) {
    .fc-skeleton > .prodcont:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-skeleton .fc-sk-media,
    .fc-skeleton .fc-sk-line,
    .fc-skeleton .fc-sk-media::after { animation: none; }
}
