/* AJAX Pagination Styles */
.ajax-pagination {
    position: relative;
}

.ajax-pagination .pagination-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.ajax-pagination .pagination.d-none {
    display: none !important;
}

.ajax-page-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.ajax-page-btn:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.ajax-page-btn.active {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.ajax-page-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading overlay for products container */
.products-loading {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Smooth animations */
.card-template {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-template.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ajax-pagination .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ajax-pagination .pagination .page-item {
        margin: 2px;
    }
}