/* SOFT LOADING INDICATORS FOR PRODUCT SECTIONS */

.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 200px;
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

.products-loading.fade-out {
    opacity: 0;
}

/* Soft Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(27, 123, 137, 0.1);
    border-top-color: #1b7b89;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Text */
.loading-text {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.3px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Smooth fade-in for carousels */
.carousel-wrapper,
.splide {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.carousel-wrapper.fade-in,
.splide.fade-in {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .products-loading {
        padding: 40px 20px;
        min-height: 150px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 2.5px;
    }
    
    .loading-text {
        font-size: 0.875rem;
        margin-top: 12px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
        border-top-color: #1b7b89;
        opacity: 0.7;
    }
    
    .loading-text {
        animation: none;
        opacity: 0.8;
    }
    
    .products-loading,
    .carousel-wrapper,
    .splide {
        transition: none;
    }
}
