/* ============================================
   СКЕЛЕТОН ДЛЯ КАРТОЧЕК ТОВАРОВ
============================================ */

.product-card {
    position: relative;
}

.skeleton-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin-right: 10px;          /* фиксированная ширина карточки */
    height: 100%;
    background: #fff;
    z-index: 20;
    border-radius: 2px;
    pointer-events: none;
    display: block;
    animation: skeleton-fade-out 0.3s forwards;
    animation-delay: 1s;

}

/* Скелетон изображения */
.skeleton-loader .skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 2px;
    margin: 0.5rem;
    height: 200px;
    min-height: 200px;
    width: auto;
}

/* Скелетон текста */
.skeleton-loader .skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 2px;
    margin: 0.5rem 1rem;
    height: 16px;
    width: auto;
}

/* Короткий текст */
.skeleton-loader .skeleton-text-short {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 2px;
    margin: 0.5rem 1rem;
    height: 14px;
    width: 70%;
}

/* Скелетон цены */
.skeleton-loader .skeleton-price {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 2px;
    margin: 0.5rem 1rem;
    height: 20px;
    width: 50%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-fade-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

