/**
 * WizAtom Pagination — v2 CSS
 * Same class names as v1 for compatibility.
 * Elementor controls target these classes directly.
 */

/* ================================================================
   Container
   ================================================================ */
.product-pagination {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* ================================================================
   Desktop pagination
   ================================================================ */
.pagination-desktop {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
}

/* ================================================================
   Mobile pagination — hidden on desktop, shown on mobile
   ================================================================ */
.pagination-mobile {
    display: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
}

/* ================================================================
   Pagination item (link)
   ================================================================ */
.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    color: #000;
    cursor: pointer;
}

/* Active page */
.pagination-active {
    pointer-events: none;
}

/* Disabled nav (first/prev on page 1, next/last on last page) */
.pagination-disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

/* Ellipsis */
.pagination-ellipsis {
    padding: 0 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Prev/Next buttons */
.pagination-prev,
.pagination-next {
    padding: 0 15px;
}

/* ================================================================
   Mobile responsive
   ================================================================ */
@media (max-width: 767px) {
    .product-pagination {
        gap: 2px;
        padding: 0 4px;
    }

    .pagination-desktop {
        display: none;
    }

    .pagination-mobile {
        display: flex;
        gap: 2px;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .pagination-item {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
        padding: 0 6px;
    }

    .pagination-first,
    .pagination-last,
    .pagination-prev,
    .pagination-next {
        padding: 0 6px;
        min-width: 32px;
    }
}

/* ================================================================
   Tablet responsive
   ================================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-pagination {
        gap: 3px;
    }

    .pagination-item {
        min-width: 36px;
        height: 36px;
        font-size: 15px;
    }
}
