.trpg-ip-card-topline {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #e4d8c8;
    color: #805b43;
    background: #faf7f1;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
}

.catalog-title-line {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.catalog-title-line h2 {
    flex: 0 1 auto;
}

.catalog-result-count {
    padding: 0;
    color: #8a8e8b;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .12em;
    white-space: nowrap;
}

.catalog-sale-filter {
    display: flex;
    flex: 0 0 auto;
    margin: 0 0 5px;
}

.catalog-sale-filter label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #465154;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.catalog-sale-filter input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.catalog-sale-filter-box {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid #ad9c88;
    color: transparent;
    background: #fffdf8;
    font-size: 13px;
    line-height: 1;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.catalog-sale-filter input:checked + .catalog-sale-filter-box {
    border-color: #805b43;
    color: #fff;
    background: #805b43;
}

.catalog-sale-filter input:focus-visible + .catalog-sale-filter-box {
    outline: 2px solid #805b43;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .boardgames-section-heading,
    .trpg-collection-heading {
        align-items: flex-start;
    }

    .catalog-title-line {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .catalog-sale-filter {
        margin-bottom: 3px;
    }
}

/* Use the same numbered pagination treatment across all three catalogs. */
.boardgames-pagination,
.news-pagination {
    flex-wrap: wrap;
    gap: 10px;
}

.boardgames-pagination a,
.boardgames-pagination span {
    display: grid;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    place-items: center;
    border: 1px solid #ded8cf;
    color: #303839;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.boardgames-pagination a:hover,
.boardgames-pagination .is-current {
    border-color: #183746;
    color: #f5f2ec;
    background: #183746;
}

@media (max-width: 600px) {
    .boardgames-pagination a,
    .boardgames-pagination span,
    .news-pagination a,
    .news-pagination span {
        min-width: 38px;
        height: 40px;
        padding: 0 10px;
    }
}
