/* Dedicated category pagination overrides. */

.catalog-category-view .pages {
    margin-top: 44px !important;
}

.catalog-category-view .pages .pages-items {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.catalog-category-view .pages .item {
    margin: 0 !important;
}

.catalog-category-view .pages .item .label,
.catalog-category-view .pages .pages-label {
    display: none !important;
}

.catalog-category-view .pages .item > a,
.catalog-category-view .pages .item.current strong {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    border: 2px solid var(--a-ink) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--a-font-body) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    color: var(--a-ink) !important;
    background: transparent !important;
}

.catalog-category-view .pages .item.current strong {
    background: var(--a-red) !important;
    border-color: var(--a-red) !important;
    color: var(--a-cream) !important;
}

.catalog-category-view .pages .item.pages-item-previous .action,
.catalog-category-view .pages .item.pages-item-next .action {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    font-size: 0 !important;
    position: relative !important;
}

.catalog-category-view .pages .item.pages-item-previous .action::before,
.catalog-category-view .pages .item.pages-item-next .action::before {
    font-family: var(--a-font-body) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    color: var(--a-ink) !important;
    position: static !important;
}

.catalog-category-view .pages .item.pages-item-previous .action::before {
    content: "<" !important;
}

.catalog-category-view .pages .item.pages-item-next .action::before {
    content: ">" !important;
}

.catalog-category-view .pages .item.pages-item-ellipsis strong {
    font-size: 20px !important;
    letter-spacing: 1px !important;
}

/* Remove "Show per page" and keep pager centered like Storybook reference. */
.catalog-category-view .toolbar .limiter {
    display: none !important;
}

.catalog-category-view .toolbar.toolbar-products:last-child {
    justify-content: center !important;
}

.catalog-category-view .toolbar.toolbar-products:last-child .pages {
    margin-left: auto !important;
    margin-right: auto !important;
}
