/* ========================================
   SKELETON LOADERS - Infinite Scroll
   ======================================== */

.skeleton-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    display: block;
    margin-bottom: 12px;
}

.skeleton-body {
    padding: 12px;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    margin-bottom: 0;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

#skeleton-container {
    display: none;
}

#skeleton-container.show {
    display: flex;
    flex-wrap: wrap;
}

/* Smooth fade-in animation for loaded products */
.item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Infinite scroll trigger sentinel */
#scroll-trigger {
    margin-top: 50px;
    height: 100px;
    visibility: hidden;
}
