/* Стили для Infinite Scroll */
.b-pagination-block {
	display: none!important;
}
/* Индикатор загрузки */
#infinite-scroll-loader {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#infinite-scroll-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

#infinite-scroll-loader p {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* Сообщение о конце */
#infinite-scroll-end {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

/* Анимация появления новых товаров */
.infinite-scroll-items {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Стили для спиннера загрузки */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125em;
}

.spinner-border-lg {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Цвета для спиннера */
.text-primary {
    color: #c70531 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-light {
    color: #f8f9fa !important;
}

.text-dark {
    color: #343a40 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    #infinite-scroll-loader,
    #infinite-scroll-end {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    #infinite-scroll-loader .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    #infinite-scroll-loader p,
    #infinite-scroll-end p {
        font-size: 13px;
    }
}

/* Дополнительные стили для плавности */
.bx_catalog_top_home {
    transition: all 0.3s ease;
}

/* Стили для новых товаров */
.infinite-scroll-items .bx_catalog_item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.infinite-scroll-items .bx_catalog_item:nth-child(1) { animation-delay: 0.1s; }
.infinite-scroll-items .bx_catalog_item:nth-child(2) { animation-delay: 0.2s; }
.infinite-scroll-items .bx_catalog_item:nth-child(3) { animation-delay: 0.3s; }
.infinite-scroll-items .bx_catalog_item:nth-child(4) { animation-delay: 0.4s; }
.infinite-scroll-items .bx_catalog_item:nth-child(5) { animation-delay: 0.5s; }
.infinite-scroll-items .bx_catalog_item:nth-child(6) { animation-delay: 0.6s; }
.infinite-scroll-items .bx_catalog_item:nth-child(7) { animation-delay: 0.7s; }
.infinite-scroll-items .bx_catalog_item:nth-child(8) { animation-delay: 0.8s; }
.infinite-scroll-items .bx_catalog_item:nth-child(9) { animation-delay: 0.9s; }
.infinite-scroll-items .bx_catalog_item:nth-child(10) { animation-delay: 1.0s; }
.infinite-scroll-items .bx_catalog_item:nth-child(11) { animation-delay: 1.1s; }
.infinite-scroll-items .bx_catalog_item:nth-child(12) { animation-delay: 1.2s; }