/* Infinite Scroll Plugin - Styles */

/* Hide pagination when infinite scroll is active */
.infinite-scroll-active .productlist-pagination,
.infinite-scroll-active nav.navbar-pagination,
.infinite-scroll-active .productlist-page-nav {
    display: none !important;
}

/* Loading spinner container */
.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 12px;
    width: 100%;
}

.infinite-scroll-loader span {
    color: #666;
    font-size: 14px;
}

/* Spinner animation */
.infinite-scroll-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: infinite-scroll-spin 0.8s linear infinite;
}

@keyframes infinite-scroll-spin {
    to {
        transform: rotate(360deg);
    }
}

/* End of results indicator */
.infinite-scroll-end {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.infinite-scroll-end span {
    color: #999;
    font-size: 13px;
    position: relative;
    padding: 0 16px;
}

.infinite-scroll-end span::before,
.infinite-scroll-end span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #ddd;
}

.infinite-scroll-end span::before {
    right: 100%;
}

.infinite-scroll-end span::after {
    left: 100%;
}

/* Page separator (invisible, used for structure) */
.infinite-scroll-page-separator {
    display: none;
}
