/* Skeleton Loading Components CSS */

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

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

/* Skeleton base styles */
.skeleton {
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

/* Hero/Banner skeleton */
.skeleton-hero {
    width: 100%;
    padding: 0;
}

.skeleton-banner {
    width: 100%;
    height: 500px;
    background: #e8e8e8;
}

@media (max-width: 991px) {
    .skeleton-banner {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .skeleton-banner {
        height: 300px;
    }
}

/* Category skeleton */
.skeleton-category {
    width: 100%;
    height: 280px;
    border-radius: 8px;
}

/* Card type skeleton */
.skeleton-card-type {
    flex-shrink: 0;
    width: 180px;
    height: 220px;
    border-radius: 8px;
}

/* Product skeleton */
.skeleton-product {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.skeleton-product-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
}

.skeleton-product-title {
    width: 80%;
    height: 18px;
    border-radius: 4px;
}

.skeleton-product-price {
    width: 40%;
    height: 16px;
    border-radius: 4px;
}

/* Title skeleton */
.skeleton-title {
    border-radius: 4px;
}

/* Shop page sidebar skeleton */
.skeleton-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-filter-title {
    width: 100px;
    height: 24px;
}

.skeleton-filter-item {
    width: 100%;
    height: 20px;
}