/* =====================================================
   PAGINATION UI - ALIGNMENT FIX (V6 - ICON FIX)
   ===================================================== */
.woocommerce-pagination,
.pagination-wrap,
.k-ajax-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
    width: 100%;
}

.woocommerce-pagination .page-numbers,
.k-ajax-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
}

.woocommerce-pagination .page-numbers li,
.k-ajax-pagination .page-numbers li {
    margin: 0;
    padding: 0;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base Link/Button Item */
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span,
.k-ajax-pagination .page-numbers li a,
.k-ajax-pagination .page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;

    background-color: transparent;
    color: var(--color-text-secondary, #6B7280);
    border: 1px solid transparent;
    box-shadow: none !important;
}

/* FIX FOR FONTAWESOME ICONS */
.woocommerce-pagination .page-numbers li a i,
.woocommerce-pagination .page-numbers li span i,
.k-ajax-pagination .page-numbers li a i,
.k-ajax-pagination .page-numbers li span i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 0.85rem !important;
    width: auto !important;
    height: auto !important;
}

/* Hover States */
.woocommerce-pagination .page-numbers li a:hover,
.k-ajax-pagination .page-numbers li a:hover {
    color: var(--color-primary);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Current / Active Page */
.woocommerce-pagination .page-numbers li span.current,
.k-ajax-pagination .page-numbers li span.current {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    cursor: default;
}

/* Next / Prev */
.woocommerce-pagination .page-numbers li a.next,
.woocommerce-pagination .page-numbers li a.prev,
.k-ajax-pagination .page-numbers li a.next,
.k-ajax-pagination .page-numbers li a.prev {
    font-size: 1rem;
}

/* DOTS */
.woocommerce-pagination .page-numbers li span.dots,
.k-ajax-pagination .page-numbers li span.dots {
    width: auto !important;
    min-width: 20px !important;
    height: 44px !important;
    padding: 0 4px !important;
    color: #9CA3AF !important;
    letter-spacing: 1px;
    background: transparent !important;
    border: none !important;
}

/* =====================================================
   DARK MODE
   ===================================================== */
[data-theme="dark"] .woocommerce-pagination .page-numbers li a,
[data-theme="dark"] .woocommerce-pagination .page-numbers li span,
[data-theme="dark"] .k-ajax-pagination .page-numbers li a,
[data-theme="dark"] .k-ajax-pagination .page-numbers li span {
    color: #9ca3af;
    background-color: transparent;
    border-color: transparent;
}

[data-theme="dark"] .woocommerce-pagination .page-numbers li a:hover,
[data-theme="dark"] .k-ajax-pagination .page-numbers li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .woocommerce-pagination .page-numbers li span.current,
[data-theme="dark"] .k-ajax-pagination .page-numbers li span.current {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

[data-theme="dark"] .woocommerce-pagination .page-numbers li span.dots,
[data-theme="dark"] .k-ajax-pagination .page-numbers li span.dots {
    color: #6b7280 !important;
}