.product-pagination-shell,
.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 26px 0 34px;
}

.pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    display: inline-flex;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    color: #282828;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    border-color: #b80000;
    background: #fff7f7;
    color: #b80000;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(184, 0, 0, 0.12);
}

.pagination .page-item.active .page-link {
    border-color: #b80000;
    background: #b80000;
    color: #fff;
    box-shadow: 0 12px 24px rgba(184, 0, 0, 0.18);
    cursor: default;
}

.pagination .page-item.disabled .page-link {
    border-color: #f0f0f0;
    background: #fafafa;
    color: #b8b8b8;
    box-shadow: none;
    cursor: not-allowed;
}

.pagination .page-item.prev .page-link,
.pagination .page-item.next .page-link {
    min-width: 42px;
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 2px;
}

.pagination .page-link .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 575.98px) {
    .product-pagination-shell,
    .pagination-container {
        margin: 20px 0 28px;
    }

    .pagination {
        gap: 6px;
    }

    .pagination .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        border-radius: 7px;
        font-size: 13px;
    }

    .pagination .page-item:not(:first-child):not(:last-child):not(.active):not(.prev):not(.next) {
        display: none;
    }
}
