/* Shared hierarchical pager (admin + storefront) */
.pgbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    width: 100%;
}

.pgbar__info {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pgbar__pager {
    flex: 1 1 280px;
    min-width: 0;
}

.pgbar__goto {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.pgbar__goto-input {
    width: 5.5rem;
    height: 34px;
    padding: 0 0.45rem;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    font-size: 0.8125rem;
    box-sizing: border-box;
}

.apager {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.apager__nav {
    flex: 0 0 auto;
    height: 34px;
    display: flex;
    align-items: center;
}

.apager__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    background: #fff;
    color: #495057;
    text-decoration: none;
}

.apager__nav-btn:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.apager__nav-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.apager__crumbs {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.2rem;
    max-width: 45%;
    overflow: hidden;
    height: 34px;
}

.apager__sep {
    color: #adb5bd;
    font-size: 0.75rem;
    user-select: none;
}

.apager__up {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 28px;
    padding: 0 0.45rem;
    border: none;
    border-radius: 999px;
    background: #343a40;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.apager__up:hover {
    background: #0056b3;
}

.apager__up-label {
    font-variant-numeric: tabular-nums;
}

.apager__rail {
    flex: 1 1 auto;
    min-width: 0;
    align-self: flex-start;
}

.apager__rail-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: thin;
}

.apager__rail-track {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    height: 34px;
    width: max-content;
    min-width: 100%;
}

.apager__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    height: 34px;
    padding: 0 0.55rem;
    border: 1px solid #ced4da;
    border-radius: 999px;
    background: #fff;
    color: #212529;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto;
}

.apager__chip:hover {
    border-color: #007bff;
    color: #007bff;
}

.apager__chip.has-cur {
    border-color: #007bff;
    color: #007bff;
    background: #e7f1ff;
}

.apager__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.35rem;
    border-radius: 50%;
    border: 1px solid #ced4da;
    background: #fff;
    color: #212529;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    flex: 0 0 auto;
}

.apager__page:hover {
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
}

.apager__page.is-cur {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.apager__icon {
    display: block;
}
