/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 12px;
}

.skeleton-title {
    width: 80%;
    height: 20px;
    margin-bottom: 8px;
}

.skeleton-text {
    width: 60%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-price {
    width: 40%;
    height: 24px;
    margin-bottom: 12px;
}

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

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Dark mode skeleton */
body.dark-mode .skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #333333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* Enhanced skeleton for better UX */
.skeleton-enhanced {
    position: relative;
    overflow: hidden;
}

.skeleton-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Empty state styles */
.empty-state {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error state styles */
.error-state {
    animation: fadeIn 0.3s ease-in;
}

/* Loading spinner */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

