/* frontend/css/skeletons.css */
/* Styles for skeleton loading states to satisfy CSP (no inline styles) */

.product-card-skeleton {
    pointer-events: none;
    user-select: none;
}

.skeleton-block {
    background-color: #e0e0e0;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

.skeleton-image {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: var(--radius-md, 12px);
}

.skeleton-padding-wrap {
    padding: 0 2px;
}

.skeleton-title {
    height: 14px;
    width: 55%;
    margin: 10px 0 6px;
    border-radius: 6px;
}

.skeleton-text {
    height: 16px;
    width: 80%;
    margin-bottom: 6px;
    border-radius: 6px;
}

.skeleton-meta {
    height: 12px;
    width: 40%;
    margin-bottom: 8px;
    border-radius: 6px;
}

.skeleton-button {
    height: 34px;
    width: 100%;
    border-radius: 999px;
}
