﻿/**
 * SOS Infinite Scroll - Estilos
 * @author SOS Pedagogico - https://sospedagogico.com
 */

/* Container */
.sos-infinite-container {
    position: relative;
}

/* Loader */
.sos-infinite-loader {
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
}

/* Spinner */
.sos-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: sos-spin 0.8s linear infinite;
}

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

/* Dots */
.sos-loader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.sos-loader-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: sos-dots 1.4s infinite ease-in-out both;
}

.sos-loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.sos-loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes sos-dots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Bar */
.sos-loader-bar {
    width: 100px;
    height: 4px;
    margin: 0 auto 15px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.sos-loader-bar::after {
    content: '';
    position: absolute;
    left: -50%;
    width: 50%;
    height: 100%;
    background: inherit;
    animation: sos-bar 1s infinite linear;
}

@keyframes sos-bar {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* Loader Text */
.sos-loader-text {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Progress */
.sos-scroll-progress {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* No More Products */
.sos-no-more {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* Error */
.sos-load-error {
    text-align: center;
    padding: 15px 20px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    margin: 20px 0;
}

/* New Products Animation */
.sos-product-new {
    animation: sos-fadeIn 0.4s ease;
}

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

/* Responsivo */
@media (max-width: 768px) {
    .sos-scroll-progress {
        bottom: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .sos-loader-spinner {
        width: 30px;
        height: 30px;
    }
}



